* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111111;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Верхнее меню */
.topbar {
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
    padding: 22px 0;
    border-bottom: 1px solid #eeeeee;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8b1e1b;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: #8b1e1b;
    color: white;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.logo strong {
    display: block;
    font-size: 27px;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo small {
    display: block;
    color: #8b1e1b;
    font-size: 15px;
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: bold;
}

.nav a {
    color: #111111;
}

.nav a:hover {
    color: #8b1e1b;
}

.logout-form {
    margin: 0;
}

.logout-form button {
    border: 1px solid #8b1e1b;
    background: #8b1e1b;
    color: white;
    border-radius: 30px;
    padding: 10px 22px;
    cursor: pointer;
    font-weight: bold;
}

/* Общая страница */
.page {
    padding-top: 42px;
    padding-bottom: 60px;
}

/* Главный блок */
.hero {
    min-height: 350px;
    background:
        linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.9)),
        radial-gradient(circle at 70% 20%, #f2f2f2, #ffffff 55%);
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    color: #111111;
    padding: 80px 40px;
    margin-bottom: 50px;
    display: block;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: 42px;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
}

.hero p {
    max-width: 900px;
    margin: 0 auto 34px;
    color: #111111;
    line-height: 1.8;
    font-size: 17px;
}

/* Заголовки */
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.page-title h1 {
    font-size: 38px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Кнопки */
.btn {
    display: inline-block;
    border: 2px solid #8b1e1b;
    background: #8b1e1b;
    color: white;
    border-radius: 28px;
    padding: 13px 34px;
    cursor: pointer;
    font-weight: bold;
    min-width: 160px;
    text-align: center;
}

.btn:hover {
    background: #6f1715;
    border-color: #6f1715;
}

.btn.light {
    background: white;
    color: #8b1e1b;
}

.btn.light:hover {
    background: #8b1e1b;
    color: white;
}

.btn.full {
    width: 100%;
}

/* Карточки */
.card {
    background: #ffffff;
    border-radius: 0;
    padding: 34px;
    box-shadow: none;
    border-top: 1px solid #e5e5e5;
    margin-bottom: 34px;
}

.card h2 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}

.card h2::after {
    content: "";
    display: block;
    width: 160px;
    height: 3px;
    background: #8b1e1b;
    margin-top: 18px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 42px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 30px;
    text-align: center;
}

.stat-card span {
    display: block;
    color: #555555;
    margin-bottom: 12px;
    font-weight: bold;
}

.stat-card strong {
    color: #8b1e1b;
    font-size: 38px;
}

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

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

.table th {
    color: #333333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table a {
    color: #8b1e1b;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 7px 14px;
    background: #f4e7e6;
    color: #8b1e1b;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
}

/* Формы */
.filters {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d3d3d3;
    border-radius: 0;
    padding: 14px 16px;
    font-size: 15px;
    margin: 8px 0 20px;
}

textarea {
    min-height: 160px;
}

.form-card {
    max-width: 780px;
}

/* Карточка заявки */
.grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 34px;
}

.description {
    line-height: 1.8;
    color: #333333;
}

.ticket-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.ticket-info div {
    background: #fafafa;
    padding: 16px;
    border-left: 4px solid #8b1e1b;
}

.ticket-info span {
    display: block;
    color: #777777;
    font-size: 13px;
    margin-bottom: 6px;
}

.inline-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.comment {
    background: #fafafa;
    padding: 16px;
    margin-bottom: 14px;
    border-left: 4px solid #8b1e1b;
}

.comment span {
    display: block;
    color: #777777;
    font-size: 13px;
    margin-top: 4px;
}

/* Страница входа */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(255,255,255,0.86), rgba(255,255,255,0.92)),
        radial-gradient(circle at 80% 20%, #eeeeee, #ffffff 55%);
}

.login-card {
    width: 440px;
    background: white;
    padding: 42px;
    border-top: 4px solid #8b1e1b;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.login-logo {
    font-size: 28px;
    font-weight: bold;
    color: #8b1e1b;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.login-card h1 {
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-card p {
    color: #555555;
    line-height: 1.6;
}

.demo-users {
    margin-top: 24px;
    background: #fafafa;
    padding: 16px;
    font-size: 14px;
    border-left: 4px solid #8b1e1b;
}

.demo-users span {
    display: block;
    margin-top: 7px;
}

/* Адаптив */
@media (max-width: 900px) {
    .topbar-inner,
    .page-title,
    .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .stats,
    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 30px;
    }
}
:root {
    --vshp-red: #8b1e1b;
    --vshp-red-dark: #6f1715;
    --vshp-bg: #ffffff;
    --vshp-text: #111111;
}

/* Цвет сайта как у ВШП */
.topbar {
    background: #ffffff !important;
    color: var(--vshp-text) !important;
    border-bottom: 1px solid #eeeeee !important;
}

