/* =========================================================
   Лотос · ruvn.online — общий стиль прототипа
   Лендинг (index.html), вход (login.html), ЛК (dashboard.html)
   ========================================================= */

/* ---------- Шрифт: Manrope локально, фолбэк — системный sans ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format("woff2");
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --cream: #FAF7F1;
  --cream-2: #F3EEE4;
  --cream-3: #EAE3D6;
  --paper: #FFFFFF;
  --ink: #1F2523;
  --ink-2: #47504C;
  --muted: #6B726F;
  --line: rgba(31, 37, 35, .10);
  --line-2: rgba(31, 37, 35, .16);

  --teal: #0E7C66;
  --teal-600: #0B6A57;
  --teal-700: #0A5646;
  --teal-900: #0C2621;
  --teal-950: #081B17;
  --teal-50: #E7F2EE;
  --teal-100: #D2E8E0;

  --coral: #E8743B;
  --coral-cta: #C4561F;
  --coral-cta-2: #DE6A30;
  --coral-50: #FCEEE5;
  --coral-200: #F6C7AC;

  --ok: #0F8A3C;
  --warn: #B7791F;
  --crit: #C2392F;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(18, 38, 33, .05), 0 2px 8px rgba(18, 38, 33, .05);
  --shadow-2: 0 2px 4px rgba(18, 38, 33, .04), 0 12px 32px -8px rgba(18, 38, 33, .14);
  --shadow-3: 0 30px 80px -24px rgba(12, 38, 33, .35), 0 8px 24px -12px rgba(12, 38, 33, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo svg { width: 34px; height: 34px; }
.logo small { font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: .02em; margin-left: 2px; }

/* ---------- Кнопки ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--cta {
  color: #fff;
  background: linear-gradient(180deg, var(--coral-cta-2), var(--coral-cta));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -8px rgba(196, 86, 31, .65);
}
.btn--cta:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 30px -10px rgba(196, 86, 31, .75); }
.btn--teal { color: #fff; background: var(--teal); box-shadow: 0 8px 22px -10px rgba(14,124,102,.7); }
.btn--teal:hover { background: var(--teal-600); }
.btn--ghost { background: rgba(255,255,255,.6); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; border-color: rgba(31,37,35,.28); }
.btn--ghost-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.btn--ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.eyebrow--light { color: #7FD3BD; }

/* =========================================================
   ЛЕНДИНГ
   ========================================================= */

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled { background: rgba(250, 247, 241, .82); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__links { display: flex; gap: 28px; margin-left: 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: auto; display: flex; gap: 10px; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 88px; isolation: isolate; }
.hero__bg { position: absolute; inset: -10% -5% 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--teal { width: 620px; height: 620px; background: radial-gradient(circle at 40% 40%, #9ED6C6, transparent 65%); top: -120px; right: -80px; }
.blob--coral { width: 460px; height: 460px; background: radial-gradient(circle at 50% 50%, #F8C5A6, transparent 65%); top: 260px; right: 360px; opacity: .5; }
.blob--sand { width: 520px; height: 520px; background: radial-gradient(circle, #EFE3CC, transparent 65%); top: 120px; left: -200px; opacity: .8; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
  opacity: .45;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero__copy .chip { margin-bottom: 26px; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--teal); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .16em; z-index: -1;
  background: var(--coral-200); border-radius: 4px; transform-origin: left; animation: underline 1s .9s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { width: 16px; height: 16px; color: var(--teal); }

/* Сцена справа: большой лотос + окно кассы + плавающие плашки */
.hero__stage { position: relative; min-height: 600px; display: grid; align-items: center; padding: 104px 0 76px; }
.hero__lotus { position: absolute; width: 300px; right: 30px; top: -36px; opacity: .95; will-change: transform; }
.hero__lotus .petal { transform-box: fill-box; transform-origin: 50% 100%; animation: bloom 1.4s var(--ease) both; }
.hero__lotus .petal--c { animation-delay: .15s; }
.hero__lotus .petal--l1, .hero__lotus .petal--r1 { animation-delay: .35s; }
.hero__lotus .petal--l2, .hero__lotus .petal--r2 { animation-delay: .55s; }
.hero__lotus .breath { transform-box: fill-box; transform-origin: 50% 90%; animation: breath 6s 1.8s ease-in-out infinite; }
@keyframes bloom { from { transform: scale(.2) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breath { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.035) rotate(-1.2deg); } }
/* Окно кассы — аккуратная карточка в потоке сцены: 1280×800 показываем примерно на 40 %, не шире колонки */
.hero__window { position: relative; z-index: 2; width: min(100%, 530px); justify-self: center; will-change: transform; animation: rise 1s .3s var(--ease) both; }
.float-card {
  position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-2);
  border: 1px solid var(--line); font-size: 13px; will-change: transform; animation: rise .9s var(--ease) both;
}
.float-card b { display: block; font-size: 20px; letter-spacing: -.02em; }
.float-card small { color: var(--muted); font-weight: 600; }
.float-card--a { left: -16px; bottom: 18px; animation-delay: .8s; } /* над пустым низом списка чека, не над оплатой */
.float-card--b { left: 0; top: 24px; animation-delay: 1s; display: flex; gap: 10px; align-items: center; }
.float-card--b .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-50); display: grid; place-items: center; color: var(--teal); }
.float-card--b .dot svg { width: 18px; height: 18px; }
.float-card .up { color: var(--ok); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Окна программы (мок-скриншоты) ---------- */
.win { background: #fff; border-radius: 14px; box-shadow: var(--shadow-3); overflow: hidden; border: 1px solid rgba(12,38,33,.08); font-size: 12px; color: var(--ink); text-align: left; }
.win__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: #F4F1EA; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 12px; color: var(--ink-2); }
.win__bar .lg { width: 16px; height: 16px; }
.win__bar .ctl { margin-left: auto; display: flex; gap: 14px; color: var(--muted); font-weight: 400; letter-spacing: 2px; }
.win__body { display: grid; grid-template-columns: 132px 1fr; min-height: 300px; }
.win__side { background: var(--teal-900); color: rgba(255,255,255,.72); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 11.5px; }
.win__side span { padding: 7px 10px; border-radius: 8px; display: flex; align-items: center; gap: 8px; }
.win__side span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .5; }
.win__side .on { background: rgba(255,255,255,.1); color: #fff; }
.win__side .on::before { background: var(--coral); opacity: 1; }
.win__main { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.win__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 14px; }
.win__h small { font-weight: 600; color: var(--muted); font-size: 11px; }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
.pos__list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pos__row { display: grid; grid-template-columns: minmax(0, 1fr) 28px 66px; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--line); align-items: center; }
.pos__row:last-child { border-bottom: 0; }
.pos__row.hd { background: var(--cream); color: var(--muted); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.pos__row b { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pos__row .q { color: var(--muted); text-align: center; }
.pos__row.new { background: var(--teal-50); animation: flash 2.4s ease-in-out infinite; }
@keyframes flash { 0%, 100% { background: var(--teal-50); } 50% { background: #fff; } }
.pos__pay { display: flex; flex-direction: column; gap: 8px; }
.pos__total { background: var(--teal-900); color: #fff; border-radius: 10px; padding: 12px; }
.pos__total small { opacity: .7; font-weight: 600; }
.pos__total b { display: block; font-size: 24px; letter-spacing: -.02em; }
.pos__btn { border-radius: 9px; padding: 9px 10px; font-weight: 800; text-align: center; border: 1px solid var(--line-2); background: #fff; }
.pos__btn--card { background: var(--teal); border-color: var(--teal); color: #fff; }
.pos__btn--cash { background: var(--coral-50); border-color: var(--coral-200); color: #8A3B12; }
/* Окно с настоящим снимком программы (1280×800) */
.win--shot { background: #F6F8F7; }
.win--shot { max-width: 1280px; } /* снимок не растягиваем больше родных 1280 px */
.win__shot { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; object-fit: contain; object-position: top left; background: #F6F8F7; }
.slide .win--shot { border-color: rgba(255,255,255,.12); }
.win__foot { display: flex; gap: 14px; color: var(--muted); font-weight: 600; font-size: 11px; padding-top: 2px; }
.win__foot .on { color: var(--ok); }
.win__foot .on::before { content: "● "; }

/* Поступление */
.doc-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.doc-table .r { display: grid; grid-template-columns: 1.6fr .5fr .7fr .7fr .6fr; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--line); align-items: center; }
.doc-table .r:last-child { border-bottom: 0; }
.doc-table .r.hd { background: var(--cream); color: var(--muted); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.doc-table .r > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.tag--ok { background: #E3F4E8; color: #0B6B2E; }
.tag--new { background: var(--coral-50); color: #8A3B12; }
.tag--ocr { background: var(--teal-50); color: var(--teal-700); }
.scan { position: relative; height: 54px; border-radius: 10px; background: repeating-linear-gradient(0deg, #F6F3EC 0 8px, #fff 8px 16px); border: 1px dashed var(--line-2); overflow: hidden; display: flex; align-items: center; padding: 0 12px; gap: 10px; font-weight: 700; color: var(--ink-2); }
.scan span { position: relative; z-index: 1; background: rgba(255,255,255,.85); border-radius: 6px; padding: 2px 6px; }
.scan::after { content: ""; position: absolute; opacity: .8; left: 0; right: 0; height: 2px; background: var(--coral); box-shadow: 0 0 12px var(--coral); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 6px; } 50% { top: 46px; } }

/* Ценники */
.labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.label-card { border: 1.5px solid var(--ink); border-radius: 6px; padding: 8px 9px; display: flex; flex-direction: column; gap: 4px; min-height: 104px; background: #fff; }
.label-card .n { font-weight: 700; font-size: 11px; line-height: 1.25; }
.label-card .p { margin-top: auto; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.label-card .p small { font-size: 12px; }
.label-card .bc { height: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px); opacity: .85; }
.label-card.sale { border-color: var(--coral); background: var(--coral-50); }
.label-card.sale .p { color: #A9441A; }
.label-card .old { font-size: 11px; color: var(--muted); text-decoration: line-through; }

/* Аналитика в окне */
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mini-kpis small { color: var(--muted); font-weight: 600; font-size: 10.5px; }
.mini-kpis b { display: block; font-size: 16px; letter-spacing: -.02em; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; padding: 8px 4px 0; border-bottom: 1px solid var(--line-2); }
.mini-bars i { flex: 1; max-width: 18px; background: var(--teal); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.mini-bars i:nth-child(2n) { animation-delay: .05s; }
.mini-bars i:nth-child(3n) { animation-delay: .1s; }
.mini-bars i.hi { background: var(--coral); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Цифры доверия ---------- */
.trust { padding: 0 0 40px; }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.trust__item { padding: 28px 30px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; }
.trust__num { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.trust__num span { color: var(--coral); }
.trust__lbl { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.trust__logos { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #8C918E; }
.trust__logos p { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.shoplogo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; opacity: .75; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.shoplogo:hover { opacity: 1; filter: none; }
.shoplogo i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; }

/* ---------- Секции ---------- */
.section { padding: 112px 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; max-width: 860px; }
.section__head h2 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.03em; }
.section__head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

/* ---------- Возможности ---------- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature {
  grid-column: span 2; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-1); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature--wide { grid-column: span 3; }
.feature__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); margin-bottom: 22px; }
.feature__ic svg { width: 26px; height: 26px; }
.feature__ic--coral { background: var(--coral-50); color: #B4501C; }
.feature h3 { font-size: 21px; letter-spacing: -.02em; }
.feature p { margin-top: 10px; color: var(--ink-2); }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.feature li { display: flex; gap: 10px; align-items: flex-start; }
.feature li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.feature--dark { background: var(--teal-900); color: #fff; border-color: transparent; }
.feature--dark p, .feature--dark li { color: rgba(255,255,255,.75); }
.feature--dark .feature__ic { background: rgba(255,255,255,.08); color: #7FD3BD; }
.feature--dark li::before { background-color: rgba(127,211,189,.14); }
.feature__art { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; opacity: .14; pointer-events: none; }
.offline-pill { margin-top: 18px; display: inline-flex; gap: 10px; align-items: center; background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.offline-pill i { width: 8px; height: 8px; border-radius: 50%; background: #F2A36F; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,163,111,.6); } 100% { box-shadow: 0 0 0 10px rgba(242,163,111,0); } }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Тёмная секция: карусель ---------- */
.dark { background: var(--teal-950); color: #fff; overflow: hidden; }
.dark .section__head p { color: rgba(255,255,255,.72); }
.dark__glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(14,124,102,.45), transparent 60%); top: -300px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.carousel { position: relative; }
.carousel__tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.carousel__tab { border: 1px solid rgba(255,255,255,.14); background: transparent; color: rgba(255,255,255,.72); padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; position: relative; overflow: hidden; transition: color .2s, border-color .2s, background .2s; }
.carousel__tab:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.carousel__tab.is-on { background: #fff; color: var(--teal-900); border-color: #fff; }
.carousel__tab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--coral); transform: scaleX(0); transform-origin: left; }
.carousel__tab.is-on .bar { animation: tabprog var(--dur, 5s) linear forwards; }
.carousel.is-paused .carousel__tab.is-on .bar { animation-play-state: paused; }
@keyframes tabprog { to { transform: scaleX(1); } }
.carousel__viewport { overflow: hidden; border-radius: 22px; touch-action: pan-y; }
.carousel__track { display: flex; transition: transform .8s var(--ease); }
.slide { flex: 0 0 100%; padding: 0 2px; visibility: hidden; }
.slide.is-vis, .no-js .slide:first-child { visibility: visible; }
.slide__in { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 8px; }
.slide__in > .win { width: 100%; max-width: 640px; justify-self: end; } /* окно того же веса, что в hero: 1280×800 ≈ 50 % */
.slide .win { box-shadow: 0 24px 48px -16px rgba(0,0,0,.55); }
.slide__copy h3 { font-size: 30px; letter-spacing: -.02em; }
.slide__copy p { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 17px; }
.slide__copy .kv { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slide__copy .kv div { border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }
.slide__copy .kv b { display: block; font-size: 26px; letter-spacing: -.02em; }
.slide__copy .kv small { color: rgba(255,255,255,.6); font-weight: 600; }
.carousel__ctl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.carousel__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; display: grid; place-items: center; transition: background .2s; }
.carousel__arrow:hover { background: rgba(255,255,255,.1); }
.carousel__arrow svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.3); transition: width .4s var(--ease), background .3s; }
.dots button.is-on { width: 30px; background: var(--coral); }
.dots--dark button { background: rgba(31,37,35,.2); }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; counter-reset: s; }
.steps__line { position: absolute; top: 34px; left: 16%; right: 16%; height: 2px; background: var(--cream-3); overflow: hidden; }
.steps__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--coral)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.steps.is-in .steps__line i { transform: scaleX(1); }
.step { text-align: center; padding: 0 12px; position: relative; }
.step__num { width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 24px; font-weight: 800; color: var(--teal); position: relative; z-index: 1; }
.step:nth-child(4) .step__num { background: var(--teal); color: #fff; border-color: var(--teal); }
.step h3 { font-size: 21px; }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 30ch; margin-inline: auto; }
.step__demo { margin: 22px auto 0; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-1); text-align: left; font-size: 13px; }
.key { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .06em; background: var(--cream); border: 1px dashed var(--line-2); border-radius: 8px; padding: 8px 10px; text-align: center; font-size: 13px; }
.field-mock { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; color: var(--muted); font-weight: 600; }
.field-mock + .field-mock, .field-mock + .btn { margin-top: 8px; }
.step__demo .btn { --h: 36px; width: 100%; font-size: 13px; }
.spark-row { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: 8px; }
.spark-row i { flex: 1; background: var(--teal-100); border-radius: 3px 3px 0 0; }
.spark-row i:last-child { background: var(--teal); }

/* ---------- Тарифы ---------- */
.pricing-toggle { display: inline-flex; margin: 26px auto 0; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; }
.pricing-toggle button { position: relative; z-index: 1; border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: color .3s; }
.pricing-toggle button.is-on { color: #fff; }
.pricing-toggle .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--teal); transition: transform .45s var(--ease), width .45s var(--ease); }
.pricing-toggle small { background: var(--coral-50); color: #8A3B12; border-radius: 99px; padding: 2px 7px; margin-left: 6px; font-size: 11px; }
.pricing-toggle button.is-on small { background: rgba(255,255,255,.18); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.plan__name { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.plan__for { margin-top: 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.plan__price { margin-top: 26px; display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 48px; letter-spacing: -.04em; line-height: 1; transition: opacity .25s; }
.plan__price span { color: var(--muted); font-weight: 600; }
.plan__sub { min-height: 22px; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 26px 0 30px; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan li.off { color: var(--muted); }
.plan li.off::before { background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9F9C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; }
.plan--hot { background: var(--teal-900); color: #fff; border-color: transparent; box-shadow: var(--shadow-3); transform: translateY(-12px); }
.plan--hot .plan__name { color: #7FD3BD; }
.plan--hot .plan__for, .plan--hot .plan__price span, .plan--hot .plan__sub { color: rgba(255,255,255,.66); }
.plan--hot ul { border-color: rgba(255,255,255,.12); }
.plan--hot li::before { background-color: rgba(127,211,189,.16); }
.plan__badge { position: absolute; top: -14px; left: 32px; background: linear-gradient(180deg, var(--coral-cta-2), var(--coral-cta)); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(196,86,31,.7); }
.plans__note { margin-top: 28px; text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; }
/* Тарифы: две программы + пакеты со скидкой (оплата за год) */
.units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.unit { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.unit__ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.unit__ic svg { width: 22px; height: 22px; }
.unit__txt { flex: 1; min-width: 0; }
.unit__txt b { display: block; font-size: 17px; }
.unit__txt small { display: block; margin-top: 3px; color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.45; }
.unit__pr { flex: none; text-align: right; }
.unit__pr b { display: block; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.unit__pr small { color: var(--muted); font-weight: 700; font-size: 13px; }
.plans-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 56px 0 30px; }
.plans-bar h3 { font-size: 24px; letter-spacing: -.02em; }
.plans-bar .pricing-toggle { margin: 0; }
.plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plans--4 .plan { padding: 28px 24px; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.plan__off { flex: none; background: linear-gradient(180deg, var(--coral-cta-2), var(--coral-cta)); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.01em; padding: 5px 11px; border-radius: 10px; box-shadow: 0 8px 18px -10px rgba(196,86,31,.8); }
.plans--4 .plan__for { color: var(--ink); font-size: 15px; font-weight: 700; }
.plan__was { margin-top: 20px; min-height: 24px; font-size: 18px; font-weight: 700; color: var(--muted); }
.plan__was s { text-decoration-color: var(--coral-cta); text-decoration-thickness: 2px; }
.plan__was span { font-size: 13px; font-weight: 600; opacity: .8; }
.plans--4 .plan__price { margin-top: 2px; flex-wrap: wrap; gap: 4px 6px; }
.plans--4 .plan__price b { font-size: clamp(34px, 3.1vw, 44px); white-space: nowrap; }
.plans--4 .plan__price span { white-space: nowrap; }
.plans--4 .plan__sub { min-height: 20px; }
.plan__save { margin-top: 14px; min-height: 30px; }
.plan__save:not(:empty) { display: inline-flex; align-self: flex-start; align-items: center; padding: 5px 11px; border-radius: 99px; background: #E3F4E8; color: #0B6B2E; font-weight: 800; font-size: 13.5px; }
.plan--hot .plan__save:not(:empty) { background: rgba(127,211,189,.16); color: #9FE6CF; }
.plan--hot .plan__was { color: rgba(255,255,255,.6); }
.plans--4 .plan--hot .plan__for { color: #fff; }
.plans--4 .plan ul { margin: 20px 0 26px; padding-top: 20px; font-size: 14.5px; }
.plans__more { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.plans__more p { font-size: 16px; color: var(--ink-2); }
.plans__more p b { color: var(--ink); }
.plans__trial { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: var(--teal-50); color: var(--teal-700) !important; font-weight: 700; font-size: 15px !important; }
.plans__trial svg { width: 18px; height: 18px; flex: none; }

/* ---------- Отзывы ---------- */
.reviews { background: var(--cream-2); }
.tst { position: relative; }
.tst__viewport { overflow: hidden; }
.tst__track { display: flex; gap: 20px; transition: transform .7s var(--ease); }
.tst__card { flex: 0 0 calc((100% - 40px) / 3); background: #fff; border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 18px; }
.tst__stars { color: var(--coral); letter-spacing: 3px; font-size: 16px; }
.tst__card blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.tst__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.tst__who b { display: block; font-size: 15px; }
.tst__who small { color: var(--muted); font-weight: 600; }
.tst__ctl { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.tst__ctl .arrows { display: flex; gap: 10px; }
.arrow-l { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.arrow-l:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.arrow-l svg { width: 20px; height: 20px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-side p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.faq-side .btn { margin-top: 26px; }
.acc { border-top: 1px solid var(--line-2); }
.acc__item { border-bottom: 1px solid var(--line-2); }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; background: none; border: 0; text-align: left; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.acc__q:hover { color: var(--teal); }
.acc__ic { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.acc__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__ic { background: var(--teal); border-color: var(--teal); color: #fff; transform: rotate(180deg); }
.acc__item.is-open .acc__ic::after { transform: translate(-50%, -50%) rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 56px 24px 0; color: var(--ink-2); font-size: 16px; }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }

/* ---------- Финальный CTA ---------- */
.final { padding: 0 0 112px; }
.final__card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--teal-900); color: #fff; padding: 72px 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.final__card h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; }
.final__card p { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 18px; }
.final__form { display: flex; gap: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px; }
.final__form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 16px; color: #fff; font-weight: 600; }
.final__form input::placeholder { color: rgba(255,255,255,.5); }
.final__card .final__fine { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.55); font-weight: 600; }
.final__lotus { position: absolute; width: 420px; height: 420px; right: -90px; bottom: -150px; opacity: .1; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Подвал ---------- */
.footer { background: var(--teal-950); color: rgba(255,255,255,.72); padding: 72px 0 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer .logo { color: #fff; }
.footer .logo small { color: rgba(255,255,255,.5); }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__about { margin-top: 16px; max-width: 32ch; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Мобильное меню лендинга ---------- */
.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(8,27,23,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.mnav__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .4s var(--ease); }
.mnav__panel a:not(.btn) { padding: 14px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mnav__panel .btn { margin-top: 12px; }
.mnav.is-open { opacity: 1; pointer-events: auto; }
.mnav.is-open .mnav__panel { transform: none; }
.mnav__close { align-self: flex-end; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 22px; line-height: 1; margin-bottom: 8px; }

/* ---------- Адаптив лендинга ---------- */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; gap: 24px; }
  .hero__stage { min-height: 0; width: 100%; max-width: 640px; justify-self: center; padding: 96px 0 72px; }
  .hero__window { width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--wide { grid-column: span 1; }
  .slide__in { grid-template-columns: 1fr; gap: 28px; }
  .slide__in > .win { justify-self: center; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--hot { transform: none; }
  .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .units { grid-template-columns: 1fr; max-width: 760px; }
  .tst__card { flex-basis: calc((100% - 20px) / 2); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .final__card { grid-template-columns: 1fr; padding: 56px 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) { /* до 1000 px ссылки и кнопки шапки не помещаются — бургер */
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .plans--4 { grid-template-columns: 1fr; max-width: 520px; }
  .unit { flex-wrap: wrap; padding: 18px; }
  .unit__txt { flex-basis: calc(100% - 62px); }
  .unit__pr { width: 100%; text-align: left; padding-left: 62px; display: flex; align-items: baseline; gap: 6px; }
  .unit__pr b { display: inline; }
  .plans-bar { margin-top: 40px; justify-content: center; text-align: center; }
  .plans-bar h3 { width: 100%; }
  .plans__trial { border-radius: 14px; text-align: left; }
  .plan__save:empty { min-height: 0; margin: 0; }
  .nav__in { height: 64px; }
  .hero { padding: 28px 0 64px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1; }
  .hero__stage { margin-top: 8px; padding: 96px 0 64px; }
  .hero__lotus { width: 150px; right: 6px; top: -6px; }
  .float-card--a { left: 10px; bottom: 0; }
  .float-card--b { display: none; }
  .win__body { grid-template-columns: 1fr; }
  .win__side { display: none; }
  .win__shot--side { aspect-ratio: 1062 / 800; object-fit: cover; object-position: right top; } /* на телефоне без левого меню программы — крупнее таблица */
  .pos { grid-template-columns: 1fr; }
  .pos__pay { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: stretch; }
  .pos__total b { font-size: 18px; }
  .pos__btn { display: grid; place-items: center; }
  .trust__in { grid-template-columns: 1fr 1fr; }
  .trust__item { padding: 22px 20px; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust__num { font-size: 32px; }
  .trust__logos { justify-content: center; }
  .trust__logos p { width: 100%; text-align: center; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 36px; }
  .section__head p { font-size: 16.5px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 24px; }
  .carousel__tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 4px; }
  .carousel__tab { flex: none; }
  .labels { grid-template-columns: repeat(2, 1fr); }
  .labels .label-card:nth-child(n+5) { display: none; }
  .doc-table .r { grid-template-columns: 1.6fr .5fr .8fr .7fr; }
  .doc-table .r > :nth-child(4) { display: none; }
  .slide__copy h3 { font-size: 24px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps__line { display: none; }
  .tst__card { flex-basis: 100%; }
  .acc__q { font-size: 16.5px; padding: 20px 0; }
  .acc__a p { padding-right: 0; }
  .final__card { padding: 40px 24px; border-radius: var(--r-lg); }
  .final__form { flex-direction: column; border-radius: 18px; }
  .final__form input { height: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   ВХОД (login.html)
   ========================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__brand { position: relative; overflow: hidden; background: var(--teal-950); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; }
.auth__brand .logo { color: #fff; }
.auth__brand .logo small { color: rgba(255,255,255,.5); }
.auth__quote { margin-top: auto; max-width: 30ch; position: relative; z-index: 1; }
.auth__quote h2 { font-size: 40px; letter-spacing: -.03em; }
.auth__quote p { margin-top: 16px; color: rgba(255,255,255,.7); font-size: 17px; }
.auth__stats { display: flex; gap: 36px; margin-top: 40px; position: relative; z-index: 1; }
.auth__stats b { display: block; font-size: 26px; letter-spacing: -.02em; }
.auth__stats small { color: rgba(255,255,255,.55); font-weight: 600; }
.auth__lotus { position: absolute; width: 500px; right: -110px; top: 70px; opacity: .92; }
.auth__lotus .breath { transform-box: fill-box; transform-origin: 50% 90%; animation: breath 7s ease-in-out infinite; }
.auth__glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -260px; top: -60px; background: radial-gradient(circle, rgba(14,124,102,.55), transparent 62%); }
.auth__main { display: flex; flex-direction: column; padding: 40px 56px; }
.auth__top { display: flex; justify-content: flex-end; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.auth__top a { color: var(--teal); font-weight: 700; }
.auth__top .logo { display: none; }
.auth__box { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }
.auth__box h1 { font-size: 34px; letter-spacing: -.03em; }
.auth__box > p { margin-top: 10px; color: var(--ink-2); }
.auth__step { display: none; }
.auth__step.is-on { display: block; animation: rise .5s var(--ease) both; }
.fld { margin-top: 28px; }
.fld label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.inp { width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; padding: 0 16px; font-size: 16px; font-weight: 600; outline: 0; transition: border-color .2s, box-shadow .2s; }
.inp:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.inp.is-bad { border-color: var(--crit); box-shadow: 0 0 0 4px #F7DCD8; }
.fld__err { margin-top: 8px; font-size: 13px; color: var(--crit); font-weight: 600; min-height: 20px; }
.auth__box .btn { margin-top: 8px; }
.auth__alt { margin-top: 26px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.auth__alt::before, .auth__alt::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth__fine { margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth__fine a { color: var(--teal); font-weight: 700; }
.sent-to { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; background: var(--teal-50); color: var(--teal-700); border-radius: 999px; padding: 6px 8px 6px 14px; font-weight: 700; font-size: 14px; }
.sent-to button { border: 0; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 28px; }
.otp input { width: 100%; min-width: 0; height: 64px; text-align: center; font-size: 26px; font-weight: 800; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; outline: 0; transition: border-color .2s, box-shadow .2s, transform .2s; }
.otp input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.otp input.filled { border-color: var(--teal); background: var(--teal-50); }
.otp.is-bad input { border-color: var(--crit); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.resend { margin-top: 18px; font-size: 14px; color: var(--muted); font-weight: 600; }
.resend button { border: 0; background: none; padding: 0; color: var(--teal); font-weight: 700; }
.resend button:disabled { color: var(--muted); cursor: default; }
.auth__ok { text-align: center; }
.auth__ok .ring { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--teal-50); display: grid; place-items: center; color: var(--teal); }
.auth__ok .ring svg { width: 34px; height: 34px; }
.auth__secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.auth__secure svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__brand { display: none; }
  .auth__main { padding: 20px 20px 28px; background:
      radial-gradient(500px 300px at 100% 0%, rgba(158,214,198,.45), transparent 70%),
      radial-gradient(400px 260px at 0% 100%, rgba(248,197,166,.35), transparent 70%), var(--cream); }
  .auth__top { justify-content: space-between; }
  .auth__top .logo { display: inline-flex; color: var(--ink); }
  .auth__top .hide-sm { display: none; }
  .auth__box { padding: 24px 0; margin-top: 8vh; }
  .auth__box h1 { font-size: 28px; }
  .otp { gap: 8px; }
  .otp input { height: 56px; font-size: 22px; }
}

/* =========================================================
   ЛИЧНЫЙ КАБИНЕТ (dashboard.html)
   ========================================================= */
.app {
  --bg: #F6F3EC;
  --card: #FFFFFF;
  --card-2: #FBF9F4;
  --tx: #1F2523;
  --tx-2: #4A524F;
  --tx-3: #6B726F;
  --bd: rgba(31,37,35,.09);
  --bd-2: rgba(31,37,35,.15);
  --hover: rgba(14,124,102,.06);
  /* графики: светлая тема (палитра проверена validate_palette.js) */
  --viz-surface: #FFFFFF;
  --viz-1: #008A6C;   /* бирюза — основная серия */
  --viz-2: #5B6FD6;   /* синий */
  --viz-3: #E8743B;   /* коралл */
  --viz-1-wash: rgba(0,138,108,.10);
  --viz-grid: #ECE9E2;
  --viz-axis: #C9C5BB;
  --viz-muted: #7D817F;
  --up: #0B7A34;
  --down: #B83228;
  color-scheme: light;
  min-height: 100vh;
  background: var(--bg);
  color: var(--tx);
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background: linear-gradient(90deg, var(--teal-950) 264px, var(--bg) 264px);
}
.app[data-theme="dark"] {
  --bg: #0C1714;
  --card: #13201C;
  --card-2: #172722;
  --tx: #EEF1EF;
  --tx-2: #C3CBC7;
  --tx-3: #93A09B;
  --bd: rgba(255,255,255,.08);
  --bd-2: rgba(255,255,255,.14);
  --hover: rgba(127,211,189,.07);
  --viz-surface: #13201C;
  --viz-1: #159A7C;
  --viz-2: #7585E3;
  --viz-3: #DC6A33;
  --viz-1-wash: rgba(21,154,124,.14);
  --viz-grid: #1F302A;
  --viz-axis: #33463F;
  --viz-muted: #8C9994;
  --up: #2FBF64;
  --down: #F07065;
  color-scheme: dark;
}

/* Боковое меню */
.side { position: sticky; top: 0; height: 100vh; background: var(--teal-950); color: rgba(255,255,255,.72); display: flex; flex-direction: column; padding: 22px 14px; z-index: 40; }
.side .logo { color: #fff; padding: 4px 10px 22px; }
.side .logo small { color: rgba(255,255,255,.45); }
.side__org { margin: 0 4px 18px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); display: flex; gap: 10px; align-items: center; }
.side__org .ava { width: 36px; height: 36px; font-size: 13px; background: linear-gradient(135deg, var(--teal), #0A5646); border-radius: 10px; }
.side__org b { display: block; color: #fff; font-size: 14px; line-height: 1.25; }
.side__org small { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; }
.side__label { padding: 14px 12px 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; font-weight: 600; font-size: 14.5px; position: relative; transition: background .2s, color .2s; }
.side__link svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.side__link:hover { background: rgba(255,255,255,.05); color: #fff; }
.side__link.is-on { background: rgba(255,255,255,.09); color: #fff; }
.side__link.is-on svg { opacity: 1; color: #7FD3BD; }
.side__link.is-on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--coral); }
.side__link .cnt { margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(232,116,59,.18); color: #F7B48F; padding: 2px 8px; border-radius: 99px; }
.side__foot { margin-top: auto; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, rgba(14,124,102,.35), rgba(14,124,102,.08)); border: 1px solid rgba(127,211,189,.15); font-size: 13px; }
.side__foot b { color: #fff; display: block; font-size: 14px; }
.side__foot .meter { margin-top: 10px; }
.side__scrim { display: none; }

/* Шапка */
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--bd); }
.top__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--bd-2); background: var(--card); place-items: center; }
.top__burger svg { width: 20px; height: 20px; }
.top__title { min-width: 0; }
.top__title h1 { font-size: 20px; letter-spacing: -.02em; }
.top__title small { display: block; color: var(--tx-3); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.select { position: relative; }
.select__btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--bd-2); background: var(--card); font-weight: 700; font-size: 14px; color: var(--tx); }
.select__btn .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--teal); }
.select__btn svg { width: 16px; height: 16px; color: var(--tx-3); }
.select__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--card); border: 1px solid var(--bd-2); border-radius: 14px; box-shadow: var(--shadow-2); padding: 6px; display: none; z-index: 5; }
.select.is-open .select__menu { display: block; animation: rise .25s var(--ease) both; }
.select__opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; font-weight: 600; font-size: 14px; color: var(--tx); }
.select__opt:hover { background: var(--hover); }
.select__opt small { margin-left: auto; color: var(--tx-3); font-size: 12px; }
.select__opt .chk { width: 16px; height: 16px; color: var(--teal); visibility: hidden; }
.select__opt.is-on .chk { visibility: visible; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--bd-2); background: var(--card); display: grid; place-items: center; color: var(--tx-2); position: relative; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .badge { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--card); }
.profile { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--bd-2); background: var(--card); }
.profile .ava { width: 34px; height: 34px; font-size: 13px; background: linear-gradient(135deg, #E8743B, #C4561F); }
.profile b { font-size: 14px; display: block; line-height: 1.2; }
.profile small { font-size: 12px; color: var(--tx-3); font-weight: 600; }

/* Контент */
.content { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.screen { display: none; flex-direction: column; gap: 20px; }
.screen.is-on { display: flex; animation: rise .45s var(--ease) both; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--bd); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--tx-2); }
.seg button.is-on { background: var(--teal); color: #fff; }
.toolbar__note { color: var(--tx-3); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.toolbar__note i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent); }
.toolbar .btn { margin-left: auto; }
.btn--line { background: var(--card); border-color: var(--bd-2); color: var(--tx); }
.btn--line:hover { border-color: var(--teal); color: var(--teal); }

.card { background: var(--card); border: 1px solid var(--bd); border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); padding: 22px 24px; min-width: 0; container-type: inline-size; }
.card__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__hd h2 { font-size: 16px; letter-spacing: -.01em; font-weight: 800; }
.card__hd p { color: var(--tx-3); font-size: 13px; font-weight: 600; margin-top: 2px; }
.card__hd .seg button { padding: 5px 10px; font-size: 12.5px; }
.link { color: var(--teal); font-weight: 700; font-size: 13.5px; border: 0; background: none; padding: 0; }
.app[data-theme="dark"] .link { color: #5FC6A9; }

/* KPI */
.kpis { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 16px; }
.kpis .kpi--hero { grid-row: span 2; justify-content: space-between; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi__lbl { font-size: 13px; font-weight: 700; color: var(--tx-3); }
.kpi__val { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi__val small { font-size: .6em; font-weight: 700; color: var(--tx-2); margin-left: 2px; }
.kpi__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi__note { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.kpi__note small { color: var(--tx-3); font-size: 12px; font-weight: 600; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.delta svg { width: 12px; height: 12px; }
.delta--up { color: var(--up); }
.delta--down { color: var(--down); }
.delta--good-down { color: var(--up); }
.delta + small { color: var(--tx-3); font-size: 12px; font-weight: 600; }
.kpi__spark { width: 84px; height: 30px; flex: none; }
.kpi--hero { background: var(--teal-900); color: #fff; border-color: transparent; }
.kpi--hero .kpi__lbl { color: rgba(255,255,255,.66); }
.kpi--hero .kpi__val { font-size: 48px; }
.kpi--hero .kpi__val small { color: rgba(255,255,255,.7); }
.kpi--hero .delta--up { color: #6EE7A0; }
.kpi--hero .delta + small { color: rgba(255,255,255,.55); }
.kpi__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 2px; }
.kpi__split div { border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; display: flex; flex-direction: column; }
.kpi__split small { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; }
.kpi__split b { font-size: 18px; letter-spacing: -.01em; }
.kpi--hero .goal { margin-top: 6px; }
.kpi--hero .goal small { display: flex; justify-content: space-between; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.meter { height: 8px; border-radius: 99px; background: rgba(127,211,189,.18); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: #7FD3BD; transform-origin: left; animation: grow-x 1.2s var(--ease) both; }
.meter--light { background: var(--teal-100); }
.app[data-theme="dark"] .meter--light { background: rgba(127,211,189,.14); }
.meter--light i { background: var(--teal); }
.meter--warn i { background: #D08A1E; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Сетка обзора */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; }
.grid-2b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

/* Графики (общая анатомия) */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11.5px; fill: var(--viz-muted); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--viz-grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .base { stroke: var(--viz-axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .bar { fill: var(--viz-1); transition: opacity .2s; }
.chart .bar.is-dim { opacity: .35; }
.chart .bar.wk { fill: var(--viz-1); }
.chart .lbl { fill: var(--tx); font-weight: 700; font-size: 12px; }
.chart .lbl-2 { fill: var(--tx-2); font-weight: 600; font-size: 12px; }
.chart .xhair { stroke: var(--viz-axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .avg { stroke: var(--tx-3); stroke-width: 1; stroke-dasharray: 0; opacity: .6; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; background: var(--card); color: var(--tx); border: 1px solid var(--bd-2); border-radius: 12px; box-shadow: var(--shadow-2); padding: 10px 12px; font-size: 12.5px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tip.is-on { opacity: 1; transform: none; }
.tip__t { font-weight: 700; color: var(--tx-3); font-size: 12px; margin-bottom: 6px; }
.tip__r { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tx-2); }
.tip__r + .tip__r { margin-top: 4px; }
.tip__r b { margin-left: auto; color: var(--tx); font-variant-numeric: tabular-nums; padding-left: 14px; }
.key-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.key-ln { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--tx-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* Таблица данных под графиком */
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th { text-align: left; color: var(--tx-3); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--bd-2); white-space: nowrap; }
.dtable td { padding: 12px; border-bottom: 1px solid var(--bd); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background .15s; }
.dtable tbody tr:hover { background: var(--hover); }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .muted { color: var(--tx-3); font-weight: 600; }
.table-scroll { overflow-x: auto; max-height: 300px; overflow-y: auto; }
.is-hidden { display: none !important; }

/* Донат */
.donut-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; }
.donut { position: relative; width: 180px; height: 180px; }
.donut svg { width: 180px; height: 180px; transform: rotate(-90deg); }
.donut .seg-arc { fill: none; stroke-width: 22; transition: stroke-width .2s, opacity .2s; cursor: pointer; }
.donut .seg-arc:hover { stroke-width: 26; }
.donut .seg-arc.is-dim { opacity: .35; }
.donut__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__c b { font-size: 22px; letter-spacing: -.02em; }
.donut__c small { color: var(--tx-3); font-weight: 600; font-size: 12px; }
.pay-list { display: grid; gap: 12px; }
.pay-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.pay-row b { font-variant-numeric: tabular-nums; }
.pay-row small { grid-column: 2 / -1; margin-top: -8px; color: var(--tx-3); font-weight: 600; font-size: 12.5px; }

/* Топ товаров — горизонтальные бары */
.hbar { display: grid; gap: 12px; }
.hbar__row { display: grid; grid-template-columns: minmax(0, 170px) 1fr; gap: 14px; align-items: center; font-size: 13.5px; cursor: default; }
.hbar__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar__name small { display: block; color: var(--tx-3); font-size: 12px; font-weight: 600; }
.hbar__track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hbar__bar { height: 18px; border-radius: 0 4px 4px 0; background: var(--viz-1); transform-origin: left; animation: grow-x 1s var(--ease) both; flex: none; }
.hbar__row:hover .hbar__bar { filter: brightness(1.08); }
.hbar__val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }

/* Магазины */
.shops { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.shop { border: 1px solid var(--bd); border-radius: 14px; padding: 14px 16px; background: var(--card-2); }
.shop__hd { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.shop__hd small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--up); display: inline-flex; gap: 6px; align-items: center; }
.shop__hd small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.shop__v { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.shop__m { display: flex; gap: 14px; margin-top: 4px; color: var(--tx-3); font-size: 12.5px; font-weight: 600; flex-wrap: wrap; }

/* Последние чеки */
.receipt-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--teal-50); color: var(--teal); vertical-align: middle; }
.app[data-theme="dark"] .receipt-ic { background: rgba(127,211,189,.1); color: #7FD3BD; }
.receipt-ic svg { width: 16px; height: 16px; }
.receipt-ic--ret { background: var(--coral-50); color: #B4501C; }
.app[data-theme="dark"] .receipt-ic--ret { background: rgba(232,116,59,.14); color: #F2A36F; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill svg { width: 12px; height: 12px; }
.pill--ok { background: #E3F4E8; color: #0B6B2E; }
.pill--warn { background: #FBF0D9; color: #7A4E0B; }
.pill--off { background: #F6E1DE; color: #8E2A22; }
.pill--neutral { background: var(--cream-2); color: var(--ink-2); }
.app[data-theme="dark"] .pill--ok { background: rgba(47,191,100,.14); color: #7BDB9E; }
.app[data-theme="dark"] .pill--warn { background: rgba(250,178,25,.14); color: #F5C766; }
.app[data-theme="dark"] .pill--off { background: rgba(240,112,101,.14); color: #F59A92; }
.app[data-theme="dark"] .pill--neutral { background: rgba(255,255,255,.07); color: var(--tx-2); }

/* Устройства и лицензия */
.lic { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.lic-card { position: relative; overflow: hidden; background: var(--teal-900); color: #fff; border: 0; padding: 28px; }
.lic-card .eyebrow { color: #7FD3BD; }
.lic-card__lotus { position: absolute; width: 260px; right: -60px; bottom: -80px; opacity: .1; }
.lic-key { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lic-key code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .08em; background: rgba(255,255,255,.07); border: 1px dashed rgba(255,255,255,.22); padding: 10px 16px; border-radius: 12px; }
.lic-key .btn { --h: 40px; }
.lic-meta { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 1; }
.lic-meta div { border-top: 1px solid rgba(255,255,255,.14); padding-top: 12px; }
.lic-meta small { display: block; color: rgba(255,255,255,.58); font-weight: 600; font-size: 12.5px; }
.lic-meta b { font-size: 17px; }
.lic-meta .forever { display: inline-flex; align-items: center; gap: 6px; color: #9FE6CF; }
.limit__num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.limit__num small { font-size: 18px; color: var(--tx-3); font-weight: 700; }
.limit__slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0 10px; }
.limit__slots i { height: 10px; border-radius: 4px; background: var(--teal); }
.limit__slots i.free { background: var(--teal-100); }
.app[data-theme="dark"] .limit__slots i.free { background: rgba(127,211,189,.14); }
.limit p { color: var(--tx-3); font-size: 13.5px; font-weight: 600; }
.limit .btn { margin-top: 18px; }
.dev-name { display: flex; align-items: center; gap: 12px; }
.dev-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--cream-2); color: var(--ink-2); }
.app[data-theme="dark"] .dev-ic { background: rgba(255,255,255,.06); color: var(--tx-2); }
.dev-ic svg { width: 19px; height: 19px; }
.dev-name b { display: block; font-size: 14px; }
.dev-name small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
/* Места по видам, тип устройства, переименование */
.lic-meta div > small + b + small { margin-top: 2px; }
.lic-meta b + small { color: rgba(255,255,255,.5); }
.lic-note { position: relative; z-index: 1; margin-top: 18px; color: rgba(255,255,255,.66); font-size: 13px; font-weight: 600; max-width: 560px; }
.limit__kinds { display: grid; gap: 16px; margin-top: 8px; }
.limit__row { display: flex; align-items: center; gap: 10px; }
.limit__row .dev-ic { width: 32px; height: 32px; border-radius: 10px; }
.limit__row .dev-ic svg { width: 16px; height: 16px; }
.limit__row b { font-size: 15px; }
.limit__row .limit__num { margin-left: auto; font-size: 28px; }
.limit__row .limit__num small { font-size: 15px; }
.limit__kind .limit__slots { margin: 10px 0 4px; }
.limit__free { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.limit__kinds + p { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bd); }
.dev-kind { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--cream-2); color: var(--ink-2); }
.dev-kind--pc { background: var(--teal-50); color: var(--teal-700); }
.app[data-theme="dark"] .dev-kind { background: rgba(255,255,255,.07); color: var(--tx-2); }
.app[data-theme="dark"] .dev-kind--pc { background: rgba(127,211,189,.12); color: #7FD3BD; }
.dev-kind-m { display: none; }
.dev-name b { display: flex; align-items: center; gap: 4px; }
.dev-pen { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--tx-3); cursor: pointer; transition: background .2s, color .2s; }
.dev-pen:hover, .dev-pen:focus-visible { background: var(--card-2); color: var(--teal); }
.dev-pen svg { width: 15px; height: 15px; }
.dev-rename { font: inherit; font-weight: 700; font-size: 14px; color: var(--tx); background: var(--card); border: 1.5px solid var(--teal); border-radius: 8px; padding: 4px 8px; width: min(240px, 100%); margin-bottom: 2px; outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.btn-revoke { border: 1px solid var(--bd-2); background: var(--card); color: var(--down); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 10px; transition: background .2s, border-color .2s; }
.btn-revoke:hover { border-color: var(--down); background: color-mix(in srgb, var(--down) 8%, transparent); }
.code-box { display: none; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--card-2); border: 1px dashed var(--bd-2); }
.code-box.is-on { display: block; animation: rise .35s var(--ease) both; }
.code-box .big { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 30px; font-weight: 800; letter-spacing: .18em; color: var(--tx); }
.code-box small { display: block; color: var(--tx-3); font-weight: 600; font-size: 12.5px; margin-top: 4px; }
.history { display: grid; gap: 14px; }
.history div { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: baseline; font-size: 13.5px; }
.history i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); transform: translateY(-1px); }
.history i.c { background: var(--coral); }
.history small { color: var(--tx-3); font-weight: 600; white-space: nowrap; }

/* Заглушка разделов */
.stub { text-align: center; padding: 64px 24px; }
.stub svg { width: 120px; margin: 0 auto 18px; opacity: .9; }
.stub h2 { font-size: 22px; }
.stub p { color: var(--tx-3); margin-top: 8px; font-weight: 600; }

/* Модалка отзыва */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(8,27,23,.5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; padding: 20px; }
.modal.is-on { opacity: 1; pointer-events: auto; }
.modal__box { width: min(440px, 100%); background: var(--card); color: var(--tx); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-3); transform: translateY(12px) scale(.98); transition: transform .3s var(--ease); }
.modal.is-on .modal__box { transform: none; }
.modal__box h3 { font-size: 20px; }
.modal__box p { margin-top: 10px; color: var(--tx-2); }
.modal__act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.btn--danger { background: var(--crit); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; background: var(--teal-950); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-3); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Адаптив ЛК */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi--hero { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 1100px) {
  .grid-2, .grid-2b, .lic { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; background: var(--bg); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 284px; transform: translateX(-100%); transition: transform .35s var(--ease), box-shadow .35s; box-shadow: none; }
  .app.menu-open .side { transform: none; box-shadow: var(--shadow-3); }
  .side__scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(8,27,23,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .app.menu-open .side__scrim { opacity: 1; pointer-events: auto; }
  .top__burger { display: grid; }
  .top { padding: 0 16px; gap: 10px; height: 64px; }
  .profile div, .hide-md { display: none; }
  .profile { padding: 4px; }
  .content { padding: 18px 16px 40px; gap: 16px; }
  .screen { gap: 16px; }
}
@media (max-width: 640px) {
  .top__title h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top__title small { font-size: 12px; max-width: 46vw; }
  .select__btn { padding: 0 10px; gap: 6px; font-size: 13px; }
  .select__btn .lbl-long { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi__val { font-size: 21px; }
  .kpi--hero .kpi__val { font-size: 38px; }
  .kpi__spark { display: none; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .card__hd { flex-wrap: wrap; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .pay-list { width: 100%; }
  .shops { grid-template-columns: 1fr; }
  .lic-key code { font-size: 16px; }
  .lic-meta { grid-template-columns: 1fr 1fr; }
  .toolbar .btn, .hide-xs { display: none; }
  .dtable .hide-sm { display: none; }
  .hbar__row { grid-template-columns: 1fr; gap: 6px; }
  .hbar__name { display: flex; justify-content: space-between; gap: 8px; }
  .hbar__name small { display: inline; }
  .dtable--devices thead { display: none; }
  .dtable--devices tr { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--bd); }
  .dtable--devices td { border: 0; padding: 0; }
  .dtable--devices td:nth-child(1) { grid-column: 1 / -1; }
  .dtable--devices td.hide-sm { display: none; }
  .dev-kind-m { display: block; margin-top: 4px; }
}

/* Тёмная тема ЛК: акцентная плитка и меню отделяются от фона */
.app[data-theme="dark"] .kpi--hero { background: linear-gradient(160deg, #0F4237, #0C2C25); border: 1px solid rgba(127,211,189,.14); }
.app[data-theme="dark"] .side { border-right: 1px solid rgba(255,255,255,.06); }

/* =========================================================
   ЛК: разделы «Магазины», «Продажи», «Товары», «Оплата», «Настройки»
   (shops.html, sales.html, products.html, billing.html, settings.html)
   ========================================================= */
.kpis-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis-4 .kpi__val { font-size: 26px; }
.kpi .kpi__sub { color: var(--tx-3); font-size: 12.5px; font-weight: 600; }
.muted-t { color: var(--tx-3); font-weight: 600; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--tx-3); }
.crumbs a { color: var(--teal); display: inline-flex; align-items: center; gap: 4px; }
.app[data-theme="dark"] .crumbs a { color: #5FC6A9; }
.crumbs svg { width: 16px; height: 16px; }

/* Карточки магазинов */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shop-card { display: flex; flex-direction: column; gap: 18px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.shop-card:hover { border-color: color-mix(in srgb, var(--teal) 45%, transparent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.shop-card__hd { display: flex; align-items: center; gap: 14px; }
.shop-card__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--teal-50); color: var(--teal); }
.app[data-theme="dark"] .shop-card__ic { background: rgba(127,211,189,.1); color: #7FD3BD; }
.shop-card__ic svg { width: 22px; height: 22px; }
.shop-card__hd h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.shop-card__hd p { color: var(--tx-3); font-size: 13px; font-weight: 600; margin-top: 2px; }
.shop-card__hd .pill { margin-left: auto; align-self: flex-start; }
.shop-card__rev { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-card__rev small { display: block; color: var(--tx-3); font-size: 12.5px; font-weight: 700; }
.shop-card__rev b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.shop-card__rev .shop-card__month b { font-size: 20px; letter-spacing: -.01em; }
.shop-card__rev .shop-card__month { text-align: right; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--bd); }
.facts > div { padding: 14px 0 0; min-width: 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--bd); margin-left: 0; }
.facts small { display: block; color: var(--tx-3); font-size: 12px; font-weight: 700; }
.facts b { display: block; font-size: 14.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts b span { display: block; color: var(--tx-3); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card__ft { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--tx-3); }
.shop-card__ft .link { display: inline-flex; align-items: center; gap: 4px; }
.shop-card__ft .link svg { width: 15px; height: 15px; }
.shop-card .warnline { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #FBF0D9; color: #7A4E0B; font-size: 13px; font-weight: 600; }
.app[data-theme="dark"] .shop-card .warnline, .app[data-theme="dark"] .warnline { background: rgba(250,178,25,.12); color: #F5C766; }
.warnline svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.warnline { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #FBF0D9; color: #7A4E0B; font-size: 13px; font-weight: 600; }

/* Детали магазина */
.shop-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; }
.shop-hero h2 { font-size: 24px; }
.shop-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; color: var(--tx-2); font-size: 13.5px; font-weight: 600; }
.shop-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.shop-hero .meta svg { width: 15px; height: 15px; color: var(--tx-3); }
.shop-hero__act { display: flex; gap: 10px; flex-wrap: wrap; }
.grid-2c { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.dev-list { display: grid; gap: 4px; }
.dev-list .dev-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bd); }
.dev-list .dev-row:last-child { border-bottom: 0; }
.dev-txt { flex: 1; min-width: 0; }
.dev-txt b { display: block; font-size: 14px; }
.dev-txt small { display: block; color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
h2 .pill { letter-spacing: 0; vertical-align: middle; margin-left: 6px; }

/* Фильтры */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.fgroup { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fgroup > label, .fgroup > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); }
.filters .btn { margin-left: auto; }
.fselect { position: relative; }
.fselect select, .input { height: 42px; border-radius: 12px; border: 1px solid var(--bd-2); background: var(--card); color: var(--tx); font: inherit; font-weight: 600; font-size: 14px; padding: 0 14px; width: 100%; }
.fselect select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; min-width: 170px; }
.fselect svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--tx-3); pointer-events: none; }
.input:focus, .fselect select:focus { outline: 3px solid color-mix(in srgb, var(--teal) 30%, transparent); outline-offset: 0; border-color: var(--teal); }
.input[readonly] { background: var(--card-2); color: var(--tx-2); }
.search { position: relative; min-width: 240px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--tx-3); pointer-events: none; }
.search .input { padding-left: 40px; }
.seg button[aria-pressed="false"]:hover { color: var(--tx); }

/* Итоговая полоса */
.sum-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--bd); border-radius: 16px; background: var(--card-2); overflow: hidden; }
.sum-strip > div { padding: 14px 18px; min-width: 0; }
.sum-strip > div + div { border-left: 1px solid var(--bd); }
.sum-strip small { display: block; color: var(--tx-3); font-size: 12px; font-weight: 700; }
.sum-strip b { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-strip .neg { color: var(--down); }

/* Таблица: кликабельные строки, сортировка, итог */
.dtable--click tbody tr, #receipts tr.rc-link { cursor: pointer; }
#receipts tr.rc-link:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }
.dtable--click tbody tr:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }
.dtable tbody tr.is-sel { background: color-mix(in srgb, var(--teal) 10%, transparent); }
.dtable tfoot td { padding: 14px 12px; border-top: 2px solid var(--bd-2); font-weight: 800; background: var(--card-2); }
.dtable tfoot td small { display: block; font-weight: 600; color: var(--tx-3); font-size: 12px; }
.dtable .neg { color: var(--down); }
.dtable td.date { white-space: nowrap; }
.dtable td.date small { display: block; color: var(--tx-3); font-weight: 600; font-size: 12px; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.th-sort svg { width: 13px; height: 13px; opacity: .45; }
.th-sort:hover { color: var(--tx); }
th[aria-sort="ascending"] .th-sort, th[aria-sort="descending"] .th-sort { color: var(--teal); }
.app[data-theme="dark"] th[aria-sort="ascending"] .th-sort, .app[data-theme="dark"] th[aria-sort="descending"] .th-sort { color: #5FC6A9; }
th[aria-sort] .th-sort svg { opacity: 1; }
.pill--ret { background: var(--coral-50); color: #8A3B12; }
.app[data-theme="dark"] .pill--ret { background: rgba(232,116,59,.14); color: #F2A36F; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--tx-3); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.dtable .c-only-m { display: none; }
.empty { text-align: center; padding: 40px 12px; color: var(--tx-3); font-weight: 600; }
.share { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.share i { display: block; width: 64px; height: 6px; border-radius: 99px; background: var(--viz-grid); overflow: hidden; }
.share i b { display: block; height: 100%; background: var(--viz-1); border-radius: 0 3px 3px 0; }
.prod-name b { display: block; font-size: 14px; }
.prod-name small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--card-2); border: 1px solid var(--bd); font-size: 12px; font-weight: 800; color: var(--tx-2); }

/* Топ товаров с подсказкой */
.hbar--tip { position: relative; }
.hbar--tip .hbar__row { cursor: default; border-radius: 10px; }
.hbar--tip .hbar__row.is-dim .hbar__bar { opacity: .35; }
.hbar__bar { transition: opacity .2s; }

/* Боковая панель (сводка чека) */
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(8,27,23,.42); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--card); color: var(--tx); box-shadow: var(--shadow-3); transform: translateX(100%); transition: transform .38s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.is-on { pointer-events: auto; }
.drawer.is-on .drawer__scrim { opacity: 1; }
.drawer.is-on .drawer__panel { transform: none; }
.drawer__hd { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--bd); }
.drawer__hd h3 { font-size: 18px; }
.drawer__hd small { display: block; color: var(--tx-3); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.drawer__hd .icon-btn { margin-left: auto; }
.drawer__bd { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.rc-total { border-radius: 16px; padding: 18px 20px; background: var(--teal-900); color: #fff; }
.rc-total.is-ret { background: linear-gradient(160deg, #7A3A16, #5A2A10); }
.rc-total small { color: rgba(255,255,255,.66); font-weight: 700; font-size: 12.5px; }
.rc-total b { display: block; font-size: 38px; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rc-total .pill { margin-top: 8px; background: rgba(255,255,255,.14); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--bd); }
.kv dt, .kv dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--bd); font-size: 14px; }
.kv dt { color: var(--tx-3); font-weight: 600; padding-right: 16px; }
.kv dd { text-align: right; font-weight: 700; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--card-2); border: 1px dashed var(--bd-2); font-size: 13.5px; color: var(--tx-2); font-weight: 600; }
.note svg { width: 19px; height: 19px; flex: none; color: var(--teal); margin-top: 1px; }
.app[data-theme="dark"] .note svg { color: #7FD3BD; }
.note b { color: var(--tx); display: block; }
/* Модалка: широкий вариант и выбор */
.modal__box--wide { width: min(760px, 100%); }
.modal__box { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.modal__box .x { float: right; margin: -6px -6px 0 0; }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pick label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--bd-2); cursor: pointer; transition: border-color .2s, background .2s; }
.pick label:hover { border-color: color-mix(in srgb, var(--teal) 50%, transparent); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label:has(input:checked) { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, transparent); }
.pick label:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.pick b { font-size: 16px; }
.pick .pr { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.pick .pr small { font-size: 13px; color: var(--tx-3); font-weight: 700; }
.pick small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.pick .cur { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; color: var(--teal); background: var(--teal-50); padding: 2px 8px; border-radius: 99px; }
.app[data-theme="dark"] .pick .cur { background: rgba(127,211,189,.12); color: #7FD3BD; }
.pick--list { grid-template-columns: 1fr; }
.pick--list label { flex-direction: row; align-items: center; gap: 14px; }
.pick--list .dev-ic { margin: 0; }

/* Оплата */
.bill-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.plan-card { position: relative; overflow: hidden; background: var(--teal-900); color: #fff; border: 0; padding: 28px; }
.app[data-theme="dark"] .plan-card { background: linear-gradient(160deg, #0F4237, #0C2C25); border: 1px solid rgba(127,211,189,.14); }
.plan-card .eyebrow { color: #7FD3BD; }
.plan-card__lotus { position: absolute; width: 240px; height: 240px; right: -50px; bottom: -70px; opacity: .1; }
.plan-card__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.plan-card h2 { font-size: 30px; margin-top: 8px; letter-spacing: -.03em; }
.plan-card .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin-top: 18px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.plan-card .price small { letter-spacing: 0; font-size: 16px; color: rgba(255,255,255,.7); font-weight: 700; margin-left: 4px; }
.plan-card .price-note { color: rgba(255,255,255,.62); font-weight: 600; font-size: 13.5px; position: relative; z-index: 1; min-height: 1.4em; }
.plan-card__comp { margin-top: 4px; color: rgba(255,255,255,.78); font-weight: 700; font-size: 14.5px; }
.plan-card__off { background: linear-gradient(180deg, var(--coral-cta-2), var(--coral-cta)); color: #fff; font-weight: 800; font-size: 18px; padding: 6px 12px; border-radius: 11px; box-shadow: 0 8px 18px -10px rgba(196,86,31,.9); }
.plan-card .price s { display: block; font-size: 18px; letter-spacing: 0; color: rgba(255,255,255,.55); font-weight: 700; text-decoration-color: var(--coral); text-decoration-thickness: 2px; margin-bottom: 2px; }
.pick--packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick--packs label { gap: 3px; }
.pick--packs .pk-top { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.pick--packs .pk-top .cur { position: static; }
.pk-off { margin-left: auto; background: linear-gradient(180deg, var(--coral-cta-2), var(--coral-cta)); color: #fff; font-weight: 800; font-size: 14px; padding: 3px 9px; border-radius: 8px; }
.pk-was { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--tx-3); }
.pk-was s { text-decoration-color: var(--coral-cta); text-decoration-thickness: 2px; }
.pick--packs .pr { margin-top: 0; }
.pk-save { align-self: flex-start; margin-top: 6px; padding: 3px 9px; border-radius: 99px; background: #E3F4E8; color: #0B6B2E; font-weight: 800; font-size: 12.5px; }
.app[data-theme="dark"] .pk-save { background: rgba(47,191,100,.14); color: #7BDB9E; }
.modal__box p.pk-more { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--tx-3); }
.seg--dark { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.seg--dark button { color: rgba(255,255,255,.75); }
.seg--dark button.is-on { background: #fff; color: var(--teal-900); }
.seg small { font-size: 11px; font-weight: 800; color: #8A3B12; background: var(--coral-50); border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.seg--dark button.is-on small { background: var(--coral); color: #fff; }
.plan-feats { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.plan-feats li { display: flex; gap: 8px; align-items: center; }
.plan-feats svg { width: 15px; height: 15px; color: #7FD3BD; flex: none; }
.plan-use { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; position: relative; z-index: 1; }
.plan-use small { display: flex; justify-content: space-between; color: rgba(255,255,255,.62); font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.plan-card__act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; position: relative; z-index: 1; }
.btn--white { background: #fff; color: var(--teal-900); }
.btn--white:hover { background: #F2FBF8; }
.side-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.next-pay b.big { display: block; font-size: 32px; letter-spacing: -.03em; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.next-pay .when { color: var(--tx-2); font-weight: 700; margin-top: 6px; }
.next-pay .kv { margin-top: 16px; }
.paym { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--bd); border-radius: 14px; background: var(--card-2); }
.paym__brand { width: 52px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #1E7B4F, #0E5A8A); flex: none; }
.paym b { display: block; font-size: 15px; }
.paym small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.paym .pill { margin-left: auto; }
.card__act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.switch { position: relative; display: inline-flex; flex: none; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--bd-2); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.row-sw { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--bd); }
.row-sw:last-child { border-bottom: 0; padding-bottom: 0; }
.row-sw > div { flex: 1; min-width: 0; }
.row-sw b { display: block; font-size: 14.5px; }
.row-sw small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 700; font-size: 13px; border: 0; background: none; padding: 0; }
.app[data-theme="dark"] .doc-link { color: #5FC6A9; }
.doc-link svg { width: 15px; height: 15px; }

/* Настройки */
.set-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--tx-2); }
.field small { color: var(--tx-3); font-weight: 600; font-size: 12px; }
.form-act { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.form-act small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who .ava { width: 36px; height: 36px; font-size: 13px; border-radius: 50%; }
.who .ava svg { width: 16px; height: 16px; }
.who b { display: block; font-size: 14px; }
.who small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; }
.pill--role { background: var(--teal-50); color: var(--teal-700); }
.app[data-theme="dark"] .pill--role { background: rgba(127,211,189,.12); color: #7FD3BD; }
.sess { display: grid; }
.sess__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bd); }
.sess__row:last-child { border-bottom: 0; }
.sess__row > div { flex: 1; min-width: 0; }
.sess__row b { display: block; font-size: 14px; }
.sess__row small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.btn--danger-line { background: var(--card); border-color: color-mix(in srgb, var(--down) 45%, transparent); color: var(--down); }
.btn--danger-line:hover { background: color-mix(in srgb, var(--down) 8%, transparent); border-color: var(--down); }
.login-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--teal) 8%, transparent); font-size: 13.5px; font-weight: 600; color: var(--tx-2); margin-bottom: 8px; }
.login-info svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.app[data-theme="dark"] .login-info svg { color: #7FD3BD; }
.login-info b { display: block; color: var(--tx); }
.roles-help { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.roles-help div { padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--bd); font-size: 13px; color: var(--tx-2); font-weight: 600; }
.roles-help b { display: block; color: var(--tx); font-size: 13.5px; margin-bottom: 2px; }

/* Адаптив разделов */
@media (max-width: 1240px) {
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .shop-grid, .grid-2c, .bill-grid, .set-grid { grid-template-columns: 1fr; }
  .sum-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sum-strip > div:nth-child(3) { border-left: 0; }
  .sum-strip > div:nth-child(n+3) { border-top: 1px solid var(--bd); }
}
@media (max-width: 640px) {
  .kpis-4 { gap: 10px; }
  .kpis-4 .kpi__val { font-size: 21px; }
  .shop-card__rev b { font-size: 28px; }
  .shop-card__rev .shop-card__month { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--bd); margin-top: 12px; padding-top: 12px; }
  .shop-hero { grid-template-columns: 1fr; }
  .shop-hero h2 { font-size: 21px; }
  .shop-hero__act .btn { flex: 1 1 auto; }
  .filters { gap: 12px; }
  .filters .fgroup { flex: 1 1 100%; }
  .filters .fgroup .seg { width: 100%; overflow-x: auto; }
  .filters .fgroup .seg button { flex: 1 0 auto; }
  .filters .btn { display: inline-flex; margin-left: 0; width: 100%; }
  .search { min-width: 0; }
  .sum-strip > div { padding: 12px 14px; }
  .sum-strip b { font-size: 17px; }
  /* таблица продаж → карточки */
  .dtable--cards thead { display: none; }
  .dtable--cards, .dtable--cards tbody, .dtable--cards tfoot { display: block; }
  .dtable--cards td.date { white-space: normal; }
  .dtable--cards tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 4px; border-bottom: 1px solid var(--bd); }
  .dtable--cards td { border: 0; padding: 0; }
  .dtable--cards td.c-hide { display: none; }
  .dtable--cards td.c-sum { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .dtable--cards td.c-main { grid-column: 1; }
  .dtable--cards span.c-only-m { display: inline; color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
  .dtable--cards td.c-only-m { display: block; }
  .dtable--cards td.c-sub { grid-column: 1; color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
  .dtable--cards tfoot tr { border-bottom: 0; background: var(--card-2); border-radius: 12px; padding: 12px; margin-top: 8px; }
  .dtable--cards tfoot td { border: 0; background: none; padding: 0; }
  .dtable--prod td.c-hide, .dtable--prod th.c-hide { display: none; }
  .dtable--prod td, .dtable--prod th { padding: 10px 6px; }
  .dtable--prod span.c-only-m { display: inline; }
  .share i { display: none; }
  .drawer__panel { top: auto; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .pick { grid-template-columns: 1fr; }
  .plan-card { padding: 22px 18px; }
  .plan-card h2 { font-size: 26px; }
  .plan-card .price { font-size: 34px; }
  .plan-feats, .plan-use, .form-grid, .roles-help { grid-template-columns: 1fr; }
  .plan-card__act .btn, .card__act .btn { flex: 1 1 auto; }
  .paym { flex-wrap: wrap; }
  .dtable--inv .c-hide { display: none; }
  .dtable--inv td.c-sub { text-align: left; margin-top: 4px; }
  .dtable--users .c-hide { display: none; }
}

/* ================= Кабинет на настоящем API (ruvn-cabinet, /api/v1) ================= */
/* Пока сессия не проверена (GET /me + организация): каркас (меню, заголовок) виден сразу — переход между
   разделами без белого/пустого кадра; скрыты только места с данными пользователя (организация, пакет,
   профиль) и содержимое разделов на настоящем API (body[data-wait="content"]). После boot() — короткое появление. */
.side__org, .side__foot, .top__right, .content { transition: opacity .14s ease; }
.ruvn-pending .side__org, .ruvn-pending .side__foot, .ruvn-pending .top__right,
.ruvn-pending body[data-wait="content"] .content { visibility: hidden; opacity: 0; transition: none; }
/* блок ждёт свои данные после boot() (например, пакет на «Оплате») — появляется уже заполненным */
.bill-grid { transition: opacity .14s ease; }
.bill-grid.is-loading { visibility: hidden; opacity: 0; transition: none; }
[hidden] { display: none !important; }
.is-busy { opacity: .6; cursor: progress; }
.form-err { color: var(--down, #B83228); font-weight: 700; font-size: 13px; min-height: 0; }
.form-err:empty { display: none; }
.muted-t.set-note { font-size: 13px; margin-top: 12px; }
.card__hd--tight { margin-bottom: 10px; }
.table-scroll--free { max-height: none; }
.card__act--row { justify-content: space-between; }
.modal__act--wrap { flex-wrap: wrap; }
.modal__box .notice { margin-top: 16px; }
.modal__box .form-err { display: block; margin-top: 10px; }
.modal__box .form-err:empty { display: none; }
.su-field { margin-top: 16px; }
.su-sent { margin-top: 12px; font-size: 13.5px; }
.su-again { margin-top: 10px; }
.code-inp { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 22px; font-weight: 800; letter-spacing: .3em; text-align: center; height: 52px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--teal); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.link-btn:disabled { color: var(--tx-3); cursor: default; }
.app[data-theme="dark"] .link-btn:not(:disabled) { color: #5FC6A9; }

/* уведомление внутри карточки */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--teal) 8%, transparent); color: var(--tx-2); font-size: 13.5px; font-weight: 600; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 1px; }
.notice b { display: block; color: var(--tx); font-size: 14px; margin-bottom: 2px; }

/* переключатель организаций в шапке */
.org-sel .select__btn svg:first-child { width: 16px; height: 16px; color: var(--teal); }
.org-sel__t { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.org-sel .select__menu { min-width: 280px; }
.org-sel__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-sel__new { border-top: 1px solid var(--bd); border-radius: 0 0 10px 10px; margin-top: 4px; color: var(--teal); }
.org-sel__new .chk { visibility: visible; }
.side__org-t { min-width: 0; }
.side__org-t b { overflow-wrap: anywhere; }
.profile__name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* устройства и лицензия */
.dev-wrap { display: flex; flex-direction: column; gap: 20px; }
.mobile-card__row, .mobile-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mobile-list { margin-top: 16px; }
.mobile-row { border-top: 1px solid var(--bd); padding: 14px 0; }
.mobile-row b, .mobile-row small { display: block; }
.mobile-row small { margin-top: 4px; color: var(--tx-3); }
.mobile-row__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-profile-list { max-height: 200px; overflow: auto; padding-left: 22px; line-height: 1.55; overflow-wrap: anywhere; }
.mobile-shop { display: block; width: 100%; margin-top: 6px; }
.mobile-qr { display: block; width: min(270px, 80vw); height: auto; margin: 20px auto; image-rendering: pixelated; }
.lic-card__lotus { height: 260px; }
.lic-key code { overflow-wrap: anywhere; }
.lic-meta .pill { font-size: 13px; padding: 4px 10px; }
.dev-title { overflow-wrap: anywhere; }
.dtable--devices tr.is-off { opacity: .6; }
.dev-empty { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; border: 1px dashed var(--bd-2); color: var(--tx-2); font-size: 14px; font-weight: 600; }
.dev-empty > b { color: var(--tx); font-size: 15px; }
.chk-inline { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--tx-2); cursor: pointer; }
.chk-inline input { width: 16px; height: 16px; accent-color: var(--teal); }
.key-reveal { display: block; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--card-2); border: 1px dashed var(--bd-2); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 19px; font-weight: 800; letter-spacing: .06em; text-align: center; overflow-wrap: anywhere; user-select: all; }
.steps-list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--tx-2); font-weight: 600; font-size: 14px; }
.dev-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.btn-policy { border: 1px solid color-mix(in srgb, var(--teal) 40%, var(--bd-2)); background: var(--card); color: var(--teal); font-weight: 800; font-size: 13px; padding: 7px 12px; border-radius: 10px; white-space: nowrap; transition: background .2s, border-color .2s; }
.btn-policy:hover, .btn-policy:focus-visible { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--card)); }
.receipt-policy { margin-top: 20px; }
.rp-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
.receipt-policy > h4 { margin-bottom: 14px; font-size: 16px; line-height: 1.3; }
.receipt-policy + .receipt-policy { padding-top: 20px; border-top: 1px solid var(--bd); }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-field { display: grid; gap: 7px; min-width: 0; }
.rp-field > span { color: var(--tx); font-size: 13px; font-weight: 800; }
.rp-mode-field { border: 0; padding: 0; margin: 0; }
.rp-mode-field legend { color: var(--tx); font-size: 13px; font-weight: 800; padding: 0 0 7px; }
.rp-segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--bd-2); border-radius: 12px; background: var(--card-2); }
.rp-segment { position: relative; min-width: 0; cursor: pointer; }
.rp-segment input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rp-segment span { display: block; padding: 9px 5px; border-radius: 9px; color: var(--tx-2); font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; }
.rp-segment input:checked + span { background: var(--card); color: var(--teal); box-shadow: var(--shadow-1); }
.rp-segment input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }
.rp-mode-field:disabled .rp-segment { opacity: .55; cursor: wait; }
.rp-requisites { margin-top: 3px; padding-top: 9px; }
.rp-requisites b { font-size: 12.5px; }
.rp-select { min-width: 0; }
.rp-select:disabled { opacity: .6; cursor: wait; }
.rp-help { margin-top: 12px !important; color: var(--tx-3) !important; font-size: 13px; font-weight: 600; }
.rp-state { margin-top: 18px; }
.rp-status { padding: 13px 15px; border: 1px solid var(--bd); border-left: 4px solid var(--teal); border-radius: 12px; background: var(--card-2); }
.rp-status b { display: block; font-size: 14px; }
.rp-status p { margin-top: 3px; font-size: 13px; font-weight: 600; }
.rp-status--ok { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 7%, var(--card)); }
.rp-status--warn, .rp-status--saved { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--card)); }
.rp-status--bad { border-left-color: var(--down); background: color-mix(in srgb, var(--down) 7%, var(--card)); }
.rp-status--off { border-left-color: var(--tx-3); }
.rp-meta { margin-top: 10px !important; color: var(--tx-3) !important; font-size: 12.5px; font-weight: 700; }
.rp-poll-err { min-height: 0; margin-top: 8px !important; color: var(--warn) !important; font-size: 12.5px; font-weight: 700; }
.rp-poll-err:empty { display: none; }
.receipt-policy > .form-err { display: block; margin-top: 10px; }
.receipt-policy > .form-err:empty { display: none; }

/* настройки и оплата */
.who .ava { background: linear-gradient(135deg, #0E7C66, #0A5646); }
.who .ava.ava--owner { background: linear-gradient(135deg, #E8743B, #C4561F); }
.who .ava.ava--pending { background: #93A09B; }
.who b, .who small { overflow-wrap: anywhere; }
.np-state { margin-top: 12px; }
.pick--static .pk-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--bd-2); }
.pick--static .pk-card.is-cur { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, transparent); }
.pick--static b { font-size: 16px; }
.pick--static .pr { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

/* вход: регистрация и согласие */
.auth__lead { margin-top: 10px; color: var(--ink-2); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--teal); }
.consent small { color: var(--muted); }
#stepSignup .btn { margin-top: 18px; }

@media (max-width: 960px) {
  .org-sel__t { max-width: 140px; }
}
@media (max-width: 640px) {
  .org-sel .select__btn { padding: 0 10px; }
  .org-sel__t { max-width: 96px; }
  .org-sel--one { display: none; } /* одна организация — её название и так в меню */
  #ruvnLogout { display: none; } /* «Выйти» — в меню «Настройки» */
  .card__act--row .btn { flex: 1 1 100%; }
  .modal__act { flex-wrap: wrap; }
  .modal__act .btn { flex: 1 1 auto; }
  .card__hd { flex-wrap: wrap; }
  .rp-grid { grid-template-columns: 1fr; }
  .dtable--devices td:last-child { grid-column: 1 / -1; }
  .dev-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 4px; }
}
.final__lotus { pointer-events: none; } /* декоративный лотос перекрывал кнопку «Попробовать бесплатно» */

/* Скачать Лотос */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-card { display: flex; flex-direction: column; gap: 14px; }
.dl-card__hd { display: flex; gap: 14px; align-items: flex-start; }
.dl-card__ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--teal) 10%, transparent); color: var(--teal); }
.dl-card__ic svg { width: 26px; height: 26px; }
.dl-card h2 { font-size: 20px; letter-spacing: -.01em; font-weight: 800; }
.dl-card__desc { color: var(--tx-3); font-size: 14px; font-weight: 600; line-height: 1.5; margin-top: 4px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-notes { color: var(--tx-2); font-size: 13.5px; font-weight: 600; white-space: pre-line; }
.dl-card .btn { align-self: flex-start; }
.dl-card .btn[hidden] { display: none; }
.dl-wait { margin-top: auto; }
.dl-sha { border-top: 1px solid var(--bd); padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--tx-2); }
.dl-sha summary { cursor: pointer; }
.dl-sha__row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.dl-sha code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--cream-2); border-radius: 10px; padding: 8px 10px; color: var(--tx); }
.dl-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--tx-2); }
.dl-steps a { color: var(--teal); font-weight: 800; }
.dl-req { margin-top: 14px; color: var(--tx-3); font-size: 13.5px; font-weight: 600; }
.dl-grid.is-loading { visibility: hidden; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .dl-card .btn { align-self: stretch; justify-content: center; } }

/* Шаблоны названий (templates.html): части шаблона — «фишки» полей с разделителями между ними; цвет поля один и тот же
   в редакторе и в «Проверить». Цвет задаётся классом .nt-c-<поле> через --c. */
.nt-c-department { --c: #4F63CF; } .nt-c-year { --c: #8452CC; } .nt-c-date { --c: #B0428F; } .nt-c-name { --c: #0E7C66; }
.nt-c-qty { --c: #C4561F; } .nt-c-purchase { --c: #A86A0E; } .nt-c-sale { --c: #4C7D10; } .nt-c-supplier { --c: #2A77AE; }
.nt-c-article { --c: #8A5A2B; } .nt-c-size { --c: #A23E48; } .nt-c-custom1 { --c: #3F7F8F; } .nt-c-custom2 { --c: #5A6B7A; }
.nt-c-custom3 { --c: #7A4E8C; } .nt-c-lit { --c: #6B726F; }
.app[data-theme="dark"] [class*="nt-c-"] { --c-tx: color-mix(in srgb, var(--c) 55%, #fff); }
.nt-visually { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nt-lead { font-size: 15.5px; font-weight: 700; color: var(--tx); line-height: 1.45; }
.nt-sub { color: var(--tx-3); font-size: 13px; font-weight: 600; line-height: 1.45; margin-top: 10px; }
.nt-sub code, .nt-tpl__ex code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--card-2); border: 1px solid var(--bd); border-radius: 6px; padding: 1px 6px; color: var(--tx); }
.nt-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.nt-presets > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); }
.nt-presets > div { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-preset { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: -.01em; }
.nt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); grid-template-areas: "tpl chk" "opt chk"; gap: 20px; align-items: start; }
.nt-tpls { grid-area: tpl; }
.nt-check { grid-area: chk; position: sticky; top: 92px; }
.nt-opts { grid-area: opt; }
.nt-list { display: flex; flex-direction: column; gap: 12px; }
.nt-empty { padding: 22px; border: 1px dashed var(--bd-2); border-radius: 14px; color: var(--tx-3); font-weight: 600; font-size: 13.5px; text-align: center; }
.nt-empty b { display: block; color: var(--tx); font-size: 15px; margin-bottom: 4px; }

/* карточка шаблона */
.nt-tpl { border: 1px solid var(--bd-2); border-radius: 16px; padding: 12px 14px 14px; background: var(--card-2); transition: box-shadow .2s, border-color .2s, opacity .2s; position: relative; }
.nt-tpl.is-new { animation: rise .45s var(--ease) both; }
.nt-tpl.has-err { border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.nt-tpl.is-off .nt-row, .nt-tpl.is-off .nt-tpl__ex { opacity: .5; }
.nt-tpl.is-drag { z-index: 5; box-shadow: var(--shadow-3); pointer-events: none; opacity: .95; }
.nt-tpl.is-target.is-before { box-shadow: 0 -3px 0 var(--teal); }
.nt-tpl.is-target.is-after { box-shadow: 0 3px 0 var(--teal); }
.nt-tpl__hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-tpl__no { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.nt-tpl.is-off .nt-tpl__no { background: var(--tx-3); }
.nt-tpl__title.input { flex: 1 1 180px; height: 36px; font-weight: 800; font-size: 14.5px; background: transparent; border-color: transparent; padding: 0 8px; min-width: 0; }
.nt-tpl__title.input:hover:not(:disabled) { border-color: var(--bd-2); background: var(--card); }
.nt-tpl__title.input:focus { background: var(--card); }
.nt-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--tx-2); cursor: pointer; }
.nt-sw .switch { width: 38px; height: 22px; }
.nt-sw .switch span::after { width: 16px; height: 16px; }
.nt-sw .switch input:checked + span::after { transform: translateX(16px); }
.nt-sw__t { min-width: 64px; }
.nt-tpl__tools { display: flex; gap: 4px; margin-left: auto; }
.icon-btn.nt-mini { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.nt-mini svg { width: 15px; height: 15px; }
.icon-btn.nt-mini:disabled { opacity: .35; }
.icon-btn.nt-mini:not(:disabled):hover { border-color: var(--teal); color: var(--teal); }
.icon-btn.nt-mini--del:not(:disabled):hover { border-color: var(--down); color: var(--down); }
.nt-grip { flex: none; display: grid; place-items: center; width: 22px; height: 32px; border: 0; border-radius: 7px; background: none; color: var(--tx-3); cursor: grab; touch-action: none; padding: 0; }
.nt-grip svg { width: 10px; height: 16px; fill: currentColor; }
.nt-grip:hover:not(:disabled) { background: var(--hover); color: var(--tx); }
.nt-grip:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 35%, transparent); }
.nt-grip:disabled { cursor: default; opacity: .4; }
.is-sorting, .is-sorting * { cursor: grabbing !important; user-select: none; }

/* ряд частей */
.nt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 12px; }
.nt-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nt-row__hint { color: var(--tx-3); font-size: 13px; font-weight: 600; }
.nt-chip { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px 6px 4px; border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, var(--card)); border: 1.5px solid color-mix(in srgb, var(--c) 38%, transparent); position: relative; transition: box-shadow .15s; }
.nt-chip__top { display: flex; align-items: center; gap: 4px; }
.nt-chip__top b { font-size: 13.5px; font-weight: 800; color: var(--c-tx, var(--c)); white-space: nowrap; padding-right: 2px; }
.nt-chip .nt-grip { height: 26px; width: 18px; color: color-mix(in srgb, var(--c) 70%, var(--tx-3)); }
.nt-chip.is-drag { z-index: 5; box-shadow: var(--shadow-2); pointer-events: none; }
.nt-chip.is-target.is-before { box-shadow: -4px 0 0 var(--teal); }
.nt-chip.is-target.is-after { box-shadow: 4px 0 0 var(--teal); }
.nt-chip.is-err { border-color: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 18%, transparent); }
.nt-chip__fmt, .nt-chip__lit { height: 26px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: var(--card); color: var(--tx); font: inherit; font-size: 12.5px; font-weight: 700; padding: 0 6px; }
.nt-chip__lit { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; width: auto; }
.nt-chip__fmt:focus, .nt-chip__lit:focus { outline: 2px solid color-mix(in srgb, var(--teal) 40%, transparent); border-color: var(--teal); }
.nt-chip__x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--tx-3); padding: 0; margin-left: 2px; }
.nt-chip__x svg { width: 13px; height: 13px; }
.nt-chip__x:hover:not(:disabled) { color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); }
.nt-chip__opts { display: flex; flex-direction: column; gap: 2px; padding-left: 20px; }
.nt-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tx-2); cursor: pointer; white-space: nowrap; }
.nt-chk input { width: 14px; height: 14px; margin: 0; accent-color: var(--teal); }
.nt-sep { flex: none; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; border: 1.5px dashed var(--bd-2); background: var(--card); color: var(--tx); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; font-weight: 800; line-height: 1; display: grid; place-items: center; }
.nt-sep:hover:not(:disabled), .nt-sep[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); border-style: solid; }
.nt-sep--none { color: var(--tx-3); font-size: 14px; }
.nt-add { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 9px; border-radius: 10px; border: 1.5px dashed color-mix(in srgb, var(--teal) 55%, transparent); background: none; color: var(--teal); font: inherit; font-weight: 800; font-size: 13.5px; }
.nt-add svg { width: 15px; height: 15px; }
.nt-add:hover:not(:disabled), .nt-add[aria-expanded="true"] { background: var(--teal-50); border-style: solid; }
.app[data-theme="dark"] .nt-add { color: #5FC6A9; }
.app[data-theme="dark"] .nt-add:hover:not(:disabled) { background: rgba(95,198,169,.1); }
.nt-add:disabled { opacity: .5; }
.nt-sep:disabled { cursor: default; }
.nt--ro .nt-ed-only, .nt--ro .nt-presets, .nt--ro #ntAdd, .nt--ro .nt-grip, .nt--ro .nt-chip__x, .nt--ro .nt-add, .nt--ro .nt-tpl__tools { display: none; }
.nt--ro .nt-chip { padding-left: 8px; }
.nt--ro .nt-chip__opts { padding-left: 0; }
.nt-tpl__ex { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--tx-3); }
.nt-tpl__ex:empty { display: none; }
.nt-errs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nt-errs:empty { display: none; }
.nt-errs li { display: flex; gap: 6px; align-items: flex-start; color: var(--down); font-size: 13px; font-weight: 700; }
.nt-errs li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.nt-errs li.is-hint { color: var(--warn); }

/* всплывающее меню */
.nt-pop { position: fixed; z-index: 80; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); max-height: min(420px, calc(100vh - 16px)); overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--card); color: var(--tx); border: 1px solid var(--bd-2); box-shadow: var(--shadow-3); animation: rise .18s var(--ease) both; }
.nt-pop__i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 9px; background: none; text-align: left; font: inherit; color: var(--tx); }
.nt-pop__i:hover:not(:disabled), .nt-pop__i:focus-visible { background: var(--hover); outline: none; }
.nt-pop__i:disabled { opacity: .45; cursor: default; }
.nt-pop__i b { display: block; font-size: 13.5px; font-weight: 800; }
.nt-pop__i small { display: block; font-size: 11.5px; font-weight: 600; color: var(--tx-3); }
.nt-pop__i.is-on b { color: var(--teal); }
.nt-pop__sym { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--bd-2); display: grid; place-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 15px; }
.nt-pop__ok { width: 16px; height: 16px; margin-left: auto; color: var(--teal); flex: none; }
.nt-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--tx-3)); display: inline-block; }

/* цены и режим */
.nt-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--bd); }
.nt-opt__l { font-size: 14px; font-weight: 700; color: var(--tx-2); }
.nt-pad select { min-width: 170px; height: 38px; }
.nt-sep-line { height: 1px; background: var(--bd); margin: 18px 0; }
.nt-modes { display: grid; gap: 10px; }
.nt-mode { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--bd-2); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.nt-mode input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.nt-mode b { display: block; font-size: 14.5px; }
.nt-mode small { display: block; color: var(--tx-3); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.nt-mode.is-on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 6%, transparent); }
.nt-mode:has(input:disabled) { cursor: default; }

/* «Проверить» */
.nt-check__in.input { height: 48px; font-size: 16px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.01em; }
.nt-out { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.nt-out__hint { color: var(--tx-3); font-size: 13.5px; font-weight: 600; }
.nt-res { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--up) 10%, transparent); color: var(--tx); }
.nt-res > svg { width: 20px; height: 20px; flex: none; color: var(--up); margin-top: 1px; }
.nt-res b { display: block; font-size: 14.5px; }
.nt-res small { display: block; color: var(--tx-3); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.nt-res--none { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.nt-res--none > svg { color: var(--warn); }
.nt-hlrow { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 800; }
.nt-hl { display: inline-flex; flex-direction: column; align-items: center; white-space: pre; }
.nt-hl__t { padding: 3px 4px; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c-tx, var(--c)); box-shadow: inset 0 -2px 0 var(--c); }
.nt-hl small { font-family: var(--font); font-size: 10.5px; font-weight: 800; color: var(--c-tx, var(--c)); text-align: center; padding: 2px 3px 0; white-space: nowrap; }
.nt-hl--sep { padding: 3px 1px; color: var(--tx-3); }
.nt-hl--plain { padding: 3px 0; color: var(--tx-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-fields { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nt-fields th, .nt-fields td { padding: 7px 0; border-bottom: 1px solid var(--bd); text-align: left; }
.nt-fields th { font-weight: 600; color: var(--tx-2); white-space: nowrap; padding-right: 12px; }
.nt-fields th .nt-dot { margin-right: 4px; vertical-align: 0; }
.nt-fields td { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nt-fields tr.is-miss td { color: var(--tx-3); font-weight: 600; }
.nt-fields tr.nt-clean th, .nt-fields tr.nt-clean td { border-bottom: 0; padding-top: 10px; }
.nt-others { list-style: none; margin: 0; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--tx-3); display: flex; flex-direction: column; gap: 2px; }
.nt-others li.is-also { color: var(--warn); }
.nt-bulk { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bd); }
.nt-bulk > div { margin-top: 10px; }
.nt-lines.input { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.nt-bulk__act { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.nt-bulk__act small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.nt-cov { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.nt-cov__big { font-size: 18px; letter-spacing: -.01em; }
.nt-cov small { color: var(--tx-3); font-weight: 700; }
.nt-meter { grid-column: 1 / -1; }
.nt-cov__by { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; }
.nt-cov__by li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--bd); font-weight: 600; color: var(--tx-2); }
.nt-cov__by li.is-off { color: var(--tx-3); }
.nt-cov__by b { font-variant-numeric: tabular-nums; color: var(--tx); }
.nt-cov__t { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--tx-2); }
.nt-miss { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-miss__b { border: 0; background: none; padding: 3px 6px; margin-left: -6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--tx-2); text-align: left; overflow-wrap: anywhere; }
.nt-miss__b:hover { background: var(--hover); color: var(--teal); }

/* панель сохранения (прилипает к низу экрана); прокрутка к полю с клавиатуры не прячет его под панель и шапку */
html:has(.nt-bar) { scroll-padding-top: 96px; scroll-padding-bottom: 104px; }
.nt-bar { position: sticky; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--bd-2); box-shadow: var(--shadow-2); }
.nt-bar.is-dirty { border-color: color-mix(in srgb, var(--coral) 55%, transparent); }
.nt-bar__st { display: flex; flex-direction: column; min-width: 0; }
.nt-bar__st b { font-size: 14px; }
.nt-bar.is-dirty .nt-bar__st b { color: var(--coral-cta); }
.app[data-theme="dark"] .nt-bar.is-dirty .nt-bar__st b { color: #F2A27A; }
.nt-bar__st small { color: var(--tx-3); font-size: 12.5px; font-weight: 600; }
.nt-bar__st small.form-err { color: var(--down); font-weight: 700; }
.nt-bar__act { display: flex; gap: 8px; flex-wrap: wrap; }
.nt-bar__act .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* история */
.nt-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nt-hist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bd); }
.nt-hist li > div { min-width: 0; }
.nt-hist b { font-size: 14.5px; margin-right: 8px; }
.nt-hist small { display: block; color: var(--tx-3); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

@media (max-width: 1100px) {
  .nt-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tpl" "chk" "opt"; }
  .nt-check { position: static; }
}
@media (max-width: 640px) {
  .nt-tpl { padding: 10px 10px 12px; }
  .nt-tpl__hd { gap: 6px 8px; }
  .nt-tpl__title.input { flex: 1 1 calc(100% - 70px); padding: 0 6px; }
  .nt-sw { margin-left: 30px; }
  .nt-tpl__tools { gap: 4px; }
  .nt-preset { white-space: normal; text-align: left; height: auto; min-height: 38px; padding: 6px 12px; }
  .nt-hlrow { font-size: 15px; }
  .nt-bar { bottom: 8px; padding: 8px 10px 10px 14px; gap: 6px 8px; }
  .nt-bar__st { flex: 1 1 100%; flex-direction: row; align-items: baseline; gap: 8px; }
  .nt-bar__st b { font-size: 13px; }
  .nt-bar__st small { display: none; }
  .nt-bar__st small.form-err:not(:empty) { display: block; }
  .nt-bar__act { flex: 1 1 100%; flex-wrap: nowrap; gap: 6px; justify-content: flex-end; }
  .nt-bar__act .btn { padding: 0 12px; flex: none; }
  .nt-bar__act #ntSave { flex: 1 1 auto; justify-content: center; }
  .nt-bar__lbl { display: none; }
}

/* «Обзор»: организация, пакет и места (настоящие данные), быстрые ссылки */
.ov-org { display: flex; align-items: center; gap: 14px; }
.ov-org .ava { width: 46px; height: 46px; border-radius: 14px; font-size: 15px; background: linear-gradient(135deg, var(--teal), #0A5646); }
.ov-org h2 { font-size: 20px; overflow-wrap: anywhere; }
.ov-org p { color: var(--tx-3); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.ov-fact__link { margin-top: auto; padding-top: 4px; }
.ov-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ov-link { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; padding: 18px 20px; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.ov-link:hover { border-color: color-mix(in srgb, var(--teal) 45%, transparent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ov-link__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--teal-50); color: var(--teal); }
.ov-link__ic svg { width: 20px; height: 20px; }
.ov-link__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ov-link__t small { color: var(--tx-3); font-size: 12.5px; font-weight: 600; }
.ov-link__go { margin-left: auto; color: var(--teal); font-weight: 800; }
.app[data-theme="dark"] .ov-link__ic { background: rgba(127,211,189,.1); color: #7FD3BD; }
.app[data-theme="dark"] .ov-link__go { color: #5FC6A9; }
.ov-soon p.muted-t { font-size: 14px; line-height: 1.5; }

/* честная пустая страница раздела без данных (Продажи, Товары, Магазины) */
.empty-state__ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.empty-state__ic svg { width: 30px; height: 30px; margin: 0; opacity: 1; }
.empty-state p { max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.app[data-theme="dark"] .empty-state__ic { background: rgba(127,211,189,.1); color: #7FD3BD; }

/* «Магазины»: простой список (название, адрес, устройства) */
.shop-list { list-style: none; margin: 0; padding: 0; }
.shop-list__row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--bd); }
.shop-list__row:first-child { border-top: 0; padding-top: 4px; }
.shop-list__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.shop-list__t b { font-size: 16px; overflow-wrap: anywhere; }
.shop-list__t small { color: var(--tx-3); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.shop-list__dev { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.shop-list__note { font-size: 13.5px; }
@container (max-width: 520px) {
  .shop-list__row { flex-wrap: wrap; }
  .shop-list__dev { width: 100%; justify-content: flex-start; padding-left: 60px; }
}

/* «Реклама»: карточки товара из фото (ads.html, ads.js) */
.ad-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: ad-pulse 1.4s ease-in-out infinite; }
@keyframes ad-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.app[data-theme="dark"] .ad-dot { background: #7FD3BD; }
/* загрузка */
.ad-drop { display: flex; align-items: center; gap: 16px; padding: 22px; border: 2px dashed var(--bd-2); border-radius: 16px; background: var(--card-2); transition: border-color .2s, background .2s; }
.ad-drop.is-drag { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, var(--card)); }
.ad-drop.is-full { opacity: .7; }
.ad-drop__ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.ad-drop__ic svg { width: 26px; height: 26px; }
.app[data-theme="dark"] .ad-drop__ic { background: rgba(127,211,189,.1); color: #7FD3BD; }
.ad-drop__t { flex: 1; min-width: 0; }
.ad-drop__t b { display: block; font-size: 15px; }
.ad-drop__t small { display: block; margin-top: 3px; color: var(--tx-3); font-weight: 600; font-size: 13px; line-height: 1.45; }
.ad-drop .btn { flex: none; }
.ad-prev { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.ad-prev[hidden] { display: none; }
.ad-prev__it { position: relative; width: 104px; }
.ad-prev__it img, .ad-prev__ph { display: grid; place-items: center; width: 104px; height: 104px; object-fit: cover; border-radius: 12px; border: 1px solid var(--bd); background: var(--card-2); color: var(--tx-3); }
.ad-prev__it small { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--tx-3); text-align: center; }
.ad-prev__x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; box-shadow: var(--shadow-1); }
.ad-prev__x svg { width: 14px; height: 14px; }
.ad-new__act { margin-top: 16px; }
.ad-new__act .btn:disabled:not(.is-busy) { opacity: .45; box-shadow: none; transform: none; cursor: not-allowed; }
.ad-drop__count { color: var(--tx-3); font-weight: 700; font-size: 13px; }
.ad-new > .form-err { margin-top: 10px; }
/* список работ */
.ad-none { font-size: 14px; }
.ad-jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ad-job { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--bd); border-radius: 14px; overflow: hidden; background: var(--card); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ad-job:hover { border-color: color-mix(in srgb, var(--teal) 45%, transparent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ad-job__img { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--card-2); color: var(--tx-3); border-bottom: 1px solid var(--bd); overflow: hidden; }
.ad-job__img svg { width: 30px; height: 30px; opacity: .6; }
.ad-job__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-job__t { padding: 12px 12px 0; min-width: 0; }
.ad-job__t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.ad-job__t small { display: block; margin-top: 3px; color: var(--tx-3); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-job__ft { margin-top: auto; padding: 10px 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ad-job__ft small { color: var(--tx-3); font-weight: 600; font-size: 12px; }
.ad-more { display: flex; justify-content: center; margin-top: 16px; }
/* работа: шапка и ход */
.ad-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.ad-back svg { width: 16px; height: 16px; }
.ad-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 24px; }
.ad-head .ad-back { grid-column: 1 / -1; }
.ad-head__t h2 { font-size: 22px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ad-head__m { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ad-head__m small { color: var(--tx-3); font-weight: 600; font-size: 13px; }
.ad-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.ad-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--bd); font-size: 12.5px; font-weight: 700; color: var(--tx-3); white-space: nowrap; }
.ad-steps__n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--bd-2); font-size: 11.5px; }
.ad-steps__n svg { width: 12px; height: 12px; }
.ad-steps .is-done { color: var(--tx-2); }
.ad-steps .is-done .ad-steps__n { background: var(--teal); border-color: var(--teal); color: #fff; }
.ad-steps .is-now { color: var(--tx); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.ad-steps .is-now .ad-steps__n { border-color: var(--teal); color: var(--teal); }
.app[data-theme="dark"] .ad-steps .is-now .ad-steps__n { color: #7FD3BD; border-color: #7FD3BD; }
.ad-photos { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.ad-photos img { display: block; width: 96px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--bd); background: var(--card-2); }
.ad-photos--side { margin-bottom: 16px; }
.ad-photos--side li:first-child { flex-basis: 100%; }
.ad-photos--side li:first-child img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 420px; }
/* ожидание */
.ad-wait { display: flex; flex-direction: column; gap: 20px; }
.ad-wait__body { display: flex; gap: 18px; align-items: flex-start; }
.ad-wait__body > div { flex: 1; min-width: 0; }
.ad-wait__ic { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.ad-wait__ic svg { width: 28px; height: 28px; animation: ad-pulse 1.8s ease-in-out infinite; }
.app[data-theme="dark"] .ad-wait__ic { background: rgba(127,211,189,.1); color: #7FD3BD; }
.ad-wait h2 { font-size: 19px; }
.ad-wait p { margin-top: 6px; color: var(--tx-2); font-weight: 600; font-size: 14px; line-height: 1.5; max-width: 640px; }
.ad-bar { position: relative; height: 6px; margin-top: 16px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--bd); overflow: hidden; max-width: 520px; }
.ad-bar i { position: absolute; top: 0; bottom: 0; width: 34%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #3FB59A); animation: ad-bar 1.6s var(--ease) infinite; }
@keyframes ad-bar { from { left: -34%; } to { left: 100%; } }
.ad-wait__time { display: block; margin-top: 10px; color: var(--tx-3); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
/* ошибка */
.ad-fail { display: flex; flex-direction: column; gap: 16px; }
.ad-fail .form-act { margin-top: 0; }
.notice--bad { background: color-mix(in srgb, var(--down) 9%, transparent); }
.notice--bad svg { color: var(--down); }
.notice span { display: block; }
/* данные для карточек */
.ad-split { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.ad-facts { margin: 0; display: grid; gap: 0; }
.ad-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--bd); font-size: 14px; }
.ad-facts dt { color: var(--tx-3); font-weight: 600; }
.ad-facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ad-side .warnline { margin-top: 12px; }
.ad-side__act { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bd); }
.ad-lbl { font-size: 13px; font-weight: 700; color: var(--tx-2); }
.ad-ferr { margin-top: 2px; }
.ad-count { font-weight: 800; color: var(--tx); }
/* очередь, режим загрузки, пакет */
.ad-queue { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--teal) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent); }
.ad-queue[hidden], .ad-send[hidden], .ad-qpill[hidden], .ad-form .field[hidden] { display: none; }
.ad-queue__ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.ad-queue__ic svg { width: 19px; height: 19px; }
.ad-queue b { display: block; font-size: 15px; }
.ad-queue small { display: block; color: var(--tx-2); font-weight: 600; font-size: 13px; margin-top: 1px; }
.ad-mode__row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ad-mode button { padding: 8px 14px; }
.ad-mode__hint { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.ad-drop__count.is-bad { color: var(--down); }
.ad-prev__it.is-ok img { opacity: .55; }
.ad-prev__it.is-err img { outline: 2px solid var(--down); outline-offset: -2px; }
.ad-prev__it.is-err small { color: var(--down); }
.ad-prev__st { position: absolute; left: 50%; top: 52px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: var(--shadow-1); }
.ad-prev__it.is-err .ad-prev__st { background: var(--down); }
.ad-prev__st svg { width: 17px; height: 17px; }
.ad-prev__st--spin { background: rgba(255,255,255,.9); border: 3px solid var(--teal-100); border-top-color: var(--teal); animation: ad-spin .8s linear infinite; }
@keyframes ad-spin { to { transform: rotate(360deg); } }
.ad-send { margin-top: 14px; }
.ad-send small { display: block; margin-top: 8px; color: var(--tx-2); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.ad-bar--det { margin-top: 0; }
.ad-bar--det i { position: static; display: block; width: 0; height: 100%; animation: none; transition: width .4s var(--ease); }
.ad-qpill svg { width: 12px; height: 12px; }
.ad-wait__q:empty { display: none; }
.ad-wait p.ad-wait__q { margin-top: 10px; color: var(--teal-700); font-weight: 700; }
.app[data-theme="dark"] .ad-wait p.ad-wait__q { color: #7FD3BD; }
/* форма — панель с разделами */
.ad-secs { display: flex; flex-direction: column; }
.ad-sec { padding: 18px 0; border-top: 1px solid var(--bd); }
.ad-sec:first-child { border-top: 0; padding-top: 4px; }
.ad-sec__hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ad-sec__hd h3 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); }
.ad-sec__hd small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.ad-source { margin: 0 -4px; padding: 16px !important; border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--bd)); border-radius: 16px; background: color-mix(in srgb, var(--teal) 5%, var(--card)); }
.ad-source__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.ad-source__pack { display: grid; gap: 10px; margin-top: 12px; }
.ad-source__text, .ad-source__list, .ad-source__warnings { display: grid; gap: 5px; padding: 11px 13px; border-radius: 12px; background: var(--card); border: 1px solid var(--bd); overflow-wrap: anywhere; }
.ad-source__text small { color: var(--tx-3); line-height: 1.45; }
.ad-source__list ul, .ad-source__warnings ul { margin: 0; padding-left: 20px; }
.ad-source__warnings { border-color: color-mix(in srgb, var(--warn) 38%, var(--bd)); }
@media (max-width: 640px) { .ad-source__facts { grid-template-columns: 1fr; } }
.ad-attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; }
.ad-form .fselect select { min-width: 0; }
.ad-form select:disabled { opacity: .6; cursor: not-allowed; }
.ad-form__act { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--bd); }
.ad-models { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-chk { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--bd-2); background: var(--card); font-weight: 700; font-size: 14px; color: var(--tx-2); cursor: pointer; transition: border-color .2s, background .2s; }
.ad-chk input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.ad-chk.is-on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--card)); color: var(--tx); }
.ad-chk.is-off { opacity: .5; cursor: not-allowed; }
.ad-chk:focus-within { outline: 3px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.ad-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ad-size-note { display: block; margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--teal) 7%, var(--card)); color: var(--tx-2); line-height: 1.45; }
.ad-size { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bd-2); background: var(--card); color: var(--tx); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.ad-size b { font-size: 13.5px; line-height: 1.25; }
.ad-size small { color: var(--tx-3); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.ad-size:hover { border-color: color-mix(in srgb, var(--teal) 50%, transparent); }
.ad-size.is-on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--card)); box-shadow: inset 0 0 0 1px var(--teal); }
.ad-size.is-on small { color: var(--teal); }
.app[data-theme="dark"] .ad-size.is-on small { color: #7FD3BD; }
.ad-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.ad-dims[hidden] { display: none; }
.ad-price { font-size: 18px; font-weight: 800; }
.ad-feats { display: flex; flex-direction: column; gap: 8px; }
.ad-feats:empty { display: none; }
.ad-feat { display: flex; gap: 8px; }
.ad-feat .icon-btn { flex: none; }
.ad-feat-add { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 0; }
.ad-feat-add svg { width: 15px; height: 15px; }
.ad-feat-add[hidden] { display: none; }
.ad-form .form-act .btn { min-width: 200px; justify-content: center; }
.ad-form > .form-err { margin: 10px 0; }
.ad-form > .form-err:empty { display: none; }
/* готовые карточки */
.ad-cards__hd { flex-wrap: wrap; }
.ad-cards__hd > div:first-child { flex: 1 1 320px; }
.ad-cards__act { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ad-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ad-card__img { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--bd); border-radius: 14px; overflow: hidden; background: var(--card-2); aspect-ratio: 4 / 5; cursor: zoom-in; }
.ad-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.ad-card__img:hover img { transform: scale(1.025); }
.ad-card__zoom { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--ink); opacity: 0; transition: opacity .2s; }
.ad-card__zoom svg { width: 18px; height: 18px; }
.ad-card__img:hover .ad-card__zoom, .ad-card__img:focus-visible .ad-card__zoom { opacity: 1; }
.ad-card__dl { justify-content: center; }
/* просмотр крупно */
.modal__box.ad-view__box { width: auto; max-width: min(760px, 100%); padding: 18px; }
.ad-view { display: grid; place-items: center; margin-top: 30px; }
.ad-view__img { display: block; max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; background: var(--card-2); }
.ad-view__bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.ad-view__bar .btn { margin-left: 8px; }
.ad-view__bar .btn svg { width: 18px; height: 18px; }
.ad-view__bar .muted-t { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1240px) { .ad-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .ad-split { grid-template-columns: minmax(0, 1fr); }
  .ad-photos--side li:first-child { flex-basis: auto; }
  .ad-photos--side li:first-child img { width: 96px; height: 120px; }
  .ad-head { grid-template-columns: minmax(0, 1fr); }
  .ad-steps { overflow-x: auto; scrollbar-width: none; }
}
@container (max-width: 560px) {
  .ad-drop { flex-direction: column; align-items: stretch; text-align: center; padding: 20px 16px; }
  .ad-drop__ic { margin: 0 auto; }
  .ad-drop .btn { justify-content: center; }
  .ad-cards { gap: 10px; }
  .ad-cards__act { width: 100%; }
  .ad-cards__act .btn { flex: 1 1 auto; justify-content: center; }
  .ad-wait__body { flex-direction: column; }
  .ad-form .form-act .btn { width: 100%; }
}
@media (max-width: 640px) {
  .ad-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ad-job__t { padding: 10px 10px 0; }
  .ad-job__ft { padding: 8px 10px 10px; }
  .ad-head__t h2 { font-size: 19px; }
  .ad-steps li { padding: 5px 10px 5px 5px; }
  .ad-steps li:not(.is-now) span:last-child { display: none; }
  .ad-steps li:not(.is-now) { padding-right: 5px; }
  .ad-form .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .ad-form .form-grid > .field:not(.ad-half) { grid-column: 1 / -1; }
  .ad-sizes { grid-template-columns: 1fr 1fr; }
  .ad-chk { flex: 1 1 calc(50% - 4px); }
  .ad-mode { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ad-mode button { padding: 8px 6px; font-size: 12.5px; line-height: 1.25; }
  .ad-prev { gap: 10px; }
  .ad-prev__it { width: 72px; }
  .ad-prev__it img, .ad-prev__ph { width: 72px; height: 72px; }
  .ad-prev__st { top: 36px; }
  .ad-attrs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ad-view__bar { gap: 8px; }
  .ad-view__bar .btn { margin-left: auto; }
  .ad-view__img { max-height: calc(100dvh - 150px); }
  .modal__box.ad-view__box { padding: 12px; }
}
/* «Реклама» → каналы Telegram / MAX / ВКонтакте и публикация карточек (ads.js) */
.ad-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--bd); }
.ad-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--tx-2); transition: color .2s, background .2s; }
.ad-tabs a svg { width: 16px; height: 16px; }
.ad-tabs a:hover { color: var(--tx); }
.ad-tabs a.is-on { background: var(--teal); color: #fff; }
.ad-pb { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .02em; background: var(--tx-3); }
.ad-pb--telegram { background: #229ED9; }
.ad-pb--max { background: linear-gradient(135deg, #3E7BFA, #8B3DFF); font-size: 10.5px; }
.ad-pb--vk { background: #0077FF; }
.ad-chans__hd { flex-wrap: wrap; }
.ad-chans__hd > div:first-child { flex: 1 1 280px; }
.ad-chans__none { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 8px; }
.ad-chans__none b { font-size: 17px; }
.ad-chans__none p { margin-top: 6px; max-width: 460px; color: var(--tx-3); font-weight: 600; font-size: 14px; line-height: 1.5; }
.ad-chans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ad-chan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--bd); }
.ad-chan:first-child { border-top: 0; padding-top: 4px; }
.ad-chan__t { min-width: 0; }
.ad-chan__t b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.ad-chan__t small { display: block; margin-top: 2px; color: var(--tx-3); font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.ad-chan__key { display: inline-flex !important; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.ad-chan__key svg { width: 12px; height: 12px; }
.ad-chan__err { margin-top: 6px; color: var(--down); font-weight: 700; font-size: 13px; line-height: 1.4; }
.ad-chan__st { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ad-chan__st small { color: var(--tx-3); font-weight: 600; font-size: 12px; white-space: nowrap; }
.ad-chan__act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ad-chan__act .btn svg { width: 15px; height: 15px; flex: none; }
.ad-chan__off:hover { border-color: var(--down); color: var(--down); }
.ad-chan > .form-err { grid-column: 2 / -1; }
.ad-chan.is-bad .ad-pb { opacity: .55; }
/* окно «Подключить канал» */
.ad-plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ad-plats[hidden], .ad-chform[hidden], .ad-chmodal .field[hidden] { display: none; }
.ad-plat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--bd-2); background: var(--card); color: var(--tx); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.ad-plat:hover { border-color: color-mix(in srgb, var(--teal) 50%, transparent); }
.ad-plat.is-on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--card)); box-shadow: inset 0 0 0 1px var(--teal); }
.ad-plat span { min-width: 0; }
.ad-plat b { display: block; font-size: 14.5px; }
.ad-plat small { display: block; color: var(--tx-3); font-weight: 600; font-size: 12px; line-height: 1.3; }
.ad-chform { margin-top: 18px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ad-howto { margin: 0; padding: 14px 16px 14px 34px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--bd); color: var(--tx-2); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.ad-howto li + li { margin-top: 8px; }
.ad-howto li::marker { color: var(--teal); font-weight: 800; }
.ad-howto b { color: var(--tx); }
.ad-chform__f { display: flex; flex-direction: column; gap: 14px; }
.ad-secret { position: relative; }
.ad-secret .input { padding-right: 48px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.ad-secret .input::placeholder { font-family: Manrope, system-ui, sans-serif; font-size: 14px; }
.ad-eye { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--tx-3); display: grid; place-items: center; cursor: pointer; }
.ad-eye:hover, .ad-eye[aria-pressed="true"] { color: var(--teal); background: var(--teal-50); }
.ad-eye svg { width: 18px; height: 18px; }
.ad-notice--ok { margin-top: 16px; }
.ad-notice--ok svg { color: #0B6B2E; }
.ad-notice--ok span { overflow-wrap: anywhere; }
/* окно «Опубликовать» */
.ad-pubform { margin-top: 6px; }
.ad-pubform .ad-sec:first-child { padding-top: 14px; }
.ad-pubform .ad-sec__hd label { cursor: default; }
.ad-pubch__l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ad-pubch__it { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bd-2); background: var(--card); cursor: pointer; transition: border-color .2s, background .2s; }
.ad-pubch__it input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--teal); }
.ad-pubch__it .ad-pb { width: 32px; height: 32px; border-radius: 9px; font-size: 10.5px; }
.ad-pubch__it.is-on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--card)); }
.ad-pubch__it.is-off { cursor: not-allowed; background: var(--card-2); }
.ad-pubch__it.is-off .ad-pb, .ad-pubch__it.is-off b { opacity: .5; }
.ad-pubch__it.is-off small { color: var(--down); }
.ad-pubch__it:focus-within { outline: 3px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.ad-pubch__t { min-width: 0; }
.ad-pubch__t b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.ad-pubch__t small { display: block; color: var(--tx-3); font-weight: 600; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.ad-pubch > .form-err { margin-top: 10px; }
.ad-pubch__go { display: inline-block; margin-top: 6px; }
.ad-pick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.ad-pick label { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 2px solid var(--bd-2); aspect-ratio: 4 / 5; background: var(--card-2); cursor: pointer; transition: border-color .2s, opacity .2s; }
.ad-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-pick input { position: absolute; left: 7px; top: 7px; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); z-index: 1; }
.ad-pick__n { position: absolute; right: 6px; bottom: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: rgba(8,27,23,.66); color: #fff; font-size: 11.5px; font-weight: 800; }
.ad-pick li.is-on label { border-color: var(--teal); }
.ad-pick li:not(.is-on) img { opacity: .4; }
.ad-pick label:focus-within { outline: 3px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.ad-caption { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.ad-caption__n { margin-left: auto; color: var(--tx-3); font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ad-caption__n.is-bad { color: var(--down); }
.ad-caption__note { display: block; margin-top: 6px; color: var(--tx-3); font-weight: 600; font-size: 12px; }
.ad-pubform > .form-err { margin-top: 4px; }
/* блок «Публикации» в работе */
.ad-pubs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ad-pub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--bd); }
.ad-pub:first-child { border-top: 0; padding-top: 2px; }
.ad-pub .ad-pb { width: 34px; height: 34px; border-radius: 10px; font-size: 10.5px; }
.ad-pub__t { min-width: 0; }
.ad-pub__t b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.ad-pub__t small { display: block; color: var(--tx-3); font-weight: 600; font-size: 12.5px; }
.ad-pub__st { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 320px; text-align: right; }
.ad-pub__link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.ad-pub__link svg { width: 14px; height: 14px; }
.ad-pub__err { color: var(--down); font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.ad-pub__note { color: var(--tx-3); font-weight: 600; font-size: 12.5px; line-height: 1.35; }
@container (max-width: 760px) {
  .ad-chan { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ad-chan__act { grid-column: 1 / -1; justify-content: flex-start; }
  .ad-chan > .form-err { grid-column: 1 / -1; }
}
@container (max-width: 480px) {
  .ad-chan { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .ad-chan__st { grid-column: 2; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
  .ad-chan__act { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-chan__act .btn { justify-content: center; padding: 0 8px; font-size: 13px; }
  .ad-chans__hd .btn { width: 100%; justify-content: center; }
  .ad-pub { grid-template-columns: auto minmax(0, 1fr); }
  .ad-pub__st { grid-column: 2; align-items: flex-start; text-align: left; max-width: none; }
}
@media (max-width: 760px) {
  .ad-chform { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .ad-tabs { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .ad-tabs a { justify-content: center; }
  .ad-plats { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
  .ad-plat { padding: 10px 12px; }
  .ad-plat .ad-pb { width: 34px; height: 34px; border-radius: 10px; }
  .ad-pubch__l { grid-template-columns: minmax(0, 1fr); }
  .ad-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ad-chmodal .modal__act .btn, .ad-pubform .modal__act .btn { flex: 1 1 auto; justify-content: center; }
}
.ad-chmodal .field small.form-err { color: var(--down); font-weight: 700; font-size: 12.5px; }
/* «Реклама»: одна модель на всех карточках (ads.js paintModels) */
.ad-models { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 8px; }
.ad-model { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 12px; border-radius: 12px; border: 1px solid var(--bd-2); background: var(--card); color: var(--tx-2); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.ad-model:hover { border-color: color-mix(in srgb, var(--teal) 50%, transparent); }
.ad-model__dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--bd-2); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.ad-model.is-on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--card)); color: var(--tx); box-shadow: inset 0 0 0 1px var(--teal); }
.ad-model.is-on .ad-model__dot { border-color: var(--teal); box-shadow: inset 0 0 0 4px var(--card); background: var(--teal); }
.ad-model:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 30%, transparent); }
/* карточки: «Скачать» + «Поделиться» (иконкой на широком экране) */
.ad-card__act { display: flex; gap: 8px; }
.ad-card__act .btn { flex: 1 1 auto; justify-content: center; }
.ad-card__act .ad-card__sh { flex: none; padding: 0 12px; }
.ad-card__sh span { display: none; }
.ad-dots, .ad-mbar { display: none; }
/* «Реклама» на телефоне: съёмка → сразу в работу (ads.js quickBox); на десктопе — прежняя зона перетаскивания */
.ad-snap { display: none; }
.ad-snap__hd h2 { font-size: 18px; }
.ad-snap__hd p { margin-top: 4px; color: var(--tx-3); font-weight: 600; font-size: 14px; line-height: 1.45; }
.ad-snap__btns { display: grid; gap: 10px; margin-top: 14px; }
.ad-snap__btns .btn { width: 100%; cursor: pointer; }
.ad-snap__btns .btn svg { width: 22px; height: 22px; flex: none; }
.ad-snap__cam { --h: 64px; font-size: 17px; border-radius: 18px; }
.ad-snap__cam svg { width: 26px; height: 26px; }
.ad-snap__gal { --h: 52px; border-radius: 16px; }
.ad-snap__btns .btn:focus-within { outline: 3px solid color-mix(in srgb, var(--teal) 35%, transparent); outline-offset: 2px; }
.ad-snap__more { display: block; margin: 14px auto 0; padding: 8px 4px; }
.ad-snapq__box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bd); }
.ad-snapq__box[hidden] { display: none; }
.ad-snapq__hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ad-snapq__hd b { font-size: 15px; }
.ad-snapq__hd small { flex: 1 1 100%; order: 3; color: var(--tx-3); font-weight: 600; font-size: 13px; }
.ad-snapq__hd .link-btn { margin-left: auto; padding: 6px 0; }
.ad-snapq { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px; }
.ad-snapq__it > a, .ad-snapq__it > button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ad-snapq__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--bd); background: var(--card-2); }
.ad-snapq__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-snapq__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tx-3); }
.ad-snapq__ph svg { width: 24px; height: 24px; opacity: .6; }
.ad-snapq__st { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: var(--shadow-1); }
.ad-snapq__st svg { width: 16px; height: 16px; }
.ad-snapq__st--spin { background: rgba(255,255,255,.9); border: 3px solid var(--teal-100); border-top-color: var(--teal); animation: ad-spin .8s linear infinite; }
.ad-snapq__it.is-ok img { opacity: .6; }
.ad-snapq__it.is-ok .ad-snapq__st { left: auto; top: auto; right: 6px; bottom: 6px; margin: 0; width: 24px; height: 24px; }
.ad-snapq__it.is-ok .ad-snapq__st svg { width: 13px; height: 13px; }
.ad-snapq__it.is-err .ad-snapq__img { outline: 2px solid var(--down); outline-offset: -2px; }
.ad-snapq__it.is-err .ad-snapq__st { background: var(--down); }
.ad-snapq__bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.75); overflow: hidden; }
.ad-snapq__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--teal); transition: width .3s var(--ease); }
.ad-snapq__t { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--tx-3); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-snapq__it.is-send .ad-snapq__t { color: var(--teal); }
.ad-snapq__it.is-ok .ad-snapq__t { color: var(--tx-2); }
.ad-snapq__it.is-err .ad-snapq__t { color: var(--down); }
.ad-snapq__box > .form-err { margin-top: 10px; }
.ad-snapq__stop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--down) 8%, var(--card)); color: var(--tx); font-weight: 700; font-size: 14px; line-height: 1.4; }
.ad-snapq__stop span { flex: 1 1 200px; }
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .ad-snap { display: block; }
  .screen:not(.is-classic) > .ad-new { display: none; }
}
@media (max-width: 640px) {
  /* форма: одна колонка, поля ≥ 48 px, шрифт 16 px (iOS не зумит при фокусе) */
  .ad-form .form-grid, .ad-attrs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ad-form .input, .ad-form .fselect select { height: 48px; font-size: 16px; scroll-margin: 90px 0 120px; } /* поле в фокусе не уходит под шапку и липкую панель */
  .ad-form .ad-model, .ad-form .ad-size { scroll-margin: 90px 0 120px; }
  .ad-form .ad-price { font-size: 18px; }
  .ad-form .field > small:not(.form-err) { font-size: 12.5px; }
  .ad-feat .icon-btn { width: 48px; height: 48px; }
  .ad-feat-add { min-height: 44px; }
  .ad-models { grid-template-columns: 1fr 1fr; }
  .ad-model { height: 48px; font-size: 15px; }
  .ad-size { min-height: 56px; }
  .ad-dims .input { height: 48px; font-size: 16px; }
  /* липкая нижняя панель с главной кнопкой — внутри своей карточки, с учётом «чёлки» снизу */
  .ad-form__act, .ad-mbar {
    position: sticky; bottom: 0; z-index: 6;
    margin: 0 -16px -18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--bd); border-radius: 0 0 16px 16px;
    box-shadow: 0 -10px 24px -18px rgba(8,27,23,.45);
  }
  .ad-form__act { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
  .ad-form .form-act .btn { --h: 52px; width: 100%; font-size: 16px; }
  .ad-form > .form-err { margin: 0 0 12px; }
  /* готовые карточки: лента пальцем, точки, панель «Опубликовать / Поделиться» */
  .ad-cards { display: flex; gap: 10px; margin: 0 -16px; padding: 2px 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ad-cards::-webkit-scrollbar { display: none; }
  .ad-cards:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 30%, transparent); outline-offset: -3px; }
  .ad-card { flex: 0 0 84%; scroll-snap-align: start; }
  .ad-card__act .btn { --h: 46px; font-size: 15px; }
  .ad-card__act .ad-card__sh { flex: 1 1 auto; padding: 0 14px; }
  .ad-card__sh span { display: inline; }
  .ad-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .ad-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--bd-2); transition: width .25s var(--ease), background .25s; }
  .ad-dots i.is-on { width: 20px; background: var(--teal); }
  .ad-mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .ad-mbar .btn { --h: 52px; padding: 0 12px; font-size: 16px; }
  .ad-mbar .btn svg { width: 20px; height: 20px; flex: none; }
  .ad-cards__act .ad-cards__pub, .ad-cards__act .ad-cards__all { display: none; } /* они в нижней панели */
}

/* ===== Настройки · Участники (settings.js: список, окно приглашения/правки) ===== */
.mbr-list { list-style: none; margin: 0; padding: 0; container-type: inline-size; border-top: 1px solid var(--bd); }
.mbr-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .9fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bd); }
.mbr-row__role, .mbr-row__st { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.mbr-row__role small, .mbr-row__st small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; overflow-wrap: anywhere; }
.mbr-row__act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.mbr-row__act .btn svg { width: 15px; height: 15px; }
@container (max-width: 640px) {
  .mbr-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .mbr-row .who { grid-column: 1 / -1; }
  .mbr-row__role { grid-column: 1; }
  .mbr-row__st { grid-column: 2; align-items: flex-end; text-align: right; }
  .mbr-row__act { grid-column: 1 / -1; justify-content: flex-start; }
}
.mbr-empty { margin-top: 14px; }
.mbr-mine dd { overflow-wrap: anywhere; }
.mbr-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.mbr-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.mbr-fs legend { padding: 0; font-weight: 800; font-size: 14px; color: var(--tx); margin-bottom: 8px; }
.mbr-fs__hint { display: block; color: var(--tx-3); font-weight: 600; font-size: 12.5px; margin: -4px 0 8px; }
.mbr-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
.mbr-pick label { padding: 12px 14px; border-radius: 14px; }
.mbr-pick b { font-size: 14.5px; }
.mbr-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.mbr-chk { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--bd); background: var(--card-2); font-size: 13.5px; font-weight: 600; color: var(--tx-2); cursor: pointer; }
.mbr-chk:has(input:checked) { border-color: color-mix(in srgb, var(--teal) 45%, transparent); background: color-mix(in srgb, var(--teal) 7%, transparent); color: var(--tx); }
.mbr-chk input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--teal); }
.mbr-chk span { overflow-wrap: anywhere; }
.mbr-shops { margin-top: 10px; }
.seg-radio { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.seg-radio .chk-inline input { accent-color: var(--teal); }
.mbr-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--tx-2); }
.mbr-who svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.mbr-who small { color: var(--tx-3); font-weight: 600; }
@media (max-width: 760px) { .mbr-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .mbr-perms { grid-template-columns: 1fr; }
  .mbr-chk { min-height: 44px; font-size: 14.5px; }
}
