/* Обнуляющий стиль */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* CSS-переменные */
:root {
    --color-bg: #030b26;
    --color-bg-elevated: #071238;
    --color-bg-card: #0a1a3d;
    --color-accent: #ffb600;
    --color-accent-2: #28c76f;
    --color-accent-purple: #8b5cf6;
    --color-accent-blue: #3b82f6;
    --color-accent-pink: #ec4899;
    --color-text: #ffffff;
    --color-text-muted: #a1a8c3;
    --color-border: rgba(255, 255, 255, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 182, 0, 0.3);
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .container {
        padding: 0 32px;
    }
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent-2), #20b85a);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-blue));
    color: var(--color-text);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
}

.btn--outline:hover {
    border-color: var(--color-accent);
    background: rgba(255, 182, 0, 0.1);
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Заголовки секций */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .section-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .section-title {
        font-size: 30px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .section-title {
        font-size: 42px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* Шапка */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.header__logo {
    display: flex;
    align-items: center;
    color: var(--color-text);
}

.header__logo-img {
    width: 120px;
    height: 60px;
    object-fit: contain;
}

.header__nav {
    display: none;
    gap: 24px;
}

.header__nav-link {
    font-size: 16px;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--color-text);
}

.header__nav-link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
}

.header__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.header__login-btn {
    display: none;
    font-size: 14px;
    padding: 10px 20px;
}

.header__register-btn {
    font-size: 14px;
    padding: 10px 20px;
}

.header__burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header__burger-line {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
    border-radius: 2px;
    position: absolute;
}

.header__burger-line:nth-child(1) {
    top: 6px;
}

.header__burger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header__burger-line:nth-child(3) {
    bottom: 6px;
}

.header--menu-open .header__burger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header--menu-open .header__burger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scale(0);
}

.header--menu-open .header__burger-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

@media (min-width: 769px) {
    .header__nav {
        display: flex;
    }
    
    .header__login-btn {
        display: inline-flex;
    }
    
    .header__burger {
        display: none;
    }
    
    .header__register-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* Мобильное меню */
@media (max-width: 768px) {
    .header--menu-open .header__nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-elevated);
        padding: 24px;
        border-top: 1px solid var(--color-border);
        gap: 16px;
    }
    
    .header--menu-open .header__actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .header--menu-open .header__login-btn {
        display: inline-flex;
        width: 100%;
    }
    
    .header--menu-open .header__register-btn {
        width: 100%;
        margin-left: 0;
    }
    
    .header__actions {
        justify-content: flex-end;
    }
}

/* Hero секция */
.hero {
    position: relative;
    padding: 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-bg-elevated), var(--color-bg));
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.hero__slide--active {
    opacity: 1;
    z-index: 1;
}

/* Фоны устанавливаются через JavaScript на основе data-атрибутов */

.hero__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 11, 38, 0.85), rgba(7, 18, 56, 0.75));
    z-index: 0;
}

.hero__slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.2), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
}

.hero__slider {
    position: relative;
    width: 100%;
    min-height: 50vh;
    overflow: hidden;
}

/* Устанавливаем начальный фон для первого слайда через CSS */
.hero__slide:first-child {
    background-image: url('img/olymp-casino-banner.webp');
}

.hero__slide:nth-child(2) {
    background-image: url('img/olymp-banner2.webp');
}

@media (max-width: 768px) {
    .hero__slide:first-child {
        background-image: url('img/Olymp_Casino_homepage_mobile.webp');
    }
    
    .hero__slide:nth-child(2) {
        background-image: url('img/Olymp_Casino_homepage_mobile.webp');
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    padding: 40px 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero__text {
    text-align: center;
    max-width: 600px;
}

.hero__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}


.hero__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: auto;
    padding: 20px 16px;
    position: relative;
    z-index: 3;
}

