/* ================================
   ABOUT СТРАНИЦЫ
   ================================ */
.breadcrumbs {
    background: var(--background-dark);
    padding: 15px 0;
    margin-top: var(--header-height);
}

.breadcrumbs__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumbs__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
    color: var(--accent-purple);
}

.breadcrumbs__separator {
    color: var(--text-muted);
}

.breadcrumbs__current {
    color: var(--accent-purple);
    font-weight: 500;
}

.secondary-page .secondary-main {
    margin-top: var(--header-height);
    min-height: 100vh;
    width: 100%;
}

/* ================================
   HERO БАННЕР
   ================================ */
.hero-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-banner .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-cards {
    position: relative;
    width: 300px;
    height: 300px;
}

.card-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.card-item:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.card-item:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.card-item:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.card-item:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

/* ================================
   WHY PLAY SECTION (Homepage) - Now using slider from components.css
   ================================ */
.why-play-section-new {
    margin: 40px 0;
    padding: 0;
}

.section-title-center {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle-center {
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 18px;
    font-weight: 400;
}

/* ================================
   WELCOME SECTION (About Page)
   ================================ */
.welcome-section {
    margin: 32px 0;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

.welcome-content {
    background: rgb(59, 35, 75);
    border-radius: var(--border-radius-large);
    padding: 30px 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 120px;
    box-shadow: none;
    transition: none;
}

.welcome-content::before {
    display: none;
}

.welcome-content:hover::before {
    display: none;
}

.welcome-content:hover {
    transform: none;
    box-shadow: none;
}

.welcome-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    margin-right: 40px;
    max-width: 80%;
}

/* Enhanced Welcome Typography - Using Design System Variables */
.welcome-title {
    /* Fluid typography using design system variables */
    font-size: var(--font-size-4xl); /* 28px - 36px responsive */
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-lg); /* 16px - consistent spacing */
    line-height: var(--line-height-tight); /* Optimal for headlines */
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider); /* Better scaling */
    
    /* Enhanced text rendering for crisp display */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Better text wrapping and overflow handling */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    max-width: 100%;
}

.welcome-subtitle {
    display: none;
}

.welcome-description {
    color: var(--text-secondary);
    
    /* Responsive body text using design system variables */
    font-size: var(--font-size-base); /* 14px - 16px responsive */
    line-height: var(--line-height-relaxed); /* Optimal reading line height */
    margin: 0;
    
    /* Enhanced readability constraints using design system */
    max-width: var(--measure-base); /* Optimal reading line length */
    
    /* Enhanced text rendering */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Better text wrapping and hyphenation */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    white-space: normal;
}

.welcome-visual {
    flex-shrink: 0;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.welcome-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    animation: none;
}

/* ================================
   BOTTOM SECTIONS (About Page)
   ================================ */
.bottom-sections {
    padding: 60px var(--container-padding) 80px;
    background: var(--background-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    max-width: 100%;
}

.bottom-sections .section {
    margin-bottom: 40px;
}

.bottom-sections .section:last-child {
    margin-bottom: 0;
}

.bottom-sections .section h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.bottom-sections .section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 var(--space-2xl) 0; /* 24px отступ для лучшей читаемости */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    white-space: normal;
    max-width: 100%;
}

.bottom-sections .section p:last-child {
    margin-bottom: 0;
}

.affiliate-email {
    color: rgb(192, 56, 243);
    text-decoration: none;
    transition: color 0.3s ease;
}

.affiliate-email:hover {
    color: rgba(192, 56, 243, 0.8);
    text-decoration: underline;
}

/* ================================
   СТИЛИ ДЛЯ ТАБЛИЦ В РЕДАКТОРЕ
   ================================ */

/* Контейнер таблицы с горизонтальным скроллом */
.casino-table-wrapper,
.wp-block-table {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    background: rgba(59, 35, 75, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(59, 35, 75, 0.4);
    border: 1px solid rgba(59, 35, 75, 0.5);
    -webkit-overflow-scrolling: touch;
}

/* Основная таблица */
.casino-table-wrapper table,
.wp-block-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
    font-family: inherit;
}

