@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&display=swap');

body {
    background: linear-gradient(rgba(0, 31, 63, 0.85), rgba(0, 31, 63, 0.85)), url('img/refbgnew.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Noto Sans', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
}

.lang-switcher { display:flex; gap:6px; }
.lang-switch-btn {
    padding:4px 10px; border-radius:6px; font-size:12px; font-weight:600;
    color:#c9c9c9; background:rgba(255,255,255,.06); text-decoration:none;
}
.lang-switch-btn.active { background:#d4af37; color:#1a1a1a; }


/* Шапка */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #001F3F;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Логотип по центру */
.header-logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    color: #FFD700;
    text-decoration: none;
}

.header-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    object-fit: cover;
}

.header-orgname {
    font-size: 26px;
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.header-spacer {
    width: 60px;
}

/* ГАМБУРГЕР — ВСЕГДА ВИДЕН, БЕЛЫЙ, ПРИ КЛИКЕ ЖЁЛТЫЙ */
.mobile-menu-toggle {
    font-size: 30px;
    background: none;
    border: none;
    color: #ffffff;
    /* Белый по умолчанию — всегда виден */
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
    display: none;
    /* Пока скрыт на десктопе */
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
}

/* Меню */
.sidebar-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 220px;
    height: calc(100vh - 80px);
    background: #002B5C;
    padding: 20px 0;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: #FFD700;
    color: #001F3F;
    padding-left: 35px;
}

/* Оверлей */
.menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Контент */
.content {
    margin-left: 220px;
    margin-top: 100px;
    padding: 30px;
    transition: margin-left 0.4s ease;
}

/* МОБИЛЬНЫЕ */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
        /* Гамбургер виден */
    }

    .sidebar-menu {
        transform: translateX(-100%);
    }

    .sidebar-menu.open {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        margin-top: 100px;
        padding: 20px;
    }
}

   









/* Основная раскладка матча */
.match-layout {
    display: flex;
    flex-wrap: wrap; /* Важно: перенос на маленьких экранах */
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.team-column, .video-block {
    flex: 1 1 300px; /* Гибкие колонки, минимум 300px */
    background: rgba(0, 31, 63, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    max-width: 100%;
    box-sizing: border-box;
}

.team-column {
    max-height: 600px;
    overflow-y: auto;
}

/* Кнопки событий */
#event-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

/* Форма параметров — не вылезает */
#event-params {
    display: grid;
    gap: 15px;
}

#event-params label {
    display: block;
    margin-bottom: 5px;
}

#event-params input, #event-params select, #event-params textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid #002B5C;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    color: #001F3F;
}

#event-params button {
    padding: 12px 20px;
    background: #FFD700;
    color: #001F3F;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Список событий — не вылезает */
#eventList {
    max-width: 100%;
    overflow-x: auto; /* Горизонтальный скролл на мобильных */
}

