/*
B2B-MANIFEST-001: styles for /business/how-it-works/ only. Continues the
visual language of ../business.css (same design tokens from ../../styles.css)
but is deliberately calmer and editorial — this is a manifest to be read,
not another sales landing. No sticky/fixed positioning anywhere in this
file (this page never scrolls a persistent CTA — that mechanic belongs to
/business/ only).
*/

.hiw-body {
    overflow-x: hidden;
}

/* Editorial reading width — narrower than /business/'s two-column sales
   layout, which still uses the same .b2b-container class this page also
   carries (for the shared header/footer/mobile-padding rules already
   defined in business.css) — this max-width is the only override needed. */
.hiw-container {
    max-width: 760px;
}

/* --- skip link ------------------------------------------------------------
   Hidden until focused, per section 9's accessibility requirement — the
   only interactive element on this page that appears before the header
   visually, so a keyboard/screen-reader user can bypass the nav. */
.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 100;
    background: var(--accent-primary);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

/* --- header nav ------------------------------------------------------------ */

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

.hiw-nav-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
}

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

.hiw-nav-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    color: var(--text-primary);
}

/* --- hero ------------------------------------------------------------------ */

.hiw-hero {
    max-width: 640px;
}

.hiw-overline {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c084fc;
    margin-bottom: 16px;
}

.hiw-hero h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 22px;
}

.hiw-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.hiw-lead-secondary {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* --- main layout ------------------------------------------------------------ */

.hiw-main {
    display: flex;
    flex-direction: column;
    gap: 52px;
    padding-bottom: 64px;
    flex: 1;
}

.hiw-block h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.hiw-block p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.hiw-block p:last-child {
    margin-bottom: 0;
}

.hiw-feature-list,
.hiw-steps {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.hiw-feature-list li,
.hiw-steps li {
    margin-bottom: 8px;
}

.hiw-feature-list li:last-child,
.hiw-steps li:last-child {
    margin-bottom: 0;
}

/* --- three status tiers, text-badged (never color-only) --------------------- */

/* Tier: "уже работает" — bright border, soft glow. Most prominent block on
   the page, per section 7's explicit requirement. */
.hiw-block--live {
    padding: 32px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.04));
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 24px 60px -24px rgba(99, 102, 241, 0.4);
}

.hiw-eyebrow--live {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d8b4fe;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.45);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 16px;
}

/* Tier: "утверждённое направление" — neutral card, solid border. */
.hiw-block--approved {
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.hiw-status-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 16px;
}

/* Tier: "будущее" — muted card, dashed border, never implies availability. */
.hiw-block--future {
    padding: 28px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.015);
}

.hiw-eyebrow--future {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 16px;
}

.hiw-feature-list--future {
    color: var(--text-muted);
}

.hiw-disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- inline CTA link inside the "live" block --------------------------------
   Underlined by default (not only on hover/focus) — links must read as
   links, not just prose, per section 9. */
.hiw-cta-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.hiw-cta-link:hover {
    color: #a855f7;
}

.hiw-cta-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 3px;
    color: #a855f7;
}

/* --- final block -------------------------------------------------------------- */

.hiw-final {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.hiw-final h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.hiw-final > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 560px;
}

.hiw-final-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.hiw-final-btn {
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: not-allowed;
}

.hiw-final-btn:disabled {
    opacity: 0.75;
}

.hiw-final-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 480px;
}

.hiw-secondary-link {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.hiw-secondary-link:hover {
    color: var(--text-primary);
}

.hiw-secondary-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 3px;
    color: var(--text-primary);
}

/* --- mobile ------------------------------------------------------------------ */

@media (max-width: 640px) {
    .hiw-header {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .hiw-nav {
        width: 100%;
        justify-content: flex-end;
        gap: 16px;
    }

    .hiw-nav-link {
        font-size: 0.82rem;
    }

    .hiw-hero h1 {
        font-size: 1.5rem;
    }

    .hiw-lead,
    .hiw-lead-secondary {
        font-size: 0.92rem;
    }

    .hiw-main {
        gap: 40px;
    }

    .hiw-block h2 {
        font-size: 1.15rem;
    }

    .hiw-block--live,
    .hiw-block--approved,
    .hiw-block--future {
        padding: 20px;
    }

    .hiw-final h2 {
        font-size: 1.3rem;
    }
}

/* --- reduced motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .skip-link,
    .hiw-nav-link,
    .hiw-cta-link,
    .hiw-secondary-link,
    .b2b-logo-link {
        transition: none !important;
    }
}
