/* ============================================
   TOP CASINO RATING — PREMIUM CASINO STYLE v3
   Dark theme | Red accents (#ef4444) | Fast & readable
   Крупные карточки | Оптимизированная скорость
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #e5e5e5;
    background: #121212;
    margin: 0;
    padding: 0;
}

/* ---------- TYPOGRAPHY ---------- */
h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    margin: 30px 0 20px;
    text-align: center;
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    margin: 40px 0 20px;
    position: relative;
    display: inline-block;
    color: #ef4444;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ef4444;
    border-radius: 3px;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 12px;
    color: #ef4444;
}

p {
    color: #b0b0b0;
    margin-bottom: 16px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ef4444;
    transition: color 0.2s;
}

a:hover {
    color: #f97316;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ---------- HEADER ---------- */
header {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo-main {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-sub {
    font-size: 9px;
    letter-spacing: 2px;
    color: #ef4444;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 8px 18px;
    color: #ccc;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 8px;
    color: #ccc;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-trigger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-arrow {
    font-size: 10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
}

.burger span {
    width: 100%;
    height: 2px;
    background: #ef4444;
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .burger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background: #1a1a1a;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transition: right 0.3s;
        padding: 20px;
        border-left: 1px solid rgba(239, 68, 68, 0.3);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        padding: 12px 16px;
        text-align: center;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-trigger {
        justify-content: center;
        padding: 12px 16px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 5px;
        border: none;
        background: #252525;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        text-align: center;
    }
}

/* ---------- BUTTONS ---------- */
.btn-bonus, .casino-card__btn {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #121212;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-bonus:hover, .casino-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ---------- CASINO CARDS - КРУПНЫЕ ЛОГО ---------- */
.casino-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 30px 0;
}

.casino-card {
    display: flex;
    flex-wrap: wrap;
    background: #1e1e1e;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.2s;
    position: relative;
}

.casino-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-3px);
}

.casino-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #121212;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    z-index: 1;
}

/* LEFT SECTION - КРУПНОЕ ЛОГО */
.casino-card__left {
    flex: 0 0 240px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #252525;
    gap: 16px;
}

.casino-card__logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    display: block;
}

.casino-card__btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
}

/* CENTER SECTION - ИНФО */
.casino-card__center {
    flex: 1;
    padding: 24px;
}

.casino-card__name {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}

.casino-card__license {
    font-size: 11px;
    color: #ef4444;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.8;
}

.casino-card__rating {
    margin: 8px 0;
}

.star {
    color: #ef4444;
    font-size: 16px;
    margin-right: 2px;
}

.casino-card__cashback {
    font-size: 13px;
    color: #ef4444;
    font-weight: 700;
    margin: 8px 0;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 20px;
}

.casino-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin-top: 12px;
}

.casino-card__features li {
    font-size: 13px;
    color: #c0c0c0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.casino-card__features li::before {
    content: '✓';
    color: #ef4444;
    font-weight: 700;
}

/* RIGHT SECTION - БОНУС */
.casino-card__right {
    flex: 0 0 280px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 1px solid rgba(239, 68, 68, 0.2);
    gap: 16px;
    background: #252525;
}

.bonus-title {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.bonus-value {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1.3;
}

.btn-bonus {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ADAPTIVE - КРУПНЫЕ ЛОГО НА МОБИЛКЕ */
@media (max-width: 1000px) {
    .casino-card__left {
        flex: 0 0 200px;
        padding: 20px;
    }
    .casino-card__right {
        flex: 0 0 240px;
    }
    .casino-card__logo {
        max-width: 160px;
    }
}

@media (max-width: 850px) {
    .casino-card {
        flex-direction: column;
    }
    
    .casino-card__left {
        flex: none;
        flex-direction: row;
        justify-content: space-between;
        padding: 20px;
    }
    
    .casino-card__logo {
        max-width: 120px;
    }
    
    .casino-card__btn {
        width: auto;
        padding: 8px 24px;
    }
    
    .casino-card__center {
        padding: 0 20px 16px;
    }
    
    .casino-card__right {
        flex: none;
        border-left: none;
        border-top: 1px solid rgba(239, 68, 68, 0.2);
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 20px;
    }
    
    .btn-bonus {
        width: auto;
        padding: 10px 24px;
    }
}

@media (max-width: 550px) {
    .casino-card__left {
        flex-direction: column;
        gap: 12px;
    }
    
    .casino-card__logo {
        max-width: 140px;
    }
    
    .casino-card__btn {
        width: 100%;
    }
    
    .casino-card__right {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-bonus {
        width: 100%;
    }
    
    .casino-card__features {
        flex-direction: column;
        gap: 8px;
    }
    
    .casino-card__name {
        font-size: 20px;
    }
    
    .bonus-value {
        font-size: 16px;
    }
}

/* ---------- REVIEWS ---------- */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.review-card {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    border-left: 4px solid #ef4444;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #121212;
}

.review-name {
    font-weight: 700;
    font-size: 16px;
    color: #e5e5e5;
}

.review-date {
    font-size: 11px;
    color: #888;
}

.review-stars {
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #b0b0b0;
    margin: 0;
}

/* ---------- FAQ ---------- */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.faq-item {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #e5e5e5;
}

.faq-icon {
    font-size: 22px;
    color: #ef4444;
    font-weight: 300;
    transition: transform 0.2s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 20px 20px;
    border-top-color: rgba(239, 68, 68, 0.2);
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
    color: #b0b0b0;
}

/* ---------- TABLE ---------- */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 16px;
    background: #1e1e1e;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 550px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.comparison-table th {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(239, 68, 68, 0.05);
}

/* ---------- ANIMATION FOR CARDS ---------- */
.item__table {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item__table:nth-child(1) { animation-delay: 0.02s; }
.item__table:nth-child(2) { animation-delay: 0.04s; }
.item__table:nth-child(3) { animation-delay: 0.06s; }
.item__table:nth-child(4) { animation-delay: 0.08s; }
.item__table:nth-child(5) { animation-delay: 0.1s; }
.item__table:nth-child(6) { animation-delay: 0.12s; }
.item__table:nth-child(7) { animation-delay: 0.14s; }
.item__table:nth-child(8) { animation-delay: 0.16s; }
.item__table:nth-child(9) { animation-delay: 0.18s; }
.item__table:nth-child(10) { animation-delay: 0.2s; }
.item__table:nth-child(11) { animation-delay: 0.22s; }
.item__table:nth-child(12) { animation-delay: 0.24s; }
.item__table:nth-child(13) { animation-delay: 0.26s; }
.item__table:nth-child(14) { animation-delay: 0.28s; }
.item__table:nth-child(15) { animation-delay: 0.3s; }
.item__table:nth-child(16) { animation-delay: 0.32s; }
.item__table:nth-child(17) { animation-delay: 0.34s; }

/* ---------- INFO SECTION ---------- */
.info-section {
    margin: 30px 0;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #0a0a0a;
    margin-top: 50px;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(239, 68, 68, 0.3);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 160px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ef4444;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 35px;
    height: 2px;
    background: #ef4444;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #888;
    font-size: 13px;
}

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

.footer-description {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    font-size: 11px;
    color: #666;
}

/* ---------- SCROLL TOP ---------- */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 18px;
    height: 18px;
    fill: #121212;
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.text-red { color: #ef4444; }