.event-item {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.event-item:hover {
    background: rgba(255,215,0,0.2);
}

.event-item.active {
    background: rgba(255,215,0,0.4);
    border-left: 4px solid #FFD700;
}

/* Таблицы */
.table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: rgba(0, 31, 63, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.table th, .table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.table th {
    background: #002B5C;
    color: #FFD700;
}

/* Адаптивность для мобильных */
@media (max-width: 900px) {
    .vertical-menu {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .match-layout {
        flex-direction: column;
    }
}

/* Заголовки */
h2, h3 {
    color: #FFD700;
    text-align: center;
}

h4 {
    color: #001F3F;
    text-align: center;
}

/* Кнопки */
button, .btn {
    background: #001F3F;
    color: #FFD700;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover, .btn:hover {
    background: #FFD700;
    transform: translateY(-2px);
}

button[type="delete"] {
    background: #d32f2f;
}

button[type="delete"]:hover {
    background: #b71c1c;
}

/* Кастомный стиль для всех <select> */
select {
    
    padding: 12px 40px 12px 15px; /* Отступ справа для стрелки */
    font-size: 16px;
    font-family: 'Noto Sans', sans-serif;
    color: #001F3F;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #002B5C;
    border-radius: 10px;
    appearance: none; /* Убираем стандартную стрелку браузера */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* При фокусе — золотой акцент */
select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    background-color: #ffffff;
}

/* При hover */
select:hover {
    border-color: #FFD700;
}

/* Обёртка для кастомной стрелки */
.select-wrapper {
    position: relative;
    display: block;
    margin-bottom: 20px;
}

.select-wrapper::after {
    content: '▼'; /* Красивая стрелка вниз */
    font-size: 18px;
    color: #FFD700;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Чтобы клик проходил на селект */
    transition: color 0.3s;
}

.select-wrapper:hover::after {
    color: #ffffff;
}

/* Для disabled селектов */
select:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Опции внутри селекта */
option {
    padding: 10px;
    background: #ffffff;
    color: #001F3F;
}


.referee-img-container {
    width: 120px;
    /* Размер контейнера */
    height: 120px;
    /* Фиксированная высота */
    overflow: hidden;
    /* Обрезаем части, выходящие за границы */
    border-radius: 10px;
    /* Округление углов */
    position: relative;
}

.referee-img-container img {
    width: 100%;
    /* Увеличиваем картинку */
    height: auto;
    position: absolute;
    top: 0px;
    /* Смещаем фото вверх, чтобы показывалась верхняя часть */
    left: 50%;
    /* Центрируем */
    transform: translateX(-50%);
    /* Выравниваем центр */
    transition: transform 0.3s ease-in-out;
}

.referee-img-container:hover img {
    transform: translateX(-50%) scale(1.2);
    /* Увеличение при наведении */
}

.referee-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* Отступ между элементами */
}


.referee-name {
    font-size: 16px;
    font-weight: bold;
}

/* Единый стиль для текстовых инпутов, чисел, даты и textarea */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea {
    
    
    padding: 12px 15px;
    font-size: 16px;
    font-family: 'Noto Sans', sans-serif;
    color: #001F3F;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #002B5C;
    border-radius: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* При фокусе — золотой акцент FIFA */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: #FFD700;
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* При наведении */
input[type="text"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
textarea:hover {
    border-color: #FFD700;
}

/* Плейсхолдер */
input::placeholder,
textarea::placeholder {
    color: #888;
    opacity: 1;
}

/* Специально для input[type="date"] — убираем стандартные стрелки и делаем красиво */
input[type="date"] {
    position: relative;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    color: transparent;
    background: none;
    opacity: 1;
    cursor: pointer;
    position: absolute;
    right: 15px;
    width: 20px;
    height: 20px;
}

/* Добавляем кастомную иконку календаря (опционально) */
input[type="date"]::after {
    content: '📅';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #002B5C;
    pointer-events: none;
}

/* Для textarea — разрешить растягивание по вертикали */
textarea {
    min-height: 100px;
    resize: vertical;
}





/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #002B5C;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    color: #ffffff;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #FFD700;
    cursor: pointer;
}

.close-modal:hover {
    color: #ffffff;
}

#editFormContainer label {
    display: block;
    margin: 15px 0 5px;
    color: #FFD700;
    font-weight: 600;
}

#editFormContainer input,
#editFormContainer select,
#editFormContainer textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.95);
    border: 2px solid #002B5C;
    border-radius: 10px;
    color: #001F3F;
}

#editFormContainer button {
    background: #FFD700;
    color: #001F3F;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
}