/* Мобильная версия - главный баннер */
@media (max-width: 768px) {
    .hero {
        min-height: 45vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero__slide {
        min-height: 45vh;
        background-position: center center;
        background-size: cover;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero .container {
        min-height: 45vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero__slider {
        min-height: 45vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero__content {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .hero__text {
        text-align: center;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero__title {
        font-size: 32px;
        text-align: center;
        margin-bottom: 14px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.6);
        -webkit-text-fill-color: #ffffff;
        background: none;
        color: #ffffff;
    }
    
    .hero__subtitle {
        font-size: 17px;
        text-align: center;
        margin-bottom: 20px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
    }
    
    .hero__cta {
        align-self: center;
        width: auto;
        min-width: 180px;
        padding: 14px 24px;
        font-size: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    
    .hero__controls {
        margin-top: 16px;
        padding: 16px;
    }
    
    /* Усиленное затемнение для лучшей читаемости в мобильной версии */
    .hero__slide::before {
        background: linear-gradient(
            to bottom,
            rgba(3, 11, 38, 0.85) 0%,
            rgba(3, 11, 38, 0.75) 30%,
            rgba(3, 11, 38, 0.7) 50%,
            rgba(3, 11, 38, 0.8) 70%,
            rgba(3, 11, 38, 0.9) 100%
        );
    }
    
    /* Дополнительный затемняющий слой для мобильной версии */
    .hero__slide::after {
        background: radial-gradient(
            circle at center,
            rgba(3, 11, 38, 0.3) 0%,
            rgba(3, 11, 38, 0.5) 50%,
            rgba(3, 11, 38, 0.7) 100%
        );
    }
}

.hero__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-card);
    color: var(--color-text);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}

.hero__arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.hero__dots {
    display: flex;
    gap: 8px;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    transition: all var(--transition-fast);
}

.hero__dot--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.hero__sidebar {
    display: none;
    position: relative;
    z-index: 3;
}

@media (min-width: 769px) {
    .hero {
        min-height: 55vh;
    }
    
    .hero__slide {
        min-height: 55vh;
    }
    
    .hero .container {
        min-height: 55vh;
    }
    
    .hero__slider {
        min-height: 55vh;
    }
    
    .hero__content {
        flex-direction: row;
        align-items: center;
        gap: 48px;
        padding: 40px 32px;
        max-width: 1200px;
    }
    
    .hero__text {
        text-align: left;
        flex: 1;
        max-width: 600px;
    }
    
    .hero__title {
        font-size: 48px;
    }
    
    .hero__sidebar {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 32px;
        padding: 0 32px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        z-index: 2;
    }
    
    .hero__card {
        background: var(--color-bg-card);
        padding: 24px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border);
        transition: all var(--transition-normal);
    }
    
    .hero__card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--color-accent-purple);
    }
    
    .hero__card-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 8px;
    }
    
    .hero__card-text {
        color: var(--color-text-muted);
        margin-bottom: 16px;
        font-size: 14px;
    }
    
    .hero__card-btn {
        width: 100%;
    }
}

@media (min-width: 1201px) {
    .hero__sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Быстрые категории */
.quick-categories {
    padding: 40px 0;
    background: var(--color-bg);
}

.quick-categories__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quick-categories__item {
    background: var(--color-bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
    cursor: pointer;
    min-height: 70px;
}

.quick-categories__item:nth-child(1) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
}

.quick-categories__item:nth-child(2) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(236, 72, 153, 0.2));
}

.quick-categories__item:nth-child(3) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
}

.quick-categories__item:nth-child(4) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

.quick-categories__item:nth-child(5) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
}

.quick-categories__item:nth-child(6) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

.quick-categories__item:nth-child(7) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(59, 130, 246, 0.2));
}

.quick-categories__item:nth-child(8) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
}

.quick-categories__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.quick-categories__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.quick-categories__icon svg {
    width: 100%;
    height: 100%;
}