.logo {
    color: var(--vshp-red) !important;
}

.logo-icon {
    background: var(--vshp-red) !important;
    color: #ffffff !important;
}

.logo strong,
.logo small {
    color: var(--vshp-red) !important;
}

.nav a {
    color: #111111 !important;
}

.nav a:hover {
    color: var(--vshp-red) !important;
}

.logout-form button {
    background: var(--vshp-red) !important;
    border-color: var(--vshp-red) !important;
    color: #ffffff !important;
}

body {
    background: #ffffff !important;
    color: var(--vshp-text) !important;
}

/* Кнопки */
.btn {
    background: var(--vshp-red) !important;
    border: 2px solid var(--vshp-red) !important;
    color: #ffffff !important;
    border-radius: 28px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.btn:hover {
    background: var(--vshp-red-dark) !important;
    border-color: var(--vshp-red-dark) !important;
}

/* Исправленная кнопка Сбросить */
.btn.light {
    background: #ffffff !important;
    color: var(--vshp-red) !important;
    border: 2px solid var(--vshp-red) !important;
}

.btn.light:hover {
    background: var(--vshp-red) !important;
    color: #ffffff !important;
}

/* Карточка списка заявок */
.card {
    background: #ffffff !important;
    border-radius: 0 !important;
    border-top: 1px solid #e5e5e5 !important;
    box-shadow: none !important;
}

.page-title h1 {
    color: #111111 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.table a {
    color: var(--vshp-red) !important;
    font-weight: 700;
}

.badge {
    background: #f4e7e6 !important;
    color: var(--vshp-red) !important;
}

/* Фильтры */
.filters select {
    border-radius: 0 !important;
    border: 1px solid #cccccc !important;
}

.filters .btn {
    min-width: 150px;
}
/* ===== Корректировка оформления под защиту ===== */

:root {
    --graphite: #111827;
    --graphite-light: #1f2937;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --light-bg: #f3f6fb;
}

/* Верхняя шапка сайта — графитовая */
.topbar {
    background: var(--graphite) !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

.logo {
    color: #ffffff !important;
}

.logo-icon {
    background: var(--blue) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
}

.logo strong,
.logo small {
    color: #ffffff !important;
}

.nav a {
    color: #ffffff !important;
}

.nav a:hover {
    color: #bfdbfe !important;
}

.logout-form button {
    background: transparent !important;
    border: 1px solid #475569 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
}

/* Общий фон страницы как в первом проекте */
body {
    background: var(--light-bg) !important;
}

/* Шапка страницы со списком заявок — голубая */
.page-title {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark)) !important;
    color: #ffffff !important;
    padding: 28px 34px !important;
    border-radius: 22px !important;
    margin-bottom: 26px !important;
}

.page-title h1 {
    color: #ffffff !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
}

/* Кнопка Новая заявка в голубой шапке */
.page-title .btn {
    background: #ffffff !important;
    color: var(--blue-dark) !important;
    border: 2px solid #ffffff !important;
    border-radius: 12px !important;
}

.page-title .btn:hover {
    background: #dbeafe !important;
    color: var(--blue-dark) !important;
}

/* Основные кнопки снова голубые */
.btn {
    background: var(--blue) !important;
    border: 2px solid var(--blue) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
}

.btn:hover {
    background: var(--blue-dark) !important;
    border-color: var(--blue-dark) !important;
}

/* Кнопка Сбросить */
.btn.light {
    background: #e5e7eb !important;
    color: #111827 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
}

.btn.light:hover {
    background: #d1d5db !important;
    color: #111827 !important;
}

/* Карточка списка заявок как в первом варианте */
.card {
    background: #ffffff !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    border-top: none !important;
}

/* Статусы голубые */
.badge {
    background: #dbeafe !important;
    color: var(--blue-dark) !important;
}

/* Ссылки в таблице */
.table a {
    color: var(--blue) !important;
    font-weight: 600 !important;
}

/* Фильтры */
.filters select {
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
}

.filters .btn {
    min-width: 150px;
}
/* Логотип ВШП вместо буквы V */
.logo-icon {
    display: none !important;
}

.logo-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg {
    width: 52px;
    height: 44px;
    display: block;
}

.logo-mark path {
    fill: #2563eb;
}

/* Текст рядом с логотипом */
.logo strong,
.logo small {
    color: #ffffff !important;
}
/* Исправление выравнивания текста в кнопке "Сбросить" */
.filters .btn,
.filters .btn.light {
    height: 76px !important;
    min-width: 150px !important;
    padding: 0 28px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Кнопка "Сбросить" */
.filters .btn.light {
    background: #e5e7eb !important;
    color: #111827 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.filters .btn.light:hover {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

