/* =====================
   CSS VARIABLES - THEMES
===================== */

:root {
    /* Dark theme (default) */
    --bg-primary: #050816;
    --bg-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.9);
    --bg-card-hover: rgba(15, 23, 42, 0.95);
    --bg-gradient-start: #1D283A;
    --bg-gradient-end: #020617;
    
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-tertiary: #d1d5db;
    --text-muted: #9ca3af;
    --text-disabled: #6b7280;
    
    --border-color: #1f2937;
    --border-light: #273148;
    
    --accent-primary: #2563EB;
    --accent-secondary: #22C55E;
    --accent-gradient: linear-gradient(135deg, #2563EB, #22C55E);
    
    --shadow-sm: 0 1px 3px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(255, 255, 255, 0.06);
    --shadow-md: 0 4px 6px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 10px 15px rgba(255, 255, 255, 0.12), 0 4px 6px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-gradient-start: #f1f5f9;
    --bg-gradient-end: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-tertiary: #334155;
    --text-muted: #64748b;
    --text-disabled: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    
    --accent-primary: #2563EB;
    --accent-secondary: #22C55E;
    --accent-gradient: linear-gradient(135deg, #2563EB, #22C55E);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* =====================
   BASE
===================== */

* {
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* =====================
   HEADER
===================== */

.header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.85);
}

.header-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}

.header-logo a:hover .logo-text {
    opacity: 0.8;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.lang-switch-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

/* =====================
   THEME SWITCH
===================== */

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}


/* =====================
   HERO
===================== */

.hero {
    padding: 40px 0 36px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: center;
}

.hero-title {
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-tertiary);
    margin-bottom: 18px;
    line-height: 1.5;
}

.hero-list {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 18px;
    padding-left: 18px;
    line-height: 1.6;
}

.hero-list li {
    margin-bottom: 6px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    background: var(--bg-card);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    padding: 11px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    display: inline-block;
}

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.hero-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* =====================
   HERO CARD
===================== */

.hero-card {
    border-radius: 24px;
    padding: 20px;
    background: radial-gradient(circle at top left, var(--bg-gradient-start) 0, var(--bg-gradient-end) 55%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.hero-card-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.metric {
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.metric-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-hint {
    font-size: 11px;
    color: var(--text-disabled);
}

/* =====================
   SECTIONS
===================== */

.section {
    margin-top: 48px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

/* =====================
   PROBLEMS
===================== */

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.problem {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.problem:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
}

/* =====================
   VALUE
===================== */

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.value-card {
    border-radius: 18px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.value-label {
    font-size: 12px;
    color: var(--accent-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.value-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.value-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* =====================
   RESULTS
===================== */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.result-card {
    border-radius: 18px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.result-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.result-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* =====================
   PROCESS
===================== */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.step {
    border-radius: 18px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    margin: 6px 0;
    color: var(--text-primary);
}

.step-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* =====================
   ARTICLE
===================== */

.article {
    margin-top: 56px;
    border-radius: 24px;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.article-header {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.article h2 {
    font-size: 18px;
    margin-top: 22px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-primary);
}

.article h3 {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
}

.article p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.article ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.article li {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    line-height: 1.6;
}

.article-highlight {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    margin: 12px 0;
    color: var(--text-secondary);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.article-cta {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* =====================
   PRICING
===================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.plan {
    border-radius: 18px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.plan-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.plan-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 4px 0;
}

.plan-price {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.plan-list {
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.plan-list li {
    margin-bottom: 4px;
}

/* =====================
   LEAD
===================== */

.lead-wrapper {
    border-radius: 20px;
    padding: 20px;
    background: radial-gradient(circle at top left, var(--bg-gradient-start) 0, var(--bg-gradient-end) 60%);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    gap: 20px;
    box-shadow: var(--shadow-lg);
}

.lead-title {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-primary);
}

.lead-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.lead-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* =====================
   FORM
===================== */

.form {
    display: grid;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.field input,
.field textarea {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field textarea {
    min-height: 80px;
    resize: vertical;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-actions {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =====================
   RESPONSIVE
===================== */

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

    .lead-wrapper {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 10px 16px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .header-controls {
        gap: 6px;
    }
    
    .lang-switch-btn,
    .theme-toggle {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .theme-toggle span {
        display: none;
    }
}



/*отпарввка формы*/
.form {
    position: relative;
}

.form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 14px;
}

[data-theme="dark"] .form-overlay {
    background: rgba(18, 18, 18, 0.96);
}

.form-overlay.show {
    display: flex;
}

.form-overlay-inner {
    text-align: center;
    animation: pop 0.35s ease-out;
}

.form-overlay-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 12px;
}

.form-overlay-text {
    font-size: 16px;
    opacity: 0.85;
}

.form-overlay.success .form-overlay-icon {
    color: #16a34a;
}

.form-overlay.error .form-overlay-icon {
    color: #dc2626;
}

@keyframes pop {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}