/* Пруфлекс Mini App — дизайн-система.
   Светлая база, у каждой услуги свой цветной hero, 3D-объекты «падают» при входе. */

@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f1f4f0;
  --card: #ffffff;
  --text: #0e1512;
  --muted: #66716c;
  --line: rgba(14, 21, 18, .07);
  --green: #038361;
  --green-2: #06a579;
  --lime: #c6e44f;
  --ink: #0b1411;
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.45, .5, 1);
  /* Безопасные зоны: полноэкранный режим Telegram + вырез экрана */
  --safe-top: calc(var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  --top-pad: max(var(--safe-top), 16px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); overscroll-behavior: none; }
body {
  color: var(--text);
  font: 500 15px/1.4 "Montserrat", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  overflow: hidden;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
textarea, input { font: inherit; -webkit-user-select: text; user-select: text; caret-color: var(--green); }
/* iOS WebView прячет курсор в поле, если выделение запрещено у родителя (body: user-select none) —
   контейнерам полей возвращаем выделение (жалоба 24.09.2026: «не видно палочки при вводе»). */
.field, .composer, .composer .bar, .pf-input, .sheet .field { -webkit-user-select: auto; user-select: auto; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 12px; }

/* ——— Экраны и переходы ——— */
#app { position: fixed; inset: 0; overflow: hidden; }
.screen {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; background: var(--bg);
  padding-bottom: calc(120px + var(--safe-bottom));
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.dark { background: #06090a; color: #f4f6f3; }
/* backwards, а не both: после входа у экрана не должно оставаться transform — иначе fixed-кнопки «прилипают» к экрану, а не к окну */
.screen.enter { animation: push-in .5s var(--ease) backwards; }
.screen.leave { animation: push-out .38s var(--ease) forwards; pointer-events: none; }
.screen.enter-back { animation: pop-in .42s var(--ease) backwards; }
.screen.leave-back { animation: pop-out .38s var(--ease) forwards; pointer-events: none; z-index: 2; }
.screen.fade-in { animation: fade-in .35s var(--ease) backwards; }
/* Экран под верхним в стеке: скрыт, но живой — сохраняет прокрутку и не переигрывает анимации */
.screen.parked { visibility: hidden; pointer-events: none; }
/* Перерисовка с новыми данными — без повторных входных анимаций */
.no-intro .drop, .no-intro .hero .card-slot .brandcard, .no-intro .card-art,
.no-intro .hero .chips, .no-intro .hero h1, .no-intro .hero .sub, .no-intro .cta-bar,
.no-intro .avatar, .no-intro .item { animation: none !important; }
.no-intro .drop { transform: rotate(var(--r, 0deg)); }
.no-intro .tile img { opacity: 1; animation: none !important; }
@keyframes push-in { from { transform: translateX(34%); opacity: 0; } }
@keyframes push-out { to { transform: translateX(-18%); opacity: 0; } }
@keyframes pop-in { from { transform: translateX(-18%); opacity: 0; } }
@keyframes pop-out { to { transform: translateX(34%); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }

.wrap { padding: 0 16px; }
.stack > * + * { margin-top: 12px; }

/* ——— Шапка главной ——— */
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--top-pad) + 12px) 18px 16px;
}
.page-head h1 { margin: 0; font-size: 24px; line-height: 1.1; font-weight: 750; letter-spacing: -.02em; }
.pill-link {
  flex-shrink: 0; padding: 10px 16px; border-radius: 999px;
  background: #dff3e9; color: var(--green); font-weight: 650; font-size: 14px;
}
.demo-badge {
  margin: 0 16px 12px; padding: 10px 14px; border-radius: 16px;
  background: #fff6d8; color: #6b5300; font-size: 12.5px; line-height: 1.35;
}

/* ——— Карточки услуг на главной ——— */
.product {
  position: relative; display: block; width: 100%; text-align: left;
  min-height: 272px; margin-top: 30px; padding: 18px 18px 92px;
  border-radius: var(--r-xl); color: #fff; overflow: visible;
  box-shadow: 0 18px 40px -22px rgba(3, 60, 44, .55);
  transition: transform .35s var(--spring);
  isolation: isolate;
}
.product:first-child { margin-top: 18px; }
.product:active { transform: scale(.975); }
.product::before { /* мягкий блик по диагонали */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.28), transparent 55%);
}
/* Метки не залезают под мини-карточку на узких экранах — переносятся */
.product .chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 52%; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px;
  border-radius: 999px; font-size: 12px; font-weight: 650;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip svg { width: 15px; height: 15px; }
.product h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 58px 0 6px; font-size: 22px; line-height: 1.12; font-weight: 750; letter-spacing: -.015em; }
.badge { flex-shrink: 0; padding: 3px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.22); letter-spacing: .02em; }
.product p { margin: 0; max-width: 86%; font-size: 14px; line-height: 1.38; color: rgba(255, 255, 255, .82); }
.product .mini {
  position: absolute; right: 16px; top: -22px; width: 44%; aspect-ratio: 1.45;
  transform: rotate(4deg); pointer-events: none;
}
.product .mini .brandcard { position: absolute; inset: 8% 0 0 0; transform: none; }
.product .mini .bc-logo span { display: none; }
.product .mini > img { position: absolute; right: -6%; bottom: -24%; width: 78%; filter: drop-shadow(0 14px 18px rgba(0,0,0,.28)); }
.product .stats {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: grid; grid-template-columns: 1fr 1fr; padding: 13px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.stats div { text-align: center; }
.stats b { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.stats span { display: block; margin-top: 1px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.stats div + div { border-left: 1px solid rgba(255,255,255,.18); }

.t-analysis { background: linear-gradient(155deg, #1cc08e 0%, #038361 48%, #024c39 100%); }
.t-chat { background: linear-gradient(155deg, #4a5a53 0%, #1a2420 42%, #070b09 100%); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.t-chat .badge { background: var(--lime); color: var(--ink); }
.t-chat .stats b.lime { color: var(--lime); }
.t-lawyer { background: linear-gradient(155deg, #3cc5b3 0%, #0d7f87 46%, #0a3f55 100%); box-shadow: 0 18px 40px -22px rgba(6, 60, 80, .6); }

/* ——— Фирменная карточка (как карта в референсе) ——— */
.brandcard {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.26), rgba(255,255,255,.06));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 22px 44px -18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.brandcard .bc-logo { position: absolute; left: 9%; top: 11%; display: flex; align-items: center; gap: 7px; width: 55%; }
.brandcard .bc-logo img { width: 22%; min-width: 18px; }
.brandcard .bc-logo span { color: #fff; font-weight: 800; font-size: clamp(9px, 3.2vw, 17px); letter-spacing: .06em; }
.t-chat .brandcard, .hero.t-chat .brandcard { background: linear-gradient(145deg, #1e2925, #0b100e); border-color: rgba(255,255,255,.14); }

/* ——— Hero страницы услуги ——— */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--top-pad) + 36px) 18px 34px;
  border-radius: 0 0 44px 44px; min-height: 468px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  isolation: isolate;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 60% at 50% 32%, rgba(255,255,255,.18), transparent 70%); }
.hero .stage { position: absolute; inset: 0; pointer-events: none; }
.hero .card-slot {
  position: relative; width: min(74vw, 330px); aspect-ratio: 1.58; margin-bottom: 18px;
  perspective: 900px;
}
.hero .card-slot .brandcard {
  position: absolute; inset: 0; transform: rotateX(8deg) rotateY(-10deg) rotateZ(-5deg);
  animation: card-in 1s var(--spring) .1s both;
}
.hero .card-slot .card-art { position: absolute; right: -4%; bottom: -14%; width: 64%; filter: drop-shadow(0 16px 22px rgba(0,0,0,.3)); animation: card-in 1.1s var(--spring) .2s both; }
.hero .card-slot .card-art.second { right: 36%; bottom: -8%; width: 38%; animation-delay: .32s; }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(.82) rotateZ(-12deg); } }
.hero .chips { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; animation: fade-in .6s var(--ease) .45s both; }
.hero h1 { margin: 0; text-align: center; font-size: 27px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; animation: fade-in .6s var(--ease) .5s both; }
.hero .sub { margin: 8px auto 0; max-width: 330px; text-align: center; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.78); animation: fade-in .6s var(--ease) .58s both; }

/* Падающие 3D-предметы */
.drop { position: absolute; width: var(--w, 30%); left: var(--x); top: var(--y); animation: drop 1.15s var(--spring) var(--d, 0s) both; }
.drop img { width: 100%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.25)); animation: bob var(--bob, 5s) ease-in-out calc(var(--d, 0s) + 1.1s) infinite alternate; }
.drop.blur img { filter: blur(3px) drop-shadow(0 10px 14px rgba(0,0,0,.2)); opacity: .85; }
@keyframes drop {
  0% { opacity: 0; transform: translate3d(0, -130vh, 0) rotate(calc(var(--r, 0deg) - 40deg)); }
  12% { opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
}
@keyframes bob { from { transform: translate3d(0, -5px, 0) rotate(-2deg); } to { transform: translate3d(0, 7px, 0) rotate(2.5deg); } }

/* ——— Контент страницы услуги ——— */
.section { padding: 0 16px; margin-top: 12px; }
.row-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 19px 20px; border-radius: var(--r-lg); background: var(--card); text-align: left;
}
.row-card .l b { display: block; font-size: 17px; font-weight: 700; }
.row-card .l span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.row-card .v { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 750; color: var(--green); white-space: nowrap; }
.row-card .v svg { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease); }
.row-card[aria-expanded="true"] .v svg { transform: rotate(180deg); }
.row-note { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.row-note p { margin: 0; padding: 4px 20px 18px; font-size: 14px; line-height: 1.45; color: var(--muted); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; margin-top: 12px; }
.tile {
  position: relative; overflow: hidden; min-height: 212px; padding: 17px 16px 96px;
  border-radius: var(--r-lg); background: var(--card); text-align: left;
  transition: transform .3s var(--spring);
}
button.tile:active { transform: scale(.97); }
.tile h3 { position: relative; z-index: 1; margin: 0; font-size: 16px; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; }
.tile p { position: relative; z-index: 1; margin: 6px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); max-width: 92%; }
.tile img { position: absolute; right: -12px; bottom: -18px; width: 56%; transition: transform .5s var(--spring); }
/* Картинка видна всегда. Раньше она была скрыта до срабатывания IntersectionObserver — в Telegram на iPhone
   он не срабатывал, и плитки оставались без картинок (прогон 01.10.2026). «Выпрыгивание» — только украшение. */
.tile img { opacity: 1; }
.tile.in img { animation: tile-pop .9s var(--spring) both; animation-delay: var(--d, 0s); }
@keyframes tile-pop { from { opacity: 0; transform: translate3d(20px, 30px, 0) scale(.7) rotate(-10deg); } }
.dark .tile, .dark .row-card, .dark .acc { background: #171c1b; color: #f4f6f3; }
.dark .tile p, .dark .row-card .l span, .dark .acc .rows span { color: #9aa39f; }
.dark .row-card .v { color: var(--lime); }

/* Аккордеоны: «Условия» и вопросы */
.acc { margin: 12px 16px 0; border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.acc > button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; text-align: left; font-size: 17px; font-weight: 750; }
.acc > button svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--muted); transition: transform .35s var(--ease); }
.acc.open > button svg { transform: rotate(180deg); }
.acc .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.open .body { grid-template-rows: 1fr; }
.acc .body > div { overflow: hidden; }
.acc .rows { padding: 0 20px 14px; }
.acc .rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 15px; }
.acc .rows b { font-weight: 750; white-space: nowrap; }
.acc .rows s { color: var(--muted); font-weight: 600; margin-right: 6px; }
.acc .text { padding: 0 20px 20px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.acc .text ol, .acc .text ul { margin: 0; padding-left: 20px; }
.acc .text li + li { margin-top: 6px; }
.disclaimer { margin: 16px 20px 0; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }
.dark .disclaimer { color: #7f8985; }

/* ——— Закреплённая кнопка действия ——— */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 20;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 55%, rgba(241,244,240,0));
  animation: cta-in .6s var(--spring) .35s both;
  transition: bottom .25s var(--ease);
}
/* Кнопка над таб-баром (вкладка «Юрист») */
.cta-bar.above-tabbar { bottom: calc(76px + var(--safe-bottom)); padding-bottom: 8px; background: none; }
/* Клавиатура открыта: кнопку прячем. Поднимать её над клавиатурой ненадёжно — в Telegram на iPhone размеры окна
   при прокрутке и на поле даты врут, и кнопка улетала в середину экрана (баг калькулятора, 01.10.2026). */
