* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Шапка */
.main-header {
    background-color: #002d62;
    color: #fff;
    padding: 15px 0;
    border-bottom: 3px solid #c5a059;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emblem-placeholder {
    font-size: 32px;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 50%;
}

.logo-block h1 {
    font-size: 20px;
}

.logo-block p {
    font-size: 12px;
    color: #bdc3c7;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    font-size: 14px;
    color: #c5a059;
    font-weight: bold;
}

/* Баннер */
.hero-section {
    background: linear-gradient(rgba(0, 45, 98, 0.85), rgba(0, 45, 98, 0.85)), url('https://unsplash.com') center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ecf0f1;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Кнопки */
.btn-primary, .btn-secondary, .btn-outline, .btn-danger {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary { background-color: #c5a059; color: #002d62; }
.btn-primary:hover { background-color: #b38f4b; }
.btn-secondary { background-color: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background-color: rgba(255,255,255,0.3); }
.btn-outline { background-color: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background-color: #fff; color: #002d62; }
.btn-danger { background-color: #e74c3c; color: white; }

/* Кабинет / Таблица */
.cabinet-section {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.appeals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.appeals-table th, .appeals-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.appeals-table th { background-color: #f8f9fa; color: #002d62; }

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center; align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 6px;
    width: 90%; max-width: 450px;
    position: relative;
    border-top: 4px solid #002d62;
}

.close-modal { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #aaa; }
.close-modal:hover { color: #000; }

.tab-header { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #ddd; }
.tab-btn { padding: 10px; border: none; background: none; cursor: pointer; font-weight: bold; color: #7f8c8d; }
.tab-btn.active { color: #002d62; border-bottom: 2px solid #002d62; }

.law-form { display: flex; flex-direction: column; gap: 10px; }
.law-form input, .law-form textarea { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

.status-msg { margin-top: 15px; font-size: 13px; font-weight: bold; text-align: center; }

.main-footer { background-color: #1a252f; color: #95a5a6; padding: 15px 0; text-align: center; font-size: 12px; margin-top: auto; }
