/*
 * VSEH AI OS — visual identity bundle for marketing surfaces.
 * See VSEH_AI_OS_Banner_Brief.pdf §4 (бренд-гайд).
 *
 * Used by:
 *   - _vseh_topbar.php  (sticky top-bar over every v2 page)
 *   - /vseh-ai-os       (product landing + personas + FAQ)
 *   - _vseh_footer_cta.php / _vseh_sidebar.php (ad units)
 *
 * Scope-isolated under .vseh-* class names so it never leaks
 * into the existing catalog / forum / cabinet typography.
 */

:root {
    --vseh-navy: #0F172A;
    --vseh-navy-2: #1E293B;
    --vseh-slate: #475569;
    --vseh-slate-2: #64748B;
    --vseh-sky: #0EA5E9;
    --vseh-sky-dark: #0369A1;
    --vseh-amber: #F59E0B;
    --vseh-green: #10B981;
    --vseh-soft: #F8FAFC;
    --vseh-line: #E2E8F0;
    --vseh-shadow: 0 24px 48px rgba(2, 6, 23, 0.08);
}

/* ─────────────────────────────────────────────────────────────
 *  Sticky top-bar (§7 standard variant)
 *  1920×96 над хедером; работает на всех v2-страницах.
 * ─────────────────────────────────────────────────────────── */
.vseh-topbar {
    position: relative;
    z-index: 40;
    background: linear-gradient(90deg, var(--vseh-navy) 0%, var(--vseh-navy-2) 100%);
    border-bottom: 2px solid var(--vseh-sky);
    color: #fff;
    font-family: 'Inter', 'Play', -apple-system, sans-serif;
}
.vseh-topbar__inner {
    max-width: 1280px; margin: 0 auto;
    padding: 10px 24px;
    display: flex; align-items: center; gap: 16px;
    min-height: 56px;
}
.vseh-topbar__pin {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--vseh-sky);
}
.vseh-topbar__lead {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; line-height: 1.25;
}
.vseh-topbar__title {
    font-size: 14px; font-weight: 700; color: #fff;
    letter-spacing: 0.01em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vseh-topbar__title b { color: var(--vseh-sky); font-weight: 700; }
.vseh-topbar__sub {
    font-size: 11px; color: rgba(255,255,255,0.6);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vseh-topbar__cta {
    flex-shrink: 0;
    color: var(--vseh-sky); font-size: 13px; font-weight: 600;
    text-decoration: none; padding: 6px 12px;
    border-radius: 6px; border: 1px solid transparent;
    transition: all .15s ease;
}
.vseh-topbar__cta:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--vseh-sky); text-decoration: none;
    border-color: rgba(14, 165, 233, 0.3);
}
@media (max-width: 900px) {
    .vseh-topbar__inner { padding: 8px 12px; gap: 10px; min-height: 48px; }
    .vseh-topbar__pin { width: 22px; height: 22px; }
    .vseh-topbar__title { font-size: 12px; }
    .vseh-topbar__sub { display: none; }
}

/* ─────────────────────────────────────────────────────────────
 *  Landing /vseh-ai-os
 * ─────────────────────────────────────────────────────────── */