/* Заголовок таблицы */
.casino-table-wrapper table thead,
.wp-block-table table thead {
    background: rgb(59, 35, 75);
    border-bottom: 2px solid rgb(75, 45, 95);
}

.casino-table-wrapper table th,
.wp-block-table table th {
    padding: 16px 24px;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 1px solid rgba(75, 45, 95, 0.6);
    background: transparent;
    white-space: nowrap;
    position: relative;
}

.casino-table-wrapper table th::after,
.wp-block-table table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(192, 56, 243, 0.5), transparent);
}

/* Строки таблицы */
.casino-table-wrapper table tbody tr,
.wp-block-table table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(59, 35, 75, 0.3);
}

.casino-table-wrapper table tbody tr:nth-child(even),
.wp-block-table table tbody tr:nth-child(even) {
    background: rgba(59, 35, 75, 0.2);
}

.casino-table-wrapper table tbody tr:nth-child(odd),
.wp-block-table table tbody tr:nth-child(odd) {
    background: rgba(59, 35, 75, 0.1);
}

.casino-table-wrapper table tbody tr:hover,
.wp-block-table table tbody tr:hover {
    background: rgba(75, 45, 95, 0.4) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 35, 75, 0.3);
}

/* Ячейки таблицы */
.casino-table-wrapper table td,
.wp-block-table table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(59, 35, 75, 0.2);
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: all 0.3s ease;
}

/* Первая колонка (параметры) - жирный белый текст */
.casino-table-wrapper table td:first-child,
.wp-block-table table td:first-child {
    font-weight: 600;
    color: #ffffff;
    min-width: 200px;
    white-space: nowrap;
    background: rgba(59, 35, 75, 0.1);
    border-right: 1px solid rgba(75, 45, 95, 0.3);
}

/* Остальные колонки (детали) - светло-серый текст */
.casino-table-wrapper table td:not(:first-child),
.wp-block-table table td:not(:first-child) {
    color: rgba(255, 255, 255, 0.85);
    min-width: 250px;
}