.quick-categories__content {
    flex: 1;
    min-width: 0;
}

.quick-categories__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
}

.quick-categories__subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
    word-wrap: break-word;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .quick-categories {
        padding: 30px 0;
    }
    
    .quick-categories__item {
        padding: 12px;
        gap: 10px;
        min-height: 60px;
    }
    
    .quick-categories__icon {
        width: 24px;
        height: 24px;
    }
    
    .quick-categories__title {
        font-size: 14px;
    }
    
    .quick-categories__subtitle {
        font-size: 11px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .quick-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .quick-categories__item {
        padding: 14px;
        gap: 12px;
    }
    
    .quick-categories__icon {
        width: 28px;
        height: 28px;
    }
    
    .quick-categories__title {
        font-size: 15px;
    }
    
    .quick-categories__subtitle {
        font-size: 12px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .quick-categories {
        padding: 50px 0;
    }
    
    .quick-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .quick-categories__item {
        padding: 18px;
        gap: 14px;
    }
    
    .quick-categories__icon {
        width: 30px;
        height: 30px;
    }
    
    .quick-categories__title {
        font-size: 17px;
    }
    
    .quick-categories__subtitle {
        font-size: 13px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .quick-categories {
        padding: 60px 0;
    }
    
    .quick-categories__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .quick-categories__item {
        padding: 20px;
        gap: 16px;
        min-height: auto;
    }
    
    .quick-categories__icon {
        width: 32px;
        height: 32px;
    }
    
    .quick-categories__title {
        font-size: 18px;
    }
    
    .quick-categories__subtitle {
        font-size: 14px;
    }
}

/* Популярные слоты */
.slots {
    padding: 60px 0;
    background: var(--color-bg-elevated);
}

.slots__header {
    margin-bottom: 40px;
}

.slots__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.slots__item {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
}

.slots__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.slots__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.slots__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.slots__item:hover .slots__image {
    transform: scale(1.05);
}

.slots__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.slots__badge--hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--color-text);
}

