html, body {
    overflow-x: hidden;
    max-width: 100%;
}


:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #7c3aed;
    --accent: #6366f1;
    --text: #1e1b4b;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
    --shadow-lg: 0 12px 48px rgba(79, 70, 229, 0.12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.logo__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav__link {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav__link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header__cta {
    flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.btn--lg { padding: 14px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }

.section__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.section__sub {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Grid ---------- */
.grid {
    display: grid;
    gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Card ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.25s;
}

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

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 32px 24px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -18px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 { font-size: 17px; margin: 8px 0 10px; }
.step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Pricing ---------- */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.plan {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan--featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.plan__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan__name { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.plan__desc { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

.plan__price {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.plan__price small {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.plan__period { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }

.plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.plan__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 15px;
    color: var(--text);
}

.plan__features i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.faq__q {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
}

.faq__q i { color: var(--primary); transition: transform 0.2s; }
.faq__item.open .faq__q i { transform: rotate(180deg); }

.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 15px;
}

.faq__item.open .faq__a {
    max-height: 400px;
    padding: 0 24px 20px;
}

/* ---------- Reviews ---------- */
.review {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.review__stars { color: #f59e0b; margin-bottom: 14px; font-size: 15px; }
.review__text { font-size: 15px; margin: 0 0 20px; color: var(--text); }
.review__author { font-weight: 700; font-size: 15px; }
.review__company { color: var(--text-muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
    background: #1e1b4b;
    color: #c7d2fe;
    padding: 64px 0 32px;
    margin-top: 80px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer .logo { color: #fff; }
.footer__desc { font-size: 14px; margin: 16px 0 0; max-width: 300px; }

.footer h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 18px;
    font-weight: 700;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }

.footer a {
    color: #c7d2fe;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer a:hover { color: #fff; }

.footer__bottom {
    border-top: 1px solid rgba(199, 210, 254, 0.15);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #a5b4fc;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-message { margin-top: 12px; font-size: 14px; }
.form-message.ok { color: #059669; }
.form-message.error { color: #dc2626; }

/* ---------- Page (внутренние) ---------- */
.page {
    padding: 60px 0 80px;
    max-width: 820px;
    margin: 0 auto;
}

.page h1 { font-size: 36px; margin: 0 0 24px; font-weight: 800; }
.page h2 { font-size: 24px; margin: 32px 0 12px; }
.page p, .page li { color: var(--text-muted); font-size: 16px; }
.page ul { padding-left: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
    .nav { display: none; }
    .grid--3, .grid--4, .pricing, .steps { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 34px; }
    .section h2 { font-size: 28px; }
    .plan--featured { transform: none; }
}

/* ---------- Problem cards ---------- */
.card--problem {
    border-color: #fde68a;
    background: #fffbeb;
}

.card--problem:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12);
}

.card__icon--warn {
    background: #fef3c7;
    color: #d97706;
}

/* ---------- Solution block ---------- */
.solution {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.solution::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.solution__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.solution__title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--text);
}

.solution__sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 40px;
}

.solution__features {
    margin-bottom: 40px;
    text-align: left;
}

.solution__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
}

.solution__item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.solution__item i {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.solution__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(30, 27, 75, 0.15);
    padding: 20px 48px 20px 24px;
    animation: cookie-slide-up 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.cookie-banner__close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}

.cookie-banner__text i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-banner__text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@keyframes cookie-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 20px 44px 20px 16px;
    }
    .cookie-banner__inner { flex-direction: column; align-items: stretch; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Card link ---------- */
.card--link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card--link h3 {
    transition: color 0.2s;
}

.card--link:hover h3 {
    color: var(--primary);
}

.card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.card__more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card--link:hover .card__more i {
    transform: translateX(3px);
    transition: transform 0.2s;
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    max-width: 560px;
    margin: 0 auto;
}

.empty-state__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}

.empty-state__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}

.empty-state__text {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.empty-state__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Review footer ---------- */
.review__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.review__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ---------- CTA ---------- */
.cta {
    text-align: center;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 40px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta__title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--text);
}

.cta__sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .empty-state { padding: 56px 20px; }
    .empty-state__title { font-size: 20px; }
    .cta { padding: 40px 24px; }
    .cta__title { font-size: 24px; }
    .cta__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 400px;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: toast-in 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.toast--success { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.toast--error   { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }

.toast i { font-size: 20px; flex-shrink: 0; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 640px) {
    .toast-container { top: 10px; right: 10px; left: 10px; }
    .toast { min-width: 0; max-width: 100%; }
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 968px) {
    .burger { display: flex; }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }
    .nav.active { right: 0; }
    .nav__link {
        padding: 14px 16px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }
    .nav__link:last-child { border-bottom: none; }
}

@media (max-width: 968px) {
    .page {
        padding: 40px 20px 60px;
        max-width: 100%;
    }
    .page h1 { font-size: 26px; line-height: 1.25; }
    .page h2 { font-size: 20px; }
    .page p, .page li { font-size: 15px; }
    .page ul { padding-left: 20px; }
}

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