: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 1 */
header {
        display: flex;
        height: 72px;
        width: 100%;
        background: var(--bg-dark);
        align-items: center;
        justify-content: center;
    }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    padding: 0 10px;
    margin: 0 auto;
}

.logotype img {
    display: flex;
    max-width: 100%;
    height: 40px;
    margin: 10px 0;
}

.menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s ease;
    }
    
.menu a:hover {
    color: var(--color-accent);
}

/* Block: Hero 2 */
.first-screen {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: var(--gradient-bg);
}

.first-screen-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
    gap: 60px;
}

.first-screen-inner-left {
    flex: 1;
    max-width: 600px;
}

.left-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: block;
}

.left-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    display: block;
    line-height: 1.5;
    font-weight: 300;
}

.label-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 300;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 30px;
}

.users-icon {
    flex-shrink: 0;
}

.first-screen-inner-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.first-screen-image {
    max-width: 640px;
    width: 100%;
}

.first-screen-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px var(--shadow-secondary);
    border: 1px solid #262626;
}

.button-area {
    display: flex;
    gap: 10px;
}

.button {
    color: var(--text-button);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    border-radius: 10px;
    text-decoration: none;
    padding: 20px 20px;
}

.button-primary {
    background: var(--gradient-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-primary:hover {
    box-shadow: 0 0 25px var(--shadow-primary);
}

.button-secondary {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.3s ease;
}

.button-secondary:hover {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bold {
    font-weight: 700;
}

@media (max-width: 768px) {
.first-screen {
    min-height: auto;
    padding: 40px 0;
}

.first-screen-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.first-screen-inner-left {
    max-width: 100%;
}

.left-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.left-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
}

.button-area {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.button {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 16px 20px;
    font-size: 14px;
}

.first-screen-image {
    max-width: 100%;
}

.first-screen-image img {
    border-radius: 12px;
}

.label-text {
    justify-content: center;
    margin-top: 24px;
}
}

@media (max-width: 480px) {
    .left-title {
        font-size: 28px;
    }
    
    .left-subtitle {
        font-size: 14px;
    }
    
    .button {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .label-text {
        font-size: 12px;
    }
    
    .users-icon {
        width: 14px;
        height: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet Styles */
    .first-screen {
        min-height: 600px;
        padding: 50px 0;
    }
    
    .first-screen-inner {
        gap: 40px;
    }
    
    .left-title {
        font-size: 40px;
    }
    
    .left-subtitle {
        font-size: 18px;
    }
    
    .button {
        padding: 18px 24px;
        font-size: 15px;
    }
    
    .first-screen-image {
        max-width: 400px;
    }
}

/* Block: Article 1 */
.article-content {
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 1280px;
    margin: 32px auto 40px;
    padding: 32px 24px 28px;
}

.article-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 10px;
}

.article-content p {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-muted);
}

.article-content ul,
.article-content ol {
    margin: 0 0 16px 18px;
    padding-left: 0;
}

.article-content li {
    margin: 0 0 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.article-content img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-card);
    margin: 10px 0 16px;
}

.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.article-content th {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.article-content td {
    padding: 12px;
    border-top: 1px solid var(--border-secondary);
    color: var(--text-muted);
    font-size: 14px;
}

.article-content tr:nth-child(even) td {
    background: var(--bg-card-hover);
}

/* Block: Футер 4 - Simple Line */
.footer4 {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-primary);
    padding: 24px 0;
}

.footer4-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer4-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer4-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

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

.footer4-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer4-payments {
    display: flex;
    gap: 8px;
}

.footer4-payments span {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer4-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.footer4-divider {
    color: var(--border-secondary);
    font-size: 12px;
}

.footer4-age {
    padding: 4px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer4-container {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer4-left {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer4-center {
        order: 1;
    }
}