.slots__badge--new {
    background: linear-gradient(135deg, var(--color-accent-2), #20b85a);
    color: var(--color-text);
}

.slots__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.slots__item:hover .slots__overlay {
    opacity: 1;
}

.slots__play-btn {
    width: 100%;
}

.slots__title {
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    margin: 0;
}

.slots__provider {
    font-size: 12px;
    color: var(--color-text-muted);
    padding: 0 16px 16px;
}

.slots__footer {
    text-align: center;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .slots {
        padding: 30px 0;
    }
    
    .slots__header {
        margin-bottom: 24px;
    }
    
    .slots__grid {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .slots__title {
        font-size: 14px;
        padding: 12px;
    }
    
    .slots__provider {
        font-size: 11px;
        padding: 0 12px 12px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .slots {
        padding: 40px 0;
    }
    
    .slots__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .slots {
        padding: 50px 0;
    }
    
    .slots__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .slots__header {
        margin-bottom: 35px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .slots {
        padding: 60px 0;
    }
    
    .slots__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .slots__header {
        margin-bottom: 40px;
    }
}

/* Live казино и краш-игры */
.live-crash {
    padding: 60px 0;
    background: var(--color-bg);
}

.live-crash__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.live-crash__card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.live-crash__card--live {
    background-image: url('img/bg1.webp');
}

.live-crash__card--crash {
    background-image: url('img/Aviatrix Aviatrix.webp');
}

/* Затемняющий слой слева направо */
.live-crash__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(3, 11, 38, 0.9) 0%,
        rgba(3, 11, 38, 0.75) 40%,
        rgba(3, 11, 38, 0.5) 70%,
        rgba(3, 11, 38, 0.2) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.live-crash__content {
    position: relative;
    z-index: 2;
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.live-crash__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.live-crash__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.4);
}

.live-crash__games {
    margin-bottom: 24px;
    list-style: none;
}

.live-crash__game {
    font-size: 14px;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.live-crash__game::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--color-accent-2);
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(40, 199, 111, 0.5);
}

.live-crash__btn {
    margin-top: auto;
    align-self: flex-start;
    min-width: 180px;
    width: auto;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .live-crash {
        padding: 40px 0;
    }
    
    .live-crash__card {
        min-height: 300px;
    }
    
    .live-crash__content {
        padding: 20px 16px;
    }
    
    .live-crash__title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .live-crash__text {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .live-crash__game {
        font-size: 13px;
        padding: 6px 0;
        padding-left: 20px;
    }
    
    .live-crash__game::before {
        font-size: 16px;
        top: 6px;
    }
    
    .live-crash__btn {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .live-crash__card {
        min-height: 320px;
    }
    
    .live-crash__content {
        padding: 24px 20px;
    }
    
    .live-crash__title {
        font-size: 22px;
    }
    
    .live-crash__text {
        font-size: 14px;
    }
    
    .live-crash__game {
        font-size: 14px;
    }
    
    .live-crash__btn {
        width: 100%;
        min-width: auto;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .live-crash__card {
        min-height: 350px;
    }
    
    .live-crash__content {
        padding: 32px 24px;
        max-width: 70%;
    }
    
    .live-crash__title {
        font-size: 28px;
    }
    
    .live-crash__text {
        font-size: 16px;
    }
    
    .live-crash__game {
        font-size: 15px;
    }
    
    .live-crash__btn {
        width: auto;
        min-width: 200px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .live-crash__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .live-crash__card {
        min-height: 450px;
    }
    
    .live-crash__content {
        padding: 40px;
        max-width: 60%;
    }
    
    .live-crash__title {
        font-size: 36px;
    }
    
    .live-crash__text {
        font-size: 18px;
    }
    
    .live-crash__game {
        font-size: 17px;
        padding: 10px 0;
        padding-left: 28px;
    }
    
    .live-crash__game::before {
        font-size: 20px;
        top: 10px;
    }
    
    .live-crash__btn {
        min-width: 200px;
    }
}

/* Преимущества */
.benefits {
    padding: 40px 0;
    background: var(--color-bg-elevated);
}

.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.benefits__item {
    background: var(--color-bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all var(--transition-normal);
}

.benefits__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-purple);
}

.benefits__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-left: auto;
    margin-right: auto;
}

.benefits__icon svg {
    width: 100%;
    height: 100%;
}

.benefits__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefits__text {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 14px;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .benefits {
        padding: 30px 0;
    }
    
    .benefits__item {
        padding: 20px;
    }
    
    .benefits__icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }
    
    .benefits__title {
        font-size: 16px;
    }
    
    .benefits__text {
        font-size: 13px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .benefits__item {
        padding: 20px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .benefits {
        padding: 50px 0;
    }
    
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .benefits__item {
        padding: 28px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .benefits {
        padding: 60px 0;
    }
    
    .benefits__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    .benefits__item {
        padding: 32px;
    }
    
    .benefits__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .benefits__title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .benefits__text {
        font-size: 16px;
    }
}

/* Таблица сравнения */
.comparison {
    padding: 40px 0;
    background: var(--color-bg);
}

.comparison__table-wrapper {
    margin-top: 24px;
}

.comparison__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison__table thead {
    background: var(--color-bg-elevated);
}

.comparison__table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid var(--color-border);
}

.comparison__table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.comparison__table tbody tr {
    transition: background var(--transition-fast);
}

.comparison__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comparison__table tbody tr:last-child td {
    border-bottom: none;
}

/* Мобильная версия - карточки вместо таблицы */
@media (max-width: 768px) {
    .comparison__table-wrapper {
        overflow: visible;
    }
    
    .comparison__table,
    .comparison__table thead,
    .comparison__table tbody,
    .comparison__table th,
    .comparison__table td,
    .comparison__table tr {
        display: block;
    }
    
    .comparison__table thead {
        display: none;
    }
    
    .comparison__table tbody tr {
        display: block;
        background: var(--color-bg-card);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        padding: 16px;
        transition: all var(--transition-fast);
    }
    
    .comparison__table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
        box-shadow: var(--shadow-sm);
        transform: translateY(-2px);
    }
    
    .comparison__table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    .comparison__table td {
        display: flex;
        flex-direction: column;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
    }
    
    .comparison__table td:last-child {
        border-bottom: none;
    }
    
    .comparison__table td[data-label]::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--color-text);
        margin-bottom: 6px;
        font-size: 13px;
        display: block;
    }
    
    /* Первая ячейка - заголовок карточки */
    .comparison__table tbody tr td:first-child {
        font-weight: 700;
        color: var(--color-text);
        font-size: 16px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--color-border);
        margin-bottom: 12px;
    }
    
    .comparison__table tbody tr td:first-child::before {
        display: none;
    }
    
    /* Вторая и третья ячейки - с метками */
    .comparison__table tbody tr td:nth-child(2),
    .comparison__table tbody tr td:nth-child(3) {
        padding-top: 12px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .comparison {
        padding: 30px 0;
    }
    
    .comparison__table tbody tr {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .comparison__table td {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .comparison__table tbody tr td:first-child {
        font-size: 15px;
    }
    
    .comparison__table td::before {
        font-size: 13px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .comparison__table tbody tr {
        padding: 14px;
    }
    
    .comparison__table td {
        font-size: 13px;
    }
    
    .comparison__table tbody tr td:first-child {
        font-size: 15px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .comparison {
        padding: 40px 0;
    }
    
    .comparison__table tbody tr {
        padding: 16px;
    }
    
    .comparison__table td {
        font-size: 14px;
    }
    
    .comparison__table tbody tr td:first-child {
        font-size: 16px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .comparison {
        padding: 60px 0;
    }
    
    .comparison__table-wrapper {
        margin-top: 32px;
    }
    
    .comparison__table th {
        padding: 20px;
        font-size: 16px;
    }
    
    .comparison__table td {
        padding: 20px;
        font-size: 16px;
    }
}

/* Мобильное приложение */
.mobile-app {
    padding: 40px 0;
    background: var(--color-bg-elevated);
}

.mobile-app__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.mobile-app__text {
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.mobile-app__description {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.mobile-app__features {
    text-align: left;
    margin-bottom: 24px;
    list-style: none;
}

.mobile-app__features li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text-muted);
    font-size: 14px;
}

.mobile-app__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent-2);
    font-weight: 700;
    font-size: 18px;
}

.mobile-app__note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.mobile-app__image {
    max-width: 250px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mobile-app__image img {
    width: 100%;
    height: auto;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .mobile-app {
        padding: 30px 0;
    }
    
    .mobile-app__description {
        font-size: 14px;
    }
    
    .mobile-app__features li {
        font-size: 13px;
        padding-left: 24px;
    }
    
    .mobile-app__features li::before {
        font-size: 16px;
    }
    
    .mobile-app__image {
        max-width: 200px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .mobile-app__image {
        max-width: 220px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-app {
        padding: 50px 0;
    }
    
    .mobile-app__content {
        gap: 28px;
    }
    
    .mobile-app__text {
        max-width: 600px;
    }
    
    .mobile-app__description {
        font-size: 17px;
    }
    
    .mobile-app__image {
        max-width: 280px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .mobile-app {
        padding: 60px 0;
    }
    
    .mobile-app__content {
        flex-direction: row;
        align-items: center;
        gap: 32px;
        text-align: left;
    }
    
    .mobile-app__text {
        flex: 1;
        text-align: left;
        max-width: 600px;
    }
    
    .mobile-app__description {
        font-size: 18px;
    }
    
    .mobile-app__features li {
        font-size: 16px;
        padding-left: 32px;
    }
    
    .mobile-app__features li::before {
        font-size: 20px;
    }
    
    .mobile-app__note {
        font-size: 14px;
    }
    
    .mobile-app__image {
        flex: 1;
        max-width: 400px;
    }
}

/* CTA секция после текста */
.cta-section {
    padding: 60px 0;
    background: var(--color-bg-elevated);
}

.cta-section__content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-section__btn {
    min-width: 280px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-section__btn {
        min-width: 100%;
        padding: 16px 32px;
        font-size: 16px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section__btn {
        min-width: 240px;
        padding: 16px 36px;
        font-size: 17px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section__btn {
        min-width: 260px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section__btn {
        min-width: 300px;
        padding: 20px 48px;
        font-size: 20px;
    }
}

/* Платежные системы и соцсети */
.payments-social {
    padding: 40px 0;
    background: var(--color-bg);
}

.payments-social__payments,
.payments-social__social {
    margin-bottom: 32px;
}

.payments-social__payments:last-child,
.payments-social__social:last-child {
    margin-bottom: 0;
}

.payments-social__title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.payments-social__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: center;
    justify-items: center;
}

.payments-social__logo {
    max-width: 60px;
    height: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.payments-social__logo:hover {
    opacity: 1;
}

.payments-social__social-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.payments-social__social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border-radius: 50%;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.payments-social__social-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.payments-social__social-link img {
    width: 22px;
    height: 22px;
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .payments-social {
        padding: 30px 0;
    }
    
    .payments-social__title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .payments-social__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .payments-social__logo {
        max-width: 50px;
    }
    
    .payments-social__social-link {
        width: 40px;
        height: 40px;
    }
    
    .payments-social__social-link img {
        width: 20px;
        height: 20px;
    }
}

/* Маленькие экраны (361-480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .payments-social__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .payments-social__logo {
        max-width: 55px;
    }
}

/* Средние экраны (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .payments-social {
        padding: 50px 0;
    }
    
    .payments-social__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
    
    .payments-social__logo {
        max-width: 70px;
    }
    
    .payments-social__social-grid {
        gap: 20px;
    }
}

/* Планшеты и десктоп (769px+) */
@media (min-width: 769px) {
    .payments-social {
        padding: 60px 0;
    }
    
    .payments-social__payments,
    .payments-social__social {
        margin-bottom: 48px;
    }
    
    .payments-social__title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .payments-social__grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 16px;
    }
    
    .payments-social__logo {
        max-width: 80px;
    }
    
    .payments-social__social-grid {
        gap: 24px;
    }
    
    .payments-social__social-link {
        width: 48px;
        height: 48px;
    }
    
    .payments-social__social-link img {
        width: 24px;
        height: 24px;
    }
}

/* SEO-текст */
.seo-text {
    padding: 60px 0;
    background: var(--color-bg-elevated);
}

.seo-text h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
    line-height: 1.3;
}

.seo-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-text);
    line-height: 1.4;
}

.seo-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.seo-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.seo-text ul,
.seo-text ol {
    margin: 16px 0;
    padding-left: 32px;
    color: var(--color-text-muted);
}

.seo-text ul {
    list-style-type: disc;
}

.seo-text ol {
    list-style-type: decimal;
}

.seo-text li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

/* Футер */
.footer {
    padding: 60px 0 32px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.footer__logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.footer__nav-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.footer__nav-link {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__nav-link:hover {
    color: var(--color-text);
}

.footer__warning {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer__age {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.footer__text {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.footer__disclaimer {
    font-size: 12px;
    color: var(--color-text-muted);
    opacity: 0.7;
}

@media (min-width: 769px) {
    .footer__inner {
        grid-template-columns: 250px 1fr;
    }
    
    .footer__nav {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Блокировка скролла при открытом меню */
body.menu-open {
    overflow: hidden;
}

