/* ===== Tokens ===== */
:root {
    --c-bg: #fff;
    --c-bg-soft: #f6f5fa;
    --c-bg-dark: #0e0a26;
    --c-bg-dark-2: #1a1745;
    --c-lavender: #b399ff;
    --c-magenta: #e23dad;
    --c-text: #0a0817;
    --c-text-muted: #5e5d72;
    --c-text-on-dark: #fff;
    --c-muted-on-dark: #9da3b4;
    --c-primary: #7058ef;
    --c-primary-light: #b4a4ff;
    --c-primary-glow: rgba(112, 88, 239, 0.4);
    --c-border: #e8e6f0;
    --c-border-dark: rgba(255, 255, 255, 0.08);
    --c-success: #00b67a;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --max-w: 1240px;
    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.5;
    font-feature-settings: 'ss01', 'cv11';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
    text-align: center;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 8px 32px -8px var(--c-primary-glow), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.btn-primary:hover { background: #5e45db; box-shadow: 0 12px 40px -8px var(--c-primary-glow); }
.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg-soft); }
.btn-ghost--on-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-ghost--on-dark:hover { background: rgba(255, 255, 255, 0.06); }
.btn--arrow::after {
    content: "→";
    display: inline-block;
    transition: transform 0.15s;
}
.btn--arrow:hover::after { transform: translateX(4px); }

/* ===== Accents ===== */
.italic {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--c-primary);
    letter-spacing: -0.01em;
}
.italic--light { color: var(--c-primary-light); }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 12px;
}
.eyebrow--on-dark { color: var(--c-muted-on-dark); }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 24px;
}
.header__cta .btn { padding: 13px 26px; font-size: 15px; }
.header__logo { height: 28px; }
.header__nav {
    display: flex;
    gap: 32px;
    flex: 1;
    margin-left: 40px;
}
.header__nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--c-text);
    transition: color 0.15s;
}
.header__nav a:hover { color: var(--c-primary); }
.lang-switcher {
    display: inline-flex;
    align-items: center;
}
.lang-switcher__select {
    min-width: 116px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--c-text);
    font: inherit;
}
.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
}
.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    margin: 5px 0;
    transition: 0.2s;
}

/* ===== Hero (dark) ===== */
.hero {
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, rgba(180, 164, 255, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 20% 90%, rgba(226, 61, 173, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139, 125, 238, 0.28) 0%, transparent 60%),
        linear-gradient(180deg, #1d1648 0%, #0f0b30 50%, #0e0a26 100%);
    color: var(--c-text-on-dark);
    margin-top: -60px;
    padding: 120px 0 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.hero__inner { position: relative; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--c-border-dark);
    font-size: 13px;
    color: var(--c-muted-on-dark);
    margin-bottom: 28px;
}
.hero__badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 8px var(--c-success);
}
.hero h1 {
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 0 0 16px;
    max-width: 880px;
    margin-inline: auto;
}
.hero h1 .italic { font-size: 1.05em; }
.hero p {
    font-size: clamp(16px, 1.35vw, 20px);
    color: rgba(255, 255, 255, 0.78);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.45;
}
.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero marketplaces strip (inside hero, between cta and composition) */
.hero__marketplaces {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 72px);
    flex-wrap: wrap;
    margin-top: 40px;
}
.hero__marketplaces img {
    height: clamp(18px, 1.9vw, 26px);
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}
.hero__marketplaces img[src*="megamarket"],
.hero__marketplaces img[src*="kaspi"] { opacity: 0.28; }
.hero__marketplaces img:hover { opacity: 0.8; }
.hero__marketplaces img[src*="megamarket"]:hover,
.hero__marketplaces img[src*="kaspi"]:hover { opacity: 0.45; }
.hero__marketplace-text {
    font-size: clamp(13px, 1.5vw, 20px);
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.6;
    text-transform: uppercase;
}

/* Hero composition: fanned product card mockups */
.hero__composition {
    margin-top: 12px;
    position: relative;
    height: 280px;
    perspective: 1200px;
}
.hero__composition::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(112, 88, 239, 0.5) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}
.hero__card {
    position: absolute;
    bottom: -80px;
    left: 50%;
    width: 230px;
    aspect-ratio: 3/4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --hx: 0px;    /* доп. горизонтальный сдвиг при hover (наружу для средних карт) */
    --lift: 56px; /* высота подъёма при hover */
    transform: translateX(var(--tx)) translateY(var(--ty)) rotate(var(--rot));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    will-change: transform;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
/* симметричный веер из 5 карточек */
.hero__card:nth-child(1) { --tx: -405px; --ty: 40px;  --rot: -12deg; z-index: 3; }
.hero__card:nth-child(2) { --tx: -260px; --ty: 0;     --rot: -6deg;  z-index: 4; --hx: -50px; --lift: 62px; }
.hero__card:nth-child(3) { --tx: -115px; --ty: -25px; --rot: 0deg;   z-index: 5; }
.hero__card:nth-child(4) { --tx: 30px;   --ty: 0;     --rot: 6deg;   z-index: 4; --hx: 50px;  --lift: 62px; }
.hero__card:nth-child(5) { --tx: 175px;  --ty: 40px;  --rot: 12deg;  z-index: 3; }

/* hover (только на устройствах с настоящим курсором): выпрямить и
   вытащить карточку на передний план */
@media (hover: hover) and (pointer: fine) {
    .hero__card:hover {
        transform: translateX(var(--tx)) translateX(var(--hx)) translateY(var(--ty)) translateY(calc(-1 * var(--lift))) rotate(var(--rot)) scale(1.05);
        z-index: 10;
        box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14);
    }
}

