/* ========== ОСНОВА ========== */
body {
    background-color: #0A1C3A;   /* тёмно-синий фон */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #e0e0e0;              /* светлый текст по умолчанию */
}

.navbar {
    background-color: #0A1C3A;
}
.navbar .navbar-brand,
.navbar .nav-link {
    color: #ffffff;
}
.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
    color: #f8f9fa;
}

main {
    color: #e0e0e0;
}

.bg-dark {
    background-color: #0A1C3A !important;
    color: #fff;
}

.btn-primary {
    background-color: #0A1C3A;
    border: 0;
    border-radius: 0;
    font-weight: bold;
    font-size: 15px;
    padding: 10px 20px;
    color: #fff;
}
.btn-secondary {
    background-color: #F5A623;
    border: 0;
    border-radius: 0;
    font-weight: bold;
    font-size: 15px;
    padding: 10px 20px;
    color: #fff;
}
.btn-primary:hover {
    background-color: #061225;
}
.btn-secondary:hover {
    background-color: #e59400;
}

h1, h2, h3 {
    color: #ffffff;
}
h1 {
    font-size: 32px;
    text-align: center;
    margin: 20px 0;
}
h2 {
    font-size: 28px;
    text-align: center;
    margin: 18px 0;
}
h3 {
    font-size: 24px;
}

.bt {
    display: flex;
    justify-content: center;
    padding: 15px;
}

.container img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* ========== ФУТЕР ========== */
.logofooter {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
}
.logoft {
    max-height: 50px;
    margin: 0 !important;
}
.logofooter svg {
    max-height: 50px;
    max-width: 100px;
    fill: white;
}
.gamcare svg {
    max-width: 50px;
}
.legal-plus svg {
    max-width: 50px;
}
@media (max-width: 500px) {
    .dmca, .gamcare, .legal-plus {
        display: none;
    }
    .logofooter {
        justify-content: center;
    }
}
footer .text-center {
    color: #fff;
}

/* ========== ТАБЛИЦЫ ========== */
/* Адаптивность: горизонтальный скролл на мобильных */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    border: 1px solid #dddddd;
    background: #1c2f4a;  /* тёмный фон таблиц */
    color: #e0e0e0;
}
th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}
th {
    font-weight: bold;
    background: #233a56;
    color: #ffffff;
}
caption {
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    color: #ffffff;
}

/* Горизонтальная прокрутка для узких экранов */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* ========== FAQ ========== */
.faq-section {
    margin: 40px 0;
    padding: 30px 0;
}
.faq-title {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #1c2f4a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.faq-question {
    background: #0A1C3A;
    color: #fff;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}
.faq-question:hover {
    background: #061225;
}
.faq-question span:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    flex: 1;
    padding-right: 20px;
}
.faq-icon {
    font-size: 24px;
    font-weight: bold;
    color: #F5A623;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
    color: #252a2d;   /* тёмный текст на светлом фоне ответа */
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-answer div {
    padding: 20px;
}
.faq-answer p {
    margin: 0;
    color: #252a2d;
    line-height: 1.6;
    font-size: 16px;
}
@media (max-width: 768px) {
    .faq-section {
        margin: 30px 0;
        padding: 20px 0;
    }
    .faq-title {
        font-size: 28px;
    }
    .faq-question {
        padding: 15px;
    }
    .faq-question span:first-child {
        font-size: 16px;
    }
    .faq-icon {
        font-size: 20px;
    }
    .faq-answer div {
        padding: 15px;
    }
}

/* ========== НАВИГАЦИЯ (кнопки в меню) ========== */
.navbar .navbar-nav {
    gap: 10px;
}
.navbar .nav-link.nav-btn {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F5A623, #FFD700);
    border: 1px solid rgba(245,166,35,.5);
    box-shadow: 0 10px 24px rgba(245,166,35,.25);
    transition: transform .15s ease, box-shadow .15s ease;
}
.navbar .nav-link.nav-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 34px rgba(245,166,35,.4);
}
.navbar .nav-link.nav-btn.active {
    background: linear-gradient(135deg, #e59400, #FFD700);
    border-color: rgba(245,166,35,.7);
}
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        gap: 8px;
        padding-top: 10px;
    }
    .navbar .nav-link.nav-btn {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }
}

/* ========== ИЗОБРАЖЕНИЯ И КНОПКИ ========== */
.img-box {
    max-width: 760px;
    margin: 18px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
}
.img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}
.btn-center {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}
.btn-register {
    display: inline-block;
    min-width: 160px;
    height: 44px;
    line-height: 44px;
    padding: 0 28px;
    background: #F5A623;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .6px;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(245,166,35,0.28);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-register:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(245,166,35,0.4);
}
.btn-register:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(245,166,35,0.24);
}

/* ========== БЛОКИ КОНТЕНТА ========== */
.block {
    padding: 22px;
    margin: 18px 0;
    background: #1c2f4a;    /* тёмный блок, гармонирует с фоном */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    color: #e0e0e0;
}

/* ========== TOC (содержание) ========== */
.toc-top {
    text-align: center;      /* кнопка «Structure» по центру */
    margin-bottom: 10px;
}
.toc-toggle {
    background: #F5A623;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
}
.toc {
    background: #1c2f4a;
    border-radius: 8px;
    padding: 15px;
    margin: 0 auto 20px auto;   /* центрируем сам блок */
    display: table;             /* чтобы ширина была по содержимому + auto margin */
    text-align: left;
    color: #e0e0e0;
}
.toc.is-collapsed {
    display: none;
}
.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc li {
    margin: 5px 0;
}
.toc a {
    color: #F5A623;
    text-decoration: none;
}
.toc a:hover {
    text-decoration: underline;
}

.toc-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    background: #F5A623;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}
.toc-back-top.is-visible {
    opacity: 1;
}