/* Khelostar Theme: Dark Premium Casino Style */

/* Сброс шрифта на современный стек (Inter/Roboto/System) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif; /* Современный шрифт */
    background-color: #0f172a; /* Глубокий темный фон */
    color: #e2e8f0; /* Светло-серый текст для чтения */
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Темный с золотым акцентом */
header {
    background: #1e293b; /* Темно-синий/серый */
    padding: 1rem 2rem;
    border-bottom: 2px solid #fbbf24; /* Золотая линия */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); /* Глубокая тень */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 42px; /* Чуть крупнее */
    width: auto;
    display: block;
    /* Убрал тень, добавил легкое свечение для лого */
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.3)); 
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #cbd5e1; /* Светлый текст ссылок */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
    color: #fbbf24; /* Золото при наведении */
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    border-bottom-color: transparent; /* Убрал подчеркивание, оставил свечение */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px; /* Жирнее линии */
    background-color: #fbbf24; /* Золотые линии */
    border-radius: 3px; /* Закругленные края */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span { opacity: 0; }

.hamburger.active::before,
.hamburger.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fbbf24;
    border-radius: 3px;
}

.hamburger.active::before { transform: translateY(-50%) rotate(45deg); }
.hamburger.active::after { transform: translateY(-50%) rotate(-45deg); }

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1e293b; /* Темный фон меню */
    border-bottom: 2px solid #fbbf24;
    padding: 2rem;
    flex-direction: column;
    gap: 1.2rem;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav > a:not(.btn) {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    color: #f1f5f9;
    border-radius: 8px;
    border-bottom: none;
    font-weight: 600;
    background: rgba(255,255,255, 0.03);
}

.mobile-nav > a:not(.btn):hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.mobile-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
}

