/* Базовые стили */
* {
    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-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 i {
    color: #f1c40f;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover, .nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1c40f;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Главный баннер */
.hero {
    background: linear-gradient(rgba(26, 42, 58, 0.9), rgba(26, 42, 58, 0.9)), 
                url('https://images.unsplash.com/photo-1533105079780-92b9be482077?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 40px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-warning {
    background-color: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin-top: 30px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(to right, #f1c40f, #f39c12);
    color: #1a2a3a;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
}

/* Секция рейтинга */
.rating-section {
    margin: 60px 0;
}

.rating-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Список казино */
.casino-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.casino-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.casino-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.casino-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.casino-rank {
    background-color: #f1c40f;
    color: #2c3e50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.casino-name {
    font-size: 1.4rem;
    font-weight: 600;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f1c40f;
}

.casino-body {
    padding: 20px;
}

.casino-info {
    margin-bottom: 15px;
}

.casino-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.casino-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.feature-tag {
    background-color: #e8f4fc;
    color: #2980b9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.casino-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-review {
    flex: 2;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-play {
    flex: 1;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-review:hover {
    background-color: #2980b9;
}

.btn-play:hover {
    background-color: #219653;
}

/* Особенности */
.features {
    margin: 80px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Подвал */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #f1c40f;
}

.age-warning {
    background-color: #e74c3c;
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

.footer-links h4, .footer-disclaimer h4 {
    margin-bottom: 20px;
    color: #f1c40f;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f1c40f;
}

.footer-disclaimer p {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Страницы "О нас" и "Правила" */
.page-header {
    text-align: center;
    margin: 40px 0 60px;
    padding: 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 10px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-content, .rules-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.about-section, .rules-section {
    margin-bottom: 50px;
}

.about-section h2, .rules-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.criteria-list, .rules-list, .disclaimer-list {
    margin-left: 20px;
    margin-top: 15px;
}

.criteria-list li, .rules-list li, .disclaimer-list li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.principle {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.warning-box {
    background-color: #fff8e1;
    border-left: 4px solid #f1c40f;
    padding: 25px;
    border-radius: 8px;
}

.responsible-gaming {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.tip {
    background-color: #e8f6f3;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tip:hover {
    transform: translateY(-5px);
}

.tip i {
    font-size: 2rem;
    color: #16a085;
    margin-bottom: 15px;
}

.help-contacts {
    background-color: #f2f4f4;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    text-align: center;
}

.contact-section {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 50px;
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

/* Адаптивность */
@media (max-width: 992px) {
    .casino-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .casino-list {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .features-grid, .principles, .responsible-gaming {
        grid-template-columns: 1fr;
    }
    
    .about-content, .rules-content {
        padding: 25px;
    }
}