/* FAVORIT V6 - Luxury Casino - Page */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f7c948;
    --orange: #f59e0b;
    --green: #10b981;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-lighter: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: rgba(212, 175, 55, 0.2);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--navy-light);
    border-radius: 1rem;
    border: 2px solid var(--border);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 600;
}

article {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-lighter) 100%);
    border-radius: 2rem;
    border: 2px solid var(--border);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    padding: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

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

article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange), var(--gold));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: 2rem 2rem 0 0;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

article header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

article h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

article h1::before {
    content: '🎰';
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    flex-shrink: 0;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    font-weight: 600;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.answer {
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    line-height: 1.8;
    color: var(--text-primary);
}

.answer p {
    margin-bottom: 1.5rem;
}

.answer h2 {
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.answer h3 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.answer ul,
.answer ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.answer ul {
    list-style: none;
}

.answer ul li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.answer ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
    font-size: 1.25rem;
}

.answer ol li {
    margin-bottom: 1rem;
}

.answer ol li::marker {
    color: var(--gold);
    font-weight: 800;
}

.answer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--gold);
    transition: all 0.2s ease;
}

.answer a:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}

.answer strong {
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.answer code {
    font-family: 'Monaco', monospace;
    font-size: 0.9em;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25em 0.5em;
    border-radius: 0.375rem;
    color: var(--gold-light);
    font-weight: 600;
    border: 1px solid var(--border);
}

.answer blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--gold);
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.key-takeaways {
    background: rgba(212, 175, 55, 0.08);
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.key-takeaways::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    border-radius: 1.5rem 1.5rem 0 0;
}

.key-takeaways h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.key-takeaways h3::before {
    content: '💎';
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
}

.key-takeaways li {
    padding: 1rem 0 1rem 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.key-takeaways li:last-child {
    border-bottom: none;
}

.key-takeaways li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
    font-size: 1.5rem;
}

.cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--navy);
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 3rem);
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shimmerCta 3s linear infinite;
}

@keyframes shimmerCta {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.cta h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--navy);
    color: var(--gold-light);
    font-weight: 800;
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    border: 2px solid var(--navy);
    border-radius: 3rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 56px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.cta-button::after {
    content: '→';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(6px);
}

.related-questions {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--navy-light);
    border-radius: 1.5rem;
    border: 2px solid var(--border);
}

.related-questions h2 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-questions h2::before {
    content: '🔗';
    font-size: 2rem;
}

.related-questions ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.related-questions a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--navy-lighter);
    border: 2px solid var(--border);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 64px;
}

.related-questions a::before {
    content: '▸';
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 900;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.related-questions a:hover {
    transform: translateX(8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.related-questions a:hover::before {
    transform: translateX(4px);
}

.back-to-index {
    margin-top: 2rem;
    text-align: center;
}

.back-to-index a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--gold);
    border-radius: 3rem;
    transition: all 0.3s ease;
    min-height: 56px;
}

.back-to-index a::before {
    content: '←';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.back-to-index a:hover {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--navy);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.back-to-index a:hover::before {
    transform: translateX(-4px);
}

.language-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--navy-light);
    padding: 1rem 1.5rem;
    border-radius: 3rem;
    border: 2px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lang-label {
    font-size: 1.5rem;
}

.language-switcher select {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    article {
        padding: 1.5rem;
    }
    
    .language-switcher {
        bottom: 1rem;
        right: 1rem;
    }
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (prefers-contrast: high) {
    article,
    .related-questions {
        border-width: 3px;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }
    
    .language-switcher,
    .cta,
    .back-to-index {
        display: none;
    }
}

/* ===========================================================================
   CTA SECTION (Call-to-Action Block) для PAGE
   =========================================================================== */

.cta-section {
    margin: clamp(2rem, 5vw, 3rem) 0;
}

.cta-block {
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--secondary, #8b5cf6) 100%);
    color: white;
    border-radius: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmerCta 3s infinite;
}

@keyframes shimmerCta {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cta-block h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-block h3::before {
    content: '🎰 ';
}

.cta-description {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.5rem, 4vw, 2.5rem);
    background: white;
    color: var(--primary, #6366f1);
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.125rem);
    border: none;
    border-radius: 3rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 52px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button::after {
    content: '→';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

/* ===========================================================================
   LANGUAGE SWITCHER FOOTER
   =========================================================================== */

.language-switcher-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary, rgba(0, 0, 0, 0.05));
    border-radius: 1rem;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 0.75rem;
    background: var(--bg-primary, white);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary, #6366f1);
}

.lang-flag.active {
    border-color: var(--primary, #6366f1);
    background: var(--primary, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ===========================================================================
   TABLE OF CONTENTS (On This Page)
   =========================================================================== */

.table-of-contents {
    background: var(--bg-secondary, #f8fafc);
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.table-of-contents h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #1e293b);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    counter-increment: toc-counter;
    margin-bottom: 0.5rem;
}

.table-of-contents li::before {
    content: counter(toc-counter) ". ";
    color: var(--primary, #6366f1);
    font-weight: 700;
}

.table-of-contents a {
    color: var(--primary, #6366f1);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.table-of-contents a:hover {
    color: var(--secondary, #8b5cf6);
    text-decoration: underline;
}

/* ===========================================================================
   RESPONSIVE для Page
   =========================================================================== */

@media (max-width: 640px) {
    .cta-block {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .language-switcher-footer {
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .lang-flag {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
}

@media (prefers-color-scheme: dark) {
    .language-switcher-footer {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .lang-flag {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .table-of-contents {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* FAVORIT: Кастомизация для тёмной темы */
.cta-block {
    background: linear-gradient(135deg, var(--gold, #d4af37) 0%, var(--orange, #f59e0b) 100%);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.cta-button {
    background: var(--navy, #0f172a);
    color: var(--gold-light, #f7c948);
}

.language-switcher-footer {
    background: var(--navy-light, #1e293b);
}

.lang-flag {
    background: var(--navy-lighter, #334155);
}

.lang-flag.active {
    background: var(--gold, #d4af37);
    border-color: var(--gold, #d4af37);
}

.table-of-contents {
    background: var(--navy-light, #1e293b);
    border-color: var(--border, rgba(212, 175, 55, 0.2));
}

.table-of-contents a {
    color: var(--gold, #d4af37);
}
