/* Сброс и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка и навигация */
header {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 40px;
    margin-bottom: 30px;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0056b3;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #0056b3, #0066cc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #0056b3;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #4a5568;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
    font-size: 16px;
}

nav a:hover {
    background: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
}

nav a.active {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
}

/* Основной контент */
main {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

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

.card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #0056b3;
}

.card h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.card-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #0056b3, #0066cc);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
}

.card ul {
    padding-left: 20px;
    margin: 15px 0;
}

.card li {
    margin-bottom: 8px;
    color: #4a5568;
    line-height: 1.5;
}

.card p {
    color: #4a5568;
    line-height: 1.5;
}

.card ol {
    padding-left: 20px;
    margin: 15px 0;
    color: #4a5568;
}

/* Раскрывающиеся цитаты на второй странице */
details {
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

details summary {
    padding: 18px 25px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #2d3748;
    background: #edf2f7;
    transition: background 0.3s ease;
    position: relative;
    font-size: 18px;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary:after {
    content: '▶';
    position: absolute;
    right: 25px;
    transition: transform 0.3s ease;
    color: #0056b3;
}

details[open] summary:after {
    transform: rotate(90deg);
}

details summary:hover {
    background: #e2e8f0;
}

.details-content {
    padding: 25px;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
    line-height: 1.6;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

th {
    background: #0056b3;
    color: #ffffff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
}

tr:nth-child(even) td {
    background: #f8f9fa;
}

tr:hover td {
    background: #edf2f7;
}

tr:last-child td {
    border-bottom: none;
}

/* Секции на второй странице */
section {
    margin-bottom: 40px;
}

section h2 {
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 24px;
}

section h3 {
    color: #0056b3;
    margin: 20px 0 15px 0;
    font-weight: 600;
    font-size: 20px;
}

section p {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

section ul {
    padding-left: 20px;
    margin: 15px 0;
    color: #4a5568;
}

section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Футер */
footer {
    text-align: center;
    padding: 25px;
    color: #718096;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

footer p {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header, main {
        padding: 20px;
        border-radius: 10px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    th, td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    details summary {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .details-content {
        padding: 20px;
    }
    
    section h2 {
        font-size: 22px;
    }
    
    section h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    nav a {
        padding: 8px 15px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
}