/* ===== Базовые стили ===== */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #222;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    color: #1a3c78;
    margin-bottom: 0.5em;
    font-weight: 600;
}

a {
    color: #2ca8a8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Шапка ===== */
header {
    background: #1a3c78;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.4rem;
    margin: 0;
}

header nav a {
    color: white;
    margin-left: 1.5rem;
    font-weight: 500;
}

/* ===== Контент ===== */
main.container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===== Карточки ===== */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #1a3c78;
}

.card p {
    color: #555;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-primary {
    background: #1a3c78;
    color: white;
}

.btn-primary:hover {
    background: #2d529c;
}

.btn-secondary {
    background: #2ca8a8;
    color: white;
}

.btn-secondary:hover {
    background: #3fc1c1;
}

/* ===== Формы ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
select,
textarea {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2ca8a8;
    outline: none;
}

/* ===== Таблицы ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

th,
td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background: #f0f2f5;
    font-weight: 600;
    color: #1a3c78;
}

tr:hover {
    background: #f9fbfd;
}

/* ===== Уведомления ===== */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/* ===== Футер ===== */
footer {
    background: #1a3c78;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
    /* прижимает к низу */
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #123465;
    padding: 10px 20px;
}

header .logo img {
    height: 40px !important;
    width: auto !important;
    display: block;
}

header nav a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
}