/* Основные сбросы и переменные */
:root {
    --primary: #FF3366; /* Яркий розово-красный */
    --secondary: #3366FF; /* Яркий синий */
    --accent: #FFCC00; /* Золотой/желтый */
    --dark: #1A1A2E;
    --light: #F8F9FA;
    --success: #00CC88;
    --gray: #6C757D;
    --shadow: 0 10px 30px rgba(255, 51, 102, 0.15);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4ff 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ТИПОГРАФИЯ - ЖИРНЫЕ ЗАГОЛОВКИ */
h1, h2, h3, h4, .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900 !important; /* Максимальная жирность */
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; color: var(--primary); }
h2, .hero-title { font-size: 2.5rem; }
h3 { font-size: 2rem; color: var(--secondary); margin-top: 2.5rem; }
h4 { font-size: 1.6rem; color: var(--dark); margin-top: 2rem; }

.hero-title .highlight {
    color: var(--accent);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

p, li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

strong {
    color: var(--primary);
    font-weight: 700;
}

/* HEADER */
.main-header {
    background: linear-gradient(90deg, var(--dark) 0%, #2a2a4e 100%);
    padding: 1.2rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.star-logo {
    font-size: 3.2rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.7));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo h1 {
    margin-bottom: 0;
    font-size: 2.4rem;
    background: linear-gradient(to right, var(--accent), #FF9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-the {
    font-weight: 800;
    color: var(--light);
    -webkit-text-fill-color: var(--light);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
}

.main-nav a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* HERO */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(rgba(26,26,46,0.9), rgba(26,26,46,0.95)), url('https://images.unsplash.com/photo-1515408320194-59643816c5b2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    border-radius: var(--radius);
    margin: 2rem 0 3rem;
    color: white;
    box-shadow: var(--shadow);
}

.hero-title {
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #DDD;
    max-width: 800px;
    margin: 0 auto;
}

/* КОНТРОЛЫ СОРТИРОВКИ */
.sorting-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.sort-btn {
    padding: 14px 28px;
    border: 3px solid var(--secondary);
    background: white;
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover, .sort-btn.active {
    background: linear-gradient(90deg, var(--secondary), #6699FF);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(51, 102, 255, 0.4);
}

/* ТАБЛИЦА РЕЙТИНГА */
.casino-rating-section {
    margin-bottom: 4rem;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.rating-table thead {
    background: linear-gradient(90deg, var(--primary), #FF6699);
}

.rating-table th {
    color: white;
    padding: 22px 15px;
    text-align: left;
    font-weight: 900;
    font-size: 1.2rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.rating-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.rating-table tbody tr:hover {
    background-color: #f9f9ff;
    transform: scale(1.005);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.rating-table td {
    padding: 20px 15px;
    vertical-align: top;
}

.casino-number {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
}

.casino-name {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark);
}

.casino-bonus {
    background: linear-gradient(135deg, #fff9e6, #fff0b3);
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
}

.bonus-title {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.bonus-features {
    list-style: none;
}

.bonus-features li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.bonus-features li:before {
    content: '🎯';
    position: absolute;
    left: 0;
}

.play-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--success), #00E699);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 0 rgba(0,204,136,0.3);
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 15px rgba(0,204,136,0.4);
}

/* СЕКЦИИ */
.providers-section, .info-content, .comment-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.providers-section h3, .info-content h3, .comment-form h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.8rem;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.provider-logo {
    background: linear-gradient(135deg, #e6f0ff, #d1e0ff);
    border: 2px solid var(--secondary);
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 900;
    color: var(--secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.provider-logo:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-5px);
}

.info-content ul {
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.info-content li {
    margin-bottom: 0.8rem;
    padding-left: 10px;
}

/* ФОРМА */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,51,102,0.2);
}

.submit-btn {
    background: linear-gradient(90deg, var(--primary), #FF6699);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 0 rgba(255,51,102,0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 20px rgba(255,51,102,0.4);
}

/* FOOTER */
.main-footer {
    background: linear-gradient(90deg, var(--dark), #252547);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

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

.footer-nav a {
    color: #CCC;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .rating-table th, .rating-table td {
        padding: 15px 10px;
    }
    .casino-number { font-size: 1.5rem; }
    h1 { font-size: 2.4rem; }
    h2, .hero-title { font-size: 2.1rem; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    .main-nav ul.active { display: flex; }
    .sorting-controls { gap: 10px; }
    .sort-btn { padding: 12px 20px; font-size: 1rem; }
    .hero { padding: 3rem 1rem; }
    .providers-grid { grid-template-columns: repeat(2, 1fr); }
    .main-footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
    .container { padding: 0 15px; }
    h1 { font-size: 2rem; }
    h2, .hero-title { font-size: 1.8rem; }
    h3 { font-size: 1.6rem; }
    .rating-table thead { display: none; }
    .rating-table, .rating-table tbody, .rating-table tr, .rating-table td {
        display: block;
        width: 100%;
    }
    .rating-table tr {
        margin-bottom: 2rem;
        border: 2px solid #eee;
        border-radius: var(--radius);
        padding: 15px;
        background: white;
    }
    .rating-table td {
        padding: 12px 0;
        border-bottom: 1px dashed #eee;
    }
    .rating-table td:last-child { border-bottom: none; }
    .casino-number {
        text-align: left;
        font-size: 2rem;
        border-bottom: 2px solid var(--primary) !important;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
}