:root {
    --bg: #02040a;
    --bg-elevated: #070a14;
    --bg-card: #090d18;
    --accent: #7f5dff;
    --accent-soft: rgba(127, 93, 255, 0.18);
    --text: #f5f5f7;
    --text-muted: #9da3b8;
    --border-subtle: #181c2a;
    --danger: #ff5c7a;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.55);
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.6);
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.22s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: radial-gradient(circle at top, #11152a 0, #02040a 48%, #000 100%);
    color: var(--text);
    min-height: 100vh;
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(2, 4, 10, 0.9), rgba(2, 4, 10, 0.6), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 32px;
    width: 32px;
    border-radius: 999px;
    object-fit: contain;
    background: radial-gradient(circle at 30% 0, #ffffff, #7f5dff 40%, #02040a 100%);
    padding: 2px;
}

.brand-name {
    letter-spacing: 0.12em;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--danger));
    border-radius: 999px;
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 100%;
}

/* Burger */

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform var(--transition-fast), opacity var(--transition-fast), width var(--transition-fast);
}

.burger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 18px;
}

/* Mobile nav */

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 8px 18px 18px;
    background: rgba(2, 4, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 10px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.22s ease-out, opacity 0.18s ease-out;
}

/* когда открыто */
.mobile-nav.open {
    max-height: 200px; /* можно увеличить, если добавишь больше пунктов */
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav .nav-link {
    padding: 4px 0;
}

/* Hero */

.hero {
    padding: 48px 0 32px;
}

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

.hero-text h1 {
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 15px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.btn {
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition-med), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, #9b6dff, #b45cff);
    color: #fff;
    box-shadow: 0 12px 40px rgba(127, 93, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 50px rgba(127, 93, 255, 0.5);
}

.btn-ghost {
    background: rgba(7, 10, 20, 0.6);
    border-color: rgba(127, 93, 255, 0.4);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(13, 18, 34, 0.9);
    color: var(--text);
}

.btn-wide {
    padding-inline: 26px;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 10, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--text-muted);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #36d977;
    box-shadow: 0 0 0 6px rgba(54, 217, 119, 0.2);
}

/* Hero card */

.hero-card {
    background: radial-gradient(circle at top, #141a33 0, #070a14 42%, #02040a 100%);
    border-radius: var(--radius-xl);
    padding: 18px 18px 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 230px;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.hero-card-title {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
}

.hero-card-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(54, 217, 119, 0.12);
    color: #6df8a3;
}

.hero-card-body {
    padding: 10px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.hero-row .label {
    color: var(--text-muted);
}

.hero-row .value {
    color: var(--text);
}

.hero-card-footer {
    text-align: center;
    font-size: 13px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--accent);
    border-radius: 999px;
    background: rgba(127, 93, 255, 0.06);
    margin-top: 2px;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-card-footer:hover {
    background: rgba(127, 93, 255, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Sections */

.section {
    padding: 40px 0;
}

.section h2 {
    font-size: 22px;
    margin: 0 0 10px;
}

.section-subtitle {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 540px;
}

/* Steps */

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

.step {
    background: linear-gradient(150deg, rgba(127, 93, 255, 0.06), rgba(2, 4, 10, 0.96));
    border-radius: var(--radius-lg);
    padding: 14px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

.step h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.step p {
    margin: 0;
    color: var(--text-muted);
}

.step-number {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(127, 93, 255, 0.14);
    color: #d5ccff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* Features */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    background: rgba(3, 5, 12, 0.96);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 14px 14px;
    font-size: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(127, 93, 255, 0.8);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.9);
    background: radial-gradient(circle at top, rgba(127, 93, 255, 0.16), rgba(3, 5, 12, 0.98));
}

/* FAQ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.faq-item {
    border-radius: var(--radius-lg);
    background: rgba(3, 5, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: none;
    color: var(--text);
    text-align: left;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-icon {
    margin-left: 12px;
    font-size: 16px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    font-size: 13px;
    color: var(--text-muted);
    transition: max-height var(--transition-med), padding-bottom var(--transition-med);
}

.faq-item.open .faq-answer {
    max-height: 160px;
    padding-bottom: 10px;
}

/* Misc */

.center {
    text-align: center;
    margin-top: 8px;
}

.faq-cta {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Footer */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0 20px;
    background: rgba(2, 4, 10, 0.98);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-brand {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Pricing */

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

.pricing-card {
    background: rgba(3, 5, 12, 0.96);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 14px 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.pricing-card-hot {
    border-color: rgba(127, 93, 255, 0.9);
    box-shadow: 0 22px 46px rgba(127, 93, 255, 0.4);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.9);
    border-color: rgba(127, 93, 255, 0.6);
    background: radial-gradient(circle at top, rgba(127, 93, 255, 0.16), rgba(3, 5, 12, 0.98));
}

.pricing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pricing-name {
    font-size: 15px;
    font-weight: 500;
}

.pricing-badge {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(127, 93, 255, 0.16);
    color: #d5ccff;
    white-space: nowrap;
}

.badge-hot {
    background: rgba(255, 120, 180, 0.16);
    color: #ffc3e2;
}

.pricing-price {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.pricing-price .rub {
    font-size: 18px;
    opacity: 0.8;
    margin-left: 2px;
}

.pricing-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 10px;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-list li::before {
    content: "•";
    margin-right: 6px;
    color: var(--accent);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.pricing-free-note {
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 10, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Referral */

.referral-card {
    margin-top: 18px;
    background: rgba(3, 5, 12, 0.96);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(127, 93, 255, 0.4);
    padding: 18px 16px 16px;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.85);
    font-size: 14px;
}

.referral-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.referral-card p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.referral-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.referral-list li::before {
    content: "→";
    margin-right: 6px;
    color: var(--accent);
}

.btn-referral {
    border-color: rgba(127, 93, 255, 0.6);
    width: 100%;
    justify-content: center;
}

.ai-section {
    padding-top: 72px;
    padding-bottom: 72px;
    position: relative;
}

.ai-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(127, 93, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.ai-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(127, 93, 255, 0.2), rgba(180, 92, 255, 0.15));
    border: 1px solid rgba(127, 93, 255, 0.3);
    color: #c4b5ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(127, 93, 255, 0.2);
}

.ai-section h2 {
    font-size: 28px;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #fff 30%, #c4b5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-subtitle {
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 640px;
}

.ai-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.ai-card {
    background: linear-gradient(160deg, rgba(127, 93, 255, 0.08) 0%, rgba(9, 13, 24, 0.95) 50%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(127, 93, 255, 0.15);
    padding: 20px 20px;
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ai-card:hover {
    transform: translateY(-3px);
    border-color: rgba(127, 93, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.ai-card h3 {
    font-size: 15px;
    margin: 0 0 8px;
    color: #e8e4ff;
}

.ai-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.ai-cta {
    margin-top: 8px;
    padding: 12px 28px;
    font-size: 15px;
}

.ai-caption {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* сетка на десктопе */
@media (min-width: 768px) {
    .ai-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ai-section h2 {
        font-size: 32px;
    }
}

/* Responsive */

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

    .hero-card {
        order: -1;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .hero {
        padding-top: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .hero-card-footer {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
