/* 
 * Olymp Casino - Основные стили
 * Официальный сайт 2026
 */

/* ===== CSS Variables ===== */
:root {
    /* Основные цвета */
    --color-background-page-lvl-1: rgb(3, 5, 51);
    --color-background-page-lvl-2: rgb(18, 31, 97);
    --color-background-page-lvl-3: rgb(36, 46, 107);
    --color-background-button-primary-default: rgb(245, 168, 18);
    --color-background-button-primary-hover: rgb(247, 181, 54);
    --color-background-button-accent-primary-default: rgb(33, 150, 84);
    --color-text-primary: rgba(255, 255, 255, 0.9);
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.47);
    
    /* Дополнительные переменные */
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent: #f5a812;
    --accent-light: #f7b636;
    --gold: #ffd700;
    --card-bg: rgba(18, 31, 97, 0.85);
    --card-border: rgba(245, 168, 18, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #030533 0%, #121f61 50%, #242a6b 100%);
    --gradient-secondary: linear-gradient(135deg, #121f61 0%, #1e2a7b 100%);
    --gradient-accent: linear-gradient(45deg, #f5a812, #ffd700);
    
    /* Радиусы */
    --radius-1: 5px;
    --radius-2: 10px;
    --radius-3: 15px;
    --radius-4: 24px;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color .3s ease-in-out, color .3s ease-in-out;
}

body {
    font-family: 'Roboto', 'Inter', -apple-system, Helvetica Neue, Helvetica, Arial, sans-serif;
    background: var(--gradient-primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Header & Navigation ===== */
header {
    background: rgba(3, 5, 51, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--accent);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
}

nav {
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 0.5px solid var(--accent);
    color: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--accent);
    color: var(--color-background-page-lvl-1);
}

/* ===== Hero Section ===== */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(3, 5, 51, 0.9), rgba(18, 31, 97, 0.85));
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: #030533;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(245, 168, 18, 0.4);
}

h1 {
    font-size: 42px;
    margin-bottom: 20px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ===== CTA Buttons ===== */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 35px;
    border-radius: var(--radius-2);
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #030533;
    box-shadow: 0 8px 20px rgba(245, 168, 18, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 0.5px solid var(--accent);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(245, 168, 18, 0.4);
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 25px 15px;
    border-radius: var(--radius-3);
    text-align: center;
    border: 0.5px solid var(--card-border);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
    line-height: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: 600;
    line-height: 1.3;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Features Section ===== */
.features {
    padding: 80px 0;
    background: rgba(18, 31, 97, 0.3);
}

/* ===== Bonus Section ===== */
.bonus-section {
    padding: 80px 0;
    text-align: center;
    background: var(--gradient-secondary);
}

.section-title {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--accent);
    text-align: center;
}

.bonus-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 0.5px solid var(--accent);
    max-width: 700px;
    margin: 0 auto 50px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.bonus-amount {
    font-size: 70px;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 25px 0;
}

/* ===== Games Section ===== */
.games-section {
    padding: 80px 0;
    background: rgba(36, 46, 107, 0.2);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius-3);
    overflow: hidden;
    transition: var(--transition);
    border: 0.5px solid var(--card-border);
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.game-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: rgba(3, 5, 51, 0.3);
    padding: 10px;
}

.game-content {
    padding: 20px;
}

/* ===== Promo Blocks ===== */
.promo-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.promo-block-item {
    background: var(--card-bg);
    border-radius: var(--radius-3);
    overflow: hidden;
    border: 0.5px solid var(--card-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.promo-block-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.promo-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: rgba(3, 5, 51, 0.3);
}

.promo-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== Modal Window ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 5, 51, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--color-background-page-lvl-2);
    border-radius: var(--radius-3);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 0.5px solid var(--accent);
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent);
    color: var(--color-background-page-lvl-1);
}

.modal-image {
    width: 100%;
    max-width: 681px;
    height: auto;
    max-height: 486px;
    object-fit: contain;
    margin: 20px auto;
    display: block;
    border-radius: var(--radius-2);
    border: 0.5px solid var(--accent);
}

/* ===== Registration Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-3);
    position: relative;
    border: 0.5px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: #030533;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(245, 168, 18, 0.3);
}

/* ===== Footer ===== */
footer {
    background: #030533;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 0.5px solid var(--accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ===== Utility Classes ===== */
.content-block {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-3);
    margin: 30px 0;
    border: 0.5px solid var(--card-border);
}

.highlight {
    color: var(--accent);
    font-weight: bold;
}

.warning-note {
    background: rgba(245, 168, 18, 0.1);
    border-left: 0.5px solid var(--accent);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 var(--radius-2) var(--radius-2) 0;
}

/* ===== Scrollbar Styles ===== */
body:not(.touch)::-webkit-scrollbar,
body:not(.touch) *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background-clip: padding-box;
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 8px;
}

/* ===== Responsive Styles ===== */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .bonus-amount {
        font-size: 55px;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 12px;
        min-height: 160px;
    }
    
    .feature-icon {
        font-size: 36px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .feature-card h3 {
        font-size: 15px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(3, 5, 51, 0.98);
        padding: 20px;
        display: none;
        z-index: 999;
        box-shadow: var(--shadow);
        border-bottom: 0.5px solid var(--accent);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 0.5px solid rgba(245, 168, 18, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 14px 25px;
    }
    
    .bonus-card {
        padding: 25px 15px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 30px;
    }
    
    .feature-card {
        padding: 18px 10px;
        min-height: 140px;
        border-radius: var(--radius-2);
    }
    
    .feature-icon {
        font-size: 32px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .feature-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .feature-card p {
        font-size: 12px;
    }
    
    .feature-card:hover {
        transform: translateY(-4px);
    }
    
    .promo-img {
        max-height: 250px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .hero {
        padding: 130px 0 50px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .bonus-amount {
        font-size: 42px;
    }
    
    .feature-card, .game-card, .step {
        padding: 25px 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        gap: 10px;
    }
    
    .feature-card {
        padding: 15px;
        min-height: 130px;
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .feature-icon {
        font-size: 30px;
        height: 40px;
        margin-bottom: 0;
        width: 50px;
        flex-shrink: 0;
    }
    
    .feature-content {
        flex: 1;
    }
    
    .feature-card h3 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .feature-card p {
        font-size: 12px;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .promo-img {
        max-height: 200px;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    .feature-card {
        padding: 12px;
        min-height: 120px;
        gap: 12px;
    }
    
    .feature-icon {
        font-size: 28px;
        width: 45px;
    }
    
    .feature-card h3 {
        font-size: 14px;
    }
    
    .feature-card p {
        font-size: 11px;
    }
}

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}