/* Ссылки в таблице */
.casino-table-wrapper table a,
.wp-block-table table a {
    color: rgb(192, 56, 243);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.casino-table-wrapper table a:hover,
.wp-block-table table a:hover {
    color: #ffffff;
    background: rgba(192, 56, 243, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Убираем стандартные границы WordPress */
.wp-block-table table,
.wp-block-table th,
.wp-block-table td {
    border: none !important;
}

/* Скроллбар для таблиц */
.casino-table-wrapper::-webkit-scrollbar,
.wp-block-table::-webkit-scrollbar {
    height: 8px;
}

.casino-table-wrapper::-webkit-scrollbar-track,
.wp-block-table::-webkit-scrollbar-track {
    background: rgba(59, 35, 75, 0.3);
    border-radius: 4px;
}

.casino-table-wrapper::-webkit-scrollbar-thumb,
.wp-block-table::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(59, 35, 75), rgb(75, 45, 95));
    border-radius: 4px;
    border: 1px solid rgba(192, 56, 243, 0.3);
}

.casino-table-wrapper::-webkit-scrollbar-thumb:hover,
.wp-block-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgb(75, 45, 95), rgb(192, 56, 243));
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .casino-table-wrapper table th,
    .wp-block-table table th {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .casino-table-wrapper table td,
    .wp-block-table table td {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .casino-table-wrapper table td:first-child,
    .wp-block-table table td:first-child {
        min-width: 150px;
    }
    
    .casino-table-wrapper table td:not(:first-child),
    .wp-block-table table td:not(:first-child) {
        min-width: 200px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .casino-table-wrapper,
    .wp-block-table {
        margin: 16px 0;
        border-radius: 8px;
    }
    
    .casino-table-wrapper table,
    .wp-block-table table {
        min-width: 500px;
    }
    
    .casino-table-wrapper table th,
    .wp-block-table table th {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .casino-table-wrapper table td,
    .wp-block-table table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .casino-table-wrapper table td:first-child,
    .wp-block-table table td:first-child {
        min-width: 120px;
    }
    
    .casino-table-wrapper table td:not(:first-child),
    .wp-block-table table td:not(:first-child) {
        min-width: 180px;
    }
}

/* Поддержка Firefox для скроллбара */
.casino-table-wrapper,
.wp-block-table {
    scrollbar-width: thin;
    scrollbar-color: rgb(75, 45, 95) rgba(59, 35, 75, 0.3);
}

/* ================================
   ОТСТУПЫ ДЛЯ КОНТЕНТА ИЗ РЕДАКТОРА
   ================================ */

/* Основные контейнеры контента */
.page-content,
.post-content,
.entry-content,
.bottom-sections .section-content,
.welcome-section .section-content {
    line-height: 1.8;
}

/* Улучшенные отступы между блоками контента */
.page-content > *:not(:last-child),
.post-content > *:not(:last-child),
.entry-content > *:not(:last-child) {
    margin-bottom: var(--space-2xl); /* 24px отступ между блоками */
}

/* Специальные отступы для заголовков */
.page-content h1 + *,
.page-content h2 + *,
.page-content h3 + *,
.page-content h4 + *,
.page-content h5 + *,
.page-content h6 + *,
.post-content h1 + *,
.post-content h2 + *,
.post-content h3 + *,
.post-content h4 + *,
.post-content h5 + *,
.post-content h6 + *,
.entry-content h1 + *,
.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + *,
.entry-content h5 + *,
.entry-content h6 + * {
    margin-top: var(--space-lg) !important; /* 16px отступ после заголовков */
}

/* Заголовки */
.page-content h1,
.post-content h1,
.entry-content h1,
.bottom-sections h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1.5rem 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-content h2,
.post-content h2,
.entry-content h2,
.bottom-sections h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1.8rem 0 1.2rem 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.page-content h3,
.post-content h3,
.entry-content h3,
.bottom-sections h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.page-content h4,
.post-content h4,
.entry-content h4,
.bottom-sections h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1.3rem 0 0.8rem 0;
    line-height: 1.4;
}

.page-content h5,
.post-content h5,
.entry-content h5,
.bottom-sections h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1.2rem 0 0.6rem 0;
    line-height: 1.4;
}

.page-content h6,
.post-content h6,
.entry-content h6,
.bottom-sections h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.4;
}

/* ================================
   ENHANCED PARAGRAPH TYPOGRAPHY - Based on Design System Best Practices
   ================================ */

/* Primary paragraph styles - Enhanced with design system principles */
.page-content p,
.post-content p,
.entry-content p,
.bottom-sections p {
    /* Color and opacity for optimal contrast */
    color: rgba(255, 255, 255, 0.87); /* Increased contrast for better readability */
    
    /* Fluid typography - responsive font sizing using design system approach */
    font-size: var(--font-size-lg); /* 16px - 18px responsive from design system */
    
    /* Optimal line height for body text readability */
    line-height: var(--line-height-relaxed); /* 1.6 - optimal for reading */
    
    /* Enhanced spacing using design system variables */
    margin: 0 0 var(--space-2xl) 0; /* 24px bottom margin - improved readability */
    
    /* Reading constraints for optimal line length */
    max-width: var(--measure-base); /* 65ch - optimal reading line length */
    
    /* Enhanced text rendering for better readability */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Better text wrapping and hyphenation */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    
    /* Prevent orphans and widows for better typography */
    orphans: 2;
    widows: 2;
}

/* Paragraph spacing - Enhanced vertical rhythm */
.page-content p + p,
.post-content p + p,
.entry-content p + p,
.bottom-sections p + p {
    margin-top: 0;
}

.page-content p:last-child,
.post-content p:last-child,
.entry-content p:last-child,
.bottom-sections p:last-child {
    margin-bottom: 0;
}

/* Lead paragraphs - Enhanced styling for introductory text */
.page-content p.lead,
.post-content p.lead,
.entry-content p.lead,
.bottom-sections p.lead {
    font-size: var(--font-size-2xl); /* 20px - 24px responsive */
    line-height: var(--line-height-snug); /* 1.375 - tighter for larger text */
    color: rgba(255, 255, 255, 0.9); /* Higher contrast for emphasis */
    margin-bottom: var(--space-2xl); /* 24px - increased spacing after lead */
    font-weight: var(--font-weight-medium); /* Slightly heavier weight */
    max-width: var(--measure-wide); /* 75ch - wider for larger text */
}

