* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2328;
}

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.login-box h1 {
    margin-top: 0;
    font-size: 22px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-box label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #444;
}

.login-box input {
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 15px;
}

.login-box button {
    margin-top: 6px;
    padding: 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.login-box button:hover {
    background: #1d4ed8;
}

.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.hint {
    margin-top: 16px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 14px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.content {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 24px 32px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* ==== Стили регламента (regulation.html), встраиваемого через include ==== */

.reg-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.reg-header {
    text-align: center;
    padding: 12px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.reg-header h1 {
    font-size: 26px;
    margin: 0 0 6px;
}

.reg-header .org {
    color: #667085;
    margin: 0;
}

.reg-toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 32px;
}

.reg-toc h2 {
    font-size: 16px;
    margin-top: 0;
}

.reg-toc ol.toc {
    padding-left: 20px;
    margin: 0;
}

.reg-toc ol.toc-sub {
    padding-left: 22px;
    margin: 4px 0;
}

.reg-toc a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.9;
}

.reg-toc a:hover {
    text-decoration: underline;
}

.reg-section {
    padding-top: 8px;
    margin-bottom: 28px;
    scroll-margin-top: 16px;
}

.reg-section h2 {
    font-size: 19px;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 6px;
    margin-top: 36px;
}

.reg-section h3 {
    font-size: 16px;
    color: #1e3a8a;
    margin-top: 26px;
}

.reg-section .anchor-link {
    font-size: 13px;
    color: #98a2b3;
    text-decoration: none;
    margin-left: 6px;
}

.reg-section .anchor-link:hover {
    color: #2563eb;
}

.reg-section p {
    line-height: 1.6;
    font-size: 14.5px;
}

.reg-section p.numbered {
    margin-bottom: 4px;
}

ul.reg-list {
    margin: 6px 0 14px;
    padding-left: 20px;
}

ul.reg-list li {
    line-height: 1.55;
    font-size: 14.5px;
    margin-bottom: 4px;
}

ul.reg-list li.lvl2 {
    margin-left: 22px;
    list-style-type: circle;
}

ul.reg-list li.lvl3 {
    margin-left: 44px;
    list-style-type: square;
}

.reg-section pre.code {
    background: #0f172a;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    overflow-x: auto;
    margin: 8px 0;
}

.back-to-top {
    text-align: center;
    margin-top: 24px;
}

.back-to-top a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}