.vseh-page {
    background: var(--vseh-soft);
    color: var(--vseh-navy);
    font-family: 'Inter', 'Play', -apple-system, sans-serif;
    line-height: 1.5;
}
.vseh-section { padding: 64px 24px; }
.vseh-section--dark {
    background: var(--vseh-navy);
    color: #fff;
}
.vseh-section--dark .vseh-h2,
.vseh-section--dark .vseh-lead { color: #fff; }
.vseh-wrap { max-width: 1180px; margin: 0 auto; }

.vseh-h1 {
    font-size: 56px; font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.05;
    color: var(--vseh-navy);
    margin: 0 0 24px;
}
.vseh-h2 {
    font-size: 36px; font-weight: 700;
    letter-spacing: -0.015em; line-height: 1.15;
    color: var(--vseh-navy);
    margin: 0 0 24px;
}
.vseh-h3 {
    font-size: 22px; font-weight: 700;
    color: var(--vseh-navy);
    margin: 0 0 12px;
}
.vseh-lead {
    font-size: 20px; color: var(--vseh-slate);
    line-height: 1.55; max-width: 760px;
    margin: 0 0 32px;
}
.vseh-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(14, 165, 233, 0.12); color: var(--vseh-sky);
    font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.vseh-section--dark .vseh-eyebrow {
    background: rgba(14, 165, 233, 0.2); color: var(--vseh-sky);
}

/* CTA buttons */
.vseh-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 24px;
    border-radius: 8px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: all .15s ease;
}
.vseh-btn--primary {
    background: var(--vseh-sky); color: #fff; border-color: var(--vseh-sky);
}
.vseh-btn--primary:hover {
    background: var(--vseh-sky-dark); border-color: var(--vseh-sky-dark);
    color: #fff; text-decoration: none;
}
.vseh-btn--outline {
    background: transparent; color: var(--vseh-navy);
    border-color: var(--vseh-line);
}
.vseh-btn--outline:hover {
    border-color: var(--vseh-navy); color: var(--vseh-navy);
    text-decoration: none;
}
.vseh-section--dark .vseh-btn--outline {
    color: #fff; border-color: rgba(255,255,255,0.3);
}
.vseh-section--dark .vseh-btn--outline:hover {
    border-color: #fff; color: #fff;
}
.vseh-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Hero block */
.vseh-hero {
    background: var(--vseh-navy); /* fallback пока SVG не загрузится */
    color: #fff;
    padding: 96px 24px 80px;
    position: relative; overflow: hidden;
    min-height: 480px;
}
.vseh-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 60%, rgba(15,23,42,0.1) 100%);
    z-index: 1; pointer-events: none;
}
.vseh-hero > .vseh-wrap { position: relative; z-index: 2; }
.vseh-hero .vseh-h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.vseh-hero .vseh-h1 { color: #fff; max-width: 820px; }
.vseh-hero .vseh-lead { color: rgba(255,255,255,0.85); max-width: 680px; }

/* Stats row */
.vseh-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin-top: 48px;
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15);
}
.vseh-stat__n { font-size: 36px; font-weight: 700; color: var(--vseh-sky); line-height: 1; }
.vseh-stat__l { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px; }
@media (max-width: 760px) {
    .vseh-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Pain cards (§3 three structural pains) */
.vseh-pains {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.vseh-pain {
    background: #fff; border: 1px solid var(--vseh-line);
    border-radius: 16px; padding: 28px;
    box-shadow: var(--vseh-shadow);
}
.vseh-pain__tag {
    font-size: 11px; font-weight: 700;
    color: var(--vseh-amber); text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 8px;
}
.vseh-pain__title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--vseh-navy); }
.vseh-pain__text { font-size: 14px; color: var(--vseh-slate); line-height: 1.55; }
@media (max-width: 900px) { .vseh-pains { grid-template-columns: 1fr; } }