/* Small paragraphs - For secondary information */
.page-content p.small,
.post-content p.small,
.entry-content p.small,
.bottom-sections p.small {
    font-size: var(--font-size-sm); /* 13px - 14px responsive */
    line-height: var(--line-height-normal); /* 1.5 - slightly tighter */
    color: rgba(255, 255, 255, 0.75); /* Lower contrast for secondary info */
    margin-bottom: var(--space-lg); /* 16px - reduced spacing */
    max-width: var(--measure-narrow); /* 45ch - narrower for small text */
}

/* ================================
   TYPOGRAPHY UTILITY CLASSES - For WordPress Editor
   ================================ */

/* Text size utilities - Based on design system scale */
.text-xs { font-size: var(--font-size-xs) !important; line-height: var(--line-height-normal) !important; }
.text-sm { font-size: var(--font-size-sm) !important; line-height: var(--line-height-normal) !important; }
.text-base { font-size: var(--font-size-base) !important; line-height: var(--line-height-relaxed) !important; }
.text-lg { font-size: var(--font-size-lg) !important; line-height: var(--line-height-relaxed) !important; }
.text-xl { font-size: var(--font-size-xl) !important; line-height: var(--line-height-snug) !important; }
.text-2xl { font-size: var(--font-size-2xl) !important; line-height: var(--line-height-snug) !important; }

/* Line height utilities */
.leading-tight { line-height: var(--line-height-tight) !important; }
.leading-snug { line-height: var(--line-height-snug) !important; }
.leading-normal { line-height: var(--line-height-normal) !important; }
.leading-relaxed { line-height: var(--line-height-relaxed) !important; }
.leading-loose { line-height: var(--line-height-loose) !important; }

/* Font weight utilities */
.font-light { font-weight: var(--font-weight-light) !important; }
.font-normal { font-weight: var(--font-weight-normal) !important; }
.font-medium { font-weight: var(--font-weight-medium) !important; }
.font-semibold { font-weight: var(--font-weight-semibold) !important; }
.font-bold { font-weight: var(--font-weight-bold) !important; }

/* Text color utilities */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--text-accent) !important; }

/* Reading width utilities */
.measure-narrow { max-width: var(--measure-narrow) !important; } /* 45ch */
.measure-base { max-width: var(--measure-base) !important; } /* 65ch */
.measure-wide { max-width: var(--measure-wide) !important; } /* 75ch */
.measure-none { max-width: none !important; }

/* Spacing utilities for paragraphs */
.mb-xs { margin-bottom: var(--space-xs) !important; } /* 4px */
.mb-sm { margin-bottom: var(--space-sm) !important; } /* 8px */
.mb-md { margin-bottom: var(--space-md) !important; } /* 12px */
.mb-lg { margin-bottom: var(--space-lg) !important; } /* 16px */
.mb-xl { margin-bottom: var(--space-xl) !important; } /* 20px */
.mb-2xl { margin-bottom: var(--space-2xl) !important; } /* 24px */
.mb-3xl { margin-bottom: var(--space-3xl) !important; } /* 32px */

/* Typography style presets - Ready-to-use combinations */
.body-large {
    font-size: var(--font-size-lg) !important;
    line-height: var(--line-height-relaxed) !important;
    color: rgba(255, 255, 255, 0.87) !important;
    max-width: var(--measure-base) !important;
}

.body-small {
    font-size: var(--font-size-sm) !important;
    line-height: var(--line-height-normal) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    max-width: var(--measure-narrow) !important;
}

.lead-text {
    font-size: var(--font-size-2xl) !important;
    line-height: var(--line-height-snug) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: var(--font-weight-medium) !important;
    max-width: var(--measure-wide) !important;
    margin-bottom: var(--space-2xl) !important;
}

.caption-text {
    font-size: var(--font-size-xs) !important;
    line-height: var(--line-height-normal) !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-style: italic;
    max-width: var(--measure-narrow) !important;
}

