:root {
    /* Основные цвета */
    --color-primary: #fff;
    --color-primary-dark: #4338ca;
    --color-secondary: #7729d7;
    --color-accent: #fbbf24;

    /* Фоновые цвета */
    --bg-primary: #141824;
    --bg-secondary: #241f2b;
    --bg-dark: #0D121D;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-overlay: rgba(44, 49, 68, 0.35);

    /* Текстовые цвета */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #d1d5db;
    --text-light: #9ca3af;
    --text-dark: #6b7280;
    --text-button: #fff;

    /* Границы */
    --border-primary: #1e293b;
    --border-secondary: #374151;
    --border-card: #475569;
    --border-overlay: rgba(71, 85, 105, 0.3);

    /* Градиенты */
    --gradient-primary: linear-gradient(90deg, #9A32C9 0%, var(--color-secondary) 100%);
    --gradient-text: linear-gradient(135deg, var(--text-primary) 0%, #c5c5c5 100%);
    --gradient-card: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    --gradient-bg: linear-gradient(90deg, #39265a, #372235);
    --gradient-cta: linear-gradient(90deg, #161623 0%, #2E1414 102.14%);
    --gradient-benefits: linear-gradient(90deg, #1a0d2e 0%, #2d1b4e 50%, #1a0d2e 100%);

    /* Тени */
    --shadow-primary: 0 0 25px rgb(121 21 163);
    --shadow-secondary: rgba(0, 0, 0, 0.3);
    --shadow-card: rgba(0, 0, 0, 0.4);

    /* Статусные цвета */
    --status-new: #3b82f6;
    --status-jackpot: #fbbf24;
    --status-top: #10b981;
}

*, ::after, ::before {
    box-sizing: border-box;
    border-width: 0;
    margin: 0;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
}

main {
    padding: 0;
    background: var(--gradient-cta);
}

.popular-slots-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.title-accent {
    width: 4px;
    height: 40px;
    background: var(--status-top);
    border-radius: 2px;
}

.all-games-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--status-top);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: color, gap;
}

.all-games-link:hover {
    color: #fff;
    gap: 12px;
}

.all-games-link svg {
    width: 20px;
    height: 20px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.slot-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slot-card:hover {
    transform: translateY(-8px) translateZ(0);
}

.slot-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    background: #0f0519;
    transform: translateZ(0);
    will-change: transform;
}

.slot-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0) scale(1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slot-card:hover .slot-image {
    transform: translateZ(0) scale(1.05);
}

/* Градиент снизу вверх */
.slot-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    transform: translateZ(0);
    will-change: opacity;
}

.slot-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    transform: translateZ(0);
}

.badge-rtp {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateZ(0);
    will-change: transform;
}

.slot-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    z-index: 2;
    transform: translateZ(0);
    will-change: transform;
}

.slot-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
}

.slot-provider {
    font-size: 13px;
    color: #d1d5db;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .title-accent {
        height: 32px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .slot-title {
        font-size: 16px;
    }

    .slot-provider {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.menu {
    display: flex;
    position: relative;
    justify-content: flex-end;
    width: 100%;
    margin: 0 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.menu ul li a {
    text-decoration: none;
    color: var(--color-text);
    transition: 0.3s;
    padding: 5px;
    display: block;
    border-radius: 6px;
    font-size: 13px;
}

.menu ul li a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        flex-direction: column;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }
    
    .menu.active ul {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        width: 100%;
        align-items: center;
        margin-top: 10px;
    }
    
    .menu ul li a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu ul li:last-child a {
        border-bottom: none;
    }
}

/* === Block Styles === */
/* Block: Header 4 (Logo + Info Badges) */
/* Header 4 - Logo + Info Badges */
.header-variant-4 {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-variant-4 .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-variant-4 .header-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-variant-4 .logotype {
    flex-shrink: 0;
}

.header-variant-4 .logotype img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px var(--shadow-secondary));
    transition: transform 0.3s ease;
}

.header-variant-4 .logotype img:hover {
    transform: scale(1.05);
}

.header-variant-4 .header-badges {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-variant-4 .badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-variant-4 .badge-item svg {
    flex-shrink: 0;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.header-variant-4 .badge-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-secondary);
}

.header-variant-4 .badge-item:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-variant-4 {
        padding: 15px 0;
    }
    
    .header-variant-4 .header-flex-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-variant-4 .logotype img {
        height: 40px;
    }
    
    .header-variant-4 .header-badges {
        gap: 10px;
    }
    
    .header-variant-4 .badge-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .header-variant-4 .badge-item svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .header-variant-4 .header-badges {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Block: Hero 3 */
.hero-section {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--status-top) 10%, transparent) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--color-accent) 10%, transparent) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.hero-btn-primary {
    background: var(--gradient-primary);
    color: var(--text-button);
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.hero-btn-primary:hover {
    box-shadow: 0 8px 25px color-mix(in srgb, var(--status-top) 50%, transparent);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--color-secondary);
}

.hero-btn-secondary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-stats-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.hero-stats-value {
    font-weight: 700;
    color: var(--text-primary);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    max-width: 640px;
    width: 100%;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0.2;
    z-index: -1;
    filter: blur(20px);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-card);
    border: 2px solid var(--border-card);
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
    }
    
    .hero-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Block: SEO Text 3 (Wide) */
/* SEO Text 3 - Wide Layout */
.seo-wide {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.seo-wide .container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.seo-content {
    background: transparent;
    color: var(--text-muted);
}

.seo-content h1,
.seo-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.2;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 35px 0 18px;
    position: relative;
    padding-bottom: 10px;
}

.seo-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.seo-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 28px 0 14px;
}

.seo-content p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.seo-content ul,
.seo-content ol {
    margin: 25px 0;
    padding-left: 35px;
}

.seo-content li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
}

.seo-content ul li::marker {
    color: var(--color-accent);
}

.seo-content a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.seo-content a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--color-accent);
}

.seo-content strong,
.seo-content b {
    color: var(--text-primary);
    font-weight: 600;
}

.seo-content em,
.seo-content i {
    font-style: italic;
    color: var(--text-secondary);
}

.seo-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--bg-card);
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .seo-wide {
        padding: 40px 0;
    }
    
    .seo-content h1,
    .seo-content h2 {
        font-size: 26px;
    }
    
    .seo-content h3 {
        font-size: 22px;
    }
    
    .seo-content h4 {
        font-size: 19px;
    }
    
    .seo-content p,
    .seo-content li {
        font-size: 16px;
    }
    
    .seo-content ul,
    .seo-content ol {
        padding-left: 25px;
    }
}

/* Block: Футер 5 - Compact */
.footer5 {
    background: var(--bg-secondary);
    padding: 28px 0;
}

.footer5-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer5-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer5-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer5-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer5-age {
    padding: 5px 10px;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-accent);
}

.footer5-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer5-license,
.footer5-ssl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer5-license svg,
.footer5-ssl svg {
    width: 18px;
    height: 18px;
    color: var(--status-top);
}

.footer5-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer5-copy {
    font-size: 13px;
    color: var(--text-dark);
}

.footer5-links {
    display: flex;
    gap: 20px;
}

.footer5-links a {
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.footer5-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .footer5-row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer5-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer5-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer5-links {
        flex-direction: column;
        gap: 10px;
    }
}