/* =====================================================================
   Jazu Glass — главная, страницы ниш, оферта (ноябрь 2026).
   Подключается ПОСЛЕ landing.css; меняет только оформление. Откат — убрать <link href="/landing-glass.css">.
   Та же система, что в кабинете (glass.css): синее стекло, северное сияние, белые «вырезы» у активного.
   ===================================================================== */

:root {
  --g-blue: #3b6cf6;
  --g-blue-2: #5b8cff;
  --g-violet: #8b7cff;
  --g-amber: #f59e0b;
  --g-white: #f7f9ff;
  --g-bg-1: #eef3ff;
  --g-bg-2: #dfe8fd;
  --g-glass: rgba(255, 255, 255, .62);
  --g-glass-strong: rgba(255, 255, 255, .9);
  --g-glass-line: rgba(255, 255, 255, .8);
  --g-hi: rgba(255, 255, 255, .9);

  --paper: #eef3ff;
  --surface: var(--g-glass);
  --ink: #16213a;
  --ink-2: #4f5d78;
  --ink-3: #5b6884;
  --line: rgba(30, 50, 110, .12);
  --sea: #2f5be0;
  --sea-deep: #14275c;
  --sea-soft: rgba(59, 108, 246, .12);
  --saffron: #e39a0b;
  --saffron-soft: #fff1d6;
  --chat: #e9eefb;
  --device: #0f1b33;
  --on-sea: #ffffff;
  --shadow: 0 22px 50px -26px rgba(30, 50, 110, .45);
  --ai-a: #3b82f6;
  --ai-b: #8b5cf6;
  --grad: linear-gradient(100deg, #2f5be0 0%, #3b82f6 45%, #8b5cf6 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --g-bg-1: #03060f;
    --g-bg-2: #0b1a3a;
    --g-glass: rgba(140, 170, 255, .07);
    --g-glass-strong: rgba(14, 24, 52, .94);
    --g-glass-line: rgba(255, 255, 255, .12);
    --g-hi: rgba(255, 255, 255, .12);

    --paper: #050a18;
    --surface: var(--g-glass);
    --ink: #eaf0ff;
    --ink-2: #a3b0cc;
    --ink-3: #8592b0;
    --line: rgba(255, 255, 255, .1);
    --sea: #7ea4ff;
    --sea-deep: #0f1f4a;
    --sea-soft: rgba(91, 140, 255, .16);
    --saffron: #fbbf24;
    --saffron-soft: #3a2c0c;
    --chat: #0a1226;
    --device: #02050c;
    --on-sea: #06102a;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, .85);
    --ai-a: #60a5fa;
    --ai-b: #a78bfa;
    --grad: linear-gradient(100deg, #7ea4ff 0%, #60a5fa 45%, #a78bfa 100%);
  }
}

/* ---------- фон страницы ---------- */
body { background: linear-gradient(180deg, var(--g-bg-1), var(--g-bg-2) 60%, var(--g-bg-1)) fixed; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 40% at 50% 110%, rgba(59, 108, 246, .28), transparent 70%),
    radial-gradient(36% 30% at 8% 20%, rgba(96, 165, 250, .18), transparent 70%),
    radial-gradient(32% 26% at 94% 14%, rgba(139, 124, 255, .16), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  body::after {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image:
      radial-gradient(1px 1px at 12% 22%, #fff, transparent 60%),
      radial-gradient(1px 1px at 28% 68%, #fff, transparent 60%),
      radial-gradient(1.4px 1.4px at 46% 14%, #fff, transparent 60%),
      radial-gradient(1px 1px at 63% 41%, #fff, transparent 60%),
      radial-gradient(1.2px 1.2px at 78% 76%, #fff, transparent 60%),
      radial-gradient(1px 1px at 88% 30%, #fff, transparent 60%),
      radial-gradient(1px 1px at 36% 88%, #fff, transparent 60%);
    background-size: 640px 520px;
  }
}
::selection { background: rgba(59, 108, 246, .35); }

/* ---------- шапка: плавающая стеклянная капсула ---------- */
.l-nav {
  top: 10px; margin: 10px auto 0; width: min(var(--wrap), calc(100% - 20px));
  padding: 0 14px 0 18px; border-radius: 20px;
  border: 1px solid var(--g-glass-line);
  background: color-mix(in srgb, var(--g-glass-strong) 72%, transparent);
  box-shadow: var(--shadow), inset 0 1px 0 var(--g-hi);
}
.l-nav.scrolled, body:not(.home) .l-nav { border-bottom-color: var(--g-glass-line); }

/* ---------- кнопки ---------- */
.l-btn { border-radius: 12px; }
.l-btn:not(.ghost):not(.light):not(.on-dark) {
  border-color: transparent;
  background: linear-gradient(180deg, #5b8cff, #3b6cf6);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(59, 108, 246, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.l-btn.ghost { background: var(--g-glass); border-color: var(--g-glass-line); backdrop-filter: blur(10px); }
.l-btn.ghost:hover { border-color: var(--g-blue-2); color: var(--sea); }
.l-btn.big:not(.ghost):not(.light):not(.on-dark) { background: linear-gradient(100deg, #3b6cf6, #5b8cff 45%, #8b7cff) 0 0 / 180% 100%; color: #fff; }

/* ---------- стеклянные карточки ---------- */
.plan, .vs-card, .ch-card, .faq details, .stats-bar, .uc-pills li, .hero-kicker, .chip-model,
.case, .owner-card, .niche-card, .bento > *, .sheet {
  border-color: var(--g-glass-line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--g-hi);
}
.plan, .vs-card, .ch-card, .faq details, .stats-bar { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.plan { border-radius: 24px; }
.plan.featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--g-glass-strong), var(--g-glass-strong)) padding-box, linear-gradient(160deg, #7ea4ff, #8b7cff 60%, rgba(255, 255, 255, .2)) border-box;
  box-shadow: 0 30px 70px -30px rgba(59, 108, 246, .7), inset 0 1px 0 var(--g-hi);
}
.plan .badge { background: var(--g-white); color: #0f1b33; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.vs-win { background: var(--sea-soft); border-left-color: var(--g-blue-2); }
.ch-icon, .vs-tag .ic, .hero-benefits .ic { background: var(--sea-soft); color: var(--sea); }
.faq details[open] { border-color: color-mix(in srgb, var(--g-blue-2) 50%, transparent); }
.sheet { background: var(--g-glass-strong); }

/* ---------- первый экран и сцена ---------- */
.stage {
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 32%),
    linear-gradient(170deg, #3f68d6, #162a62 55%, #0a1430);
  background-image:
    radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.2px),
    linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 32%),
    linear-gradient(170deg, #3f68d6, #162a62 55%, #0a1430);
  background-size: 18px 18px, auto, auto;
  box-shadow: 0 40px 90px -40px rgba(30, 60, 160, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.stage::before { background: radial-gradient(closest-side, rgba(96, 165, 250, .4), transparent); }
.stage::after { background: radial-gradient(closest-side, rgba(139, 124, 255, .55), transparent); }
.ch-tab.active { background: var(--g-white); color: #0f1b33; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.phone-head { background: linear-gradient(180deg, #4f7cf0, #2f5be0); color: #fff; }
.think { background: rgba(8, 16, 40, .78); border-color: rgba(255, 255, 255, .16); color: #e3ebff; }
.think-orb { background: conic-gradient(#60a5fa, #a78bfa, #7ea4ff, #60a5fa); box-shadow: 0 0 10px rgba(96, 165, 250, .8); }
.think-steps li::before { background: radial-gradient(#60a5fa 38%, transparent 44%); border-color: #60a5fa; }

/* ---------- полоса «ИИ, а не бот» ---------- */
.ai-band { background: #050b1d; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px); background-size: 22px 22px; color: #e6edff; }
.ai-glow i:nth-child(1) { background: #2f5be0; }
.ai-glow i:nth-child(2) { background: #6d5efc; }
.ai-glow i:nth-child(3) { background: #1e3a8a; }
.ai-band .sec-lead, .ai-facts p, .ai-models-note { color: rgba(226, 234, 255, .72); }
.ai-eyebrow { color: #c7d6ff; }
.duel-tag .ic { color: #7ea4ff; }
.duel-ai { background: linear-gradient(#0b1530, #0b1530) padding-box, conic-gradient(from var(--ang), #60a5fa, #a78bfa, #7ea4ff, #60a5fa) border-box; box-shadow: 0 30px 80px -42px rgba(96, 165, 250, .7); }
.duel-result.ok { color: #93c5fd; }
.duel-result.ok .ic { background: rgba(96, 165, 250, .16); }
.ai-fact-ic { background: linear-gradient(135deg, rgba(96, 165, 250, .25), rgba(167, 139, 250, .25)); color: #c7d6ff; }
.ai-facts li, .duel-card, .chip-ai { backdrop-filter: blur(10px); }

/* ---------- мелочи ---------- */
.scroll-bar { background: linear-gradient(90deg, #3b6cf6, #60a5fa, #a78bfa); }
.spot::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, .16), transparent 70%); }

@media (max-width: 720px) {
  .l-nav { top: 6px; margin-top: 6px; width: calc(100% - 12px); border-radius: 16px; padding: 0 8px 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none !important; }
}

/* ---------- контраст (по итогам проверки axe) ---------- */
.home .hero-kicker { background: linear-gradient(var(--g-glass-strong), var(--g-glass-strong)) padding-box, var(--grad) border-box; }
.phone-head.self { background: #3a4768; }
@media (prefers-color-scheme: light) {
  :root { --ok: #12733c; }
  [data-bp] span { color: #6e4c0c; }
}

/* кнопка демо-бота: зелёный WhatsApp чуть темнее — белый текст читается (4.5:1) */
.fab-long { background-color: #0f7a40; }

/* =====================================================================
   Главная v2: окно кабинета на первом экране и асимметричные плитки
   ===================================================================== */

/* ---------- первый экран: окно кабинета ---------- */
.home .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.home .hero h1 { font-size: clamp(28px, 2.8vw, 42px); }
.hero-window {
  position: relative; min-width: 0; border-radius: 30px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(170deg, #2a4fb4, #0f1d48 60%, #0a1230);
  box-shadow: 0 50px 100px -40px rgba(20, 50, 160, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.hw-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); }
.hw-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.hw-bar i:first-child { background: #ff6b5e; } .hw-bar i:nth-child(2) { background: #fdbc2e; } .hw-bar i:nth-child(3) { background: #28c840; }
.hw-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 8px; background: rgba(0, 0, 0, .25); color: rgba(255, 255, 255, .7); font: 500 12px/1 var(--font); }
.hw-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.hw-side {
  position: relative; display: flex; flex-direction: column; gap: 5px; padding: 16px 0 16px 12px; color: rgba(255, 255, 255, .88);
  background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 40%), linear-gradient(170deg, rgba(104, 150, 255, .5), rgba(24, 42, 92, .6));
  border-right: 1px solid rgba(255, 255, 255, .08);
  font: 500 13px/1.2 var(--font);
}
.hw-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 10px; font: 700 15px/1 var(--display); color: #fff; }
.hw-brand b { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #a9c2ff 45%, #3b6cf6); box-shadow: 0 3px 10px rgba(59, 108, 246, .7); }
.hw-group { padding: 10px 8px 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.hw-item { position: relative; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; margin-right: 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .06); }
.hw-item .ic { width: 15px; height: 15px; }
.hw-item em { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font: 700 10px/1 var(--font); font-style: normal; color: #2a1800; background: linear-gradient(180deg, #fcd34d, #f59e0b); box-shadow: 0 0 10px rgba(245, 158, 11, .6); }
/* фирменная деталь: активный пункт «вырезан» белым и сливается с полем справа */
.hw-item.active { margin-right: 0; border-radius: 10px 0 0 10px; background: var(--g-white); border-color: transparent; color: #0f1b33; font-weight: 700; }
.hw-item.active::before, .hw-item.active::after { content: ''; position: absolute; right: 0; width: 12px; height: 12px; }
.hw-item.active::before { top: -12px; background: radial-gradient(circle at 0 0, transparent 11.5px, var(--g-white) 12px); }
.hw-item.active::after { bottom: -12px; background: radial-gradient(circle at 0 100%, transparent 11.5px, var(--g-white) 12px); }
.hw-plan { margin: auto 12px 0 0; display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); }
.hw-plan i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2), 0 0 12px #4ade80; }
.hw-plan span { display: grid; }
.hw-plan b { font-size: 12px; color: #fff; }
.hw-plan small { font-size: 10.5px; color: rgba(255, 255, 255, .6); }
/* сцена — белое поле, в которое «входит» активный пункт меню */
.hero-window .stage {
  min-height: 540px; border-radius: 0; border: 0; box-shadow: none;
  background-color: var(--g-white);
  background-image: radial-gradient(rgba(30, 50, 110, .1) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.hero-window .stage::before { background: radial-gradient(closest-side, rgba(96, 165, 250, .28), transparent); }
.hero-window .stage::after { background: radial-gradient(closest-side, rgba(139, 124, 255, .3), transparent); }
.hero-window .demo-channels { background: #e8eefc; border-color: #d6def2; }
.hero-window .ch-tab { color: #4f5d78; }
.hero-window .ch-tab:hover { color: #0f1b33; }
.hero-window .ch-tab.active { background: linear-gradient(180deg, #5b8cff, #3b6cf6); color: #fff; }
.hero-window .stage .phone { margin-left: 28px; }
.hero-window .think { background: rgba(10, 18, 44, .88); }
@media (max-width: 1180px) {
  .hw-body { grid-template-columns: minmax(0, 1fr); }
  .hw-side { display: none; }
}
@media (max-width: 1060px) {
  .home .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero-window { border-radius: 22px; }
  .hw-bar { height: 32px; }
  .hero-window .stage { min-height: 0; }
  .hero-window .stage .phone { margin-left: 0; }
}

/* ---------- «Зачем бизнесу»: плитки разной ширины ---------- */
@media (min-width: 900px) {
  .vs-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .vs-grid > :nth-child(4n + 1), .vs-grid > :nth-child(4n) { grid-column: span 7; }
  .vs-grid > :nth-child(4n + 2), .vs-grid > :nth-child(4n + 3) { grid-column: span 5; }
}
.vs-card { border-radius: 26px; padding: 28px; }
.vs-grid > :nth-child(1) { background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 34%), linear-gradient(165deg, #4a78ec, #1b3274 58%, #0d1838); color: #fff; border-color: rgba(255, 255, 255, .18); }
.vs-grid > :nth-child(1) .vs-tag, .vs-grid > :nth-child(1) .vs-win .ic { color: #fff; }
.vs-grid > :nth-child(1) .vs-tag .ic { background: rgba(255, 255, 255, .16); }
.vs-grid > :nth-child(1) .vs-pain { background: rgba(255, 255, 255, .08); border-left-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
.vs-grid > :nth-child(1) .vs-pain b, .vs-grid > :nth-child(1) .vs-win b { color: #fff; }
.vs-grid > :nth-child(1) .vs-win { background: var(--g-white); color: #0f1b33; border-left-color: #f59e0b; }
.vs-grid > :nth-child(1) .vs-win b { color: #0f1b33; }
.vs-grid > :nth-child(1) .vs-win .ic { color: #2f5be0; }
.vs-grid > :nth-child(1) h3 { color: #fff; }

/* ---------- каналы: первая плитка — крупная ---------- */
@media (min-width: 900px) {
  .channels-grid { grid-auto-flow: dense; }
  .channels-grid > :first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; }
  /* шестая плитка не остаётся одна: растягиваем её полосой во всю ширину */
  .channels-grid > :nth-child(6):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; }
  .channels-grid > :nth-child(6):last-child .ch-icon { grid-row: span 2; margin: 0; }
}
.channels-grid > :first-child {
  position: relative; overflow: hidden; color: #fff; border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 34%), linear-gradient(165deg, #4a78ec, #1b3274 58%, #0d1838);
}
.channels-grid > :first-child p { color: rgba(255, 255, 255, .8); }
.channels-grid > :first-child .ch-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--g-white); color: #2f5be0; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.channels-grid > :first-child .ch-icon .ic { width: 30px; height: 30px; }
.channels-grid > :first-child h3 { font-size: 24px; color: #fff; }
.channels-grid > :first-child::after { content: ''; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 124, 255, .55), transparent); }
.channels-grid > :first-child { isolation: isolate; }
.ch-card { border-radius: 24px; }

/* ---------- цифры: крупно, со светящимися разделителями ---------- */
.stats-bar { border-radius: 26px; }
.stat-item { padding: 26px 28px; }
.stat-item + .stat-item { border-left: 0; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(transparent, var(--g-blue-2), transparent); }
.stat-item dt { font-size: clamp(30px, 3.2vw, 44px); }

/* ---------- тарифы: выбранный план — белая карточка, как активный пункт меню ---------- */
.plans { gap: 18px; align-items: center; }
.plan { border-radius: 28px; padding: 30px 26px 26px; }
.plan.featured {
  padding: 58px 28px 30px; border: 0; color: #0f1b33; transform: translateY(-8px);
  background: var(--g-white);
  box-shadow: 0 40px 90px -40px rgba(59, 108, 246, .9), 0 0 0 1px rgba(255, 255, 255, .6);
}
.plan.featured .muted, .plan.featured ul, .plan.featured .price small { color: #4f5d78; }
.plan.featured ul { border-top-color: rgba(30, 50, 110, .12); }
.plan.featured li .ic { color: #2f5be0; }
.plan.featured h3, .plan.featured .price { color: #0f1b33; }
.plan.featured .badge { top: 14px; left: 28px; color: #2a1800; background: linear-gradient(180deg, #fcd34d, #f59e0b); box-shadow: 0 6px 16px rgba(245, 158, 11, .5); }
.plan.featured .l-btn.ghost { background: #eef2ff; color: #0f1b33; border-color: #d6def2; }
.billing-period-switch { padding: 4px; border-radius: 14px; background: var(--g-glass); border: 1px solid var(--g-glass-line); }
.billing-period-switch .bp-btn.active { background: var(--g-white); color: #0f1b33; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .3); }

/* ---------- вопросы — в две колонки ---------- */
@media (min-width: 900px) {
  .faq-list { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.faq details { border-radius: 18px; }

/* светлая тема: белые карточки и так белые — выбранный тариф делаем синим стеклом, как меню */
@media (prefers-color-scheme: light) {
  .plan.featured { color: #fff; background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 34%), linear-gradient(165deg, #4a78ec, #1b3274 58%, #0d1838); box-shadow: 0 40px 90px -40px rgba(30, 60, 160, .8); }
  .plan.featured h3, .plan.featured .price { color: #fff; }
  .plan.featured .muted, .plan.featured ul, .plan.featured .price small { color: rgba(255, 255, 255, .8); }
  .plan.featured ul { border-top-color: rgba(255, 255, 255, .18); }
  .plan.featured li .ic { color: #fcd34d; }
  .plan.featured .l-btn:not(.ghost) { background: var(--g-white); color: #0f1b33; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
}