.event-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ЗЕЛЁНАЯ кнопка редактирования */
.edit-btn {
    background: #28a745; /* Зелёный */
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.edit-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* КРАСНАЯ кнопка удаления */
.delete-event-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.delete-event-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
   ГЛАВНАЯ СТРАНИЦА (ВХОД + НОВОСТИ) — index.php
   ═══════════════════════════════════════════════════════════════ */

body.landing-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Верхняя полоса с брендом */
.landing-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px clamp(20px, 5vw, 60px) 0;
}
.landing-topbar img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #FFD700;
    object-fit: cover;
}
.landing-topbar .brand-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #fff;
}
.landing-topbar .brand-sub {
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, .65);
    font-weight: 700;
}

/* Основная раскладка: новости + вход */
.landing-main {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(20px, 5vw, 60px) 60px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* ── Новости на главной ── */
.news-col {
    flex: 1 1 480px;
    min-width: 0;
}
.news-col .section-eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, .65);
    font-weight: 700;
    margin-bottom: 8px;
}
.news-col h2 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 22px;
    color: #fff;
    text-align: left;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.news-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .2s;
    text-decoration: none;
    color: inherit;
}
.news-card:hover {
    border-color: rgba(255, 215, 0, .3);
    background: rgba(255, 215, 0, .05);
    transform: translateY(-3px);
}
.news-card .news-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, #0a1f4a, #051535);
}
.news-card .news-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.news-card .news-date {
    font-size: 11px;
    color: rgba(255, 215, 0, .6);
    font-weight: 700;
    letter-spacing: .05em;
}
.news-card .news-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
}
.news-card .news-excerpt {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-empty {
    background: rgba(255, 255, 255, .03);
    border: 1px dashed rgba(255, 255, 255, .15);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    color: rgba(255, 255, 255, .35);
    font-size: 14px;
}
.news-empty .emoji {
    font-size: 34px;
    display: block;
    margin-bottom: 10px;
    opacity: .5;
}

/* ── Карточка входа ── */
.login-col {
    flex: 0 1 400px;
    width: 100%;
}
.login-card {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 215, 0, .18);
    border-radius: 22px;
    padding: 36px 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.login-card .login-eyebrow {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, .65);
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}
.login-card h1 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 6px;
    text-align: center;
    color: #fff;
}

/* Вкладки выбора роли */
.role-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 5px;
}
.role-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 9px 4px;
    border-radius: 9px;
    cursor: pointer;
    transition: all .2s;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
    user-select: none;
}
.role-tab .role-icon {
    font-size: 17px;
    line-height: 1;
}
.role-tab:hover {
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .7);
}
.role-tab.active {
    background: linear-gradient(135deg, #FFD700, #FF8F00);
    color: #001F3F;
    box-shadow: 0 4px 14px rgba(255, 215, 0, .3);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.login-form button {
    margin-top: 6px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFD700, #FF8F00);
    color: #001F3F;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, .35);
}

.login-error {
    background: rgba(239, 83, 80, .12);
    border: 1px solid rgba(239, 83, 80, .35);
    color: #EF9A9A;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
}

.landing-footer {
    text-align: center;
    padding: 18px;
    font-size: 11px;
    color: rgba(255, 255, 255, .25);
}

@media (max-width: 860px) {
    .landing-main {
        flex-direction: column-reverse;
        padding-top: 20px;
    }
    .login-col {
        flex: 1 1 auto;
        max-width: 420px;
        margin: 0 auto;
    }
}


/* ═══════════════════════════════════════════════════════════════
   ОБЩИЕ КОМПОНЕНТЫ АДМИН-ПАНЕЛИ
   (списки судей / инспекторов / новостей, формы редактирования)
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
}

.pw {
    color: #fff;
}

/* Шапка страницы-списка */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}
.page-title .eyebrow {
    font-size: 10px;
    letter-spacing: .2em;
    color: rgba(255, 215, 0, .6);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.page-title h1 {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
    text-align: left;
}

/* Кнопка "Добавить" */
.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 11px;
    background: linear-gradient(135deg, #FFD700, #FF8F00);
    color: #001F3F;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: all .2s;
}
.add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, .3);
}

