/* Jetton Casino - Сине-голубой тёмный дизайн */

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основная цветовая палитра */
    --primary-dark: #0a0e1a;
    --secondary-dark: #1a2332;
    --accent-blue: #1e3a8a;
    --accent-cyan: #0891b2;
    --accent-light-blue: #3b82f6;
    --accent-teal: #14b8a6;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #0891b2 50%, #14b8a6 100%);
    --gradient-secondary: linear-gradient(45deg, #0a0e1a 0%, #1a2332 100%);
    --gradient-accent: linear-gradient(90deg, #3b82f6 0%, #14b8a6 100%);
    
    /* Текст */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-accent: #60a5fa;
    
    /* Границы и тени */
    --border-color: #334155;
    --shadow-primary: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-secondary: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* Размеры */
    --header-height: 80px;
    --footer-height: 200px;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Базовые стили */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Контейнер */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Хэдер */
.header {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: var(--shadow-primary);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-light-blue);
    transform: scale(1.05);
}

.logo img {
    width: 100px;
    height: 50px;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-light-blue);
    background: rgba(59, 130, 246, 0.2);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Основной контент */
.main-content {
    flex: 1;
    margin-top: var(--header-height);
    padding: 40px 0;
}

/* Секции */
section {
    margin-bottom: 40px;
    padding: 20px 0;
}

section:first-child {
    padding-top: 0;
}

/* Заголовки */
h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-light-blue);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Параграфы */
p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Ссылки */
a {
    color: var(--accent-light-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--accent-light-blue);
    outline-offset: 2px;
}

/* Списки */
ul, ol {
    margin: 20px 0;
    padding-left: 30px;
}

li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 1.125rem;
}

li strong {
    color: var(--accent-light-blue);
    font-weight: 600;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 35, 50, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-secondary);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
}

td {
    color: var(--text-secondary);
    font-size: 1rem;
}

tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Определения */
dl {
    margin: 30px 0;
}

dt {
    color: var(--accent-light-blue);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

dd {
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Баннеры */
.banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 40px 0;
    box-shadow: var(--shadow-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.banner:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.banner-container {
    text-align: center;
    margin: 40px 0;
}

/* Футер */
.footer {
    background: var(--gradient-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    text-align: center;
}

.footer-section-title {
    color: var(--accent-light-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        width: 100px;
        height: 50px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    section {
        margin-bottom: 40px;
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 12px 8px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p, li, dd {
        font-size: 1rem;
    }
    
    .banner {
        margin: 20px 0;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light-blue);
}

/* Выделение текста */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
    box-shadow: var(--shadow-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Плашка с бонусом */
.bonus-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--gradient-primary);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid var(--accent-teal);
    border-radius: 12px 12px 0 0;
    max-width: 600px;
    width: 90%;
}

.bonus-banner.visible {
    transform: translateX(-50%) translateY(0);
}

.bonus-text {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    margin-right: 15px;
    line-height: 1.3;
}

.bonus-button {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.bonus-button:hover {
    background: var(--accent-light-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .bonus-banner {
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 10px 15px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .bonus-banner.visible {
        transform: translateY(0);
    }
    
    .bonus-text {
        font-size: 13px;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .bonus-button {
        padding: 6px 12px;
        font-size: 12px;
        width: 100%;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .bonus-banner {
        padding: 8px 12px;
    }
    
    .bonus-text {
        font-size: 12px;
    }
    
    .bonus-button {
        padding: 5px 10px;
        font-size: 11px;
        max-width: 100px;
    }
}
