/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px; /* Offset for sticky header */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #080D16;
    background-color: #F8FAFC;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

input, textarea {
    font-family: inherit;
}

/* Colors */
:root {
    --luckybet-blue: #75A5EE;
    --luckybet-blue-dark: #5B8FD8;
    --luckybet-light: #EFF6FF;
    --luckybet-dark: #080D16;
    --luckybet-red: #FC4420;
    --luckybet-red-mid: #F63159;
    --luckybet-red-pink: #F22287;
    --gray-200: #E5E7EB;
}

/* Layout */
.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #F0F2FD;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--luckybet-blue);
    z-index: 50;
    transition: all 0.3s ease;
}

.header.header-scrolled {
    background: rgba(240, 242, 253, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header.header-scrolled .header-inner {
    height: 64px;
}

.header.header-scrolled .header-inner svg {
    transform: scale(0.9);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.3s ease;
}

.header-inner svg {
    transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .header-actions {
        justify-self: end;
    }
}

.nav {
    display: none;
    align-items: center;
    gap: 24px;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }
}

.nav a {
    color: var(--luckybet-dark);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--luckybet-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(to right, #75A5EE, #FB4420);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(to right, #5B8FD8, #E03A1A);
    box-shadow: 0 6px 25px rgba(251, 68, 32, 0.35);
}

.tgbutton {
    background: #0088CC !important;
}

.tgbutton:hover {
    background: #006DA3 !important;
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.4) !important;
}

.btn-blue {
    background: var(--luckybet-blue);
    color: #fff;
}

.btn-blue:hover {
    background: var(--luckybet-blue-dark);
    box-shadow: 0 6px 25px rgba(117, 165, 238, 0.4);
}

.btn-outline {
    border: 2px solid var(--luckybet-dark);
    background: transparent;
    color: var(--luckybet-dark);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--luckybet-dark);
    color: #fff;
    box-shadow: 0 6px 25px rgba(8, 13, 22, 0.3);
}

.btn-telegram {
    display: none;
}

@media (min-width: 640px) {
    .btn-telegram {
        display: inline-flex;
    }
}

.btn-lg {
    padding: 16px 27px;
    border-radius: 16px;
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-header {
    max-width: 770px;
    margin: 0 auto 48px;
    text-align: center;
}

/* Typography */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--luckybet-blue);
    margin-bottom: 24px;
}

.badge-text {
    color: var(--luckybet-blue-dark);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 60px;
    }
}

h2 {
    font-size: 24px;
    font-weight: 700;
}

@media (min-width: 768px) {
    h2 {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    h2 {
        font-size: 48px;
    }
}

h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    h3 {
        font-size: 20px;
    }
}

.text-blue {
    color: var(--luckybet-blue);
}

.text-muted {
    color: var(--luckybet-dark);
}

.text-lg {
    font-size: 16px;
}

@media (min-width: 768px) {
    .text-lg {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .text-lg {
        font-size: 24px;
    }
}

/* Hero */
.hero {
    max-width: 770px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 8px;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 24px;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Cards */
.card {
    padding: 32px;
    border-radius: 16px;
    transition: border-color 0.2s;
    background: white;
}

.card:hover {
    border-color: var(--luckybet-blue);
}

.card-featured {
    border: 1px solid var(--luckybet-blue);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
    position: relative;
}

.card-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 9999px;
    background: #75A5EE;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.section-getstarted, .section-form {
    background:#fff!important;
} 
.section-ask {
    background:#F8FAFC!important;
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--luckybet-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--luckybet-blue);
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.card-list-item svg {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--luckybet-blue);
}

/* Steps */
.steps {
    position: relative;
}