/* Enhanced readability modifiers */
.readable {
    font-size: var(--font-size-lg) !important;
    line-height: var(--line-height-relaxed) !important;
    max-width: var(--measure-base) !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Списки */
.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol,
.bottom-sections ul,
.bottom-sections ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Кастомные маркеры для списков */
.page-content ul li,
.post-content ul li,
.entry-content ul li,
.bottom-sections ul li {
    position: relative;
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: var(--space-md); /* 12px отступ между элементами списка */
    line-height: 1.6;
}

.page-content ul li::before,
.post-content ul li::before,
.entry-content ul li::before,
.bottom-sections ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: rgb(192, 56, 243);
    font-weight: bold;
    font-size: 1.2em;
}

/* Нумерованные списки */
.page-content ol,
.post-content ol,
.entry-content ol,
.bottom-sections ol {
    counter-reset: custom-counter;
}

.page-content ol li,
.post-content ol li,
.entry-content ol li,
.bottom-sections ol li {
    position: relative;
    list-style: none;
    padding-left: 2rem;
    margin-bottom: var(--space-md); /* 12px отступ между элементами списка */
    line-height: 1.6;
    counter-increment: custom-counter;
}

.page-content ol li::before,
.post-content ol li::before,
.entry-content ol li::before,
.bottom-sections ol li::before {
    content: counter(custom-counter) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: rgb(192, 56, 243);
    font-weight: bold;
    min-width: 1.5rem;
}

.page-content li:last-child,
.post-content li:last-child,
.entry-content li:last-child,
.bottom-sections li:last-child {
    margin-bottom: 0;
}

/* Вложенные списки */
.page-content ul ul,
.page-content ol ol,
.page-content ul ol,
.page-content ol ul,
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul,
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul,
.bottom-sections ul ul,
.bottom-sections ol ol,
.bottom-sections ul ol,
.bottom-sections ol ul {
    margin: 0.5rem 0;
}

/* Цитаты */
.page-content blockquote,
.post-content blockquote,
.entry-content blockquote,
.bottom-sections blockquote {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--accent-purple);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 0 8px 8px 0;
}

.page-content blockquote p,
.post-content blockquote p,
.entry-content blockquote p,
.bottom-sections blockquote p {
    margin-bottom: 1rem;
}

.page-content blockquote p:last-child,
.post-content blockquote p:last-child,
.entry-content blockquote p:last-child,
.bottom-sections blockquote p:last-child {
    margin-bottom: 0;
}

/* Изображения */
.page-content img,
.post-content img,
.entry-content img,
.bottom-sections img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-content figure,
.post-content figure,
.entry-content figure,
.bottom-sections figure {
    margin: 2rem 0;
    text-align: center;
}

.page-content figcaption,
.post-content figcaption,
.entry-content figcaption,
.bottom-sections figcaption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Ссылки */
.page-content a,
.post-content a,
.entry-content a,
.bottom-sections a {
    color: rgb(192, 56, 243);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content a:hover,
.post-content a:hover,
.entry-content a:hover,
.bottom-sections a:hover {
    color: rgba(192, 56, 243, 0.8);
    text-decoration: underline;
}

/* Кнопки WordPress */
.page-content .wp-block-button,
.post-content .wp-block-button,
.entry-content .wp-block-button,
.bottom-sections .wp-block-button {
    margin: 2rem 0 1.5rem 0;
    display: block;
}

/* Разделители */
.page-content hr,
.post-content hr,
.entry-content hr,
.bottom-sections hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    margin: 3rem 0;
}

