:root {

    --primary-color: #b45309;

    --primary-hover: #92400e;
    --accent-blue: #2563eb;

    --accent-blue-hover: #1d4ed8;

    --background-main: #f8fafc;

    --background-card: #ffffff;

    --background-dark-footer: #1e293b;


    --text-main: #0f172a;

    --text-muted: #64748b;

    --text-on-dark: #f1f5f9;


    --border-color: #e2e8f0;

    --input-bg: #ffffff;

    --success: #16a34a;


    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);

    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius: 8px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}


header {
    background-color: var(--background-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
}


.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    text-align: center;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-main);
}

main {
    flex: 1;
}


.hero {

    background: linear-gradient(rgba(255, 255, 255, 0.59), rgba(255, 255, 255, 0.5)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    padding: 7rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}


.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--background-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card img {
    height: 120px;
    margin-bottom: 25px;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}


.info-block {
    background: var(--background-card);
    padding: 3rem;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary-color);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.legal-text h3,
.info-block h3 {
    color: var(--text-main);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.legal-text p,
.info-block p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}


.responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.resp-item {
    background: var(--background-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.resp-item i {
    font-size: 2.5rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.resp-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.age-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-icon {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--background-dark-footer);
    background: var(--text-on-dark);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}


.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-muted);
}

.checkbox-group input {
    margin-top: 0.35rem;
    accent-color: var(--accent-blue);
}


.simulation-banner {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.game-interface {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    flex: 2;
    min-width: 320px;
}

.game-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 1rem 1.5rem;
    position: relative;
    bottom: -2px;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--accent-blue);
}

.tab-btn.active {
    color: var(--accent-blue);
    border-bottom: 3px solid var(--accent-blue);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.num-btn {
    aspect-ratio: 1;
    background: var(--background-main);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.num-btn:hover {
    border-color: var(--primary-color);
    background: white;
    transform: scale(1.05);
}

.num-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.cart-summary {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    top: 100px;
    border: 1px solid var(--border-color);
}

.cart-summary h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-summary h3 i {
    color: var(--accent-blue);
}

#cartList li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
}

#cartList li strong {
    color: var(--accent-blue);
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);

    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--background-card);
    padding: 3rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}


@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .auth-buttons {
        display: none;
        width: 100%;
    }

    .nav-wrapper {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: block;
        padding: 0.5rem;
    }

    .nav-links.active,
    .auth-buttons.active {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 0;
        text-align: center;
        background: var(--background-card);
        border-top: 1px solid var(--border-color);
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .number-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .game-interface,
    .cart-summary {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .number-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .game-tabs {
        overflow-x: auto;
        padding-bottom: 0;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        white-space: nowrap;
    }

    .card {
        padding: 1.5rem;
    }
}

.legal-content h3 {
    margin-top: 2rem;
    color: var(--text-main);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.legal-content h4 {
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.table-of-contents {
    background: var(--background-main);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.table-of-contents ol {
    padding-left: 1.5rem;
    color: var(--accent-blue);
    font-weight: 600;
}

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

.table-of-contents a:hover {
    text-decoration: underline;
}

.table-of-contents {
    background: var(--background-main);
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 3.5rem;
    border: 1px solid var(--border-color);
}

.table-of-contents ol {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0;
}

.table-of-contents a {
    text-decoration: none;
    color: inherit;
}

.table-of-contents a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.important-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    font-size: 0.95rem;
}

.content-card {
    background: var(--background-card);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.content-card h3 {
    color: var(--text-main);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.content-card h3 i {
    color: var(--success);
}

.content-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

.rules-list {
    list-style: none;
    counter-reset: rule-counter;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.rules-list li {
    position: relative;
    padding-left: 3.5rem;
    color: var(--text-muted);
}

.rules-list li::before {
    counter-increment: rule-counter;
    content: counter(rule-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.rules-list li strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.resource-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.resource-box h4 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.resource-box p {
    color: #14532d;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.test-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.test-list li::before {
    content: "\f059";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.emergency-banner {
    background: var(--text-main);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 3rem;
}

.emergency-banner h3 {
    color: white;
    border: none;
    justify-content: center;
    margin-bottom: 1rem;
}

.emergency-banner p {
    color: #cbd5e1;
    text-align: center;
}

.btn-white {
    background: white;
    color: var(--text-main);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn-white:hover {
    background: #e2e8f0;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-content {
    border-radius: 8px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.age-modal {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.age-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--background-main);
    color: var(--primary-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--border-color);
}

.age-modal h2 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.age-modal p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.age-question {
    font-weight: 700;
    color: var(--text-main) !important;
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

.age-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.age-legal {
    font-size: 0.8rem !important;
    margin-top: 1.5rem;
    margin-bottom: 0 !important;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-color);
    z-index: 9000;
    padding: 1.5rem;
    display: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}


.cookie-settings-content {
    text-align: left;
    max-width: 600px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-info {
    padding-right: 1rem;
}

.cookie-info strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.cookie-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cookie-actions {
    margin-top: 2rem;
}


.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked+label {
    background-color: var(--success);
}

.toggle-switch input:disabled+label {
    background-color: var(--primary-color);
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-switch input:checked+label:before {
    transform: translateX(24px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-buttons .btn {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}