/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #1a1a2e;
    line-height: 1.7;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    background-color: #1a1a2e;
    padding: 12px 0;
}

.navbar .navbar-brand img {
    max-height: 45px;
}

.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.nav-btn {
    background-color: #22c55e;
    color: #fff !important;
}

.navbar .nav-link.nav-btn:hover {
    background-color: #16a34a;
}

/* ========== КНОПКИ ========== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
    background-color: #1a1a2e;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2d2d4a;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #eab308;
    color: #1a1a2e;
}

.btn-secondary:hover {
    background-color: #ca8a04;
    transform: translateY(-1px);
}

/* CTA Кнопка под картинками */
.btn-cta {
    display: inline-block;
    background-color: #22c55e;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-cta:hover {
    background-color: #16a34a;
    color: #fff;
    transform: translateY(-2px);
}

.btn-center {
    text-align: center;
    margin: 20px 0;
}

/* ========== MAIN КОНТЕНТ ========== */
main {
    padding: 0;
}

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

/* ========== СЕКЦИИ ========== */
.block-section {
    width: 100%;
    padding: 40px 0;
}

.block-section:nth-child(odd) {
    background-color: #ffffff;
}

.block-section:nth-child(even) {
    background-color: #f1f5f9;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ЗАГОЛОВКИ ========== */
h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px 0;
    color: #1a1a2e;
    line-height: 1.3;
}

h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    color: #1a1a2e;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: #1a1a2e;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: #1a1a2e;
}

/* ========== ПАРАГРАФЫ И СПИСКИ ========== */
p {
    margin-bottom: 16px;
    color: #374151;
}

ul, ol {
    margin: 15px 0;
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
    color: #374151;
}

/* ========== КАРТИНКИ ========== */
.img-box {
    max-width: 800px;
    margin: 25px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.img-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== ТАБЛИЦЫ ========== */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #1a1a2e;
    color: #fff;
    font-weight: 600;
}

tr:hover {
    background-color: #f9fafb;
}

/* Таблица с свечением */
.table-glow {
    border: 2px solid #22c55e;
    animation: tableGlow 3s ease-in-out infinite;
}

@keyframes tableGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
    }
}

/* ========== КАРТОЧКИ КАЗИНО ========== */
.casino-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #22c55e;
}

.casino-card h3 {
    margin-top: 0;
    color: #1a1a2e;
}

.casino-card .checklist {
    background: #f0fdf4;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.casino-card .checklist p {
    margin: 8px 0;
}

/* ========== FAQ ========== */
.faq-section {
    margin: 40px 0;
}

.faq-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #1a1a2e;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #2d2d4a;
}

.faq-icon {
    font-size: 20px;
    color: #22c55e;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9fafb;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer div {
    padding: 20px;
}

.faq-answer p {
    margin: 0;
    color: #374151;
}

/* ========== TOC (Содержание) ========== */
.toc-toggle {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 15px;
}

.toc-toggle:hover {
    background: #16a34a;
}

.toc {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #bbf7d0;
}

.toc.is-collapsed {
    display: none;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    padding: 8px 0;
    border-bottom: 1px solid #d1fae5;
}

.toc li:last-child {
    border-bottom: none;
}

.toc a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.toc a:hover {
    color: #22c55e;
}

/* ========== BACK TO TOP ========== */
.toc-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.toc-back-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.toc-back-top:hover {
    background: #16a34a;
    transform: translateY(-3px);
}

/* ========== ОТЗЫВЫ ========== */
.review-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 12px 0;
    border-left: 3px solid #22c55e;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.review-item .review-date {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.review-item .review-text {
    color: #374151;
}

/* ========== HELP ТАБЛИЦА ========== */
.help-table {
    margin: 20px 0;
}

.help-table th {
    background: #dc2626;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo img {
    max-height: 45px;
}

.age-badge {
    background: #dc2626;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #22c55e;
}

.footer-warning {
    background: rgba(220, 38, 38, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-warning p {
    margin: 5px 0;
    color: #fca5a5;
    font-size: 14px;
}

.footer-copy p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* ========== ЧЕКЛИСТ БЛОК ========== */
.checklist-block {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.checklist-block p {
    margin: 8px 0;
}

/* ========== PROS/CONS ========== */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: 8px;
}

.pros {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pros h4 {
    color: #16a34a;
}

.cons h4 {
    color: #dc2626;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .block-section {
        padding: 25px 0;
    }

    .section-inner {
        padding: 0 15px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px 12px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .toc-back-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }

    .btn-cta {
        padding: 12px 24px;
        font-size: 14px;
    }

    .casino-card {
        padding: 18px;
    }
}