/* Код */
.page-content code,
.post-content code,
.entry-content code,
.bottom-sections code {
    background: rgba(0, 0, 0, 0.3);
    color: rgb(192, 56, 243);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.page-content pre,
.post-content pre,
.entry-content pre,
.bottom-sections pre {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.page-content pre code,
.post-content pre code,
.entry-content pre code,
.bottom-sections pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* WordPress блоки */
.wp-block-separator {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent) !important;
    margin: 3rem auto !important;
    width: 100% !important;
}

.wp-block-quote {
    background: rgba(139, 92, 246, 0.1) !important;
    border-left: 4px solid var(--accent-purple) !important;
    padding: 1.5rem 2rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

.wp-block-image {
    margin: 2rem 0 !important;
    text-align: center;
}

.wp-block-image img {
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ================================
   RESPONSIVE TYPOGRAPHY - Enhanced for all devices
   ================================ */

/* Tablet breakpoint - Enhanced typography adjustments */
@media (max-width: 768px) {
    .page-content h1,
    .post-content h1,
    .entry-content h1,
    .bottom-sections h1 {
        font-size: 2rem;
        margin: 1.5rem 0 1rem 0;
    }

    .page-content h2,
    .post-content h2,
    .entry-content h2,
    .bottom-sections h2 {
        font-size: 1.5rem;
        margin: 1.3rem 0 0.8rem 0;
    }

    .page-content h3,
    .post-content h3,
    .entry-content h3,
    .bottom-sections h3 {
        font-size: 1.3rem;
        margin: 1.2rem 0 0.6rem 0;
    }

    /* Enhanced paragraph typography for tablets */
    .page-content p,
    .post-content p,
    .entry-content p,
    .bottom-sections p {
        /* Fluid typography scales down appropriately */
        font-size: var(--font-size-base); /* 14px - 16px responsive */
        line-height: var(--line-height-relaxed); /* Maintain optimal reading line height */
        margin: 0 0 var(--space-lg) 0; /* 16px bottom margin */
        max-width: 100%; /* Allow full width on smaller screens */
    }
    
    .page-content p + p,
    .post-content p + p,
    .entry-content p + p,
    .bottom-sections p + p {
        margin-top: 0;
    }

    /* Lead paragraphs on tablets */
    .page-content p.lead,
    .post-content p.lead,
    .entry-content p.lead,
    .bottom-sections p.lead {
        font-size: var(--font-size-xl); /* 18px - 20px responsive */
        line-height: var(--line-height-snug);
        margin-bottom: var(--space-xl); /* 20px */
        max-width: 100%;
    }

    /* Small paragraphs on tablets */
    .page-content p.small,
    .post-content p.small,
    .entry-content p.small,
    .bottom-sections p.small {
        font-size: var(--font-size-xs); /* 12px - 13px responsive */
        line-height: var(--line-height-normal);
        margin-bottom: var(--space-md); /* 12px */
        max-width: 100%;
    }

    .page-content ul,
    .page-content ol,
    .post-content ul,
    .post-content ol,
    .entry-content ul,
    .entry-content ol,
    .bottom-sections ul,
    .bottom-sections ol {
        margin: 1.2rem 0;
        padding-left: 1.5rem;
    }

    .page-content blockquote,
    .post-content blockquote,
    .entry-content blockquote,
    .bottom-sections blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }

    .page-content .wp-block-button,
    .post-content .wp-block-button,
    .entry-content .wp-block-button,
    .bottom-sections .wp-block-button {
        margin: 1.5rem 0 1rem 0;
    }
}

/* Mobile breakpoint - Optimized for small screens */
@media (max-width: 480px) {
    /* Enhanced mobile paragraph typography */
    .page-content p,
    .post-content p,
    .entry-content p,
    .bottom-sections p {
        /* Optimized font size for mobile reading */
        font-size: var(--font-size-base); /* 14px - 16px responsive */
        line-height: var(--line-height-relaxed); /* 1.6 - optimal for mobile reading */
        margin: 0 0 var(--space-xl) 0; /* 20px bottom margin для лучшей читаемости на мобильных */
        
        /* Enhanced mobile text rendering */
        -webkit-text-size-adjust: 100%; /* Prevent text scaling on iOS */
        text-size-adjust: 100%;
        
        /* Better spacing for mobile */
        letter-spacing: 0.01em; /* Slight letter spacing for mobile readability */
    }

    /* Lead paragraphs on mobile */
    .page-content p.lead,
    .post-content p.lead,
    .entry-content p.lead,
    .bottom-sections p.lead {
        font-size: var(--font-size-lg); /* 16px - 18px responsive */
        line-height: var(--line-height-snug); /* 1.375 */
        margin-bottom: var(--space-xl); /* 20px */
        font-weight: var(--font-weight-medium);
    }

    /* Small paragraphs on mobile */
    .page-content p.small,
    .post-content p.small,
    .entry-content p.small,
    .bottom-sections p.small {
        font-size: var(--font-size-xs); /* 12px - 13px responsive */
        line-height: var(--line-height-normal); /* 1.5 */
        margin-bottom: var(--space-md); /* 12px */
    }
}

/* Very small screens - Micro-adjustments for optimal readability */
@media (max-width: 320px) {
    .page-content p,
    .post-content p,
    .entry-content p,
    .bottom-sections p {
        /* Ensure minimum readable size */
        font-size: max(var(--font-size-sm), 14px); /* Minimum 14px for readability */
        line-height: var(--line-height-relaxed); /* Maintain optimal reading line height */
        margin: 0 0 var(--space-md) 0; /* 12px bottom margin - tighter for small screens */
        
        /* Enhanced spacing for very small screens */
        letter-spacing: 0.005em; /* Minimal letter spacing */
    }

    .page-content p.lead,
    .post-content p.lead,
    .entry-content p.lead,
    .bottom-sections p.lead {
        font-size: max(var(--font-size-base), 15px); /* Minimum 15px for lead text */
        margin-bottom: var(--space-lg); /* 16px */
    }
}

/* ================================
   ИСПРАВЛЕНИЯ КОНФЛИКТОВ CTA БЛОКА
   ================================ */

/* Исключаем CTA блоки из общих стилей контента */
.cta-block,
.cta-container,
.simple-cta,
.cta-content {
    /* Сбрасываем стили заголовков для CTA */
}

.cta-block h1,
.cta-block h2,
.cta-block h3,
.cta-block h4,
.cta-block h5,
.cta-block h6,
.cta-container h1,
.cta-container h2,
.cta-container h3,
.cta-container h4,
.cta-container h5,
.cta-container h6,
.simple-cta h1,
.simple-cta h2,
.simple-cta h3,
.simple-cta h4,
.simple-cta h5,
.simple-cta h6 {
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.cta-block p,
.cta-container p,
.simple-cta p {
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.cta-block ul,
.cta-block ol,
.cta-container ul,
.cta-container ol,
.simple-cta ul,
.simple-cta ol {
    margin: 0 !important;
    padding: 0 !important;
}

.cta-block li,
.cta-container li,
.simple-cta li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.cta-block li::before,
.cta-container li::before,
.simple-cta li::before {
    display: none !important;
}

/* Исключаем промо-баннеры из общих стилей */
.promo-banner h1,
.promo-banner h2,
.promo-banner h3,
.promo-banner h4,
.promo-banner h5,
.promo-banner h6,
.promo-content h1,
.promo-content h2,
.promo-content h3,
.promo-content h4,
.promo-content h5,
.promo-content h6 {
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.promo-banner p,
.promo-content p {
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Исключаем карточки игр из общих стилей */
.game-card h1,
.game-card h2,
.game-card h3,
.game-card h4,
.game-card h5,
.game-card h6,
.game-info h1,
.game-info h2,
.game-info h3,
.game-info h4,
.game-info h5,
.game-info h6 {
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.game-card p,
.game-info p {
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Исключаем футер из общих стилей */
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.footer p {
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.footer ul,
.footer ol {
    margin: 0 !important;
    padding: 0 !important;
}

.footer li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer li::before {
    display: none !important;
}

/* ================================
   ИСКЛЮЧЕНИЯ ДЛЯ GUTENBERG БЛОКОВ
   ================================ */

/* Gutenberg блоки теперь используют кастомные маркеры из gutenberg-blocks.css */

/* Исключаем заголовки Gutenberg блоков из кастомных стилей */
.wp-block-media-text h1,
.wp-block-media-text h2,
.wp-block-media-text h3,
.wp-block-media-text h4,
.wp-block-media-text h5,
.wp-block-media-text h6,
.wp-block-group h1,
.wp-block-group h2,
.wp-block-group h3,
.wp-block-group h4,
.wp-block-group h5,
.wp-block-group h6,
.wp-block-column h1,
.wp-block-column h2,
.wp-block-column h3,
.wp-block-column h4,
.wp-block-column h5,
.wp-block-column h6,
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover h4,
.wp-block-cover h5,
.wp-block-cover h6 {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Обеспечиваем, что контент в entry-content использует стили Gutenberg */
.entry-content .wp-block-media-text,
.entry-content .wp-block-group,
.entry-content .wp-block-columns,
.entry-content .wp-block-column,
.entry-content .wp-block-cover,
.entry-content .wp-block-image,
.entry-content .wp-block-quote,
.entry-content .wp-block-button,
.entry-content .wp-block-separator,
.entry-content .wp-block-gallery {
    /* Приоритет для стилей Gutenberg блоков */
}

/* ================================
   СТИЛИ ДЛЯ H1 ЗАГОЛОВКА СТРАНИЦЫ
   ================================ */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

/* ================================
   СТИЛИ ДЛЯ КНОПОК И ИЗОБРАЖЕНИЙ В КОНТЕНТЕ
   ================================ */
.section-image,
.page-content .section-image {
    margin: 15px 0;
    text-align: center;
}

.section-img,
.page-content .section-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-button,
.page-content .section-button {
    margin-top: 20px;
    text-align: left;
}

.btn,
.page-content .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
}

.btn-primary,
.page-content .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
}

.btn-primary:hover,
.page-content .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary,
.page-content .btn-secondary {
    background: #6c757d;
    color: #ffffff;
    border-color: #6c757d;
}

.btn-secondary:hover,
.page-content .btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-success,
.page-content .btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: #ffffff;
    border-color: #56ab2f;
}

.btn-success:hover,
.page-content .btn-success:hover {
    background: linear-gradient(135deg, #4e9927 0%, #96d4b7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 171, 47, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-danger,
.page-content .btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #ffffff;
    border-color: #ff416c;
}

.btn-danger:hover,
.page-content .btn-danger:hover {
    background: linear-gradient(135deg, #e8395f 0%, #e8431f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline,
.page-content .btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-outline:hover,
.page-content .btn-outline:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

@media (max-width: 768px) {
    .section-button,
    .page-content .section-button {
        text-align: center;
    }

    .btn,
    .page-content .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }

    .section-img,
    .page-content .section-img {
        max-width: 100%;
    }
}

/* ================================
   TABLE OF CONTENTS SHORTCODE STYLES
   ================================ */
.g-toc-block {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.g-toc-block--title {
    background: rgb(184, 15, 255);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.g-toc-block--title:hover {
    background: rgba(184, 15, 255, 0.9);
}

.g-toc-icon {
    font-size: 16px;
}

.g-toc-block--title::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    font-size: 12px;
}

.g-toc-block.collapsed .g-toc-block--title::after {
    transform: translateY(-50%) rotate(-90deg);
}

.g-top-ol {
    margin: 0;
    padding: 16px 20px;
    list-style: none;
    counter-reset: toc-counter;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgb(59, 35, 75);
}

.g-toc-block.collapsed .g-top-ol {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.g-top-ol li {
    counter-increment: toc-counter;
    margin-bottom: 10px;
    position: relative;
    padding-left: 0;
}

.g-top-ol li::before {
    content: counter(toc-counter) ".";
    color: white;
    font-weight: 600;
    margin-right: 10px;
    min-width: 20px;
    display: inline-block;
    font-size: 14px;
}

.g-top-ol li:last-child {
    margin-bottom: 0;
}

.g-top-ol a {
    color: white;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: inline-block;
}

.g-top-ol a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.g-top-ol a:visited {
    color: rgba(255, 255, 255, 0.9);
}

/* TOC Responsive styles */
@media (max-width: 768px) {
    .g-toc-block {
        margin: 15px 0;
        border-radius: 6px;
    }

    .g-toc-block--title {
        padding: 10px 14px;
        font-size: 15px;
    }

    .g-toc-icon {
        font-size: 14px;
    }

    .g-top-ol {
        padding: 12px 16px;
        font-size: 14px;
    }

    .g-top-ol li {
        margin-bottom: 8px;
    }

    .g-top-ol li::before {
        min-width: 18px;
        margin-right: 8px;
    }
} 