/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a237e;
    --primary-gold: #ffd700;
    --secondary-blue: #3949ab;
    --accent-gold: #ffb300;
    --dark-bg: #0d1421;
    --light-text: #ffffff;
    --gray-text: #b0bec5;
    --success-green: #4caf50;
    --warning-orange: #ff9800;
    --error-red: #f44336;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0d1421 0%, #1a237e 35%, #283593 70%, #3949ab 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--light-text);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: var(--primary-gold);
}

h3 {
    font-size: 1.5rem;
    color: var(--light-text);
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Header */
header {
    background: rgba(13, 20, 33, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Offers Section */
.offers-section {
    margin-bottom: 4rem;
}

.offers-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.offer-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
}

.offer-card h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.offer-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.offer-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
    color: var(--dark-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--dark-bg);
}

/* Responsible Gambling Section */
.responsible-gambling {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid var(--error-red);
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.responsible-gambling h2 {
    color: var(--error-red);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.age-18 {
    font-size: 3rem;
    color: var(--error-red);
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--error-red);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-weight: 700;
}

.responsible-gambling p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.regulator-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.regulator-logos img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.regulator-logos img:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: rgba(13, 20, 33, 0.95);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-text);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-blue));
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--primary-gold);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Убираем размытие с контента */
    filter: none;
    /* Обеспечиваем четкость */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    /* Анимация появления */
    animation: modalFadeIn 0.3s ease-out;
    transform-origin: center center;
}

/* Анимация появления модального окна */
@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Анимация исчезновения модального окна */
@keyframes modalFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Показать модальное окно */
.modal.show {
    display: flex;
    opacity: 1;
}

/* Скрытие модального окна с анимацией */
.modal.hiding {
    opacity: 0;
}

.modal.hiding .modal-content {
    animation: modalFadeOut 0.3s ease-in;
}

.modal-content h2 {
    color: var(--error-red);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.modal-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
    color: var(--dark-bg);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 20, 33, 0.98);
    padding: 1.5rem;
    z-index: 9999;
    border-top: 2px solid var(--primary-gold);
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    color: var(--light-text);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
    color: var(--dark-bg);
}

.cookie-btn.decline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray-text);
}

.content-page ul, .content-page ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    color: var(--gray-text);
}

.toc {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.toc h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.toc a:hover {
    color: var(--primary-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 20, 33, 0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .offer-card {
        padding: 1.5rem;
    }

    .responsible-gambling {
        padding: 2rem 1rem;
    }

    .regulator-logos {
        gap: 1rem;
    }

    .regulator-logos img {
        height: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 2rem;
        width: 100%;
        max-width: 95%;
        border-radius: 15px;
        /* Убираем размытие */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        filter: none;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .modal-content h2 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .content-page {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .offers-section h2 {
        font-size: 1.8rem;
    }

    .offer-card h3 {
        font-size: 1.5rem;
    }

    .age-18 {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .responsible-gambling h2 {
        font-size: 1.5rem;
    }

    .regulator-logos img {
        height: 40px;
    }

    .modal {
        padding: 0.25rem;
    }

    .modal-content {
        padding: 1.5rem;
        border-radius: 12px;
        /* Убираем размытие */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        filter: none;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .modal-content h2 {
        font-size: 1.8rem;
    }

    .modal-content p {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--primary-gold);
}

.text-white {
    color: var(--light-text);
}

.text-gray {
    color: var(--gray-text);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .modal,
    .cookie-consent,
    .mobile-toggle {
        display: none;
    }
} 