.mobile-buttons .btn {
    flex: 1;
    width: 50%;
    text-align: center;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Кнопки - Скругленные, Градиентные, Современные */
.btn {
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 50px; /* Полностью круглые (Pill shape) */
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-login {
    background-color: transparent;
    color: #fbbf24; /* Золотой текст */
    border: 2px solid #fbbf24;
}

.btn-login:hover {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.btn-register {
    /* Золото-оранжевый градиент */
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0f172a; /* Темный текст для контраста */
    border: 2px solid transparent;
}

.btn-register:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    transform: translateY(-2px); /* Вернул движение */
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5); /* Мягкое свечение */
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    padding: 3rem 0;
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
}

.main-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-section {
    background-color: #1e293b; /* Темная карточка */
    border-radius: 16px; /* Сильные скругления */
    padding: 3.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Едва заметная рамка */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* Объемная тень */
}

.content-section h1 {
    color: #f8fafc; /* Белый */
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    padding-left: 0;
    border-left: none; /* Убрал полосу слева */
    text-align: center; /* Центрируем заголовок */
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Добавил подчеркивание вместо боковой линии */
.content-section h1::after { 
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #fbbf24;
    margin: 1rem auto 0;
    border-radius: 2px;
}

.content-section h2 {
    color: #fbbf24; /* Золотой заголовок */
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-left: 0;
    border-left: none;
}

.content-section h3 {
    color: #e2e8f0;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.content-section h4 {
    color: #94a3b8;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1; /* Читаемый серый */
}

.content-section a:not(.btn) {
    color: #fbbf24;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    border-bottom: 1px dashed #fbbf24;
}

.content-section a:hover {
    color: #fcd34d;
    background-color: transparent;
    border-bottom-style: solid;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.content-section img {
    display: block;
    margin: 3rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* Скругление картинок */
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Тень для картинок */
}

/* Content Toggle Button */
.content-toggle-btn {
    display: block;
    margin: 2.5rem auto;
    padding: 1rem 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-toggle-btn:hover {
    color: #0f172a;
    border-color: #fbbf24;
    background-color: #fbbf24;
    transform: translateY(-2px);
}

.content-toggle-btn.active {
    color: #0f172a;
    background-color: #fbbf24;
    border-color: #fbbf24;
}

/* Table of Contents */
.table-of-contents {
    display: none;
    margin: 2rem 0;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.3); /* Тонкая золотая рамка */
}

.table-of-contents.active { display: block; }

.table-of-contents .toc-title {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.toc-list {
    display: grid;
    grid-template-columns: 1fr; /* Одна колонка для простоты */
    gap: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.toc-list li:hover {
    background: rgba(255, 255, 255, 0.07);
}

.toc-list li::before {
    content: counter(toc-counter);
    background: #fbbf24;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.8rem;
    margin-right: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toc-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    border-bottom: none;
}

.toc-list a:hover {
    color: #fbbf24;
    border-bottom: none;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #cbd5e1;
}

/* Reviews Container */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.review-card {
    background-color: #263345; /* Чуть светлее фона */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.review-card:hover {
    background-color: #2d3b52;
    border-color: #fbbf24; /* Золотая рамка при наведении */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author {
    color: #fbbf24;
    font-weight: 700;
    font-size: 1rem;
}

.review-date {
    color: #64748b;
    font-size: 0.8rem;
    font-style: normal;
}

.review-text {
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
}

/* FAQ Accordion */
.faq-container { margin: 3rem 0; }

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    background-color: #263345;
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: transparent;
    border: none;
    text-align: left;
    color: #f1f5f9;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.faq-question:hover { background-color: rgba(255, 255, 255, 0.03); }

.faq-question.active {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 100%);
    color: #fbbf24;
    border-left: 4px solid #fbbf24; /* Акцент слева только когда активен */
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: inherit;
}

.faq-icon {
    font-size: 1.2rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
    color: #fbbf24;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    background-color: rgba(0, 0, 0, 0.2); /* Темнее внутри ответа */
}

.faq-answer.active {
    max-height: 1000px;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-answer p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.content-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-direction: row;
}

.content-buttons .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem; /* Еще крупнее кнопки призыва к действию */
}

/* Table Styles - Dark Mode */
.table-wrapper {
    overflow-x: auto;
    margin: 2.5rem 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #263345;
    min-width: 600px;
}

table tr:first-child {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    color: #fbbf24;
    font-weight: bold;
}

table tr:not(:first-child) { background-color: transparent; }

table tr:not(:first-child):nth-child(even) { background-color: rgba(0, 0, 0, 0.15); }

table tr:hover:not(:first-child) { background-color: rgba(251, 191, 36, 0.05); }

table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

table tr:first-child td {
    padding: 1.2rem;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #020617; /* Черный */
    padding: 4rem 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

footer p {
    color: #475569;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1055px) {
    header { padding: 1rem; }

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .logo-img { height: 36px; }

    .hamburger { display: flex; }

    .desktop-nav, .desktop-buttons { display: none; }
    .mobile-nav { display: flex; }

    main { padding: 1.5rem 0; }
    
    .content-section { 
        padding: 2rem 1.5rem; 
        border-radius: 0; 
        background: transparent; 
        box-shadow: none; 
        border: none;
    }
    
    .content-section h1 { font-size: 2rem; }
    
    .toc-list { grid-template-columns: 1fr; }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .content-section { padding: 0; }
    
    .mobile-buttons { gap: 0.8rem; }
    .mobile-buttons .btn { padding: 0.8rem; font-size: 0.85rem; }

    .footer-links { flex-direction: column; gap: 1rem; }
    
    .content-section h1 { font-size: 1.8rem; }
    .content-section h2 { font-size: 1.5rem; }

    .content-buttons { flex-direction: column; width: 100%; gap: 1rem; }
    .content-buttons .btn { width: 100%; border-radius: 12px; } /* Чуть меньше скругление на мобильных для кнопок в ряд */
}

 /* =========================================
     4. 3D RIBBONS (Ленточки)
     Эффект бумаги с тенью
     ========================================= */
  ol.ribbon-list {
    list-style: none;
    padding: 0;
    counter-reset: ribbon;
  }

  ol.ribbon-list li {
    position: relative;
    background: #2c3e50;
    color: #ecf0f1;
    margin-bottom: 15px;
    padding: 15px 15px 15px 60px; /* Место слева для ленты */
    border-radius: 4px;
    transition: transform 0.2s;
  }

  ol.ribbon-list li:hover {
    transform: translateX(5px);
    background: #34495e;
  }

  /* Сама ленточка */
  ol.ribbon-list li::before {
    counter-increment: ribbon;
    content: counter(ribbon);
    
    position: absolute;
    left: -10px; /* Выходит за границы блока */
    top: 10px;
    
    width: 40px;
    height: 30px;
    background: #e74c3c; /* Красный цвет ленты */
    color: white;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    
    /* Тень ленточки */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  }

  /* Треугольник "заворота" ленты (создает 3D эффект) */
  ol.ribbon-list li::after {
    content: "";
    position: absolute;
    top: 40px; /* Сразу под лентой */
    left: -10px;
    
    /* Рисуем треугольник через границы */
    width: 0;
    height: 0;
    border-top: 10px solid #c0392b; /* Темнее основного цвета */
    border-left: 10px solid transparent; 
  }

  /* =========================================
     ВАРИАНТ 1: "Neon Numbers" (Неоновые цифры)
     По мотивам первого скриншота
     ========================================= */
  
  ol.neon-steps {
    list-style: none;
    padding: 0;
    counter-reset: neon-counter;
  }

  ol.neon-steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    transition: 0.3s;
    cursor: default;
  }

  /* Круг с цифрой */
  ol.neon-steps li::before {
    counter-increment: neon-counter;
    content: counter(neon-counter);
    
    position: absolute;
    left: 0;
    top: -2px;
    
    width: 32px;
    height: 32px;
    border: 2px solid #f1c40f; /* Желтая обводка */
    border-radius: 50%;
    
    color: #f1c40f;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    font-family: monospace;
    transition: 0.3s;
    
    /* Легкое свечение */
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.2); 
  }

  /* Эффект при наведении: заливка желтым */
  ol.neon-steps li:hover::before {
    background: #f1c40f;
    color: #000; /* Текст становится черным для контраста */
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.6); /* Свечение усиливается */
  }

  ol.neon-steps li:hover {
    color: rgb(242, 255, 0);
    transform: translateX(5px); /* Сдвиг вправо */
  }


