
/* =========================================
   1. CSS Reset & Base Setup
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Цветовая палитра (Dark Modern Theme) */
    --color-bg-body: #0f141f;
    --color-bg-card: #1c2431;
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-accent: #10b981; /* Зеленый для успеха/денег */
    --color-secondary: #8b5cf6;
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-dark: #111827;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-hero: linear-gradient(180deg, rgba(15, 20, 31, 0.9) 0%, #0f141f 100%);
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --header-height: 4rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.5);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. Layout & Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.row-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.col-xs-12 {
    width: 100%;
    flex: 0 0 100%;
}

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

/* =========================================
   3. Top Mobile Menu / Auth Bar
   ========================================= */
.line-menu-mobile {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 20, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-header-right-login,
.landing-header-right-reg {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.landing-header-right-login {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.landing-header-right-login:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.landing-header-right-reg {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.landing-header-right-reg:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* =========================================
   4. Hero / Header Section
   ========================================= */
.header-box {
    position: relative;
    padding: 5rem 0 3rem;
    background: 
        radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
        var(--color-bg-body);
    overflow: hidden;
}

.header-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.header-box .table {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ctr {
    width: 100%;
    max-width: 800px;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.text-head {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.promo {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-accent);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: copy;
    transition: var(--transition-fast);
    position: relative;
}

.promo:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.05);
}

.promo::after {
    content: 'copy';
    position: absolute;
    top: -1.5rem;
    right: -1rem;
    background: var(--color-accent);
    color: var(--color-text-dark);
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.promo:hover::after {
    opacity: 1;
}

.inform-promo {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    opacity: 0.7;
}

/* =========================================
   5. Buttons (Main CTA)
   ========================================= */
.button.href-site {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
}

.button.href-site::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.button.href-site:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
}

.button.href-site:hover::before {
    left: 100%;
}

.button.href-site:active {
    transform: translateY(-1px);
}

/* =========================================
   6. Content Section
   ========================================= */
section.content {
    padding: 3rem 0;
}

.content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-text-main);
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--color-primary);
}

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

.content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style: none;
}

.content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* =========================================
   7. Images
   ========================================= */
.img {
    margin: 3rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.img:hover img {
    transform: scale(1.03);
}

/* Эффект загрузки для lazyload */
.lazyload {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.lazyloaded {
    opacity: 1;
}

/* =========================================
   8. Animation Keyframes
   ========================================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   9. Media Queries (Responsive)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 3.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header-box {
        padding: 3rem 0 2rem;
    }

    .button.href-site {
        width: 100%;
        padding: 1rem;
    }

    .content p {
        text-align: left;
    }

    /* Мобильное меню */
    .line-menu-mobile .row-center {
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .landing-header-right-login,
    .landing-header-right-reg {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) {
    .content .row-center {
        max-width: 900px;
        margin: 0 auto;
    }
}