.steps-line {
    display: none;
    position: absolute;
    top: 28px;
    left: calc(10.5% + 28px);
    right: calc(10.5% + 28px);
    height: 2px;
    background: linear-gradient(to right, #edf0f5, var(--luckybet-blue));
    z-index: 0;
}
.chetvertajaikonka {
        background: var(--luckybet-blue);
}
.chetvertajaikonka svg {
    stroke: white;
}
@media (min-width: 1024px) {
    .steps-line {
        display: block;
    }
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step .card-icon {
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
}

/* Geo Section */
.geo-card {
    border-radius: 16px;
    background: #fff;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .geo-card {
        padding: 48px;
    }
}

.geo-card h3 {
    font-size: 30px;
    color: var(--luckybet-blue);
}

@media (min-width: 1024px) {
    .geo-card h3 {
        font-size: 36px;
    }
}

.geo-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 256px;
    height: 256px;
    /* opacity: 0.2; */
}

/* Traffic Sources Card */
.traffic-card {
    display: flex;
    flex-direction: column;
}

.traffic-card .card-icon {
    margin-bottom: 0;
}

.traffic-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.traffic-header h3 {
    margin-bottom: 0;
    font-size: 18px;
}

@media (min-width: 768px) {
    .traffic-header h3 {
        font-size: 20px;
    }
}

.traffic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.traffic-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--luckybet-light);
    color: #4B5563;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.traffic-tag:hover {
    background: #E5E7EB;
    color: #374151;
}

/* Form */
.form {
    max-width: 596px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-required {
    color: var(--luckybet-red);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(8, 13, 22, 0.25);
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border: 2px solid var(--luckybet-blue);
    box-shadow: 0 0 0 3px rgba(117, 165, 238, 0.2);
}

.form-textarea {
    resize: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.form-checkbox input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    border: 2px solid rgba(8, 13, 22, 0.25);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 0;
}

.form-checkbox input:hover {
    border-color: var(--luckybet-blue);
}

.form-checkbox input:checked {
    background: linear-gradient(135deg, #75A5EE, #FB4420);
    border-color: transparent;
}

.form-checkbox input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.form-checkbox input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(117, 165, 238, 0.3);
}

.form-checkbox label {
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
}

.form-submit {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(to right, #75A5EE, #FB4420);
    color: #fff;
    font-weight: 700;
    transition: all 0.3s ease; 
    transform: translateY(0);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(252, 68, 32, 0.45);
    background: linear-gradient(to right, #E03A1A, #D82A4D, #D01A75);
}

.form-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(252, 68, 32, 0.3);
}

.form-note {
    text-align: center;
    color: var(--luckybet-blue);
    margin-top: 24px;
}

/* Footer */
.footer {
    background: #F0F2FD;
}

.footer-inner {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-nav a {
    color: var(--luckybet-dark);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--luckybet-blue);
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-10 {
    margin-bottom: 40px;
}

.mb-12 {
    margin-bottom: 48px;
}

/* Terms and Conditions Page */
.terms-content h2 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--luckybet-dark);
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #4B5563;
}

.terms-toc {
    padding-left: 24px;
    margin-bottom: 24px;
}

.terms-toc li {
    margin-bottom: 8px;
    color: #4B5563;
}

.terms-toc a {
    color: var(--luckybet-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-toc a:hover {
    color: var(--luckybet-coral);
    text-decoration: underline;
}

.terms-version {
    font-size: 14px;
    color: var(--luckybet-blue);
    font-weight: 600;
    margin-bottom: 32px;
}

.terms-definitions {
    margin-bottom: 32px;
}

.terms-definitions dt {
    font-weight: 700;
    color: var(--luckybet-dark);
    margin-top: 16px;
}

.terms-definitions dd {
    margin-left: 0;
    margin-bottom: 8px;
    color: #4B5563;
    line-height: 1.7;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for cards */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Fade in from left */
.animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Hero section special animation */
.hero-animate {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-animate.delay-1 { animation-delay: 0.2s; }
.hero-animate.delay-2 { animation-delay: 0.4s; }
.hero-animate.delay-3 { animation-delay: 0.6s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-left,
    .animate-right,
    .animate-scale,
    .hero-animate {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
}
