/* Casino Alev - Стильный дизайн в тематике казино */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

/* Хэдер */
.header {
    background: linear-gradient(90deg, #8B0000 0%, #DC143C 50%, #FF4500 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 120px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(5deg);
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.mobile-menu-toggle.active {
    transform: rotate(90deg);
    color: #FFD700;
}

/* Кнопки авторизации */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #8B0000, #DC143C);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.auth-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.auth-btn:hover {
    background: linear-gradient(45deg, #DC143C, #FF4500);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.auth-btn.login {
    background: linear-gradient(45deg, #4A6741, #6B8E23);
}

.auth-btn.login:hover {
    background: linear-gradient(45deg, #6B8E23, #9ACD32);
}

/* Скрытие мобильного меню на главной странице */
body.home-page .mobile-menu-toggle {
    display: none !important;
}

body.home-page .nav {
    display: none !important;
}

/* Основной контент */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-right: 320px;
}

/* Баннеры */
.banner {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.side-banner-container {
    position: relative;
    clear: both;
}

.side-banner {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 280px;
    max-width: 35vw;
    z-index: 10;
    margin: 0;
}

.side-banner a {
    display: block;
}

.side-banner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-banner img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 38px rgba(0,0,0,0.35);
}

@media (max-width: 992px) {
    .main-content {
        margin-right: 240px;
    }
    
    .side-banner {
        width: 220px;
        max-width: 40vw;
        top: 80px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-right: 0;
    }
    
    .side-banner {
        position: relative;
        float: none;
        margin: 20px auto;
        width: 100%;
        max-width: 520px;
        top: auto;
        right: auto;
    }
    
    .auth-buttons {
        gap: 10px;
    }
    
    .auth-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.banner:hover {
    transform: scale(1.02);
}

.banner-first {
    margin-top: 0;
}

/* Заголовки */
h1 {
    color: #8B0000;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #8B0000, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    color: #DC143C;
    font-size: 1.8em;
    margin: 30px 0 15px 0;
    border-left: 4px solid #FF4500;
    padding-left: 15px;
}

h3 {
    color: #8B0000;
    font-size: 1.4em;
    margin: 20px 0 10px 0;
}

/* Параграфы */
p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Списки */
ul {
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

/* Контейнер таблиц */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    position: relative;
}

/* Стилизация скроллбара для контейнера таблиц */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8B0000, #DC143C);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #DC143C, #FF4500);
}

/* Таблицы */
table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: linear-gradient(45deg, #8B0000, #DC143C);
    color: #fff;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

tr:hover {
    background: #e3f2fd;
    transition: background 0.3s ease;
}

/* Секции */
section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #FF4500;
}

/* Футер */
.footer {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 40px 0 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.footer-section h4 {
    color: #FF4500;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #FF4500;
    padding-bottom: 5px;
}

.footer-section p, .footer-section a {
    color: #ccc !important;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
    margin: 5px 0;
}

.footer-section a:hover {
    color: #FF4500 !important;
    text-decoration: none;
}

.footer-bottom {
    text-align: center !important;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    width: 100%;
    display: block;
    clear: both;
}

.footer-bottom p {
    text-align: center !important;
    margin: 0 auto;
    max-width: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #8B0000 0%, #DC143C 50%, #FF4500 100%);
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: center;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav a {
        display: block;
        padding: 12px;
        border-radius: 25px;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .nav a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }
    
    .nav a.active {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        font-weight: bold;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-toggle.active {
        transform: rotate(90deg);
    }
    
    .main-content {
        padding: 20px 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .scroll-to-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    .author-photo {
        width: 150px;
        height: 150px;
    }
    
    .table-container {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    table {
        min-width: 500px;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }
    
    .main-content {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .scroll-to-top {
        bottom: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    .author-photo {
        width: 120px;
        height: 120px;
    }
    
    .table-container {
        margin: 10px 0;
        border-radius: 6px;
    }
    
    table {
        min-width: 400px;
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 0.8em;
    }
}

@media (max-width: 320px) {
    .logo img {
        width: 100px;
        height: 50px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Специальные эффекты */
.highlight {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.glow {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #8B0000, #DC143C);
    color: #fff !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #fff !important;
}

/* FAQ стили */
.faq-item {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #FF4500;
}

/* Фото автора */
.author-photo-container {
    text-align: center;
    margin: 20px 0 30px 0;
}

.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FF4500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 69, 0, 0.3);
    border-color: #DC143C;
}

/* Кнопка "наверх" */
.scroll-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(45deg, #8B0000, #DC143C) !important;
    color: white !important;
    border: none !important;
    font-size: 20px !important;
    cursor: pointer !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-to-top:hover {
    transform: scale(1.1) !important;
    background: linear-gradient(45deg, #DC143C, #FF4500) !important;
}