/* Поиск в списках */
.search-wrap {
    position: relative;
    margin-bottom: 22px;
}
.search-wrap input {
    width: 100%;
    padding: 13px 18px 13px 46px;
    background: rgba(255, 255, 255, .04) !important;
    border: 1.5px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #fff !important;
    font-family: 'Noto Sans', inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
}
.search-wrap input:focus {
    border-color: rgba(255, 215, 0, .5);
}
.search-wrap input::placeholder {
    color: rgba(255, 255, 255, .3);
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, .3);
    pointer-events: none;
}
.search-count {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    font-weight: 600;
}

/* Грид карточек (судьи / инспекторы / новости) */
.ref-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Карточка судьи / инспектора */
.ref-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    overflow: hidden;
    transition: all .2s;
    display: flex;
    flex-direction: column;
}
.ref-card:hover {
    border-color: rgba(255, 215, 0, .3);
    background: rgba(255, 215, 0, .04);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.ref-card-photo {
    position: relative;
    background: linear-gradient(135deg, #0a1f4a, #051535);
    padding: 20px 20px 0;
    display: flex;
    justify-content: center;
}
.ref-card-photo img {
    width: 90px;
    height: 110px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, .2);
    display: block;
}
.ref-card-photo .no-photo {
    width: 90px;
    height: 110px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a3a6b, #0d2244);
    border: 2px solid rgba(255, 215, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: rgba(255, 215, 0, .4);
}
.ref-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 215, 0, .15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, .25);
    text-transform: uppercase;
}
.ref-card-body {
    padding: 14px 16px;
    flex: 1;
}
.ref-card-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.ref-card-info {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ref-card-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ref-card-info span.mail-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ref-card-actions {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.ref-card-actions form {
    flex: 1;
    margin: 0;
}
.ref-card-actions button {
    width: 100%;
    padding: 10px 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ref-card-actions button:hover {
    background: rgba(255, 255, 255, .06);
}
.ref-card-actions form:not(:last-child) button {
    border-right: 1px solid rgba(255, 255, 255, .06);
}
.ref-card-actions img {
    width: 22px;
    height: 22px;
    opacity: .7;
    filter: brightness(0) invert(1);
}
.ref-card-actions button:hover img {
    opacity: 1;
}
.ref-card-actions .del-btn img {
    filter: none;
    opacity: .7;
}
.ref-card-actions .del-btn:hover {
    background: rgba(239, 83, 80, .1);
}

/* Заглушка "ничего не найдено" в списках */
.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, .3);
    font-size: 15px;
    display: none;
}
.no-results-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: .3;
}

/* Поля формы редактирования/добавления — оформление берётся из
   общих правил input[type="text"]/select/textarea выше в этом файле */
.field-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, .65);
    margin-bottom: 5px;
}
.field-input, .field-select, .field-textarea {
    width: 100%;
    display: block;
}

/* Карточка новости в панели управления новостями */
.news-admin-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    overflow: hidden;
    transition: all .2s;
    display: flex;
    flex-direction: column;
}
.news-admin-card:hover {
    border-color: rgba(255, 215, 0, .3);
    background: rgba(255, 215, 0, .04);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.news-admin-photo {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, #0a1f4a, #051535);
}
.news-admin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-admin-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 215, 0, .15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, .25);
    text-transform: uppercase;
}
.news-admin-body {
    padding: 14px 16px;
    flex: 1;
}
.news-admin-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.news-admin-info {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.news-admin-excerpt {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-admin-actions {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.news-admin-actions form {
    flex: 1;
    margin: 0;
}
.news-admin-actions button {
    width: 100%;
    padding: 10px 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    font-weight: 700;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.news-admin-actions button:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}
.news-admin-actions form:not(:last-child) button {
    border-right: 1px solid rgba(255, 255, 255, .06);
}
.news-admin-actions .del-btn:hover {
    background: rgba(239, 83, 80, .1);
    color: #EF9A9A;
}