/* ===== Marketplaces strip ===== */
.marketplaces {
    background: var(--c-bg-dark);
    padding: 56px 0 88px;
}
.marketplaces__title {
    text-align: center;
    color: var(--c-muted-on-dark);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 28px;
    opacity: 0.6;
}
.marketplaces__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 96px;
    flex-wrap: wrap;
}
.marketplaces__logos img {
    height: 36px;
    opacity: 0.25;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}
.marketplaces__logos img:hover { opacity: 0.5; }

/* ===== Section base ===== */
.section { padding: 96px 0; }
.section--alt {
    background:
        radial-gradient(ellipse 50% 35% at 85% 10%, rgba(180, 164, 255, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(226, 61, 173, 0.08) 0%, transparent 70%),
        var(--c-bg-soft);
}
.section--dark {
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
}
.section__head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}
.section__head h2 {
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 12px;
}
.section__head p {
    font-size: 16px;
    color: var(--c-text-muted);
    margin: 0;
}
.section__head p .italic { font-size: 1.2em; line-height: 1; }
.section--dark .section__head p { color: var(--c-muted-on-dark); }

/* ===== Examples grid ===== */
.examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.example {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.example__title {
    padding: 24px 24px 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.example__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px 24px 24px;
}
.example__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.example__col img,
.example__col iframe {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 14px;
    background: var(--c-bg-soft);
    border: 0;
    display: block;
}
.example__label {
    align-self: flex-start;
    padding: 4px 12px;
    background: var(--c-bg-soft);
    color: var(--c-text);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.example__label--after {
    background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-magenta) 100%);
    color: #fff;
}

/* Wide video block — dark gradient variant */
.example--wide {
    grid-column: 1 / -1;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(180, 164, 255, 0.18) 0%, transparent 70%),
        linear-gradient(135deg, #1d1648 0%, #0f0b30 100%);
    border-color: transparent;
    color: #fff;
}
.example--wide .example__title { color: #fff; }
.example--wide .example__col img,
.example--wide .example__col iframe { background: rgba(255, 255, 255, 0.04); }
.example--wide .example__label { background: rgba(255, 255, 255, 0.12); color: #fff; }
.example--wide .example__label--after { background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-magenta) 100%); color: #fff; }
.example__pair--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Features ===== */
.features-row {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}
.features-row--2 { grid-template-columns: repeat(2, 1fr); }
.features-row--4 { grid-template-columns: repeat(2, 1fr); }

.feature {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}
.feature__img {
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 22px;
}
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    font-weight: 700;
}
.feature p {
    color: var(--c-text-muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

/* Hero feature card (full-width with big image at top) */
.feature--hero {
    padding: 32px;
}

/* Accent feature card (full-width, lavender tint, text + demo) */
.feature--accent {
    padding: 40px 48px;
    margin-top: 20px;
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(180, 164, 255, 0.32) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(226, 61, 173, 0.12) 0%, transparent 60%),
        linear-gradient(135deg, #f4eeff 0%, #faf6ff 100%);
    border-color: rgba(112, 88, 239, 0.18);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.feature--accent h3 {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 20px;
}
.feature--accent .feature__steps {
    border-top-color: rgba(112, 88, 239, 0.18);
}
.feature__demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.feature--hero .feature__img--wide {
    aspect-ratio: 24/10;
    margin-bottom: 32px;
}
.feature--hero h3 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 14px;
}
.feature__lead {
    font-size: 17px;
    color: var(--c-text);
    margin: 0 0 28px;
    max-width: 720px;
}
.feature__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
}
.feature__steps h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin: 0 0 12px;
}
.feature__steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.feature__steps ol li {
    counter-increment: step;
    position: relative;
    padding-left: 32px;
    color: var(--c-text-muted);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 8px;
}
.feature__steps ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-bg-soft);
    color: var(--c-primary);
    font-weight: 700;
    font-size: 12px;
    display: grid;
    place-items: center;
}
.feature__steps p {
    font-size: 15px;
    line-height: 1.55;
}

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}
.step__img {
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
    aspect-ratio: 16/13;
    overflow: hidden;
    margin-bottom: 22px;
}
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__label {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--c-primary);
    margin-right: 4px;
}
.step h3 {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 700;
}
.step p {
    color: var(--c-text-muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

/* Step 4: outcome card */
.step-result {
    margin-top: 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.step-result__body .step__label {
    font-size: 22px;
    display: inline-block;
    margin-bottom: 8px;
}
.step-result__body h3 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 24px;
    font-weight: 700;
}
.step-result__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.step-result__list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    color: var(--c-text-muted);
    font-size: 15px;
    line-height: 1.55;
}
.step-result__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-primary);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
}
.step-result__list li strong {
    color: var(--c-text);
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}

