/* olimp5959.ru — самостоятельный стайлшит, спортивная гамма (тёмно-синий + красный акцент + белый) */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    color: #1e293b;
    line-height: 1.55;
    font-size: 16px;
    background: #f1f5f9;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; }
a { color: #1e40af; text-decoration: none; }
a:hover { text-decoration: underline; color: #dc2626; }

.page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Header */
.site-header {
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 28px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 3px 14px rgba(30,64,120,.15);
}

.site-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    text-decoration: none;
    flex-wrap: wrap;
}
.site-logo-brand {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}
.site-logo-tagline {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 400;
}

/* Nav */
.site-nav {
    background: rgba(0,0,0,.25);
    border-radius: 10px;
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.site-nav li {
    flex: 1 1 auto;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.15);
}
.site-nav li:last-child { border-right: none; }
.site-nav a {
    display: block;
    padding: 12px 16px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    transition: background .15s ease;
}
.site-nav a:hover, .site-nav .current a {
    background: #dc2626;
    text-decoration: none;
}

/* Main content */
.site-content {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(30,64,120,.06);
}

.page-title-block {
    padding: 20px 24px;
    margin: 0 0 30px;
    background: #fef2f2;
    border-left: 5px solid #dc2626;
    border-radius: 10px;
}
.page-title-block h1 {
    margin: 0 0 8px;
    color: #991b1b;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}
.page-title-block .lead {
    margin: 0;
    color: #475569;
    font-size: 16px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
}
.content-main, .content-side { min-width: 0; }

.content-main h2 {
    color: #1e40af;
    font-size: 24px;
    margin-top: 32px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e7ff;
}
.content-main h3 {
    color: #dc2626;
    font-size: 19px;
    margin-top: 22px;
}
.content-main p { margin: 14px 0; }
.content-main ul, .content-main ol { padding-left: 22px; margin: 12px 0; }
.content-main li { margin: 6px 0; }

/* Sidebar */
.side-box {
    background: #f8fafc;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.side-box h3 {
    margin-top: 0;
    color: #1e40af;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
}
.side-box ul { list-style: none; padding: 0; }

/* Content lists */
ul.content-list {
    list-style: none;
    padding: 0;
    margin: 14px 0;
}
ul.content-list li {
    padding: 8px 0 8px 22px;
    position: relative;
    border-bottom: 1px dashed #e5e7eb;
}
ul.content-list li:last-child { border-bottom: none; }
ul.content-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 700;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    border-radius: 12px;
    padding: 24px 28px;
    text-align: center;
    font-size: 14px;
}
.site-footer p { margin: 6px 0; }
.site-footer a { color: #93c5fd; }
.site-footer strong { color: #fff; }

/* Responsive */
@media (max-width: 820px) {
    .content-grid { grid-template-columns: 1fr; }
    .site-nav ul { flex-direction: column; }
    .site-nav li { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
    .site-nav li:last-child { border-bottom: none; }
    .site-nav a { white-space: normal; }
    .site-header, .site-content, .site-footer { padding: 20px; }
    .page-title-block h1 { font-size: 22px; }
    .content-main h2 { font-size: 20px; }
    .site-logo { flex-direction: column; align-items: flex-start; gap: 4px; }
    .site-logo-brand { font-size: 26px; }
}
