/* Canadian Color Palette & General Reset */
:root {
    /* TrueNorth Draws palette – более холодные, отличающиеся от исходного сайта цвета */
    --primary-red: #f97316;        /* ярко‑янтарный акцент */
    --primary-blue: #111827;       /* очень тёмный сине‑графитовый фон */
    --secondary-blue: #0ea5e9;     /* голубой акцент */
    --accent-red: #fb7185;         /* мягкий розово‑коралловый */
    --background-white: #0b1120;   /* глубокий тёмный фон страницы */
    --text-dark: #e5e7eb;
    --text-light: #9ca3af;
    --border-light: #1f2937;
    --border-dark: #374151;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Global Layout & Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #020617;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 40px;
}

/* Make section titles in key blocks более заметными */
.featured-draws-section h2,
.recent-results-section h2 {
    color: var(--primary-red);
}

.featured-draws-section .section-subtitle,
.recent-results-section .section-subtitle {
    color: var(--text-dark);
}

h1,
h2,
h3 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #f9fafb;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-red);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    color: white;
    background-color: var(--accent-red);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-dark);
}

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

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Navigation */
.sticky-header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9fafb;
}

.logo img {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a.active::after,
.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links li:last-child a {
    border: 1px solid var(--primary-red);
    border-radius: 50px;
    padding: 8px 15px;
}

.nav-links li:last-child a:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Burger Menu */
.burger-menu {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #020617;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav.is-open {
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav li:last-child a {
    border-bottom: none;
}

@media (max-width: 768px) {
    .main-nav .nav-links {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .mobile-nav {
        display: block;
    }
}

/* Home Page Sections */
.hero-section {
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.35), transparent 55%),
                radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.4), transparent 55%),
                url('../img/hero.webp') center center/cover no-repeat;
    color: white;
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    z-index: 10;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 20px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

.trust-strip {
    background-color: #020617;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-light);
}

.trust-strip .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

/* Card Grids */
.steps-grid,
.draws-grid,
.benefits-grid,
.approach-grid,
.contact-grid {
    display: grid;
    gap: 30px;
}

.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    text-align: center;
}

.step-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.draws-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.draw-card {
    background-color: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.draw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.draw-card img { 
    height: 100px;
    margin:  10px auto;
}

.draw-card .card-content {
    padding: 20px;
}

.draw-card h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.draw-card p {
    margin-bottom: 15px;
    color: #4b5563;
}

.draw-card .btn {
    width: 100%;
    padding: 10px;
}

.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    text-align: center;
}

.benefit-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

/* Number Tools Section */
.tools-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tool-card {
    background-color: #020617;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 450px;
    text-align: center;
}

.tool-card i {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

/* Recent Results Table */
.results-table-container {
    overflow-x: auto;
}

.results-image {
    display: block;
    max-width: 520px;
    width: 100%;
    margin: 30px auto 40px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #020617;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

thead {
    background-color: var(--primary-blue);
    color: white;
}

.number-bubble {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin: 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.number-bubble.bonus {
    background-color: var(--secondary-blue);
}

/* Newsletter Section */
.newsletter-form {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.newsletter-form input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-dark);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Footer */
footer {
    background-color: #020617;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact p,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-red);
}

/* About Page Specifics */
.page-intro {
    background-color: var(--primary-blue);
    color: white;
    padding: 100px 0;
}

.page-intro h1 {
    color: white;
}

.page-intro p {
    max-width: 800px;
    margin: 0 auto;
}

.approach-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    text-align: center;
}

.approach-item {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.approach-item i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background-color: white;
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    padding: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f2f2f2;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.accordion-content p {
    padding-bottom: 20px;
}

/* Contact Page Specifics */
.contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-container {
        margin-top: 50px;
    }
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-dark);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
}

.form-group.form-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.form-consent input[type="checkbox"] {
    width: auto;
}

.error-message {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 20px;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-red);
}

.contact-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.contact-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.map-placeholder {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.map-placeholder img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Buy Page Specifics */
.buy-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .buy-grid {
        grid-template-columns: 1fr;
    }
}

.number-picker-container {
    margin-top: 30px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.number-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.number-button:hover {
    background-color: #dee2e6;
}

.number-button.selected {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.picker-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.entry-options {
    margin-top: 40px;
}

.options-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

#num-lines {
    width: 80px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border-dark);
}

.cart-summary-section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cart-items {
    margin-top: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.empty-cart-message {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item .numbers {
    display: flex;
    gap: 5px;
}

.cart-item .remove-btn {
    border: none;
    background: none;
    color: var(--primary-red);
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.cart-item .remove-btn:hover {
    transform: scale(1.1);
}

.cart-summary-totals {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-dark);
}

.summary-item.total {
    border-top: 2px solid var(--primary-blue);
    padding-top: 15px;
    font-size: 1.2rem;
}

.btn-checkout {
    margin-top: 20px;
    width: 100%;
}

.secure-notice {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    background-color: #e6f7ff;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    color: #004085;
}

.secure-notice i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Auth Pages (Login/Register) */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.auth-container {
    max-width: 500px;
}

.auth-card {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-form {
    margin-top: 20px;
    text-align: left;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(10%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.password-strength-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

.password-strength-info ul {
    list-style: none;
    padding: 0;
}

.password-strength-info li {
    margin-bottom: 5px;
}

.password-strength-info li .fa-times-circle {
    color: var(--primary-red);
}

.password-strength-info li.valid .fa-times-circle {
    color: #28a745;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 20px;
}

.auth-switch {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 42, 92, 0.95);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--primary-red);
    text-decoration: underline;
}

.cookie-banner button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .trust-strip .container {
        flex-direction: column;
    }

    .steps-grid,
    .draws-grid,
    .benefits-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .buy-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4 {
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: none;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}
.footer-images {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     align-items: center;
 }

 .footer-images img {
     height: 65px;
     padding: 0;
     margin: 10px;
     border-radius: 0;
 } .icon-container {
            display: flex;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .cookie-icon {
            width: 6rem;
            height: 6rem;
            border-radius: 9999px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            padding: 0.5rem;
            background-color: #fff;
            border: 4px solid #bfdbfe;
        }

        @media (min-width: 640px) {
            .cookie-icon {
                width: 8rem;
                height: 8rem;
            }
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #1f2937;
            border-bottom: 1px solid #e5e7eb;
            padding-bottom: 0.5rem;
        }

        .content p {
            margin-bottom: 1.5rem;
            color: #374151;
        }

        .content strong {
            font-weight: 500;
            color: #1f2937;
        }

        .content ul {
            list-style: disc;
            list-style-position: inside;
            margin-bottom: 1.5rem;
            margin-left: 1rem;
        }

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

        .content a {
            color: #2563eb;
            text-decoration: underline;
        }

        .content a:hover {
            color: #1d4ed8;
        }
