* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0c1c2c;
    color: #e6f1ff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя информационная полоска */
.top-info-bar {
    background: linear-gradient(90deg, #0c1c2c, #1a2d4a);
    padding: 15px 0;
    border-bottom: 2px solid #ffd166;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo-image {
    height: 50px;
    width: auto;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.bonus-button-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.btn-bonus {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
    text-decoration: none;
    font-style: italic;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
}

.btn-bonus:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 136, 229, 0.4);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.btn-login, .btn-register {
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background-color: #1e88e5;
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
}

.btn-register {
    background-color: #ff9800;
    color: #0c1c2c;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.btn-login:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 136, 229, 0.4);
}

.btn-register:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.4);
}

.main-caption {
    text-align: center;
    font-size: 2.2rem;
    color: #ffd166;
    margin: 40px 0 20px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0 20px;
}

.central-image-container {
    text-align: center;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 900px;
}

.central-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid #ff6b6b;
}

.button-section {
    text-align: center;
    margin: 0 auto 50px;
    width: 100%;
    max-width: 900px;
}

.main-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b, #ffd166);
    color: #0c1c2c;
    text-decoration: none;
    padding: 25px 20px;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    min-height: 80px;
}

.main-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #ffd166, #ff6b6b);
}

.main-button i {
    margin-right: 15px;
    font-size: 2rem;
}

/* Текстовый блок */
.text-section {
    background-color: #112240;
    padding: 50px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-section h2 {
    color: #ffd166;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}

.text-section h3 {
    color: #64ffda;
    font-size: 1.5rem;
    margin: 25px 0 15px;
}

.text-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #ccd6f6;
}

.highlight {
    color: #ffd166;
    font-weight: 600;
}

.age-warning {
    background-color: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    color: #ffd166;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.feature {
    background-color: #1a2d4a;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 2.5rem;
    color: #ffd166;
    margin-bottom: 15px;
}

.feature h4 {
    color: #64ffda;
    margin-bottom: 10px;
}

.info, .warning {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

.info {
    background-color: rgba(100, 255, 218, 0.1);
    border-left: 4px solid #64ffda;
}

.warning {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
}

/* ГАЛЕРЕЯ */
.gallery-section {
    margin: 60px 0 60px;
    width: 100%;
}

.gallery-title {
    text-align: center;
    font-size: 2.2rem;
    color: #ffd166;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 1px;
}

.full-width-gallery {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 0 10px;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    flex: 0 0 calc(20% - 16px);
    background: #1a2d4a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 209, 102, 0.25);
}

.gallery-item a {
    display: block;
    text-decoration: none;
}

.gallery-image {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    padding: 15px;
}

.slot-info {
    padding: 15px 10px;
    background: #112240;
}

.slot-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd166;
    margin-bottom: 5px;
}

.slot-provider {
    font-size: 0.9rem;
    color: #64ffda;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .gallery-item { flex: 0 0 calc(25% - 15px); }
    .btn-bonus { 
        padding: 10px 15px; 
        font-size: 0.95rem; 
    }
}

@media (max-width: 992px) {
    .gallery-item { flex: 0 0 calc(33.333% - 14px); }
    .top-bar-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    .logo-container, .bonus-button-container, .auth-buttons {
        flex: 0 0 100%;
        justify-content: center;
    }
    .main-button { padding: 20px 15px; font-size: 1.5rem; }
    
    .btn-bonus { 
        padding: 12px 18px; 
        font-size: 0.9rem; 
        white-space: normal; /* Разрешаем перенос текста */
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
    }
    .gallery-item { flex: 0 0 calc(50% - 10px); }
    .text-section { padding: 30px; }
    
    .btn-bonus { 
        padding: 10px 15px; 
        font-size: 0.85rem; 
        line-height: 1.2;
        max-width: 90%; /* Ограничиваем ширину */
        margin: 0 auto; /* Центрируем */
        display: block; /* Блочный элемент для центрирования */
    }
}

@media (max-width: 576px) {
    .auth-buttons {
        flex-direction: row;
        width: 100%;
        gap: 8px;
        justify-content: center;
    }
    .btn-login, .btn-register {
        width: 45%;
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    .gallery-item { flex: 0 0 100%; }
    .main-button { 
        font-size: 1.2rem; 
        min-height: 55px;
        padding: 15px 10px;
    }
    .logo-text { font-size: 1.3rem; }
    
    /* Адаптация для кнопки бонуса на очень маленьких экранах */
    .btn-bonus { 
        padding: 8px 10px; 
        font-size: 0.75rem; 
        font-weight: 500;
        line-height: 1.1;
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word; /* Разрешаем перенос длинных слов */
        overflow-wrap: break-word;
        hyphens: auto; /* Автоматические переносы (поддерживается не везде) */
    }
    
    /* Уменьшаем шапку */
    .top-info-bar {
        padding: 8px 0;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Дополнительная адаптация для экстремально маленьких устройств */
@media (max-width: 375px) {
    .btn-bonus { 
        font-size: 0.7rem; 
        padding: 7px 8px;
        line-height: 1;
    }
    
    .main-button {
        font-size: 1rem;
        padding: 12px 8px;
        min-height: 50px;
    }
    
    .main-button i {
        font-size: 1.5rem;
        margin-right: 10px;
    }
}

.footer-nav {
    background-color: #112240;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 2px solid #233554;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-link {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #ffd166;
    background-color: rgba(255, 209, 102, 0.1);
}

.footer-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ffd166;
    left: 50%;
    bottom: 0;
    transition: all 0.3s ease;
}

.footer-link:hover:after {
    width: 100%;
    left: 0;
}

.age-warning-footer {
    text-align: center;
    margin-top: 20px;
    color: #8892b0;
    font-size: 0.9rem;
}

/* Уменьшение шапки на мобильных */
@media (max-width: 576px) {
    .top-info-bar {
        padding: 8px 0;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .btn-login, .btn-register {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Специальные стили для очень длинного текста в кнопке */
@media (max-width: 420px) {
    .btn-bonus {
        font-size: 0.68rem;
        padding: 6px 8px;
    }
    
    .bonus-button-container {
        padding: 0 5px; /* Добавляем небольшие отступы по бокам */
    }
}