/* css/style.css - Минималистичный тёмно-синий стиль (финальный) */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    line-height: 1.4;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* Шапка с иконкой */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 16px 0;
}

.header-icon {
    width: 44px;
    height: 44px;
    background: #1e1e32;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header h1 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.header h1 span {
    color: #3b82f6;
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 22px;
    }
    .header-icon {
        width: 38px;
        height: 38px;
    }
}

/* Подзаголовок */
.subheader {
    text-align: center;
    margin-bottom: 30px;
}

.subheader h2 {
    font-size: 16px;
    font-weight: 400;
    color: #a0a0c0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .subheader h2 {
        font-size: 18px;
    }
}

/* Список казино */
.casino-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Карточка казино */
.casino-card {
    background: #12122a;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #2a2a40;
    transition: all 0.2s ease;
    position: relative;
}

.casino-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Номер рейтинга с белой обводкой */
.card-rank {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #1e1e32;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Иконка с полупрозрачной белой обводкой */
.card-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #1e1e32;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация */
.card-info {
    flex: 1;
}

.card-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.card-bonus {
    font-size: 18px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 6px;
}

.card-rating {
    font-size: 16px;
    color: #fbbf24;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* Кнопки */
.card-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.card-btn {
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 16px;
    transition: all 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.card-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.card-more-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.card-more-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Детали (выпадающий блок) */
.card-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.casino-card.expanded .card-details {
    display: block;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.details-table td {
    padding: 10px 0;
    font-size: 14px;
    vertical-align: top;
}

.details-label {
    font-weight: 500;
    color: #a0a0c0;
    width: 140px;
    padding-right: 12px;
}

.details-value {
    color: #ffffff;
}

.more-count {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
    margin-left: 6px;
}

/* Адаптация для мобилок — сохраняем горизонтальную компоновку */
@media (max-width: 550px) {
    .casino-card {
        padding: 14px;
        gap: 12px;
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    
    .card-rank {
        top: 8px;
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .card-name {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .card-bonus {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .card-rating {
        font-size: 12px;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }
    
    .card-buttons {
        gap: 8px;
    }
    
    .card-btn, .card-more-btn {
        font-size: 12px;
        padding: 6px 14px;
        border-radius: 12px;
    }
    
    .card-details {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .details-table td {
        display: table-cell;
        padding: 8px 0;
        font-size: 12px;
    }
    
    .details-label {
        width: 100px;
        padding-right: 10px;
    }
    
    .more-count {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Для очень маленьких экранов (до 400px) */
@media (max-width: 400px) {
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-name {
        font-size: 15px;
    }
    
    .card-bonus {
        font-size: 13px;
    }
    
    .details-label {
        width: 85px;
    }
}

@media (min-width: 768px) {
    .card-icon {
        width: 90px;
        height: 90px;
    }
    
    .card-name {
        font-size: 24px;
    }
    
    .card-bonus {
        font-size: 20px;
    }
    
    .card-btn, .card-more-btn {
        font-size: 15px;
        padding: 11px 28px;
    }
}

/* Текстовый блок */
.content-block {
    margin: 40px 0 30px;
    background: #12122a;
    border-radius: 24px;
    border: 1px solid #2a2a40;
    padding: 24px;
}

.content-section {
    margin-bottom: 20px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.content-section p {
    font-size: 15px;
    line-height: 1.5;
    color: #a0a0c0;
}

@media (min-width: 768px) {
    .content-section h2 {
        font-size: 22px;
    }
    .content-section p {
        font-size: 16px;
    }
}

/* FAQ */
.faq-block {
    margin: 30px 0 30px;
    background: #12122a;
    border-radius: 24px;
    border: 1px solid #2a2a40;
    padding: 24px;
}

.faq-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #1a1a32;
    border-radius: 16px;
    border: 1px solid #2a2a40;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.faq-question:hover {
    background: #1e1e36;
}

.faq-icon {
    font-size: 12px;
    color: #3b82f6;
    transition: transform 0.2s;
}

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

.faq-answer {
    display: none;
    padding: 18px 18px 18px 18px;
    color: #a0a0c0;
    font-size: 14px;
    line-height: 1.5;
    border-top: 1px solid #2a2a40;
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 20px;
    }
    .faq-question {
        padding: 14px;
        font-size: 15px;
    }
}

/* Футер */
.footer {
    margin-top: 20px;
}

.footer-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid #2a2a40;
}

.footer-copyright {
    color: #6b6b90;
    font-size: 13px;
}

/* Заголовки разделов в FAQ */
.faq-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #3b82f6;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a40;
}

.faq-section-title:first-of-type {
    margin-top: 0;
}

/* Отступы между разделами в FAQ */
.faq-block .faq-list {
    margin-bottom: 20px;
}

.faq-block .faq-list:last-of-type {
    margin-bottom: 0;
}


/* Сравнительные таблицы */
.comparison-tables {
    margin: 40px 0 30px;
}

.comparison-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.comparison-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #3b82f6;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a40;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #12122a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #2a2a40;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #1e1e36;
    font-size: 15px;
    vertical-align: top;
}

.comparison-table th {
    background: #1a1a32;
    color: #3b82f6;
    font-weight: 700;
    font-size: 16px;
}

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

.comparison-table td {
    color: #e0e0ff;
}

.comparison-table strong {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .comparison-title {
        font-size: 22px;
    }
    .comparison-subtitle {
        font-size: 18px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Блок автора */
.author-block {
    margin: 30px 0 20px;
}

.author-block .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.author-content {
    background: #1a1a32;
    border-radius: 24px;
    padding: 16px 20px;
    border: 1px solid #2a2a40;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.author-label {
    font-weight: 400;
    color: #a0a0c0;
    font-size: 15px;
}

.author-name {
    font-weight: 600;
    color: #3b82f6;
    font-size: 16px;
}

.author-description {
    font-weight: 400;
    color: #ffffff;
    font-size: 15px;
}

@media (min-width: 768px) {
    .author-block {
        margin: 40px 0 30px;
    }
    .author-content {
        padding: 20px 25px;
        gap: 8px;
    }
    .author-label {
        font-size: 16px;
    }
    .author-name {
        font-size: 18px;
    }
    .author-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .author-content {
        padding: 14px 16px;
        gap: 4px;
    }
    .author-label, .author-name, .author-description {
        font-size: 14px;
    }
}