﻿:root {
    /* ✅ modern palette */
    --primary-color: #4f46e5; /* indigo */
    --primary-dark: #4338ca; /* deeper indigo */
    --secondary-color: #7c3aed; /* violet */
    --bg: #f6f7ff; /* soft modern background */
    --text: #0f172a; /* slate-900 */
    --muted: #475569; /* slate-600 */
    --card-border: rgba(226,232,240,0.9);
    --shadow-sm: 0 10px 26px rgba(2, 6, 23, 0.08);
    --shadow-md: 0 18px 46px rgba(2, 6, 23, 0.14);
    --radius: 1rem;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

/* Fixed navbar spacing */
.site-main {
    padding-top: 92px;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226,232,240,0.65);
}

.navbar-scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 650;
    margin: 0 0.35rem;
    color: #334155 !important;
    transition: color 0.18s ease;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color) !important;
    }

/* ✅ language switch more readable */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.25);
    background: rgba(79, 70, 229, 0.08);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    color: #334155;
    transition: all 0.18s ease;
}

    .lang-btn:hover {
        transform: translateY(-1px);
        background: rgba(79, 70, 229, 0.10);
        color: #0f172a;
    }

    .lang-btn.active {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: #fff;
        box-shadow: 0 14px 26px rgba(79,70,229,0.20);
    }

/* Sections */
section {
    padding: 5rem 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
}

.lead {
    color: var(--muted);
    font-size: 1.2rem;
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.14) 0%, rgba(79, 70, 229, 0) 35%), radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.14) 0%, rgba(124, 58, 237, 0) 35%), radial-gradient(circle at 70% 10%, rgba(236, 72, 153, 0.10) 0%, rgba(236, 72, 153, 0) 30%);
    z-index: -1;
}

/* Utilities */
.z-index-1 {
    position: relative;
    z-index: 1;
}

.z-index-0 {
    position: relative;
    z-index: 0;
}

/* Cards */
.card {
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
}

.card-hover {
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    will-change: transform;
}

    .card-hover:hover {
        transform: translateY(-7px);
        box-shadow: var(--shadow-md);
        border-color: rgba(79, 70, 229, 0.35);
    }

/* ✅ pricing strip */
.pricing-strip {
    padding: 1.5rem 0;
    background: rgba(2, 6, 23, 0.02);
}

.strip-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 18px;
}

.strip-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(226,232,240,0.9);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
}

/* Pricing header gradients */
.pricing-head-1 {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #ec4899 100%);
}

.pricing-head-2 {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.pricing-head-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #fb7185 100%);
}

/* ✅ NEW: header content with icon LEFT */
.pricing-head-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}

.pricing-head-text h3 {
    margin: 0;
    line-height: 1.1;
}

.pricing-head-text p {
    margin: 0;
}

/* ✅ icon box (left) */
.pricing-plan-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(8px);
}

/* ✅ FIX: features list centered in card, but items aligned inside */
.pricing-features {
    display: inline-block; /* ✅ важное: сам список центрируется */
    margin: 0 auto; /* ✅ центр по горизонтали */
    text-align: left; /* ✅ внутри сохраняем ровное выравнивание */
    padding-left: 0;
}

    /* ✅ FIX: each line aligned perfectly */
    .pricing-features li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        line-height: 1.35;
    }

        .pricing-features li i {
            width: 18px; /* фиксируем ширину иконки */
            flex: 0 0 18px;
            margin-top: 2px; /* чтобы ровно вставало по тексту */
        }

/* Icon circles */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    display: grid;
    place-items: center;
}

.bg-primary-soft {
    background: rgba(79, 70, 229, 0.14);
}

.bg-success-soft {
    background: rgba(16, 185, 129, 0.14);
}

.bg-warning-soft {
    background: rgba(245, 158, 11, 0.18);
}

