:root {
    --bg: #f3f4f6;
    --bg-dark: #0f172a;
    --white: #ffffff;
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --primary-dark: #1d4ed8;
    --accent: #4f46e5;
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --green: #16a34a;
    --danger: #ef4444;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.12);
    --container-width: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    color: #e5e7eb;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.04em;
    color: #e5e7eb;
}

.nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.nav a {
    color: #e5e7eb;
    opacity: 0.8;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.nav a:hover {
    opacity: 1;
    color: #ffffff;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--accent) 100%);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary-soft);
    background-color: #eff6ff;
}

.btn-outline:hover {
    background-color: #dbeafe;
}

.btn-ghost {
    background: transparent;
    color: #e5e7eb;
    border-color: transparent;
}

.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.25);
}

.btn-lg {
    padding: 10px 22px;
    font-size: 15px;
}

.w-full {
    width: 100%;
}

/* HERO */

.hero {
    padding: 64px 0 40px;
    background: radial-gradient(circle at top left, #1d4ed8, #0f172a 60%);
    color: #e5e7eb;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #f9fafb;
}

.hero-subtitle {
    font-size: 17px;
    color: #e5e7eb;
    max-width: 520px;
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #cbd5f5;
}

.hero-meta span {
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

/* HERO PANEL */

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.panel-card {
    width: 100%;
    max-width: 360px;
    background: #020617;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px 20px 22px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #e5e7eb;
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #cbd5f5;
    padding: 6px 0;
}

.panel-row strong {
    color: #e5e7eb;
    font-weight: 600;
}

.text-green {
    color: var(--green);
}

.panel-chart-placeholder {
    margin-top: 16px;
    padding: 26px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(56, 189, 248, 0.25));
    color: #e5e7eb;
    font-size: 13px;
    text-align: center;
}

/* STATS */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.stat-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #cbd5f5;
}

/* SECTIONS */

.section {
    padding: 72px 0;
    background-color: #f9fafb;
}

.section-gray {
    background-color: #f3f4f6;
}

.section-accent {
    background: radial-gradient(circle at top right, #2563eb, #0f172a 60%);
    color: #e5e7eb;
}

.section-title {
    font-size: 28px;
    margin: 0 0 16px;
    text-align: center;
}

.section-title-light {
    color: #f9fafb;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    text-align: center;
}

/* CARDS */

.cards-3,
.cards-4 {
    display: grid;
    gap: 20px;
}

.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 18px 18px 20px;
    box-shadow: var(--shadow-sm);
}

.card-transparent {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: none;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.card-icon-danger {
    color: var(--danger);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* STEPS */

.steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 24px;
}

.step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: flex-start;
}

.step-reverse {
    grid-template-columns: auto minmax(0, 1fr);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-top: 4px;
}

.step-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.step-content p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.step-content ul {
    margin: 0;
    padding-left: 18px;
}

.step-content li {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}

/* CASES */

.case-growth {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.case-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* PRICING */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.pricing-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 22px 20px 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.pricing-card-popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.pricing-name {
    font-size: 18px;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 14px;
}

.pricing-features li {
    margin-bottom: 6px;
}

/* FAQ */

.faq {
    max-width: 760px;
    margin: 0 auto;
    margin-top: 12px;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 12px 14px;
    background: #ffffff;
    margin-bottom: 10px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* CTA SECTION */

.section-cta {
    background: radial-gradient(circle at top left, #2563eb, #111827 65%);
    color: #e5e7eb;
}

.cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: 28px;
    margin: 0 0 12px;
    color: #f9fafb;
}

.cta-inner p {
    font-size: 15px;
    color: #e5e7eb;
    margin-bottom: 18px;
}

.cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.cta-form input {
    min-width: 0;
    flex: 1 1 220px;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 14px;
}

.cta-meta {
    font-size: 13px;
    color: #cbd5f5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* FOOTER */

.footer {
    background: #020617;
    color: #9ca3af;
    padding: 26px 0 32px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 13px;
}

.footer-left p {
    max-width: 320px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: #e5e7eb;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    flex-basis: 100%;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-panel {
        justify-content: flex-start;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        gap: 8px;
    }

    .nav {
        display: none;
        /* для простоты, можно добавить бургер позже */
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 56px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .cards-3,
    .cards-4,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .step {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .header-actions {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }
}

/* === ИКОНКИ === */

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.icon-circle-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.icon-circle-light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === PRICING FEATURES === */

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-main);
}

/* === CASE META === */

.case-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* === CTA META === */

.cta-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    font-size: 13px;
    color: #cbd5f5;
}

.cta-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}