.step-result__compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.step-result__col {
    display: flex;
    flex-direction: column;
}
.step-result__caption {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: 10px;
}
.step-result__caption--after { color: var(--c-primary); }
.step-result__img {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--c-bg-soft);
}
.step-result__img img { width: 100%; height: 100%; object-fit: cover; }
.step-result__metric {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    padding: 8px 12px;
    background: var(--c-bg-soft);
    border-radius: 10px;
}
.step-result__metric--after {
    background: linear-gradient(135deg, var(--c-primary), var(--c-magenta));
    color: #fff;
}

/* ===== Pricing ===== */
.pricing-subhead {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    line-height: 1.25;
}
/* Cost breakdown */
.pricing-cost {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cost-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.cost-card__img {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cost-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cost-card__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.cost-card__price {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--c-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}
.cost-card__price--row {
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cost-card__desc {
    color: var(--c-text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.pricing-note {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 15px;
    color: var(--c-text);
    line-height: 1.55;
}

/* CTA banner with gradient */
.pricing-banner {
    background:
        radial-gradient(ellipse 60% 80% at 20% 0%, rgba(139, 125, 238, 0.9), transparent),
        radial-gradient(ellipse 60% 80% at 80% 100%, rgba(226, 61, 173, 0.7), transparent),
        linear-gradient(135deg, #8b7dee 0%, #b399ff 50%, #c5a8ff 100%);
    color: #fff;
    padding: 56px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 24px 60px -24px rgba(139, 125, 238, 0.5);
    margin: 48px 0 64px;
}
.pricing-banner__amount {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.pricing-banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto 24px;
}
.pricing-banner .btn-primary { background: #fff; color: var(--c-primary); }
.pricing-banner .btn-primary:hover { background: var(--c-bg-soft); }

/* Flow (how charging works) */
.pricing-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.flow-item {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.flow-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(124, 91, 248, 0.12);
    color: var(--c-primary);
}
.flow-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--c-text);
}

/* ===== FAQ + CTA (dark) ===== */
.faq-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
.section__head--left {
    text-align: left;
    max-width: none;
    margin: 0 0 24px;
}
@media (min-width: 1024px) {
    .faq-cta { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; }
}
.faq {
    margin: 0;
}
.faq__item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border-dark);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin-bottom: 12px;
    transition: border-color 0.15s, background 0.15s;
}
.faq__item:hover { border-color: rgba(255,255,255,0.15); }
.faq__item[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}
.faq__item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    font-size: 24px;
    color: var(--c-primary-light);
    flex-shrink: 0;
    transition: transform 0.2s;
    font-weight: 300;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
    margin: 16px 0 0;
    color: var(--c-muted-on-dark);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Final CTA ===== */
.cta-final {
    margin: 64px 24px;
    background:
        radial-gradient(ellipse 70% 80% at 20% 20%, rgba(139, 125, 238, 0.9), transparent),
        radial-gradient(ellipse 70% 80% at 80% 80%, rgba(226, 61, 173, 0.6), transparent),
        linear-gradient(135deg, #8b7dee 0%, #b399ff 50%, #c5a8ff 100%);
    color: #fff;
    border-radius: 32px;
    padding: 96px 32px;
    text-align: center;
    box-shadow: 0 40px 80px -40px rgba(139, 125, 238, 0.6);
    position: relative;
    overflow: hidden;
    max-width: calc(var(--max-w) - 48px);
    margin-inline: auto;
}
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 300px at 30% 30%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(circle 250px at 70% 70%, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cta-final p {
    font-size: 18px;
    opacity: 0.92;
    max-width: 540px;
    margin: 0 auto 32px;
}
.cta-final__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-final .btn-primary { background: #fff; color: var(--c-primary); }
.cta-final .btn-primary:hover { background: var(--c-bg-soft); }
.cta-final .btn-ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.cta-final .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.cta-final--compact {
    margin: 0;
    padding: 36px 32px;
    border-radius: 24px;
    max-width: none;
}
.cta-final--compact h2 { font-size: 26px; margin-bottom: 12px; }
.cta-final--compact p { font-size: 15px; margin-bottom: 24px; max-width: none; }
.cta-final--compact .cta-final__buttons { flex-direction: column; gap: 10px; }
.cta-final--compact .btn { width: 100%; justify-content: center; }
@media (min-width: 1024px) {
    .cta-final--compact { position: sticky; top: 92px; }
}

/* CTA strip — full-width separator between FAQ (dark) and footer (dark) */
.cta-strip {
    background:
        radial-gradient(ellipse 60% 80% at 20% 20%, rgba(139, 125, 238, 0.9), transparent),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(226, 61, 173, 0.55), transparent),
        linear-gradient(135deg, #8b7dee 0%, #b399ff 50%, #c5a8ff 100%);
    color: #fff;
    padding: 88px 24px;
    text-align: center;
    position: relative;
}
.cta-strip h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 14px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cta-strip p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 540px;
    margin: 0 auto 28px;
}
.cta-strip .btn-primary { background: #fff; color: var(--c-primary); }
.cta-strip .btn-primary:hover { background: var(--c-bg-soft); }
@media (max-width: 768px) {
    .cta-strip { padding: 64px 20px; }
    .cta-strip p { font-size: 16px; margin-bottom: 24px; }
}

/* ===== Footer ===== */
.footer {
    background: var(--c-bg-dark);
    color: var(--c-muted-on-dark);
    padding: 80px 0 40px;
    font-size: 14px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}
.footer__brand { max-width: 320px; }
.footer__brand img { height: 28px; margin-bottom: 16px; }
.footer__brand p { color: var(--c-muted-on-dark); margin: 0; line-height: 1.6; }
.footer h4 {
    color: #fff;
    font-size: 12px;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; }
.footer a { color: var(--c-muted-on-dark); transition: color 0.15s; }
.footer a:hover { color: #fff; }
.footer__bottom {
    border-top: 1px solid var(--c-border-dark);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: #6b6f7d;
}
.footer__bottom a { color: #6b6f7d; }

/* ===== Lightbox ===== */
.example__col img { cursor: zoom-in; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 64px;
}
.lightbox::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(8, 6, 24, 0.92);
    backdrop-filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    user-select: none;
}
.lightbox__close,
.lightbox__nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
    transition: background 0.15s;
    z-index: 2;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
}
.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 32px;
    padding-bottom: 4px;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}
@media (max-width: 768px) {
    .lightbox { padding: 24px 16px; }
    .lightbox__close { top: 16px; right: 16px; width: 40px; height: 40px; }
    .lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
    .lightbox__nav--prev { left: 12px; }
    .lightbox__nav--next { right: 12px; }
}

/* ===== Floating widgets ===== */
.floating-widgets {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 50;
}
.floating-widget {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(112, 88, 239, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.floating-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(112, 88, 239, 0.45), 0 6px 14px rgba(0, 0, 0, 0.14);
}
.floating-widget img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}
.floating-widget--scroll {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}
.floating-widget--scroll.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .floating-widgets { right: 16px; bottom: 16px; gap: 10px; }
    .floating-widget { width: 48px; height: 48px; }
}

/* ===== Modal ===== */
body.is-modal-open {
    position: fixed;
    width: 100%;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    padding: 40px 16px;
    overflow-y: auto;
}
.modal::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(14, 12, 30, 0.75);
    backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}
.modal.is-open { display: block; }
.modal__panel {
    background: #fff;
    border-radius: var(--radius);
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 48px 48px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
}
.modal__close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--c-text);
    display: grid;
    place-items: center;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.modal__close:hover { background: var(--c-border); color: var(--c-text); }
.modal__body h2 {
    font-size: 28px;
    margin: 0 0 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.modal__body .legal-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--c-text-muted);
}
.modal__body .legal-text h2 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--c-text);
    margin: 0 0 8px;
}
.modal__body .legal-text h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-text);
    margin: 28px 0 10px;
    letter-spacing: -0.01em;
}
.modal__body .legal-text h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--c-text);
    margin: 18px 0 6px;
}
.modal__body .legal-text p { margin: 0 0 12px; }
.modal__body .legal-text ul {
    margin: 0 0 14px;
    padding-left: 0;
    list-style: none;
}
.modal__body .legal-text li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}
.modal__body .legal-text li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-primary);
}
.modal__body .legal-text a {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.modal__body .legal-text strong { color: var(--c-text); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .feature--hero .feature__img--wide { aspect-ratio: 20/10; }
    .feature--accent { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .step__img { aspect-ratio: 24/10; }
    .step-result { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .pricing-cost { grid-template-columns: 1fr; gap: 16px; }
    .pricing-flow { grid-template-columns: 1fr; gap: 12px; }
    .footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}
@media (max-width: 1024px) {
    .hero__composition { height: 260px; }
    .hero__card { width: 180px; }
    .hero__card:nth-child(1) { --tx: -320px; --ty: 35px;  --rot: -12deg; }
    .hero__card:nth-child(2) { --tx: -205px; --ty: 0;     --rot: -6deg; }
    .hero__card:nth-child(3) { --tx: -90px;  --ty: -20px; --rot: 0deg; }
    .hero__card:nth-child(4) { --tx: 25px;   --ty: 0;     --rot: 6deg; }
    .hero__card:nth-child(5) { --tx: 140px;  --ty: 35px;  --rot: 12deg; }
}
@media (max-width: 768px) {
    .hero__marketplaces { margin-top: 32px; flex-wrap: nowrap; gap: 14px; }
    .hero__marketplaces img { height: 13px; }
    .hero__marketplace-text { font-size: 10px; }
    .hero__composition { height: 250px; margin-top: 20px; }
    .hero__card { width: 110px; border-radius: 12px; bottom: -30px; }
    /* 5 карточек симметрично (hover на мобилке не применяется) */
    .hero__card:nth-child(1) { transform: translateX(-199px) translateY(12px)  rotate(-12deg); }
    .hero__card:nth-child(2) { transform: translateX(-127px) translateY(2px)   rotate(-6deg); }
    .hero__card:nth-child(3) { transform: translateX(-55px)  translateY(-16px) rotate(0deg); }
    .hero__card:nth-child(4) { transform: translateX(17px)   translateY(2px)   rotate(6deg); }
    .hero__card:nth-child(5) { transform: translateX(89px)   translateY(12px)  rotate(12deg); }

    .header__nav { display: none; }
    .header__nav--open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        padding: 24px;
        border-bottom: 1px solid var(--c-border);
        gap: 4px;
        margin: 0;
    }
    .header__nav--open a { padding: 12px 0; }
    .header__burger { display: block; }
    .header__cta .btn { padding: 12px 20px; font-size: 14px; }

    .hero { padding: 120px 0 0; }
    .section { padding: 72px 0; }
    .section__head { margin-bottom: 40px; }
    .marketplaces__logos { gap: 32px; }
    .marketplaces__logos img { height: 22px; }

    .examples { grid-template-columns: 1fr; gap: 16px; }
    .example__pair--4 { grid-template-columns: 1fr 1fr; }
    .features-row--2, .features-row--4 { grid-template-columns: 1fr; gap: 16px; }
    .feature--hero { padding: 24px; }
    .feature--hero h3 { font-size: 24px; }
    .feature--accent { padding: 24px; grid-template-columns: 1fr; gap: 24px; }
    .feature--accent h3 { font-size: 22px; }
    .feature__steps { grid-template-columns: 1fr; gap: 24px; }
    .feature--hero .feature__img--wide { aspect-ratio: 16/10; margin-bottom: 24px; }
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .step__img { aspect-ratio: 16/12; }
    .step-result { padding: 24px; gap: 24px; }
    .step-result__body h3 { font-size: 22px; }
    .pricing-cost { grid-template-columns: 1fr; gap: 16px; }
    .pricing-flow { grid-template-columns: 1fr; gap: 12px; }

    .feature { padding: 24px; }
    .cost-card { padding: 24px; }
    .pricing-banner { padding: 36px 24px; }
    .cta-final { padding: 64px 24px; margin: 32px 16px; border-radius: 20px; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__brand { grid-column: span 2; }
    .modal__panel { padding: 40px 24px 24px; }
}

/* ===== Card-flow «было → стало» (заменяет статичный frame_109) =====
   cqw = 1% ширины .cardflow: геометрия карточек тянется за блоком,
   рамки/радиусы/шрифты ограничены clamp() — крупные где ширина позволяет
   и не вырождаются на узких экранах. */
.cardflow {
    container-type: inline-size;
    margin-bottom: 32px;
    background: linear-gradient(105deg, #f1effb 0%, #f1effb 42%, #e7e3f8 42%, #e4e0f7 100%);
    border-radius: clamp(14px, 2.2cqw, 26px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto 1.3fr;
    align-items: stretch;
    gap: clamp(8px, 1.4cqw, 20px);
    padding: clamp(16px, 2.8cqw, 38px) clamp(16px, 3.4cqw, 44px);
    aspect-ratio: 1800 / 803;
}
.cardflow__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5cqw, 18px);
    min-width: 0;
}
.cardflow__label {
    font-size: clamp(12px, 1.55cqw, 16px);
    font-weight: 500;
    line-height: 1.2;
    border-radius: var(--radius-pill);
    padding: .62em 1.3em;
    white-space: nowrap;
    max-width: 100%;
}
.cardflow__label--plain {
    background: #fff;
    color: var(--c-text-muted);
    box-shadow: 0 2px 10px rgba(80, 70, 130, .10);
}
.cardflow__label--accent {
    background: #8579d6;
    color: #fff;
    box-shadow: 0 6px 18px rgba(133, 121, 214, .45);
}
.cardflow__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cardflow__arrow svg {
    width: clamp(32px, 5.4cqw, 60px);
    aspect-ratio: 1;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(130, 110, 235, .55));
}
.cardflow__card {
    border: clamp(3px, .5cqw, 6px) solid #fff;
    border-radius: clamp(8px, 1.3cqw, 16px);
    object-fit: cover;
    background: #fff;
    box-shadow: 0 14px 30px rgba(60, 50, 110, .20);
    cursor: pointer;
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s;
}
.cardflow__card:hover {
    z-index: 20;
    box-shadow: 0 22px 46px rgba(112, 88, 239, .40), 0 0 0 3px rgba(112, 88, 239, .55);
}
.cardflow__stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}
.cardflow__stage--before {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cardflow__card--before {
    width: 62%;
    height: auto;
    aspect-ratio: 3 / 4;
    transform: rotate(-4deg);
}
.cardflow__card--before:hover { transform: rotate(-4deg) scale(1.04); }
.cardflow__stage--after .cardflow__card {
    position: absolute;
    bottom: 11%;
    width: 42%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-position: top center;
    transform-origin: bottom left;
    transform: rotate(var(--rot));
}
.cardflow__stage--after .cardflow__card:hover {
    transform: rotate(var(--rot)) translateY(-6%) scale(1.06);
}
.cardflow__card--1 { left: 0%;  --rot: 0deg;  z-index: 6; }
.cardflow__card--2 { left: 13%; --rot: 7deg;  z-index: 5; }
.cardflow__card--3 { left: 26%; --rot: 14deg; z-index: 4; }
.cardflow__card--4 { left: 39%; --rot: 21deg; z-index: 3; }

/* mobile: вертикальный стек, стрелка вниз, россыпь новой строкой */
@media (max-width: 560px) {
    .cardflow {
        aspect-ratio: auto;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 16px;
        border-radius: 18px;
        margin-bottom: 24px;
    }
    .cardflow__label { font-size: 14px; white-space: normal; text-align: center; }
    .cardflow__arrow svg { width: 34px; transform: rotate(90deg); }
    .cardflow__stage--before { aspect-ratio: auto; }
    .cardflow__card--before { width: 42%; }
    .cardflow__stage--after { aspect-ratio: 3 / 2; }
.cardflow__stage--after .cardflow__card { width: 40%; }
}

/* ===== App Demo ===== */
.app-shell {
    background: #f3f4f7;
    color: #112247;
}
.app-header {
    background: #fff;
    border-bottom: 1px solid #dde4f1;
    position: sticky;
    top: 0;
    z-index: 50;
}
.app-header__bar,
.app-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}
.app-header__bar {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.app-logo img { width: 110px; }
.app-nav,
.app-actions,
.app-subtabs,
.app-topic-grid,
.app-ratio-row,
.app-copy-row,
.app-section__row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.app-nav { flex: 1; }
.app-actions .lang-switcher__select {
    background: #fff;
}
.app-nav__item,
.app-subtabs span,
.app-chip,
.app-pill,
.app-balance,
.app-user {
    border-radius: 14px;
    background: #fff;
    padding: 12px 16px;
}
.app-nav__item {
    color: #5c667d;
    font-weight: 500;
}
.app-nav__item.is-active {
    background: #eaf0ff;
    color: #2555d9;
}
.app-btn {
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.app-btn--primary {
    background: #2f64ea;
    color: #fff;
}
.app-btn--accent {
    background: linear-gradient(135deg, #8e2de2, #a93cf5);
    color: #fff;
}
.app-btn--ghost {
    background: #fff;
    color: #2f64ea;
    border: 1px solid #cfdbf8;
}
.app-btn--disabled {
    width: 100%;
    background: #cfd4dd;
    color: #fff;
    cursor: not-allowed;
}
.app-balance {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f2f2f8;
    text-align: center;
}
.app-pill {
    background: #f8edff;
    color: #8a34e9;
    font-weight: 700;
}
.app-pill--soft { padding: 8px 12px; }
.app-user { color: #5c667d; }
.app-banner {
    background: #eef4ff;
    border-top: 1px solid #e4ebfb;
    border-bottom: 1px solid #d9e3fb;
    padding: 18px 28px;
}
.app-banner a {
    max-width: 1280px;
    margin: 0 auto;
    display: block;
    color: #2252d7;
}
.app-main {
    padding-top: 32px;
    padding-bottom: 60px;
}
.app-notice {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 500;
}
.app-notice--success {
    background: #ecfdf3;
    color: #17663b;
    border: 1px solid #b7ebc8;
}
.app-notice--error {
    background: #fff2f3;
    color: #91253a;
    border: 1px solid #f3c0ca;
}
.app-section {
    display: grid;
    gap: 22px;
}
.app-form,
.app-form-grid {
    display: grid;
    gap: 18px;
}
.app-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-form-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.app-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}
.app-card,
.app-empty,
.app-upload,
.app-balance-card,
.app-bonus-card,
.app-stat,
.app-status {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(31, 50, 81, 0.06);
}
.app-card,
.app-empty,
.app-status { padding: 28px 30px; }
.app-card--soft { background: #eef5ff; }
.app-label,
.app-form-grid label span {
    display: block;
    font-weight: 600;
    margin-bottom: 14px;
}
.app-input {
    width: 100%;
    border: 1px solid #d7deea;
    border-radius: 14px;
    padding: 16px 18px;
    font: inherit;
    background: #fff;
}
.app-input--small {
    max-width: 120px;
}
.app-textarea {
    min-height: 120px;
    resize: vertical;
}
.app-textarea--lg {
    min-height: 220px;
}
.app-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    color: #6f7c95;
}
.app-divider::before,
.app-divider::after {
    content: "";
    height: 1px;
    background: #d4dbeb;
    flex: 1;
}
.app-upload {
    padding: 42px 20px;
    text-align: center;
    border-style: dashed;
}
.app-upload__icon {
    font-size: 38px;
    color: #8b96ac;
}
.app-upload__title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}
.app-upload__hint,
.app-copy,
.app-empty p,
.app-card p,
.app-form-grid label,
.app-list,
.app-price-list,
.app-breadcrumbs {
    color: #60708d;
}
.app-checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}
.app-empty {
    min-height: 370px;
    display: grid;
    place-items: center;
    text-align: center;
}
.app-empty__icon {
    font-size: 54px;
    color: #c7cfdd;
}
.app-subtabs span.is-active,
.app-chip.is-active {
    background: #fff;
    color: #14264d;
    box-shadow: 0 8px 20px rgba(31, 50, 81, 0.08);
}
.app-chip input {
    display: none;
}
.app-actions-row,
.app-inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.app-model-list {
    display: grid;
    gap: 2px;
    border: 1px solid #e2e7f0;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
}
.app-model {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
}
.app-model.is-active { background: #f4f1ff; }
.app-model span {
    font-size: 18px;
    font-weight: 700;
}
.app-model em {
    font-style: normal;
    color: #65748e;
}
.app-model strong { font-size: 22px; }
.app-balance-card {
    background: linear-gradient(90deg, #9536e8, #3469ea);
    color: #fff;
    padding: 28px;
}
.app-balance-card strong {
    display: block;
    font-size: 56px;
    margin-top: 6px;
}
.app-bonus-card {
    padding: 24px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.app-bonus-card--blue {
    background: #f3f7ff;
    border-color: #bfd5ff;
}
.app-bonus-card--pink {
    background: #fff3fb;
    border-color: #f5c7e0;
}
.app-price-list,
.app-list {
    margin: 0;
    padding-left: 22px;
}
.app-price-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
}
.app-price-list li:last-child { border-bottom: 0; }
.app-copy-row .app-input { flex: 1; }
.app-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.app-product-card {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(31, 50, 81, 0.06);
}
.app-product-card__head,
.app-product-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.app-product-card__head h2 {
    margin: 0 0 4px;
    font-size: 22px;
}
.app-product-card__head p {
    margin: 0;
    color: #60708d;
}
.app-product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    margin: 14px 0;
    border: 1px solid #e2e8f2;
}
.app-badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.app-badge--draft {
    background: #eef2f7;
    color: #58677f;
}
.app-badge--analyzed {
    background: #eefaf0;
    color: #17663b;
}
.app-badge--error {
    background: #fff2f3;
    color: #91253a;
}
.app-analysis {
    margin-top: 18px;
    background: #101726;
    color: #eef2ff;
    border-radius: 16px;
    padding: 18px;
}
.app-analysis h3 {
    margin: 0 0 12px;
    font-size: 16px;
}
.app-analysis pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
}
.app-generated-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.app-generated-card {
    margin: 0;
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    overflow: hidden;
}
.app-generated-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.app-generated-card figcaption {
    padding: 12px 14px;
    color: #60708d;
    font-size: 13px;
}
.app-product-detail {
    display: grid;
    gap: 18px;
}
.app-detail-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.app-studio-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}
.app-studio-side,
.app-studio-tools {
    display: grid;
    gap: 14px;
}
.app-studio-main {
    display: grid;
    gap: 16px;
}
.app-studio-canvas {
    background: linear-gradient(180deg, #101726 0%, #1b2437 100%);
    border-radius: 22px;
    padding: 18px;
    border: 1px solid #25324a;
}
.app-studio-preview-target {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}
.app-studio-main .app-generated-grid {
    margin-top: 0;
}
.app-studio-thumb,
.app-studio-idea {
    text-align: left;
    cursor: pointer;
}
.app-tool-panel[hidden] {
    display: none;
}
.app-chip--block {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}
.app-studio-thumb:hover,
.app-studio-idea:hover {
    border-color: #8e9cff;
    box-shadow: 0 8px 24px rgba(112, 88, 239, 0.14);
}
.app-chip {
    cursor: pointer;
}
.app-studio-tools .app-card p,
.app-studio-tools .app-card small {
    color: #60708d;
}
.app-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}
.app-modal {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 22px;
    border: 1px solid #dfe5ef;
    box-shadow: 0 24px 80px rgba(16, 23, 38, 0.24);
    overflow: hidden;
}
.app-modal__head,
.app-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #e9eef5;
}
.app-modal__foot {
    border-top: 1px solid #e9eef5;
    border-bottom: 0;
}
.app-modal__body {
    padding: 22px;
    display: grid;
    gap: 14px;
}
.app-modal__close {
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}
.app-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #101726;
    color: #eef2ff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 18px 50px rgba(16, 23, 38, 0.28);
    z-index: 3200;
    max-width: 360px;
}
.app-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 3150;
    background: rgba(7, 12, 23, 0.72);
    display: grid;
    place-items: center;
    padding: 24px;
    backdrop-filter: blur(8px);
}
.app-progress-overlay__card {
    width: min(640px, 100%);
    border-radius: 28px;
    padding: 28px;
    background: radial-gradient(circle at top, #1f2940 0%, #101726 62%, #090d18 100%);
    color: #eef2ff;
    box-shadow: 0 28px 80px rgba(5, 10, 20, 0.42);
    display: grid;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.app-progress-overlay__label {
    color: #93c5fd;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.app-progress-overlay__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}
.app-progress-overlay__text {
    margin: 0;
    color: #dbe5ff;
}
.app-progress-overlay__steps {
    display: grid;
    gap: 10px;
}
.app-progress-overlay__step {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #c3d0eb;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}
.app-progress-overlay__step.is-active {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(147, 197, 253, 0.44);
    color: #f8fbff;
}
.app-progress-overlay__step.is-complete {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(110, 231, 183, 0.32);
    color: #d1fae5;
}
.is-hidden {
    display: none !important;
}
.app-custom-marketplace.is-hidden {
    display: none !important;
}
.app-upload-dropzone {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px dashed #c7d1e3;
    border-radius: 18px;
    background: #f8fbff;
}
.app-upload-dropzone img {
    width: 100%;
    max-width: 260px;
    border-radius: 16px;
    border: 1px solid #dfe5ef;
}
.app-workflow-studio {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top, #1f2940 0%, #0d1321 60%, #090d18 100%);
    color: #eef2ff;
}
.app-workflow-studio .app-card,
.app-workflow-studio .app-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #eef2ff;
    border-color: rgba(255, 255, 255, 0.12);
}
.app-workflow-studio__rail,
.app-workflow-studio__tools,
.app-workflow-studio__main {
    display: grid;
    gap: 16px;
    align-content: start;
}
.app-workflow-studio__canvas {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.app-workflow-progress .app-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
}
.app-ready-card {
    padding: 28px;
    border-radius: 24px;
    border: 1px solid #e4e8f0;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 23, 38, 0.08);
    display: grid;
    gap: 22px;
}
.app-ready-card__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.app-ready-card__eyebrow {
    margin: 0 0 10px;
    color: #6b778c;
}
.app-ready-card__canvas {
    display: grid;
    grid-template-columns: 290px 290px;
    gap: 18px;
    align-items: start;
}
.app-ready-card__primary {
    margin: 0;
    display: grid;
    gap: 10px;
}
.app-ready-card__primary span {
    font-weight: 700;
    color: #38465f;
}
.app-ready-card__primary img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid #dfe5ef;
    box-shadow: 0 20px 40px rgba(30, 40, 60, 0.12);
}
.app-ready-card__secondary {
    min-height: 100%;
    border-radius: 22px;
    border: 1px solid #dbe3f5;
    background:
        radial-gradient(circle at 20% 20%, rgba(120, 150, 255, 0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 164, 186, 0.18), transparent 42%),
        linear-gradient(180deg, #f6f8ff 0%, #fff6f9 100%);
    padding: 16px;
    display: grid;
    align-content: space-between;
    gap: 22px;
}
.app-ready-card__metric {
    display: grid;
    gap: 10px;
}
.app-ready-card__metric span {
    color: #6a7894;
    font-size: 14px;
}
.app-ready-card__metric strong {
    font-size: 44px;
    line-height: 1;
    color: #5a78d6;
}
.app-ready-card__soft-card {
    display: grid;
    gap: 10px;
    min-height: 220px;
    align-content: center;
    text-align: center;
    color: rgba(55, 61, 83, 0.7);
}
.app-ready-card__soft-card p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.app-ready-card__soft-card small {
    color: rgba(88, 98, 126, 0.78);
}
.app-ready-card__ideas {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.app-ready-card__idea-add {
    min-width: 290px;
    border: 1px dashed #d5dceb;
    background: #fff;
    border-radius: 18px;
    padding: 16px 18px;
    text-align: left;
    font-size: 22px;
    color: #59657b;
    cursor: pointer;
}
.app-ready-card__cta {
    width: 100%;
    justify-content: center;
    min-height: 58px;
    font-size: 18px;
}
.app-progress-track {
    height: 14px;
    background: #dfe5ef;
    border-radius: 999px;
    overflow: hidden;
}
.app-progress-track--overlay {
    background: rgba(255, 255, 255, 0.08);
}
.app-progress-bar {
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8c42 0%, #ffb347 100%);
    transition: width 0.8s ease;
}
.admin-auth {
    max-width: 520px;
}
.app-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.app-stat {
    padding: 24px;
    text-align: center;
}
.app-stat strong {
    display: block;
    font-size: 42px;
}
.app-form-grid {
    display: grid;
    gap: 22px;
}
.app-topic-grid { gap: 10px; }
.app-status { padding: 18px 22px; }
.app-timeline {
    display: grid;
    gap: 14px;
}
.app-timeline__item {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    padding: 18px 20px;
}
.app-timeline__item strong,
.app-timeline__item span {
    display: block;
}
.app-timeline__item span {
    color: #60708d;
    font-size: 14px;
    margin-top: 4px;
}
.app-nav--wide {
    overflow-x: auto;
    padding-bottom: 6px;
}

@media (max-width: 960px) {
    .app-header__bar,
    .app-main {
        padding-left: 18px;
        padding-right: 18px;
    }
    .app-header__bar {
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        align-items: flex-start;
        flex-direction: column;
    }
    .app-actions,
    .app-nav { width: 100%; }
    .app-bonus-card,
    .app-section__row {
        align-items: stretch;
        flex-direction: column;
    }
    .app-form-grid--2,
    .app-form-grid--3,
    .app-form-grid--4,
    .app-list-grid,
    .app-generated-grid,
    .app-studio-shell,
    .app-workflow-studio {
        grid-template-columns: 1fr;
    }
    .app-ready-card__head,
    .app-ready-card__canvas,
    .app-ready-card__ideas {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
    .app-ready-card__idea-add {
        min-width: 0;
        width: 100%;
    }
    .app-stats-grid { grid-template-columns: 1fr; }
    .app-model { grid-template-columns: auto 1fr; }
}