.kb-open .cta-bar { bottom: 0; opacity: 0; transform: translateY(120%); pointer-events: none; animation: none; }
.cta-bar { transition: opacity .2s var(--ease), transform .25s var(--ease); }
.kb-open .tabbar { transform: translateY(160%); opacity: 0; pointer-events: none; }
.cta-bar.on-dark { background: linear-gradient(to top, #06090a 55%, rgba(6,9,10,0)); }
@keyframes cta-in { from { transform: translateY(120%); } }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 62px; border-radius: 999px;
  background: linear-gradient(180deg, #142a22, #07110d); color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 16px 34px -14px rgba(3, 60, 44, .7), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .25s var(--spring), opacity .2s;
}
.cta:active { transform: scale(.97); }
.cta:disabled { opacity: .55; }
.cta.light { background: #fff; color: var(--text); box-shadow: 0 16px 34px -16px rgba(0,0,0,.6); }
.cta.lime { background: var(--lime); color: var(--ink); }
.cta img, .cta svg { width: 24px; height: 24px; flex-shrink: 0; }
.cta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta .star { font-size: 18px; }
.cta-sub { margin-top: 8px; text-align: center; font-size: 12px; color: var(--muted); }

/* ——— Плавающий таб-бар ——— */
.tabbar {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;
  border-radius: 34px; background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 16px 40px -16px rgba(10, 30, 22, .35), inset 0 0 0 1px rgba(255,255,255,.7);
  transition: transform .45s var(--ease), opacity .3s;
}
.tabbar.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px;
  border-radius: 28px; font-size: 11.5px; font-weight: 650; color: #2a3430;
  transition: background .3s var(--ease), color .3s;
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.active { background: #fff; color: var(--green); box-shadow: 0 6px 16px -8px rgba(3, 60, 44, .35); }

/* ——— Формы: новый разбор ——— */
.flow-head { padding: calc(var(--top-pad) + 56px) 20px 8px; }
.flow-head .step { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.flow-head h1 { margin: 8px 0 6px; font-size: 27px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.flow-head p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.label { margin: 22px 20px 10px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.cat {
  position: relative; overflow: hidden; min-height: 104px; padding: 14px; border-radius: 22px;
  background: var(--card); text-align: left; font-size: 14px; font-weight: 700; line-height: 1.2;
  border: 2px solid transparent; transition: border-color .25s, transform .3s var(--spring), background .25s;
}
.cat:active { transform: scale(.96); }
.cat > span:first-child { position: relative; z-index: 1; display: block; max-width: 64%; }
.cat img { position: absolute; right: -10px; bottom: -12px; width: 48%; transition: transform .45s var(--spring); }
.cat.sel { border-color: var(--green); background: #eefaf4; }
.cat.sel img { transform: scale(1.08) rotate(-6deg); }
.cat .tick {
  position: absolute; left: 12px; bottom: 12px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff;
  transform: scale(0); transition: transform .35s var(--spring);
}
.cat.sel .tick { transform: scale(1); }
.cat .tick svg { width: 14px; height: 14px; }
.cat.wide { grid-column: span 2; min-height: 72px; }
.cat.wide img { width: 22%; bottom: -16px; }
.field { margin: 0 16px; padding: 16px 18px 12px; border-radius: 24px; background: var(--card); border: 2px solid transparent; transition: border-color .25s; }
.field:focus-within { border-color: var(--green); }
.field textarea { display: block; width: 100%; min-height: 150px; resize: none; border: 0; outline: 0; background: none; color: var(--text); font-size: 16px; line-height: 1.5; } /* 16px: иначе iOS зумит экран при фокусе */
.field textarea::placeholder { color: #9aa39f; }
.field .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.hints { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; }
.hint { padding: 9px 13px; border-radius: 999px; background: #e4ebe6; font-size: 13px; font-weight: 600; color: #2b3632; transition: transform .25s var(--spring); }
.hint:active { transform: scale(.95); }

/* Экран анализа */
.analyzing { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 40px 24px calc(60px + var(--safe-bottom)); text-align: center; }
.scan { position: relative; width: 210px; height: 210px; margin-bottom: 26px; }
.scan .doc { position: absolute; inset: 10% 14%; animation: bob 3s ease-in-out infinite alternate; }
.scan .lens { position: absolute; width: 56%; left: 30%; top: 30%; animation: sweep 2.6s var(--ease) infinite; filter: drop-shadow(0 14px 18px rgba(0,0,0,.2)); }
.scan::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(6,165,121,.18), transparent 65%); animation: pulse 2.2s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translate(-30%, -25%) rotate(-8deg); } 50% { transform: translate(8%, 12%) rotate(6deg); } 100% { transform: translate(-30%, -25%) rotate(-8deg); } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .6; } }
.analyzing h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.steps { width: 100%; max-width: 330px; margin: 22px 0 0; padding: 0; list-style: none; text-align: left; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; font-size: 14.5px; font-weight: 600; color: #9aa39f; transition: color .3s, background .3s; }
.steps li .dot { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #e4ebe6; transition: background .3s; }
.steps li .dot svg { width: 14px; height: 14px; opacity: 0; transition: opacity .3s; }
.steps li.active { background: var(--card); color: var(--text); }
.steps li.active .dot { background: #d7f1e4; animation: pulse 1.2s ease-in-out infinite; }
.steps li.done { color: var(--text); }
.steps li.done .dot { background: var(--green); color: #fff; }
.steps li.done .dot svg { opacity: 1; }

/* Результат разбора / документ */
.result-head { padding: calc(var(--top-pad) + 56px) 20px 4px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #d9f3e7; color: var(--green); font-size: 12.5px; font-weight: 700; }
.status-chip.wait { background: #fff1c9; color: #7a5a00; }
.status-chip svg { width: 15px; height: 15px; }
.result-head h1 { margin: 12px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.doc-card { margin: 16px 16px 0; padding: 20px; border-radius: var(--r-lg); background: var(--card); font-size: 15px; line-height: 1.55; -webkit-user-select: text; user-select: text; }
.doc-card h4 { margin: 18px 0 6px; font-size: 16px; font-weight: 800; }
.doc-card h4:first-child { margin-top: 0; }
.doc-card p { margin: 0 0 10px; }
.doc-card ul, .doc-card ol { margin: 0 0 10px; padding-left: 20px; }
.doc-card li { margin: 4px 0; }
.doc-card a { color: var(--green); }
.doc-card.clamp { max-height: 360px; overflow: hidden; position: relative; }
.doc-card.clamp::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); }
.more { display: block; margin: 10px auto 0; padding: 10px 18px; border-radius: 999px; background: #e4ebe6; font-size: 14px; font-weight: 700; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; margin-top: 12px; }
.action { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 18px; background: var(--card); font-size: 14.5px; font-weight: 700; transition: transform .25s var(--spring); }
.action:active { transform: scale(.96); }
.action svg { width: 20px; height: 20px; color: var(--green); }

/* Премиальный баннер чата внутри результата */
.promo {
  position: relative; overflow: hidden; margin: 16px 16px 0; padding: 20px 20px 22px; border-radius: var(--r-xl);
  color: #fff; text-align: left; width: calc(100% - 32px); display: block;
}
.promo h3 { margin: 0; max-width: 62%; font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.promo p { margin: 8px 0 16px; max-width: 64%; font-size: 13.5px; color: rgba(255,255,255,.8); line-height: 1.4; }
.promo .go { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 750; font-size: 14.5px; }
.promo img { position: absolute; right: -18px; bottom: -22px; width: 46%; }
.lock { position: absolute; top: 12px; right: 12px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,21,18,.08); color: var(--muted); }
.lock svg { width: 15px; height: 15px; }

/* ——— Мои дела ——— */
.list { padding: 0 16px; }
.item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; margin-top: 10px;
  border-radius: 24px; background: var(--card); text-align: left; transition: transform .25s var(--spring);
  animation: fade-in .45s var(--ease) both; animation-delay: var(--d, 0s);
}
.item:active { transform: scale(.98); }
.item .ic { flex-shrink: 0; width: 56px; height: 56px; border-radius: 18px; background: #eef3ef; display: grid; place-items: center; overflow: hidden; }
.item .ic img { width: 120%; max-width: none; }
.item .tx { flex: 1; min-width: 0; }
.item .tx b { display: block; font-size: 15.5px; font-weight: 700; }
.item .tx span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.item .st { flex-shrink: 0; padding: 5px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #d9f3e7; color: var(--green); }
.item .st.wait { background: #fff1c9; color: #7a5a00; }
.item > svg { flex-shrink: 0; width: 20px; height: 20px; color: #a5aeaa; }
.empty { padding: 20px 28px 0; text-align: center; }
.empty img { width: 190px; margin: 0 auto; animation: bob 4s ease-in-out infinite alternate; }
.empty h2 { margin: 8px 0 6px; font-size: 21px; font-weight: 800; }
.empty p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.btn-inline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }

/* ——— Профиль ——— */
.profile { padding: calc(var(--top-pad) + 40px) 20px 26px; text-align: center; }
.avatar {
  width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, #1cc08e, #03634a); box-shadow: 0 14px 30px -14px rgba(3,99,74,.7);
  animation: card-in .8s var(--spring) both;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile h1 { margin: 14px 0 4px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.profile p { margin: 0; color: var(--muted); font-size: 15px; }
.sheet-list { margin: 0 16px; padding: 10px; border-radius: 30px; background: var(--card); }
.srow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border-radius: 22px; background: #f5f7f4; text-align: left; transition: transform .25s var(--spring); }
.srow + .srow { margin-top: 10px; }
.srow:active { transform: scale(.98); }
.srow .ico { flex-shrink: 0; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: #e8eee9; color: var(--green); }
.srow .ico svg { width: 26px; height: 26px; }
.srow .tx { flex: 1; min-width: 0; }
.srow .tx b { display: block; font-size: 16px; font-weight: 700; }
.srow .tx span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.srow > svg { flex-shrink: 0; width: 20px; height: 20px; color: #a5aeaa; }
.switch { position: relative; flex-shrink: 0; width: 50px; height: 30px; border-radius: 999px; background: #cfd8d2; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }

/* ——— Нижний лист (документ, заявка) ——— */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(8, 14, 11, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .3s both; }
.sheet-bg.closing { animation: fade .25s reverse both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 51; max-height: calc(90vh - var(--kb, 0px)); overflow-y: auto;
  padding: 10px 16px calc(18px + var(--safe-bottom)); border-radius: 30px 30px 0 0; background: var(--bg);
  transition: bottom .25s var(--ease);
  animation: sheet-in .45s var(--ease) both;
}
.sheet.closing { animation: sheet-out .3s var(--ease) both; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
.sheet .grab { width: 42px; height: 5px; margin: 0 auto 12px; border-radius: 99px; background: #cdd6d0; }
.sheet h2 { margin: 6px 4px 4px; font-size: 21px; font-weight: 800; letter-spacing: -.015em; }
.sheet .meta { margin: 0 4px 12px; font-size: 13px; color: var(--muted); }
.sheet .doc-card { margin: 0; }
.sheet .field { margin: 0; }
.sheet .cta { margin-top: 14px; }

/* Успех */
.success { padding: 12px 8px 4px; text-align: center; }
.success img { width: 170px; margin: 0 auto; animation: card-in .9s var(--spring) both; }
.success h2 { margin: 4px 0 6px; }
.success ~ .cta + .cta { margin-top: 8px; }
.success p { margin: 0 auto; max-width: 300px; color: var(--muted); line-height: 1.45; }

.toast {
  position: fixed; left: 50%; top: calc(var(--top-pad) + 10px); z-index: 60; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 650;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); animation: toast 2.4s var(--ease) both; white-space: nowrap;
}
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }

.skeleton { height: 88px; margin: 10px 16px 0; border-radius: 24px; background: linear-gradient(90deg, #e7ece8 0%, #f5f7f4 50%, #e7ece8 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Кнопка «Назад» вне Telegram (в Telegram — нативная) */
.back-fallback {
  position: fixed; z-index: 40; left: 14px; top: calc(var(--top-pad) + 8px);
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 10px;
  border-radius: 999px; background: rgba(255,255,255,.28); color: #fff; font-weight: 650; font-size: 15px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.back-fallback.ink { background: rgba(14,21,18,.08); color: var(--text); }
.back-fallback svg { width: 20px; height: 20px; }

/* ——— Вложения ——— */
.field .attach { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; background: #e7f3ec; color: var(--green); font-size: 12.5px; font-weight: 700; }
.field .attach svg { width: 15px; height: 15px; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.field .files:not(:empty) { margin-top: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 6px 6px 10px; border-radius: 12px; background: #eef3ef; font-size: 12.5px; font-weight: 600; }
.file-chip > svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--green); }
.file-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.file-chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(14,21,18,.08); }
.file-chip button svg { width: 11px; height: 11px; }
.file-chip.loading > svg { animation: spin 1s linear infinite; color: var(--muted); }
.file-chip.error { background: #fde8e4; color: #7a2a1c; }
.file-chip.error > svg { color: #c0392b; }
@keyframes spin { to { transform: rotate(360deg); } }
.from-bot { display: flex; align-items: center; gap: 8px; margin: -2px 16px 10px; padding: 9px 12px; border-radius: 14px; background: #e3f1fb; color: #155a86; font-size: 12.5px; font-weight: 600; }
.from-bot svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ——— Чат по делу ——— */
.chat-head {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: calc(var(--top-pad) + 50px) 18px 12px;
  background: rgba(241, 244, 240, .88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.chat-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.chat-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-count { flex-shrink: 0; padding: 7px 11px; border-radius: 999px; background: #dff3e9; color: var(--green); font-size: 12px; font-weight: 700; }
.msgs { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 8px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 20px; font-size: 15px; line-height: 1.5; animation: fade-in .3s var(--ease) both; -webkit-user-select: text; user-select: text; }
.msg.ai { align-self: flex-start; background: var(--card); border-bottom-left-radius: 6px; box-shadow: 0 6px 18px -14px rgba(10, 30, 22, .4); }
.msg.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
.msg-body h4 { margin: 10px 0 4px; font-size: 15px; font-weight: 800; }
.msg-body h4:first-child { margin-top: 0; }
.msg-body p { margin: 0 0 8px; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-body ul, .msg-body ol { margin: 0 0 8px; padding-left: 18px; }
.msg-body a { color: var(--green); }
.msg-body.clamp { max-height: 300px; overflow: hidden; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
/* Документ/разбор в ленте чата — карточка вместо простыни текста */
.msg-doc {
  align-self: flex-start; width: min(100%, 340px); padding: 12px; border-radius: 20px; border-bottom-left-radius: 6px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 18px -14px rgba(10, 30, 22, .4);
  display: grid; gap: 10px; animation: fade-in .3s var(--ease) both;
}
.md-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.md-top img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.md-tx { display: grid; gap: 3px; min-width: 0; }
.md-tx b { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.md-st { font-size: 12px; font-weight: 600; color: var(--green); }
.md-st.wait { color: #9a6208; }
.md-lead { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.md-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.md-act { display: flex; gap: 8px; }
.md-act button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 12px;
  background: rgba(3, 131, 97, .09); color: var(--green); font-weight: 700; font-size: 13.5px;
}
.md-act button svg { width: 16px; height: 16px; }
.md-act button:disabled { opacity: .5; }
.msg-more { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--green); }
.msg-file { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.18); font-size: 12.5px; font-weight: 600; }
.msg-file svg { width: 14px; height: 14px; }
.msg.typing { display: flex; gap: 5px; padding: 16px 16px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa39f; animation: blink 1.2s infinite ease-in-out; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.composer {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 20;
  padding: 8px 12px calc(10px + var(--safe-bottom)); background: rgba(241, 244, 240, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
  transition: bottom .25s var(--ease);
}
.kb-open .composer { padding-bottom: 8px; }
.composer .files:not(:empty) { margin-bottom: 8px; }
.composer .bar { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea {
  flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 11px 14px; border: 0; outline: 0;
  border-radius: 22px; background: var(--card); color: var(--text); font-size: 16px; line-height: 1.4;
  box-shadow: inset 0 0 0 1px var(--line);
}
.composer textarea:disabled { opacity: .6; }
.c-attach, .c-send { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: transform .2s var(--spring), opacity .2s; }
.c-attach { background: var(--card); color: var(--green); box-shadow: inset 0 0 0 1px var(--line); }
.c-send { background: var(--green); color: #fff; }
.c-attach svg, .c-send svg { width: 20px; height: 20px; }
.c-send:disabled, .c-attach:disabled { opacity: .35; }
.c-send:not(:disabled):active, .c-attach:not(:disabled):active { transform: scale(.9); }
.chat-pay { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-bottom: 8px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.chat-pay svg { width: 18px; height: 18px; color: #ffc83d; }

/* Предложение добавить на главный экран */
.home-banner { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; padding: 12px; border-radius: 22px; background: var(--card); }
.home-banner .ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #e7f3ec; color: var(--green); }
.home-banner .ico svg { width: 24px; height: 24px; }
.home-banner div { flex: 1; min-width: 0; }
.home-banner b { display: block; font-size: 14.5px; font-weight: 750; }
.home-banner div span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.home-banner .add { flex-shrink: 0; padding: 9px 13px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; }
.home-banner .x { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); }
.home-banner .x svg { width: 13px; height: 13px; }

/* Баннер «нет связи» */
.offline { display: flex; align-items: center; gap: 12px; margin: 0 16px 12px; padding: 12px 14px; border-radius: 18px; background: #fde8e4; color: #7a2a1c; font-size: 13px; line-height: 1.35; }
.offline span { flex: 1; }
.offline button { flex-shrink: 0; padding: 9px 14px; border-radius: 999px; background: #7a2a1c; color: #fff; font-weight: 700; font-size: 13px; }

/* Лист «О сервисе» */
.about { text-align: center; }
.about-logo { width: 64px; margin: 6px auto 4px; }
.about .meta { margin: 6px 8px 14px; line-height: 1.45; }
.about-steps { display: grid; gap: 10px; text-align: left; }
.about-step { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 8px; border-radius: 20px; background: var(--card); }
.about-step img { width: 64px; flex-shrink: 0; }
.about-step b { display: block; font-size: 15px; font-weight: 750; }
.about-step span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }

/* ——— Приложения в форме разбора ——— */
.attach-grid { display: grid; gap: 8px; padding: 0 16px; }
.att {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 44px 10px 10px; border-radius: var(--r-md); background: var(--card);
}
.att-n {
  position: absolute; left: 6px; top: 6px; z-index: 1; display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 750;
}
.att-thumb { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 14px; background: var(--bg); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-thumb svg { width: 26px; height: 26px; color: var(--green); }
.att-thumb .spin { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: rgba(255,255,255,.7); border-radius: 50%; }
.att-tx { min-width: 0; }
.att-tx b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.att-tx span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-size: 12px; color: var(--muted); }
.att.error { background: #fde8e4; }
.att.error .att-thumb svg { color: #c0392b; }
.att-x { position: absolute; right: 10px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(14,21,18,.07); }
.att-x svg { width: 12px; height: 12px; }
.att-add {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; text-align: left;
  border: 1.5px dashed rgba(3, 131, 97, .45); border-radius: var(--r-md); background: rgba(3, 131, 97, .05);
}
.att-add > svg { flex-shrink: 0; width: 26px; height: 26px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--green); color: #fff; }
.att-add b { display: block; font-size: 15px; font-weight: 750; color: var(--green); }
.att-add span span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.attach-hint { margin: 8px 20px 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.offer-files { padding: 14px 16px; border-radius: var(--r-md); background: var(--card); }
.offer-files > b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 750; }
.offer-files > b svg { width: 18px; height: 18px; color: var(--green); }
.offer-files ol { margin: 8px 0 0; padding-left: 22px; font-size: 13.5px; line-height: 1.5; }
.offer-files p { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.offer-files .files { margin-top: 8px; }
.offer-files .btn-inline { margin-top: 10px; }
.doc-files:not(:empty) { margin-top: 12px; }
.doc-files .offer-files { background: var(--bg); }

/* ——— Закрытый документ и тарифы ——— */
.offer-slot { display: grid; gap: 12px; }
.offer-doc, .offer-bought, .offer-honest { padding: 16px; border-radius: var(--r-lg); background: var(--card); }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lock-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: #0b1411; color: #fff; font-size: 12.5px; font-weight: 700;
}
.lock-chip svg { width: 14px; height: 14px; }
.lock-chip.wait { background: #fff4d6; color: #6b5300; }
.lock-chip.ok { background: #dff3e9; color: var(--green); }
.lock-chip .spin { width: 12px; height: 12px; }
.offer-meta { font-size: 12px; color: var(--muted); }
.offer-doc h3, .offer-bought h3, .offer-honest h3 { margin: 10px 0 10px; font-size: 18px; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; }
.offer-bought p, .offer-honest p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.offer-bought .cta, .offer-honest .cta { margin-top: 14px; }
.offer-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }

.paper {
  position: relative; max-height: 360px; overflow: hidden; padding: 16px 16px 60px;
  border-radius: 14px; background: #fbfbf8; border: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.55; color: #1b221f;
  -webkit-user-select: none; user-select: none;
}
.paper p { margin: 0; }
.paper .pl-h { margin-top: 2px; font-family: "Montserrat", sans-serif; font-size: 12.5px; font-weight: 750; }
.paper .pl-gap { height: 8px; }
.paper .blur { filter: blur(4.5px); color: #2a332f; }
.pl-skel { height: 10px; margin: 9px 0; border-radius: 6px; background: linear-gradient(90deg, #eceee9 25%, #f6f7f3 50%, #eceee9 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.paper-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
  background: linear-gradient(to bottom, rgba(251,251,248,0), #fbfbf8 70%);
}
.paper-fade span, .paper-fade .pf-unlock { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #0b1411; color: #fff; font-family: "Montserrat", sans-serif; font-size: 12.5px; font-weight: 700; }
.paper-fade svg { width: 14px; height: 14px; }

.plans { display: grid; gap: 10px; }
.plan {
  display: grid; gap: 6px; width: 100%; padding: 16px; border-radius: var(--r-lg); text-align: left;
  background: var(--card); border: 1.5px solid var(--line); transition: transform .3s var(--spring);
}
.plan:active { transform: scale(.98); }
.plan.featured { background: linear-gradient(155deg, #1a2420, #070b09); color: #f4f6f3; border-color: transparent; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-top b { font-size: 17px; font-weight: 750; }
.plan-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 11.5px; font-weight: 750; }
.plan-badge svg { width: 13px; height: 13px; }
.plan-sub { font-size: 13px; color: var(--muted); }
.plan.featured .plan-sub { color: #a9b2ae; }
.plan ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.plan li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.plan li svg { flex-shrink: 0; width: 14px; height: 14px; color: var(--green); }
.plan.featured li svg { color: var(--lime); }
.plan-price { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.plan-price svg { width: 20px; height: 20px; }

.offer-honest { text-align: center; }
.offer-honest img { width: 76px; margin: 0 auto; }
.link-btn { display: block; margin: 12px auto 0; font-size: 13.5px; font-weight: 650; color: var(--muted); text-decoration: underline; }
.cta.ghost { background: var(--card); color: var(--text); box-shadow: none; }

/* ——— Лист «Оплата по СБП» ——— */
.pay h2 { margin: 0 0 14px; }
.pay-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md); background: var(--bg);
}
.pay-art { flex-shrink: 0; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; }
.pay-art img { width: 44px; }
.pay-tx { flex: 1; min-width: 0; }
.pay-tx b { display: block; font-size: 15px; font-weight: 700; }
.pay-tx span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.pay-price { white-space: nowrap; font-size: 15px; font-weight: 750; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--bg); }
.pay-methods button { min-height: 42px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background-color .25s var(--ease), color .25s var(--ease); }
.pay-methods button[aria-checked="true"] { background: var(--card); color: var(--text); box-shadow: 0 4px 14px -6px rgba(3, 40, 30, .35); }
.pay-methods button:disabled { opacity: .6; }
.pay-email input {
  width: 100%; height: 50px; margin-top: 8px; padding: 0 16px; border: 0; border-radius: var(--r-md);
  background: var(--bg); color: var(--text); font-size: 15px;
}
.pay-email input::placeholder { color: var(--muted); }
.pay-hint { margin: 10px 4px 0; text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); }
.pay input:disabled { opacity: .7; }
.pay-promo { display: flex; gap: 8px; margin-top: 12px; }
.pay-promo input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 0; border-radius: var(--r-md);
  background: var(--bg); color: var(--text); font-size: 15px;
}
.pay-promo input::placeholder { color: var(--muted); }
.pay-promo .promo-apply { flex-shrink: 0; padding: 0 16px; border-radius: var(--r-md); background: var(--bg); font-size: 14px; font-weight: 700; color: var(--green); }
.promo-note { margin: 8px 2px 0; font-size: 13px; line-height: 1.35; }
.promo-note.ok { color: var(--green); }
.promo-note.err { color: #b3261e; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 0 2px; }
.pay-total span { font-size: 14px; color: var(--muted); }
.pay-total b { font-size: 22px; font-weight: 750; letter-spacing: -.02em; color: var(--green); }
.pay-body:not(:empty) { margin-top: 16px; }
.pay-qr { display: grid; justify-items: center; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 10px 30px -18px rgba(3, 40, 30, .5); }
.pay-qr img { width: min(240px, 62vw); aspect-ratio: 1; image-rendering: pixelated; }
.pay-qr p { margin: 0; max-width: 260px; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.spin { width: 15px; height: 15px; border: 2px solid rgba(3, 131, 97, .25); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-done { display: grid; justify-items: center; gap: 4px; padding: 10px 0 4px; text-align: center; }
.pay-done img { width: 86px; }
.pay-done b { font-size: 18px; font-weight: 750; }
.pay-done span { font-size: 13.5px; color: var(--muted); }
.pay .cta { margin-top: 16px; }

/* ——— Режим покупателя ——— */
.t-buyer { background: linear-gradient(155deg, #ffb45e 0%, #ee6a2c 48%, #9c3414 100%); box-shadow: 0 18px 40px -22px rgba(140, 50, 12, .55); }

/* Переключатель «Я продавец / Я покупатель» на главной */
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  margin: -4px 16px 0; padding: 4px; border-radius: 999px; background: #e3e9e4;
}
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--card); box-shadow: 0 4px 14px -6px rgba(3, 40, 30, .35);
  transition: transform .45s var(--spring);
}
.seg.right .seg-thumb { transform: translateX(100%); }
.seg button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 8px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted);
  transition: color .3s var(--ease);
}
.seg button svg { width: 18px; height: 18px; flex-shrink: 0; }
.seg button[aria-checked="true"] { color: var(--text); }
.seg button[aria-checked="true"][data-a="seller"] svg { color: var(--green); }
.seg button[aria-checked="true"][data-a="buyer"] svg { color: #e3642c; }

/* Экран «Кто вы?» */
.who-head { padding: calc(var(--top-pad) + 40px) 22px 6px; text-align: center; }
.who-head img { width: 56px; margin: 0 auto 14px; animation: fade-in .6s var(--ease) both; }
.who-head h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; animation: fade-in .6s var(--ease) .05s both; }
.who-head p { margin: 10px auto 0; max-width: 320px; font-size: 14.5px; line-height: 1.45; color: var(--muted); animation: fade-in .6s var(--ease) .1s both; }
.who-list { display: grid; gap: 14px; margin-top: 22px; }
.who-card {
  position: relative; overflow: hidden; isolation: isolate; width: 100%; min-height: 188px;
  padding: 18px 18px 22px; border-radius: var(--r-xl); color: #fff; text-align: left;
  transition: transform .35s var(--spring);
  animation: tile-in .7s var(--spring) var(--d, 0s) both;
}
.who-card:active { transform: scale(.975); }
.who-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.26), transparent 55%); }
.who-card .who-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
}
.who-card .who-ic svg { width: 24px; height: 24px; }
.who-card h2 { position: relative; margin: 38px 0 6px; max-width: 70%; font-size: 21px; line-height: 1.15; font-weight: 750; letter-spacing: -.015em; }
.who-card p { position: relative; margin: 0; max-width: 64%; font-size: 13.5px; line-height: 1.38; color: rgba(255,255,255,.84); }
.who-card img { position: absolute; z-index: -1; filter: drop-shadow(0 14px 18px rgba(0,0,0,.28)); pointer-events: none; }
.who-card .a1 { right: -4%; bottom: -10%; width: 40%; transform: rotate(-8deg); }
.who-card .a2 { right: 26%; top: 2%; width: 22%; transform: rotate(14deg); opacity: .9; }
.who-card .go {
  position: absolute; right: 16px; top: 16px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink);
}
.who-card .go svg { width: 17px; height: 17px; }
.who-card.sel { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
@keyframes tile-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }

/* Десктопный Telegram и планшеты: приложение остаётся «телефонной» ширины по центру */
@media (min-width: 620px) {
  #app, .tabbar, .cta-bar, .sheet, .composer { max-width: 560px; margin-inline: auto; }
  .tabbar { left: 0; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.offer-files .btn-inline { padding: 11px 16px; font-size: 14px; }
.offer-files .btn-inline svg { width: 18px; height: 18px; }

/* ——— Дела: карточка дела со списком документов внутри (раньше был плоский список документов) ——— */
/* minmax(0,1fr): иначе длинное название документа (nowrap) распирает колонку и карточка уезжает за экран */
.cases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 16px 24px; }
.case-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 14px 12px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0;
}
.case-card.cur { border-color: color-mix(in oklab, var(--green) 45%, var(--line)); }
.case-top { display: flex; align-items: center; gap: 10px; }
.case-top .ic { width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.case-top .ic img { width: 100%; height: 100%; object-fit: contain; }
.case-top .tx { display: grid; gap: 2px; min-width: 0; }
.case-top .tx b { font-size: 15.5px; line-height: 1.25; color: var(--text); }
.case-top .tx span { font-size: 12.5px; color: var(--muted); }
.case-top .st { margin-left: auto; font-size: 11.5px; color: var(--green); background: rgba(3, 131, 97, .1); border-radius: 999px; padding: 3px 9px; flex: none; }
.case-docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.case-doc {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: rgba(14, 21, 18, .04); border: 0; border-radius: 14px; padding: 9px 10px; color: var(--text); font: inherit; cursor: pointer;
}
.case-doc img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.case-doc > span:first-of-type { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-doc svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.case-doc .st.wait { font-size: 11px; color: #9a6208; white-space: nowrap; }
.case-empty { margin: 0; font-size: 13px; color: var(--muted); }
.case-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-note { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Правка документа */
.revise-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.revise-chips .chip { cursor: pointer; border: 1px solid var(--line); background: rgba(14, 21, 18, .04); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13.5px; color: var(--text); }
.revise-chips .chip.on { background: rgba(3, 131, 97, .12); border-color: var(--green); color: var(--green); }
.ta { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 12px; font: inherit; font-size: 15px; background: var(--card); color: var(--text); resize: vertical; }

/* ——— Калькулятор «Сколько WB вам должен» (бесплатно, маркетинг) ——— */
.pf-promo {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #0f8f67, #066447); color: #fff; box-shadow: 0 14px 30px -18px rgba(3, 90, 60, .8);
}
.pf-promo img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.pf-promo > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pf-promo b { font-size: 15.5px; }
.pf-promo > span > span { font-size: 12.5px; opacity: .85; line-height: 1.35; }
.pf-promo svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.pf-input { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 0 18px; height: 58px; border-radius: 20px; background: var(--card); border: 2px solid transparent; }
.pf-input:focus-within { border-color: var(--green); }
.pf-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 18px; font-weight: 700; } /* ≥16px: без зума на iOS */
.pf-input span { font-size: 18px; font-weight: 700; color: var(--muted); }
.pf-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 16px 8px; padding: 4px; border-radius: 16px; background: rgba(14, 21, 18, .06); }
.pf-mode button { height: 40px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); }
.pf-mode button.on { background: var(--card); color: var(--text); box-shadow: 0 4px 12px -8px rgba(0,0,0,.4); }
.pf-hint { margin: 8px 20px 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pf-out { padding: 16px 16px 120px; }
.pf-out:empty { padding-bottom: 110px; }
.pf-res { display: grid; gap: 10px; padding: 18px; border-radius: 24px; background: var(--card); animation: fade-in .35s var(--ease) both; }
.pf-cap { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.pf-big { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--green); }
.pf-res.ok .pf-big { color: var(--text); }
.pf-sub { margin: 0; font-size: 14px; color: var(--text); line-height: 1.45; }
.pf-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.pf-facts li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.pf-facts li span { color: var(--muted); }
.pf-table summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--green); }
.pf-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12.5px; }
.pf-table th, .pf-table td { text-align: left; padding: 6px 4px; border-top: 1px solid var(--line); }
.pf-table th { color: var(--muted); font-weight: 600; }
.pf-note { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.pf-act { display: grid; gap: 8px; margin-top: 4px; }
.pf-act .cta { height: 54px; font-size: 15.5px; }
.pf-act .cta.ghost { border: 1px solid var(--line); }

/* ——— «Чат по делу»: какое дело продолжаем + отдельная кнопка нового дела ——— */
.case-pick { display: grid; gap: 8px; }
.case-pick button { width: 100%; text-align: left; border-radius: var(--r-md); padding: 14px 16px; }
.cp-cur { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cap link" "name link"; gap: 2px 10px; align-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.cp-cap { grid-area: cap; font-size: 12px; opacity: .7; }
.cp-cur b { grid-area: name; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-link { grid-area: link; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--lime); }
.cp-link svg { width: 14px; height: 14px; }
.cp-new { display: flex; align-items: center; gap: 12px; background: var(--lime); color: var(--ink); }
.cp-new svg { width: 22px; height: 22px; flex: none; }
.cp-new > span { display: grid; gap: 2px; }
.cp-new b { font-size: 16px; }
.cp-new > span > span { font-size: 12.5px; opacity: .75; }

/* Кнопки документов над полем ввода в чате по делу */
.doc-strip { display: flex; gap: 6px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.doc-strip::-webkit-scrollbar { display: none; }
.doc-strip button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: #e3f3ea; color: var(--green); font-weight: 700; font-size: 13.5px;
}
.doc-strip button svg { width: 15px; height: 15px; }

/* Проект документа (на проверке у юриста) */
.draft-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 16px 0; padding: 12px 14px; border-radius: 16px;
  background: #fdecea; color: #8e1f14; font-size: 13.5px; line-height: 1.45; }
.draft-note svg { width: 20px; height: 20px; flex: none; color: #c0392b; margin-top: 1px; }
.md-fix { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--green) 35%, var(--line)); color: var(--green); font-weight: 700; font-size: 13.5px; }
.md-fix svg { width: 16px; height: 16px; }
.rv-files { margin-top: 12px; }

/* ——— «Sale недели»: тёмная карточка, лаймовый акцент, живой отсчёт ——— */
.sale {
  position: relative; overflow: hidden; border-radius: 26px; padding: 18px 18px 16px; color: #f4f6f3;
  background: radial-gradient(120% 90% at 100% 0%, #1f3b2f 0%, #0b1411 55%, #060a08 100%);
  box-shadow: 0 22px 44px -22px rgba(3, 40, 28, .9), inset 0 1px 0 rgba(255,255,255,.08);
}
.sale-glow { position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,228,79,.35), rgba(198,228,79,0) 70%); pointer-events: none; }
.sale-art { position: absolute; right: -14px; top: 74px; width: 86px; opacity: .95; transform: rotate(12deg); pointer-events: none; }
.sale-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.sale-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--lime); color: var(--ink);
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em; }
.sale-tag svg { width: 13px; height: 13px; }
.sale-pct { font-size: 34px; font-weight: 900; letter-spacing: -.04em; color: var(--lime); line-height: 1; }
.sale h3 { position: relative; margin: 12px 0 2px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.sale-sub { position: relative; margin: 0; max-width: 72%; font-size: 13px; color: #aab5b0; line-height: 1.4; }
.sale-prices { position: relative; display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.sale-prices s { font-size: 16px; color: #7f8a85; text-decoration-thickness: 2px; }
.sale-prices b { font-size: 38px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.sale-cd { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.cd-cell { display: grid; place-items: center; padding: 8px 0 6px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.cd-cell b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-cell i { font-style: normal; font-size: 10.5px; color: #9aa6a1; text-transform: uppercase; letter-spacing: .08em; }
.sale-until { position: relative; margin: 8px 0 0; font-size: 11.5px; color: #8d9994; }
.sale-go { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-top: 12px;
  border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 15px; }
.sale-go svg { width: 18px; height: 18px; }

/* Тариф по акции */
.plan-sale { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-bottom: 4px; padding: 4px 9px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.plan-sale svg { width: 12px; height: 12px; }
.plan-price .pp { display: inline-flex; align-items: baseline; gap: 8px; }
.plan-price s, .pay-price s { font-size: .72em; font-weight: 600; opacity: .55; margin-right: 6px; }

/* ——— Основатели и команда ——— */
.founders { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; min-width: 0; }
.fd-card, .fd-team, .fd-tags span { min-width: 0; overflow-wrap: anywhere; }
.fd-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.fd-lead { margin: -6px 0 2px; font-size: 13.5px; color: var(--muted); }
.fd-card, .fd-team { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); padding: 16px; }
.fd-head { display: flex; align-items: center; gap: 12px; }
.fd-photo { position: relative; flex: none; width: 80px; height: 80px; box-shadow: 0 8px 20px -10px rgba(3,60,44,.6); border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg, #0f8f67, #066447); color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.fd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fd-name { display: grid; gap: 2px; min-width: 0; }
.fd-name b { font-size: 17px; }
.fd-name span { font-size: 12.5px; color: var(--green); font-weight: 700; }
.fd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fd-tags span { padding: 5px 10px; border-radius: 999px; background: rgba(3,131,97,.09); color: var(--green); font-size: 12px; font-weight: 700; }
.fd-bio { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.fd-team { position: relative; overflow: hidden; background: linear-gradient(155deg, #1a2420, #070b09); color: #eef2ef; border: 0; }
.fd-team img { position: absolute; right: -10px; top: -6px; width: 92px; opacity: .9; }
.fd-team h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.fd-team p { position: relative; margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: #c3ccc8; max-width: 92%; }
.fd-team p:last-child { margin-bottom: 0; }
.sale-slot { min-width: 0; margin: 14px 0 4px; }

/* ——— Блок «Маркировка «Честный знак»»: горячая тема, огненный градиент ——— */
.chz-promo, .chz-facts {
  position: relative; overflow: hidden; color: #fff; border-radius: 24px;
  background: radial-gradient(120% 110% at 100% 0%, #ff7a2f 0%, #c2255c 40%, #2a0f24 78%, #12070f 100%);
  box-shadow: 0 20px 40px -22px rgba(194, 37, 92, .9), inset 0 1px 0 rgba(255,255,255,.14);
}
.chz-promo { display: grid; gap: 6px; width: 100%; text-align: left; padding: 16px 16px 14px; }
.chz-glow { position: absolute; left: -50px; bottom: -90px; width: 210px; height: 210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 200, 40, .4), rgba(255, 200, 40, 0) 70%); animation: chz-pulse 3.2s ease-in-out infinite; }
@keyframes chz-pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .chz-glow { animation: none; } }
.chz-art { position: absolute; right: -14px; bottom: -10px; width: 96px; transform: rotate(-10deg); opacity: .95; pointer-events: none; }
.chz-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chz-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: #ffd23f; color: #2a0f24;
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em; }
.chz-tag svg { width: 13px; height: 13px; }
.chz-date { font-size: 12px; font-weight: 700; color: #ffe2cf; }
.chz-title { position: relative; margin-top: 6px; max-width: 80%; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.chz-sub { position: relative; max-width: 76%; font-size: 13px; line-height: 1.4; color: #ffdfe9; }
.chz-go { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 14px;
  border-radius: 999px; background: #fff; color: #2a0f24; font-weight: 800; font-size: 14px; }
.chz-go svg { width: 16px; height: 16px; }
.chz-step { display: inline-flex; align-items: center; gap: 6px; color: #c2255c !important; }
.chz-step svg { width: 14px; height: 14px; }
.chz-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.chz-facts > span:not(.chz-glow) { position: relative; display: grid; align-content: start; gap: 3px; min-width: 0; font-size: 11.5px; line-height: 1.3; color: #ffdfe9; }
.chz-facts b { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.chz-list { display: grid; gap: 10px; }
.chz-svc { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; text-align: left; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); color: var(--text); animation: fade-in .35s var(--ease) both; animation-delay: var(--d); }
.chz-svc.hot { border-color: #ffc2a1; box-shadow: 0 12px 26px -20px rgba(194, 65, 12, .9); }
.chz-svc img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.cs-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cs-body b { font-size: 15px; line-height: 1.25; }
.cs-body > span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cs-hot { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: #ffe6d6; color: #c2410c; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.cs-hot svg { width: 11px; height: 11px; }
.cs-price { flex: none; font-size: 14px; font-weight: 800; text-align: right; white-space: nowrap; }
.cs-price s { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.chz-end { padding-bottom: calc(40px + var(--safe-bottom)); }
/* ——— Кабинет Wildberries по API ——— */
.wb-promo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); color: var(--text); }
.wb-promo > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wb-promo b { font-size: 15px; }
.wb-promo > span > span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.wb-promo > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.wb-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 15px; letter-spacing: -.02em;
  color: #fff; background: linear-gradient(135deg, #cb11ab, #481173); }
.wb-logos { flex: none; display: flex; }
.wb-logos .wb-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; box-shadow: 0 0 0 2px var(--card); }
.wb-logos .wb-logo + .wb-logo { margin-left: -8px; }
.wb-logo.oz { background: linear-gradient(135deg, #005bff, #00a2ff); }
.wb-sum.oz { background: linear-gradient(135deg, #0047cc, #00a2ff); }
.mp-tabs { margin-bottom: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-card input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.wb-card .field + .field { margin-top: 8px; }
.wb-loading { display: flex; align-items: center; gap: 8px; margin: 18px 20px; color: var(--muted); }
.wb-connect { display: grid; gap: 0; }
.wb-card { border-radius: var(--r-md); background: var(--card); padding: 14px 16px; min-width: 0; }
.wb-card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15.5px; }
.wb-card h3 svg { width: 18px; height: 18px; color: var(--green); }
.wb-card ul, .wb-card ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.wb-card .field { margin: 12px 0 0; }
.wb-card textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.wb-safe { background: #e3f3ea; }
.wb-consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.wb-consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--green); }
.wb-go { width: 100%; }
.wb-demo { text-align: center; }
.wb-demo p { margin: 6px 0 8px; font-size: 13px; color: var(--muted); }
.wb-demo .cta { width: 100%; border: 1px solid var(--line); }
.wb-status { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.wb-status.err { border-color: #e9a59c; }
.wb-status b { display: block; font-size: 14.5px; }
.wb-status span { font-size: 12.5px; color: var(--muted); }
.wb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-actions button { height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.wb-actions .wb-off { color: #b3261e; }
.wb-sum { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); color: #fff; background: linear-gradient(135deg, #5a1a8a, #cb11ab); }
.wb-sum span { font-size: 12.5px; opacity: .85; }
.wb-sum b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wb-list { display: grid; gap: 10px; }
.wb-empty { margin: 4px 4px 0; color: var(--muted); font-size: 14px; }
.wb-fine { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.wf-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wf-kind { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; }
.wf-kind.fine { background: #fde8e6; color: #b3261e; }
.wf-kind.ded { background: #fff1d6; color: #8a5a00; }
.wf-date { font-size: 12.5px; color: var(--muted); }
.wf-reason { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.wf-meta { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.wf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.wf-bottom b { font-size: 18px; font-variant-numeric: tabular-nums; }
.wf-go { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 13.5px; }
.wf-go svg { width: 15px; height: 15px; }
.wf-prod { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; background: rgba(14, 21, 18, .04); text-align: left; min-width: 0; }
.wf-prod > img, .wf-ph { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #fff; }
.wf-ph { display: grid; place-items: center; }
.wf-ph img { width: 28px; height: 28px; opacity: .55; }
.wf-pt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.wf-pt b { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.wf-pt span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.wf-prod.noname .wf-pt b { font-weight: 600; color: var(--muted); }
.wf-prod > svg { flex: none; width: 14px; height: 14px; color: var(--muted); }
.wg-items .wf-prod { background: #fff; }
.wg-prods { display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; background: rgba(14, 21, 18, .04); }
.wg-cap { font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.wg-prods ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.wg-prods li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; min-width: 0; }
.wg-prods li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wg-prods li em { flex: none; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.wg-rest { font-size: 12px; color: var(--muted); }
.wb-group { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.wg-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; padding: 8px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; }
.wg-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.wb-group.open .wg-toggle svg { transform: rotate(180deg); }
.wg-items { display: grid; gap: 8px; margin-top: 4px; }
.wg-items[hidden] { display: none; }
.wg-items .wb-fine { background: var(--bg, #f2f4f1); }
.wg-more { height: 38px; border-radius: 999px; background: rgba(14, 21, 18, .06); font-weight: 700; font-size: 13px; }
.wg-more[hidden] { display: none; }
.wb-end { padding-bottom: calc(40px + var(--safe-bottom)); }
.wb-all { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: #fff; color: #3a0f5c; font-weight: 800; font-size: 13.5px; }
.wb-sum.oz .wb-all { color: #003a9e; }
.wb-all svg { width: 15px; height: 15px; }
.wb-all.in-chat { display: flex; margin-top: 10px; background: var(--green); color: #fff; }
/* Общий чат юридической поддержки в кабинете */
.cab-chat { display: grid; gap: 10px; margin-top: 22px; }
.cab-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cab-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.cab-head b svg { width: 20px; height: 20px; color: var(--green); }
.cab-left { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cab-sub { margin: -4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.cab-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cab-list:empty { display: none; }
.cab-sug { display: flex; flex-wrap: wrap; gap: 6px; }
.cab-bar { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.cab-bar textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: none; color: var(--text); font: inherit; font-size: 16px; padding: 8px 0; max-height: 140px; }
/* Выбор площадки в форме разбора */
.mp-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 16px; }
.mp-pick button { min-width: 0; height: 46px; padding: 0 8px; border-radius: 14px; background: var(--card); border: 2px solid transparent;
  font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-pick button.sel { border-color: var(--green); background: #e3f3ea; color: var(--green); }
/* Окно «Документы по делу»: какое дело открыто + новое дело */
.os-case { display: grid; gap: 2px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.os-cap { font-size: 12px; color: var(--muted); }
.os-case b { font-size: 15.5px; overflow-wrap: anywhere; }
.os-new { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 12px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 700; font-size: 13.5px; }
.os-new svg { width: 16px; height: 16px; }
/* Акция «ЧЗ бесплатно» под разбором */
.offer-free { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 16px;
  background: #fff1e6; color: #7a2e0e; font-size: 13.5px; line-height: 1.45; }
.offer-free svg { width: 20px; height: 20px; flex: none; color: #c2410c; margin-top: 1px; }
.offer-free b { display: block; font-size: 14.5px; color: #c2410c; }
.cs-price:has(s) { color: #c2410c; }

/* ——— Блок «Поставщики и логистика» (05.10.2026) ——— */
.sup-promo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--r-md);
  color: #fff; background: linear-gradient(135deg, #0b5a6b, #12839a); box-shadow: 0 14px 30px -18px rgba(11, 90, 107, .8); }
.sup-promo img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.sup-promo > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sup-promo b { font-size: 15.5px; }
.sup-promo > span > span { font-size: 12.5px; opacity: .88; line-height: 1.35; }
.sup-promo > svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.sup-step { color: #0b6b80 !important; }
.sup-head { margin: 10px 2px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chz-svc.hot.sup { border-color: #9ed3df; box-shadow: 0 12px 26px -20px rgba(11, 90, 107, .9); }
.cs-hot.sup { background: #dff2f6; color: #0b6b80; }
/* Сторож штрафов: срок оспаривания в кабинете */
.wf-dl { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: #eef3f0; color: var(--text); }
.wf-dl svg { width: 14px; height: 14px; flex: none; }
.wf-dl.hot { background: #fde8e6; color: #b3261e; }
.wf-dl.past { background: #f1f1ef; color: var(--muted); font-weight: 600; }

/* Трекер дела: шаги спора и срок ответа (05.10.2026) */
.case-track { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(3, 131, 97, .05); }
.tr-h { font-size: 13px; color: var(--muted); font-weight: 700; }
.tr-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tr-steps li { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 11px; line-height: 1.2; color: var(--muted); }
.tr-steps li i { height: 4px; border-radius: 4px; background: rgba(14, 21, 18, .1); }
.tr-steps li.done i { background: var(--green); }
.tr-steps li.cur i { background: linear-gradient(90deg, var(--green) 50%, rgba(14, 21, 18, .1) 50%); }
.tr-steps li.cur span { color: var(--text); font-weight: 600; }
.tr-st { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.tr-st small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.tr-st.ok { color: var(--green); font-weight: 700; }
.tr-st .late { color: #b4231a; }
.tr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-btn { height: 36px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tr-btn.ghost { background: var(--card); color: var(--green); border: 1px solid color-mix(in oklab, var(--green) 35%, var(--line)); }
.tr-btn:disabled { opacity: .5; }
.tr-link { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.tr-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.tr-date input { height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 13px; background: var(--card); color: var(--text); }

/* «Что это и что делать» по группе начислений (07.10.2026) */
.wg-guide { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 999px; background: rgba(3, 131, 97, .1); color: var(--green); font-weight: 800; font-size: 13.5px; }
.wg-guide svg { width: 16px; height: 16px; }
.wb-fine > .wg-guide { margin-top: 2px; }
.fg { display: grid; gap: 12px; }
.fg h2 { margin: 0; }
.fg .meta { margin: -6px 0 0; }
.fg section h3 { margin: 0 0 4px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.fg section p, .fg li { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.fg ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.fg-badge { justify-self: start; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.worth-high { background: rgba(3, 131, 97, .12); color: var(--green); }
.worth-mid { background: rgba(176, 116, 8, .12); color: #9a6208; }
.worth-low { background: rgba(14, 21, 18, .06); color: var(--muted); }
.fg-loss { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(180, 35, 26, .07); }
.fg-loss b { font-size: 20px; color: #b4231a; font-variant-numeric: tabular-nums; }
.fg-loss span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.fg-prevent { padding: 10px 12px; border-radius: 14px; background: rgba(3, 131, 97, .06); }
.fg-note { margin: 0; font-size: 12.5px; color: var(--muted); }

.wf-late { color: #b4231a; font-weight: 700; }
.wf-bottom .wf-late { font-size: 13px; }

/* Откуда операция (контекст Ozon) */
.wf-ctx { font-size: 12.5px; line-height: 1.4; color: var(--text); background: rgba(14, 21, 18, .04); border-radius: 10px; padding: 6px 9px; }
.wf-ctx.none { color: var(--muted); }

/* Аудит Ozon: находки и два выхода — обращение в поддержку или претензия (08.10.2026) */
.oz-audit { display: grid; gap: 10px; }
.aud-head { display: grid; gap: 2px; }
.aud-head b { font-size: 17px; }
.aud-head span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.aud-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.aud-card.act { border-color: color-mix(in oklab, #b4231a 35%, var(--line)); }
.aud-card.wait { opacity: .85; }
.aud-tone { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.aud-tone.act { background: rgba(180, 35, 26, .1); color: #b4231a; }
.aud-tone.ask { background: rgba(176, 116, 8, .12); color: #9a6208; }
.aud-tone.wait { background: rgba(14, 21, 18, .06); color: var(--muted); }
.aud-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aud-chance { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.aud-chance.high { background: rgba(3, 131, 97, .12); color: var(--green); }
.aud-chance.medium { background: rgba(176, 116, 8, .12); color: #9a6208; }
.aud-chance.low { background: rgba(14, 21, 18, .06); color: var(--muted); }
.aud-why { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text); padding-left: 8px; border-left: 2px solid var(--line); }
.aud-what { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.aud-basis { margin: 0; font-size: 12px; color: var(--muted); }
.aud-sub { font-size: 12px; color: var(--muted); }
.aud-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aud-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 12px; font-weight: 800; font-size: 13px; line-height: 1.2; }
.aud-btn svg { width: 16px; height: 16px; flex: none; }
.aud-btn.sup { background: rgba(3, 131, 97, .1); color: var(--green); }
.aud-btn.clm { background: var(--green); color: #fff; }
.aud-btn:disabled { opacity: .6; }
.aud-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(14, 21, 18, .04); }
.aud-row > div { display: grid; gap: 2px; min-width: 0; }
.aud-row b { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.aud-row span { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.aud-r { text-align: right; flex: none; }
.aud-steps { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(3, 131, 97, .06); }
.aud-steps p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.aud-text { font-size: 13.5px; }

/* ═══════════ Кабинеты WB и Ozon — дизайн 08.10.2026 ═══════════
   Цветная шапка площадки с 3D-предметами и «аурой», плитки, графики, фильтры, сочные карточки. */
.cab {
  --mp: #cb11ab; --mp-2: #7a12b0; --mp-deep: #2c0a4f; --mp-soft: #fbe6f6; --mp-ink: #6d0d6b;
  /* Категориальная палитра графиков (проверена на различимость, в т.ч. при дальтонизме) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s-rest: #c3c9c5;
  --fine: #e34948; --fine-soft: #fde8e6; --ded: #eda100; --ded-soft: #fff1d6;
  padding-bottom: 8px;
}
.cab.mp-ozon { --mp: #005bff; --mp-2: #0a46d8; --mp-deep: #011f6b; --mp-soft: #e5eeff; --mp-ink: #0039a6; }

/* — Шапка — */
.cab-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: calc(var(--top-pad) + 52px) 16px 64px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(180deg, #a514b5 0%, #7a12b0 38%, #3b0d6e 78%, #2c0a4f 100%);
}
.cab-hero.mp-ozon { background: linear-gradient(180deg, #0a5cff 0%, #0646d6 40%, #022c9a 78%, #011f6b 100%); }
.cab-hero::before { /* блик сверху */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 45% at 85% 8%, rgba(255,255,255,.28), transparent 70%), radial-gradient(60% 40% at 0% 60%, rgba(255,255,255,.08), transparent 70%);
}
.cab-hero::after { /* мелкая сетка-«блюпринт» */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 60%, transparent 100%);
}
.ch-aura { position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .75; pointer-events: none; }
.ch-aura.a1 { width: 260px; height: 260px; right: -80px; top: 40px; background: #ff5fd2; animation: aura 9s ease-in-out infinite alternate; }
.ch-aura.a2 { width: 220px; height: 220px; left: -90px; bottom: 30px; background: #6a3bff; animation: aura 11s ease-in-out infinite alternate-reverse; }
.mp-ozon .ch-aura.a1 { background: #00c2ff; }
.mp-ozon .ch-aura.a2 { background: #3b6bff; }
@keyframes aura { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.2); } }
.cab-hero .stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cab-hero .drop img { filter: drop-shadow(0 18px 22px rgba(10, 0, 40, .45)); }

/* Переключатель площадок — стеклянный, с «плавающей» подложкой */
.ch-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.ch-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .45s var(--spring); }
.ch-tabs button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 0;
  font-weight: 750; font-size: 14.5px; color: rgba(255,255,255,.9); transition: color .3s; white-space: nowrap; }
.ch-tabs button.sel { color: var(--text); }
.ct-logo { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 900; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, #cb11ab, #7a12b0); box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
.ct-logo.oz { background: linear-gradient(135deg, #005bff, #00a2ff); }
.ct-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fd47f; box-shadow: 0 0 0 3px rgba(47, 212, 127, .25); }

.ch-body { position: relative; margin-top: 22px; }
.ch-wait { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; font-weight: 600; color: rgba(255,255,255,.85); }

/* Подключено: большая сумма */
.ch-on { display: grid; justify-items: start; gap: 4px; animation: fade-in .6s var(--ease) .1s both; }
.ch-cap { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.ch-total { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.ch-total b { font-size: clamp(40px, 13vw, 54px); font-weight: 850; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.72)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,.18); }
.ch-total span { font-size: 28px; font-weight: 800; color: rgba(255,255,255,.75); }
.ch-sub { font-size: 14px; color: rgba(255,255,255,.82); max-width: 72%; }
.ch-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; height: 50px; padding: 0 18px 0 16px; border-radius: 999px;
  background: #fff; color: var(--mp-ink); font-weight: 800; font-size: 15px;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.55), inset 0 -2px 0 rgba(0,0,0,.06); transition: transform .25s var(--spring); }
.ch-cta:active { transform: scale(.96); }
.ch-cta svg { width: 18px; height: 18px; }
.ch-cta svg:first-child { color: var(--mp); }
.ch-status { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 10px 10px 10px 14px; border-radius: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cs-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2fd47f; box-shadow: 0 0 0 4px rgba(47,212,127,.22); animation: chz-pulse 2.4s ease-in-out infinite; }
.ch-status.load .cs-dot { background: #ffd34d; box-shadow: 0 0 0 4px rgba(255,211,77,.25); }
.ch-status.err .cs-dot { background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255,107,107,.25); animation: none; }
.cs-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cs-t b { font-size: 13.5px; }
.cs-t span { font-size: 12px; color: rgba(255,255,255,.75); line-height: 1.35; }
.cs-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; transition: transform .25s var(--spring), background .2s; }
.cs-btn:active { transform: scale(.9); background: rgba(255,255,255,.28); }
.cs-btn svg { width: 17px; height: 17px; }
.cs-btn.busy svg { animation: spin .8s linear infinite; }
.ch-progress { width: 100%; height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.ch-progress i { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #fff, transparent); animation: ch-run 1.6s ease-in-out infinite; }
@keyframes ch-run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Не подключено: «карта ключа» с замком */
.ch-intro { display: grid; justify-items: center; text-align: center; }
.ch-chips { display: flex; gap: 6px; animation: fade-in .6s var(--ease) .35s both; }
.ch-chips span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26); }
.ch-chips svg { width: 14px; height: 14px; }
.ch-card { position: relative; width: min(72vw, 300px); aspect-ratio: 1.58; margin: 22px 0 26px; perspective: 900px; }
.ch-key { position: absolute; inset: 0; transform: rotateX(10deg) rotateY(-12deg) rotateZ(-6deg); animation: card-in 1s var(--spring) .1s both; text-align: left; }
.ck-logo { position: absolute; left: 8%; top: 12%; font-size: clamp(11px, 3.6vw, 15px); font-weight: 900; letter-spacing: .08em; }
.ck-chip { position: absolute; left: 8%; top: 36%; width: 15%; aspect-ratio: 1.3; border-radius: 6px;
  background: linear-gradient(135deg, #ffe7a3, #d9a93c 55%, #fff1c4); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ck-num { position: absolute; left: 8%; bottom: 26%; font: 700 clamp(12px, 4vw, 17px)/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; opacity: .92; }
.ck-foot { position: absolute; left: 8%; right: 8%; bottom: 9%; display: flex; justify-content: space-between; font-size: 11px; opacity: .8; }
.ck-foot b { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ch-lock { position: absolute; right: -16%; bottom: -30%; width: 40%; filter: drop-shadow(0 18px 22px rgba(0,0,0,.4)); animation: card-in 1.1s var(--spring) .3s both; }
.ch-intro h1 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 850; letter-spacing: -.02em; animation: fade-in .6s var(--ease) .45s both; }
.ch-intro p { margin: 8px 0 0; max-width: 340px; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.8); animation: fade-in .6s var(--ease) .52s both; }

/* — Плитки под шапкой: «заезжают» на неё — */
.cab-body { position: relative; z-index: 2; }
.ck-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -40px 12px 0; }
.ck-tile { position: relative; overflow: hidden; display: grid; align-content: end; gap: 2px; min-height: 118px; padding: 12px 10px 11px; border-radius: 22px; background: var(--card);
  box-shadow: 0 16px 34px -20px rgba(20, 10, 60, .45), 0 2px 6px -2px rgba(20, 10, 60, .08); animation: tile-in .7s var(--spring) var(--d, 0s) both; min-width: 0; }
.ck-tile img { position: absolute; right: -10px; top: -8px; width: 58px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); transform: rotate(8deg); }
.ck-cap { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.ck-cap::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--mp)); }
.ck-tile.fine { --c: var(--fine); } .ck-tile.ded { --c: var(--ded); } .ck-tile.top { --c: var(--mp); }
.ck-tile b { font-size: 16.5px; font-weight: 850; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ck-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* — Графики — */
.cc-card { padding: 16px; border-radius: 26px; background: var(--card); box-shadow: 0 14px 30px -24px rgba(20, 10, 60, .4); }
.cc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cc-head b { font-size: 15.5px; font-weight: 800; }
.cc-tip { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.cc-h2 { margin-top: 18px; }
.cc-chart { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); align-items: end; gap: 6px; height: 112px; margin-top: 14px; padding-bottom: 1px;
  border-bottom: 1px solid var(--line); }
.cc-grid { position: absolute; inset: 0 0 1px; display: grid; grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.cc-grid i { border-top: 1px dashed rgba(14, 21, 18, .07); }
.cc-bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.cc-bar i { display: block; width: 100%; height: var(--h); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--mp) 38%, #fff);
  transform-origin: bottom; animation: bar-up .8s var(--spring) calc(.25s + var(--d, 0s)) both; transition: background .2s; }
.cc-bar.peak i, .cc-bar.on i { background: linear-gradient(180deg, var(--mp), var(--mp-2)); }
.cc-bar.on i { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px color-mix(in srgb, var(--mp) 30%, transparent); }
@keyframes bar-up { from { transform: scaleY(0); } }
.cc-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.cc-stack { display: flex; gap: 2px; height: 14px; margin-top: 12px; border-radius: 7px; overflow: hidden; }
.cc-stack i { min-width: 3px; animation: grow .9s var(--ease) .3s both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.cc-legend { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cc-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 38px; align-items: center; gap: 8px; font-size: 13px; }
.cc-legend li > i { width: 10px; height: 10px; border-radius: 3px; }
.cc-legend span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cc-legend b { font-weight: 750; font-variant-numeric: tabular-nums; }
.cc-legend em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* — Фильтры — */
.cf-bar { display: grid; gap: 10px; margin-top: 18px; }
.cf-seg { min-width: 0; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); overflow-x: auto; scrollbar-width: none; }
.cf-seg button { flex: 1 0 auto; justify-content: center; }
.cf-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; font-size: 12.5px; color: var(--muted); }
.cf-seg::-webkit-scrollbar { display: none; }
.cf-seg button { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 9px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: background .25s, color .25s; }
.cf-seg button em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(14,21,18,.06); }
.cf-seg button.sel { background: var(--text); color: #fff; }
.cf-seg button.sel em { background: rgba(255,255,255,.18); }
.cf-sort { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); color: var(--text); font-weight: 700; font-size: 12.5px; }
.cf-sort svg { width: 16px; height: 16px; transform: rotate(90deg); color: var(--mp); }

/* — Карточки начислений — */
.cab .wb-list { gap: 12px; margin-top: 10px; }
.cab .wb-group, .cab .wb-fine { position: relative; gap: 8px; padding: 14px; border-radius: 24px; border: 0; background: var(--card); overflow: hidden;
  box-shadow: 0 14px 30px -24px rgba(20, 10, 60, .45); animation: tile-in .55s var(--ease) var(--d, 0s) both; }
.cab .wb-group::before, .cab .wb-list > .wb-fine::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--k, var(--mp)); }
.cab .k-fine { --k: var(--fine); --k-soft: var(--fine-soft); }
.cab .k-ded { --k: var(--ded); --k-soft: var(--ded-soft); }
.wg-head, .wf-rhead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wg-ttl { flex: 1; min-width: 0; display: grid; gap: 4px; }
.wg-art { flex: none; position: relative; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: radial-gradient(80% 80% at 30% 20%, #fff, var(--k-soft, var(--mp-soft))); box-shadow: inset 0 0 0 1px rgba(14,21,18,.05); }
.wg-art img { width: 46px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); transform: rotate(-6deg); transition: transform .5s var(--spring); }
.wb-group:active .wg-art img, .wb-fine:active .wg-art img { transform: rotate(4deg) scale(1.08); }
.wg-art.sm { width: 44px; height: 44px; border-radius: 14px; }
.wg-art.sm img { width: 36px; }
.cab .wf-reason { font-size: 15px; font-weight: 750; }
.cab .wf-kind.fine { background: var(--fine-soft); color: #b3261e; }
.cab .wf-kind.ded { background: var(--ded-soft); color: #8a5a00; }
.wg-share { height: 6px; border-radius: 6px; background: rgba(14,21,18,.06); overflow: hidden; margin-top: 2px; }
.wg-share i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--k), color-mix(in srgb, var(--k) 60%, #fff));
  animation: grow 1s var(--ease) .2s both; transform-origin: left; }
.cab .wf-bottom b { font-size: 21px; font-weight: 850; letter-spacing: -.02em; }
.cab .wf-go { height: 42px; padding: 0 16px; background: linear-gradient(180deg, var(--mp), var(--mp-2)); box-shadow: 0 10px 20px -10px var(--mp); transition: transform .25s var(--spring); }
.cab .wf-go:active { transform: scale(.95); }
.cab .wg-prods { background: var(--bg); border-radius: 16px; }
.cab .wf-prod { background: var(--bg); border-radius: 16px; }
.cab .wf-ph { background: radial-gradient(80% 80% at 30% 20%, #fff, var(--mp-soft)); }
.cab .wg-toggle { color: var(--mp-ink); }
.cab .wg-items .wb-fine { background: var(--bg); box-shadow: none; animation: fade-in .35s var(--ease) both; }
.cab .wg-items .wf-prod { background: #fff; }
.cab .wg-more { background: var(--mp-soft); color: var(--mp-ink); }

/* Пустые состояния */
.cab .wb-empty { margin: 0; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 18px 22px; border-radius: 26px; background: var(--card); }
.cab .wb-empty b { font-size: 16px; }
.cab .wb-empty > span { font-size: 13.5px; color: var(--muted); max-width: 280px; }
.cab-clean img { width: 96px; margin-bottom: 6px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.18)); animation: bob 4s ease-in-out infinite alternate; }
.cab-scan { position: relative; }
.scan-doc { width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 6px; }
.scan-doc img { width: 86px; opacity: .9; }
.scan-lens { position: absolute; top: 30px; left: calc(50% - 10px); width: 54px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); animation: sweep 2.6s var(--ease) infinite; }
.cab-skel { display: grid; gap: 10px; margin-top: -30px; position: relative; z-index: 2; }
.cab-skel i { height: 110px; border-radius: 24px; background: linear-gradient(90deg, #fff 0%, #f4f6f3 50%, #fff 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* — Подключение — */
.cb-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -40px 12px 0; position: relative; z-index: 2; }
.cb-tile { position: relative; display: grid; align-content: end; gap: 3px; min-height: 150px; padding: 12px 10px; border-radius: 22px; background: var(--card); overflow: hidden;
  box-shadow: 0 16px 34px -20px rgba(20, 10, 60, .45); animation: tile-in .7s var(--spring) var(--d, 0s) both; min-width: 0; }
.cb-tile img { position: absolute; right: -8px; top: -6px; width: 66px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); transform: rotate(8deg); }
.cb-tile b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.cb-tile span { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.cb-safe { position: relative; overflow: hidden; margin-top: 4px; padding: 18px 18px 18px; border-radius: 26px; color: #f2f6f4;
  background: radial-gradient(90% 70% at 100% 0%, rgba(198, 228, 79, .22), transparent 60%), linear-gradient(160deg, #1e2a25, #0b100e); }
.cb-safe-art { position: absolute; right: -14px; top: -10px; width: 110px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.5)); transform: rotate(10deg); animation: bob 5s ease-in-out infinite alternate; }
.cb-safe h3 { margin: 0 0 12px; font-size: 19px; font-weight: 850; }
.cb-safe ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 86%; }
.cb-safe li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; color: rgba(242,246,244,.82); }
.cb-safe li b { color: var(--lime); }
.cb-safe li svg { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--lime); color: var(--ink); margin-top: 1px; }
.cb-steps { padding: 18px; border-radius: 26px; }
.cb-steps h3 { gap: 10px; font-size: 17px; margin-bottom: 14px; }
.cb-num { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mp), var(--mp-2)); }
.cb-steps h3 .cb-num svg { width: 17px; height: 17px; color: #fff; }
.cb-steps ol { list-style: none; padding: 0; counter-reset: st; gap: 0; }
.cb-steps ol li { position: relative; counter-increment: st; padding: 0 0 14px 40px; font-size: 14px; }
.cb-steps ol li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 850; color: var(--mp-ink); background: var(--mp-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mp) 35%, transparent); }
.cb-steps ol li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 26px; bottom: 2px; width: 1.5px; background: linear-gradient(var(--mp-soft), color-mix(in srgb, var(--mp) 25%, transparent)); }
.cb-steps .field { margin: 12px 0 0; padding: 0; background: none; border: 0; border-radius: 0; }
.cb-steps .field textarea { min-height: 92px; padding: 12px 14px; }
.cb-steps .field input, .cb-steps .field textarea { border-radius: 16px; background: var(--bg); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.cb-steps .field input:focus, .cb-steps .field textarea:focus { outline: 0; border-color: var(--mp); background: #fff; }
.cab .wb-consent input { accent-color: var(--mp); }
.cb-go { background: linear-gradient(180deg, var(--mp), var(--mp-2)); box-shadow: 0 18px 34px -14px var(--mp), inset 0 1px 0 rgba(255,255,255,.25); }
.cb-demo { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px 14px 12px; border-radius: 24px; background: var(--card);
  box-shadow: 0 14px 30px -24px rgba(20, 10, 60, .45); }
.cb-demo img { width: 52px; flex: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); }
.cb-demo > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cb-demo b { font-size: 15px; }
.cb-demo > span > span { font-size: 12.5px; color: var(--muted); }
.cb-demo > svg { width: 18px; height: 18px; color: var(--mp); flex: none; }

/* — Чат юриста — */
.cab .cab-chat { margin: 22px 16px 0; padding: 16px; border-radius: 26px; background: linear-gradient(180deg, #fff, #fbfcfa); box-shadow: 0 14px 30px -24px rgba(20, 10, 60, .45); }
.cab .cab-head { justify-content: flex-start; gap: 12px; }
.cab-art { width: 54px; flex: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); margin: -6px 0 -6px -4px; }
.cab-ht { display: grid; gap: 2px; min-width: 0; }
.cab .cab-head b { font-size: 16.5px; font-weight: 800; }
.cab .cab-bar { background: var(--bg); border-color: transparent; }
.cab .wb-end { display: flex; align-items: center; justify-content: center; gap: 6px; }
.cab .wb-end svg { width: 13px; height: 13px; flex: none; }

/* — Карточка на главной — */
.cab-promo { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: start; gap: 2px; width: 100%; text-align: left; min-height: 196px;
  padding: 16px 16px 18px; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(135deg, #b316b5 0%, #6a19c4 46%, #0a5cff 100%); box-shadow: 0 20px 40px -22px rgba(60, 20, 160, .7);
  transition: transform .35s var(--spring); }
.cab-promo:active { transform: scale(.975); }
.cpm-aura { position: absolute; z-index: -1; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: #ff6ad5; filter: blur(46px); opacity: .55; animation: aura 9s ease-in-out infinite alternate; }
.cpm-art { position: absolute; z-index: -1; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); pointer-events: none; }
.cpm-art.a1 { right: -4%; bottom: -10%; width: 38%; transform: rotate(-12deg); animation: bob 5s ease-in-out infinite alternate; }
.cpm-art.a2 { right: 24%; top: 10%; width: 20%; transform: rotate(14deg); filter: blur(1px) drop-shadow(0 10px 14px rgba(0,0,0,.3)); opacity: .9; animation: bob 6s ease-in-out infinite alternate-reverse; }
.cpm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.cab-promo .wb-logos .wb-logo { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.cpm-tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 750;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cpm-tag svg { width: 13px; height: 13px; }
.cpm-cap { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.cpm-big { font-size: 30px; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cpm-sub { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.82); max-width: 64%; }
.cpm-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; color: #4a1490; font-weight: 800; font-size: 13.5px; }
.cpm-go svg { width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) {
  .ch-aura, .cpm-aura, .cpm-art, .cb-safe-art, .cab-clean img, .scan-lens, .cs-dot, .ch-progress i { animation: none !important; }
}

/* Кабинет: «Где вернуть деньги» сверху, все начисления свёрнуты (08.10.2026) */
.rec { display: grid; gap: 10px; margin-top: -40px; position: relative; z-index: 2; }
.rec-head { display: grid; gap: 3px; padding: 16px; border-radius: 24px; background: var(--card); box-shadow: 0 14px 30px -24px rgba(20, 10, 60, .45); }
.rec-head b { font-size: 18px; font-weight: 850; }
.rec-head span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.rec .aud-card { border-radius: 24px; border: 0; padding: 14px; box-shadow: 0 14px 30px -24px rgba(20, 10, 60, .45); }
.rec .wf-bottom b { font-size: 21px; font-weight: 850; letter-spacing: -.02em; }
.rec .aud-btn { min-height: 44px; border-radius: 999px; }
.rec .aud-btn.clm { background: linear-gradient(180deg, var(--mp), var(--mp-2)); }
.rec .aud-btn.sup { background: var(--mp-soft); color: var(--mp-ink); }
.rec-wait { border-radius: 20px; background: var(--card); }
.rec-acc, .all-acc { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 16px; text-align: left; border-radius: 20px; background: var(--card); color: var(--text); font-weight: 700; font-size: 14px; }
.rec-acc > span, .all-acc > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rec-acc svg, .all-acc svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .3s var(--ease); }
.rec-wait.open .rec-acc svg:last-child, .all-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.rec-wait-list { display: grid; gap: 10px; padding: 0 10px 10px; }
.rec-wait-list[hidden], .all-pane[hidden] { display: none; }
.all-acc em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }

.cab-chart-top { margin-top: -40px; position: relative; z-index: 2; }
.rec.after-chart { margin-top: 12px; }
.aud-more { font-size: 13px; }
.aud-more summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; font-weight: 700; color: var(--mp-ink, var(--green)); }
.aud-more summary::-webkit-details-marker { display: none; }
.aud-more summary svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.aud-more[open] summary svg { transform: rotate(180deg); }
.aud-more[open] { display: grid; gap: 6px; }

/* Платный разбор кабинета (08.10.2026) */
.aud-pay { display: grid; gap: 12px; padding: 16px; border-radius: 24px; color: #fff; background: linear-gradient(160deg, var(--mp, #005bff), var(--mp-deep, #011f6b)); box-shadow: 0 18px 34px -18px var(--mp, #005bff); }
.ap-top { display: flex; gap: 12px; align-items: center; }
.ap-top > span:last-child { display: grid; gap: 2px; }
.ap-top b { font-size: 18px; font-weight: 850; }
.ap-top span span { font-size: 13px; color: rgba(255,255,255,.82); }
.ap-ic { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.ap-ic svg { width: 20px; height: 20px; }
.aud-pay ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.aud-pay li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.9); }
.aud-pay li svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #fff; color: var(--mp, #005bff); margin-top: 1px; }
.aud-pay .ap-go { background: #fff; color: var(--mp-ink, #0039a6); }
.aud-lock { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.aud-lock svg { width: 14px; height: 14px; flex: none; }
.aud-limit { display: grid; gap: 8px; padding: 14px 16px; border-radius: 20px; background: var(--card); }
.al-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.al-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.al-bar { height: 6px; border-radius: 6px; background: rgba(14,21,18,.07); overflow: hidden; }
.al-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mp, var(--green)), var(--mp-2, var(--green))); }
.al-buy { justify-self: start; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--mp-soft, rgba(3,131,97,.1)); color: var(--mp-ink, var(--green)); font-weight: 800; font-size: 13px; }
.aud-cut { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(176, 116, 8, .1); font-size: 13px; line-height: 1.4; }
.aud-cut > svg { width: 16px; height: 16px; }
.aud-actions.one { grid-template-columns: 1fr; }

/* Кабинет 08.10.2026, вечер: карточки находок — коротко и одинаково; всё бьётся с суммой в шапке */
.rec .rec-chart { margin: 0; position: relative; z-index: 2; }
.rec { margin-top: -40px; }
.rec .aud-card { position: relative; display: grid; gap: 6px; overflow: hidden; }
.rec .aud-card::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.ac-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-n { font-size: 12.5px; color: var(--muted); }
.ac-title { margin: 2px 0 0; font-size: 16px; font-weight: 800; line-height: 1.25; }
.ac-plain { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text); opacity: .8; }
.ac-sum { font-size: 24px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ac-note { margin: -2px 0 0; font-size: 12.5px; color: var(--muted); }
.rec .aud-actions.one { grid-template-columns: 1fr; }
.rec .aud-btn { white-space: nowrap; }
.rec-acc em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rec-acc b { font-size: 14.5px; }

.wf-skip { display: grid; justify-items: end; gap: 1px; text-align: right; font-size: 13.5px; font-weight: 750; color: var(--muted); }
.wf-skip em { font-style: normal; font-size: 12px; font-weight: 600; opacity: .8; }
.cab .wg-guide { height: 36px; background: transparent; color: var(--mp-ink, var(--green)); font-size: 13px; }

.ac-dl { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin: 0; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; background: rgba(176,116,8,.12); color: #9a6208; }
.ac-dl.hot { background: rgba(180,35,26,.1); color: #b4231a; }
.ac-dl svg { width: 14px; height: 14px; }

/* Движок аудита: баннер срока и сводка проверок (09.10.2026) */
.dl-banner { position: relative; z-index: 2; display: grid; gap: 8px; padding: 14px 16px; border-radius: 22px; background: color-mix(in srgb, #b07408 12%, var(--card)); border: 1px solid rgba(176,116,8,.25); box-shadow: 0 14px 30px -24px rgba(20, 10, 60, .45); }
.dl-banner.hot { background: color-mix(in srgb, #b4231a 8%, var(--card)); border-color: rgba(180,35,26,.3); }
.dlb-top { display: flex; align-items: center; gap: 8px; }
.dlb-top svg { width: 18px; height: 18px; color: #9a6208; flex: none; }
.dl-banner.hot .dlb-top svg { color: #b4231a; }
.dlb-top b { font-size: 15px; font-weight: 800; }
.dl-banner p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.dlb-bottom { display: grid; gap: 8px; }
.dlb-bottom span { font-size: 12.5px; font-weight: 700; color: #9a6208; }
.dl-banner.hot .dlb-bottom span { color: #b4231a; }
.chk-block { border-radius: 20px; background: var(--card); }
.chk-list { display: grid; gap: 2px; padding: 0 12px 12px; }
.chk-list[hidden] { display: none; }
.chk-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-top: 1px solid var(--line); }
.chk-row svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.chk-row.found svg { color: #b4231a; } .chk-row.clean svg { color: var(--green); } .chk-row.skip svg { color: var(--muted); }
.chk-row span { display: grid; gap: 2px; min-width: 0; }
.chk-row b { font-size: 13.5px; } .chk-row em { font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* Выбор суммы обжалования и плашка «файл в чате бота» (09.10.2026) */
.amt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.amt-opt { display: grid; gap: 2px; padding: 12px; border-radius: 16px; text-align: left; background: var(--bg); border: 1.5px solid transparent; }
.amt-opt b { font-size: 15px; font-weight: 800; } .amt-opt span { font-size: 12.5px; color: var(--muted); }
.amt-opt.sel { border-color: var(--green); background: rgba(3,131,97,.06); }
.amt-own { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.amt-own input { height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: 16px; color: var(--text); }
.file-note { display: grid; grid-template-columns: 22px 1fr; gap: 8px 10px; align-items: start; padding: 12px 14px; border-radius: 16px; background: rgba(3,131,97,.08); border: 1px solid rgba(3,131,97,.25); }
.file-note > svg { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
.file-note span { display: grid; gap: 3px; font-size: 13px; line-height: 1.4; } .file-note span b { font-size: 14.5px; }
.file-note .file-open { grid-column: 1 / -1; }

/* Кабинет WB: баланс и «почему минус» (11.10.2026) */
.wb-ov { display: grid; gap: 12px; }
.ov-bal { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ov-bal span { font-size: 13px; color: var(--muted); }
.ov-bal b { font-size: 24px; font-weight: 800; }
.wb-ov.neg .ov-bal b { color: #d64545; }
.ov-bal em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ov-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ov-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ov-list li b { white-space: nowrap; }
.ov-idle { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(214,69,69,.07); border: 1px solid rgba(214,69,69,.2); }
.ov-idle > b { font-size: 14.5px; }
.ov-idle p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ov-adv { display: grid; grid-template-columns: 18px 1fr; gap: 8px; color: var(--text) !important; }
.ov-adv svg { width: 18px; height: 18px; color: #e0a100; margin-top: 1px; }

/* Несколько кабинетов площадки (12.10.2026): вкладки прокручиваются, «+ WB» / «+ Ozon», название кабинета */
.ch-tabs.many { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.ch-tabs.many::-webkit-scrollbar { display: none; }
.ch-tabs.many .ch-pill { display: none; }
.ch-tabs.many button { flex: none; padding: 0 14px; border-radius: 999px; scroll-snap-align: center; max-width: 220px; }
.ch-tabs.many button.sel { background: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); }
.ch-tabs .ct-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ch-tabs .ct-add { color: #fff; font-weight: 800; border: 1.5px dashed rgba(255,255,255,.55); background: transparent; }
.ch-rename { margin-top: 10px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); }

/* Единая схема: пункт без данных по API (12.10.2026) */
.chk-row.na { opacity: .62; }