/* Agents table (§12 «Что мы делаем») */
.vseh-agents {
    background: #fff; border: 1px solid var(--vseh-line);
    border-radius: 16px; overflow: hidden;
    box-shadow: var(--vseh-shadow);
}
.vseh-agents table { width: 100%; border-collapse: collapse; }
.vseh-agents th, .vseh-agents td {
    text-align: left; padding: 14px 20px;
    border-bottom: 1px solid var(--vseh-line);
    font-size: 14px;
}
.vseh-agents th {
    background: var(--vseh-soft); color: var(--vseh-slate);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.vseh-agents tr:last-child td { border-bottom: 0; }
.vseh-agents td:first-child { font-weight: 700; color: var(--vseh-sky); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.vseh-agents td:last-child { color: var(--vseh-green); font-weight: 600; white-space: nowrap; }

/* Persona cards */
.vseh-personas {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.vseh-persona {
    background: #fff; border: 1px solid var(--vseh-line);
    border-radius: 16px; padding: 24px;
    box-shadow: var(--vseh-shadow);
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: transform .15s ease, border-color .15s ease;
}
.vseh-persona:hover {
    transform: translateY(-2px); border-color: var(--vseh-sky);
    text-decoration: none;
}
.vseh-persona__icon { font-size: 32px; margin-bottom: 12px; }
.vseh-persona__role { font-size: 12px; color: var(--vseh-slate); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.vseh-persona__name { font-size: 18px; font-weight: 700; color: var(--vseh-navy); margin-bottom: 12px; }
.vseh-persona__pain { font-size: 13px; color: var(--vseh-slate); line-height: 1.55; flex: 1; }
.vseh-persona__cta {
    margin-top: 16px; font-size: 13px; color: var(--vseh-sky);
    font-weight: 600;
}
@media (max-width: 1100px) { .vseh-personas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .vseh-personas { grid-template-columns: 1fr; } }

/* FAQ */
.vseh-faq { max-width: 820px; margin: 0 auto; }
.vseh-faq__item {
    background: #fff; border: 1px solid var(--vseh-line);
    border-radius: 12px; margin-bottom: 12px;
    padding: 0;
}
.vseh-faq__q {
    padding: 18px 24px; font-weight: 700; font-size: 16px;
    color: var(--vseh-navy); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.vseh-faq__q::after {
    content: '+'; font-size: 24px; color: var(--vseh-sky); font-weight: 400;
    transition: transform .15s ease;
}
.vseh-faq__item[open] .vseh-faq__q::after { content: '−'; }
.vseh-faq__a {
    padding: 0 24px 18px;
    font-size: 14px; color: var(--vseh-slate); line-height: 1.6;
}
.vseh-faq__a code {
    background: var(--vseh-navy); color: var(--vseh-sky);
    padding: 2px 8px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
}

/* Footer CTA banner (§8) */
.vseh-fcta {
    background: var(--vseh-soft);
    border: 1px solid var(--vseh-line); border-radius: 16px;
    padding: 40px 32px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
    align-items: center;
    margin: 48px 0;
}
.vseh-fcta__title { font-size: 28px; font-weight: 700; color: var(--vseh-navy); line-height: 1.2; margin-bottom: 12px; }
.vseh-fcta__sub { font-size: 15px; color: var(--vseh-slate); line-height: 1.55; margin-bottom: 24px; }
.vseh-fcta__logos {
    font-size: 12px; color: var(--vseh-slate-2);
    margin-top: 20px; letter-spacing: 0.02em;
}
.vseh-fcta__cards { display: flex; flex-direction: column; gap: 12px; }
.vseh-fcta__card {
    background: #fff; border: 1px solid var(--vseh-line);
    border-radius: 12px; padding: 14px 16px;
    box-shadow: var(--vseh-shadow);
    font-size: 13px; color: var(--vseh-slate);
}
.vseh-fcta__card b { color: var(--vseh-navy); display: block; margin-bottom: 4px; font-size: 14px; }
.vseh-fcta__card--1 { transform: rotate(-2deg); }
.vseh-fcta__card--3 { transform: rotate(2deg); }
@media (max-width: 900px) { .vseh-fcta { grid-template-columns: 1fr; } }

/* Sidebar banner 300×600 (§9) */
.vseh-sidebar {
    width: 300px; height: 600px;
    background: linear-gradient(180deg, var(--vseh-soft) 0%, #fff 30%, var(--vseh-navy) 100%);
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--vseh-line);
    box-shadow: var(--vseh-shadow);
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: transform .15s ease;
}
.vseh-sidebar:hover { transform: translateY(-2px); text-decoration: none; }
.vseh-sidebar__top { padding: 24px 20px 16px; flex: 0 0 auto; }
.vseh-sidebar__mid { padding: 0 20px 16px; color: var(--vseh-navy); flex: 1; }
.vseh-sidebar__title { font-size: 20px; font-weight: 700; line-height: 1.15; margin-bottom: 10px; color: var(--vseh-navy); }
.vseh-sidebar__sub { font-size: 12px; color: var(--vseh-slate); line-height: 1.55; }
.vseh-sidebar__bot {
    padding: 20px; background: transparent; color: #fff;
    margin-top: auto;
}
.vseh-sidebar__bot-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 8px;
    background: var(--vseh-sky); color: #fff;
    font-size: 13px; font-weight: 600; text-decoration: none;
}

/* Container in old vsteh layouts where landing is rendered */
.vseh-page main { background: var(--vseh-soft); }

/* Headline responsive */
@media (max-width: 760px) {
    .vseh-h1 { font-size: 36px; }
    .vseh-h2 { font-size: 28px; }
    .vseh-lead { font-size: 17px; }
    .vseh-hero { padding: 64px 16px 48px; }
    .vseh-section { padding: 48px 16px; }
}