/* Buttons */
.btn {
    border-radius: 0.95rem;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .btn:focus {
        box-shadow: 0 0 0 0.22rem rgba(79, 70, 229, 0.25) !important;
    }

.btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem 1.5rem;
}

    .btn-primary:hover {
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(79, 70, 229, 0.32);
        background: linear-gradient(135deg, var(--primary-dark), #6d28d9);
    }

.btn-outline-primary {
    border: 2px solid rgba(79, 70, 229, 0.95);
    color: var(--primary-color) !important;
    background: transparent;
}

    .btn-outline-primary:hover {
        color: var(--primary-color) !important;
        background: rgba(79, 70, 229, 0.10);
        transform: translateY(-2px);
    }

.btn-light {
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
}

    .btn-light:hover {
        color: #0f172a !important;
        background: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(2, 6, 23, 0.18);
    }

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.85) !important;
    color: #fff !important;
    background: transparent;
}

    .btn-outline-light:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.14);
        transform: translateY(-2px);
    }

/* Badges */
.badge {
    font-weight: 800;
    padding: 0.55em 0.85em;
}

/* API boxes */
.api-box {
    border: 1px solid rgba(226, 232, 240, 0.90);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    overflow: hidden;
}

.api-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.68);
}

.api-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.85rem;
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary-color);
}

.api-muted {
    font-size: 0.85rem;
    color: #64748b;
}

.api-pre {
    margin: 0;
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.35;
    overflow: auto;
    background: transparent;
}

/* SEO text */
.seo-text {
    background: rgba(255,255,255,0.92);
}

/* CTA */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #ec4899 100%);
}

/* ✅ Footer FIX */
footer {
    background: #0b1220;
    color: #e5e7eb;
    padding: 3rem 0;
    margin-top: 3rem;
}

    footer p,
    footer .text-muted {
        color: #cbd5e1 !important;
    }

    footer h3,
    footer h5 {
        color: #ffffff !important;
    }

.footer-link {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: block;
    margin-bottom: 0.55rem;
}

    .footer-link:hover {
        color: #ffffff !important;
        transform: translateX(2px);
    }

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
}

    .social-icon:hover {
        background: var(--primary-color);
        transform: translateY(-3px);
    }

.copyright {
    border-top: 1px solid rgba(148, 163, 184, 0.20);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(79,70,229,0.92);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 34px rgba(2,6,23,0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.2s ease;
    z-index: 2000;
}

    .back-to-top.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 9999;
}

    .skip-link:focus {
        left: 10px;
    }

/* Responsive */
@media (max-width: 768px) {
    .site-main {
        padding-top: 78px;
    }

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

    h1 {
        font-size: 2.35rem;
    }

    .pricing-head-content {
        justify-content: center;
        text-align: left;
    }
}

.social-icon,
.social-icon:hover,
.social-icon:focus,
.social-icon:active {
    text-decoration: none !important;
}

    .social-icon i {
        text-decoration: none !important;
    }

.bg-danger-soft {
    background: rgba(239, 68, 68, 0.14);
}

/* money must never wrap */
.money {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ✅ stable layout: text left, icon right */
.stat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    align-items: start;
    gap: 12px;
}

.stat-left {
    min-width: 0;
}

    .stat-left p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.stat-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.discount-lead {
    color: #fff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.personal-terms-section {
    position: relative;
}

.personal-terms-card {
    border-radius: 24px;
    overflow: hidden;
}

.personal-terms-side {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 35%), radial-gradient(circle at bottom right, rgba(255,255,255,0.10), transparent 30%), linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #ec4899 100%);
}

.personal-terms-lead {
    color: rgba(255,255,255,0.96);
    font-size: 1.08rem;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0,0,0,0.14);
}

.terms-feature-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .terms-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 34px rgba(2, 6, 23, 0.10);
        border-color: rgba(79, 70, 229, 0.28);
    }

.terms-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.personal-terms-note {
    border-radius: 16px;
    background: #f8fafc;
}