* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Шапка сайта */
header {
    background: linear-gradient(135deg, #1e5a8e 0%, #2a7ab5 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-text span {
    color: #f47920;
}

/* Навигация */
nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
}

nav a:hover {
    background: #f47920;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 121, 32, 0.3);
}

/* Основной контент */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    color: #1e5a8e;
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f47920;
    border-radius: 2px;
}

/* Карточки новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 90, 142, 0.2);
    border-color: #f47920;
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #f47920;
}

.news-content {
    padding: 25px;
}

.news-item h2 {
    color: #1e5a8e;
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-item time {
    color: #f47920;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item p {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Формы */
form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e5a8e;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form input[type="text"],
form input[type="password"],
form input[type="datetime-local"],
form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #f47920;
    box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.1);
}

form textarea {
    resize: vertical;
    min-height: 150px;
}

form button {
    background: linear-gradient(135deg, #f47920 0%, #ff9a44 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 121, 32, 0.4);
}

/* Кнопки действий */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #f47920 0%, #ff9a44 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 121, 32, 0.4);
}

/* Таблицы */
table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-collapse: collapse;
}

table th {
    background: linear-gradient(135deg, #1e5a8e 0%, #2a7ab5 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

table tr:hover {
    background: #f8f9fa;
}

/* Уведомления */
.flash {
    padding: 15px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    form {
        padding: 25px;
    }
    
    table {
        font-size: 14px;
    }
    
    table th, table td {
        padding: 10px 8px;
    }
}

/* Футер */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    margin-top: 60px;
    border-top: 2px solid #f47920;
}
