/* =========================================================
   mobile.go7.uz — мобильная версия кабинета go7 (версия 2).
   Подключается ПОСЛЕ общих стилей go7.uz и переопределяет их.
   Принципы: одна мысль на экран, крупные зоны нажатия (44px+),
   заголовок раздела в одну строку, второстепенное — свёрнуто или в «⋯»,
   нижнее меню из пяти пунктов, окна — листами снизу.
   Вся логика и все разделы — общие с go7.uz (assets/js/*).
   ========================================================= */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", "Manrope", system-ui, sans-serif;
  --display: var(--font);
  --bg: #F4F5F7;
  --bg-2: #E9EBEF;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --field: #F2F3F6;
  --seg-on: #FFFFFF;
  --sel-bg: #FFF6F2;
  --ink: #0E1726;
  --ink-2: #344054;
  --ink-3: #5E6878;
  --ink-4: #98A2B3;
  --muted: #667085;
  --line: #E6E8EC;
  --line-2: #D0D5DD;
  --navy: #0B1F3A;
  --chrome: #F4F5F7;
  --accent: #FF5A36;
  --accent-2: #FF8A3D;
  --accent-soft: #FFEEE8;
  --accent-soft-2: #FFDDD1;
  --accent-ink: #C93A17;
  --teal: #0E9F8E;
  --teal-soft: #E1F5F1;
  --teal-ink: #0A6E62;
  --blue: #2F6FEB;
  --blue-soft: #E8F0FE;
  --violet: #7A5AF8;
  --violet-soft: #F0ECFF;
  --amber: #E8930C;
  --amber-soft: #FEF3DE;
  --danger: #F04438;
  --danger-soft: #FEECEB;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 0 0 1px rgba(16,24,40,.04);
  --shadow-lg: 0 -10px 40px rgba(16,24,40,.16);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --m2-bar: 52px;                                   /* верхняя панель */
  --m2-tabh: 58px;                                  /* нижнее меню без safe-area */
  --m2-tb: calc(var(--m2-tabh) + var(--sab));       /* сколько занимает нижнее меню */
  --m2-navh: calc(var(--m2-bar) + var(--sat));      /* уточняется скриптом */
  --ease: cubic-bezier(.22, .9, .3, 1);
}
html[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #1E1F23;
  --surface: #141518;
  --surface-2: #1A1B1F;
  --field: #212328;
  --seg-on: #3A3C42;
  --sel-bg: rgba(255,90,54,.1);
  --ink: #F5F6F8;
  --ink-2: #D0D5DD;
  --ink-3: #A3ABB8;
  --ink-4: #6B7280;
  --muted: #98A2B3;
  --line: #24262B;
  --line-2: #3A3D44;
  --navy: #1E3A64;
  --chrome: #000000;
  --accent-soft: rgba(255,90,54,.16);
  --accent-soft-2: rgba(255,90,54,.26);
  --accent-ink: #FF9C7D;
  --teal-soft: rgba(46,196,169,.15);
  --teal-ink: #5ED9C3;
  --blue-soft: rgba(80,140,255,.16);
  --violet-soft: rgba(150,120,255,.17);
  --amber-soft: rgba(240,170,40,.16);
  --danger: #FF5A4F;
  --danger-soft: rgba(255,80,70,.16);
  --shadow: 0 0 0 1px rgba(255,255,255,.05);
  --shadow-lg: 0 -10px 40px rgba(0,0,0,.7);
}
html.m2-deep, html.kb { --m2-tb: 0px; }

/* ---------- База ---------- */
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font: 16px/1.45 var(--font); color: var(--ink); background: var(--bg);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  overscroll-behavior-y: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body { background: var(--bg); }
html.m2-locked, html.m2-locked body { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font); letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 26px; letter-spacing: -.025em; }
h3 { font-size: 17px; font-weight: 600; }
a:hover { text-decoration: none; }
::selection { background: var(--accent-soft-2); }
input, select, textarea, .input { font-size: 16px !important; }   /* iPhone не увеличивает страницу при фокусе */
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, [role="button"], a.btn { -webkit-user-select: none; user-select: none; }
::-webkit-scrollbar { width: 0; height: 0; }
.m2-i { display: block; flex: none; }

/* Нажатие — лёгкое сжатие вместо hover */
.btn:hover { box-shadow: none; }
.btn:active, .icon-btn:active, .m2-tab:active, .m2-row:active, .m2-tile:active, .m2-hero:active, .dz-row:active, .hx-main:active, .seg button:active, .m2-cta:active, .m2-ibtn:active, .m2-back:active, .m2-me:active {
  transform: scale(.97); opacity: .85; transition: transform .08s, opacity .08s;
}
.btn, .icon-btn, .m2-row, .m2-tile, .dz-row, .seg button { transition: transform .2s var(--ease), opacity .2s var(--ease), background .2s; }

/* ---------- Кнопки ---------- */
.btn { min-height: 48px; padding: 12px 20px; border-radius: 14px; font: 600 16px/1 var(--font); letter-spacing: -.01em; box-shadow: none; gap: 8px; }
.btn:hover { background: var(--accent); }
.btn.lg { min-height: 54px; padding: 15px 24px; font-size: 17px; border-radius: 16px; }
.btn.sm { min-height: 38px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.dark, .btn.dark:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn .ico { width: 18px; height: 18px; }
.icon-btn { width: 40px; height: 40px; color: var(--ink-2); }
.icon-btn:hover { background: transparent; }

/* ---------- Поля и формы ---------- */
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; letter-spacing: 0; }
.field small { font-size: 13px; }
.input, select.input, textarea.input {
  min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink);
  font-weight: 400; line-height: 1.35; -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 0; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,54,.14); background: var(--surface); }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.input::placeholder { color: var(--ink-4); }
.check { font-weight: 500; font-size: 16px; min-height: 44px; }
.check input { width: 22px; height: 22px; }
.seg { background: var(--bg-2); border-radius: 11px; padding: 2px; gap: 0; flex-wrap: nowrap !important; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button, .seg a { padding: 8px 12px; border-radius: 9px; font: 600 14px/1.1 var(--font); color: var(--ink-2); min-height: 34px; letter-spacing: -.01em; white-space: nowrap; }
.seg button.on, .seg a.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.12), 0 0 0 .5px rgba(16,24,40,.04); }
html[data-theme="dark"] .seg button.on, html[data-theme="dark"] .seg a.on { color: #fff; }
.alert { border-radius: 12px; font-weight: 500; font-size: 15px; padding: 12px 14px; }

/* ---------- Карточки и списки ---------- */
.card { border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); background: var(--surface); }
.li, .hx-row, .hx-stat, .selbar, .pg-card, .pg-flow, .ws-bar, .ws-panel, .trows, .vcard, .dz-row, .db-kpi, .mem { box-shadow: var(--shadow); }
.tag { border-radius: 7px; font-weight: 600; }
.empty { padding: 44px 20px; }
.empty .big { font-size: 52px; }

/* =========================================================
   Оболочка приложения
   ========================================================= */
.app { min-height: 100dvh; display: block; }
.main-area { min-height: 100dvh; min-width: 0; max-width: 100vw; overflow-x: clip; }
/* Ничто не шире экрана: иначе телефон уменьшает масштаб страницы и нижнее меню «уезжает» */
body { overflow-x: clip; }
.db, .hx, .pf, .ws, .ct-layout, .ct-col, .bo-ed, .bo-col, .team-grid, .pf-grid, .dz-grid, .db-grid2, .db-grid3 { min-width: 0; }
.db, .hx, .ws { display: grid; grid-template-columns: minmax(0, 1fr) !important; }
.db > *, .hx > *, .ws > *, .page > * { min-width: 0; }
/* Старые панели общего кода — заменены своей оболочкой */
.mtop, #bnav, .mnav, .inst-bar, .ws-back, .dz-back { display: none !important; }

/* ---------- Верхняя панель ---------- */
.m2-nav {
  position: sticky; top: 0; z-index: 30;
  padding-top: var(--sat); background: var(--bg);
  transition: background .2s, box-shadow .2s;
}
.m2-nav.scrolled {
  background: rgba(244,245,247,.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 rgba(16,24,40,.12);
}
html[data-theme="dark"] .m2-nav.scrolled { background: rgba(0,0,0,.82); box-shadow: 0 .5px 0 rgba(255,255,255,.12); }
.m2-bar { position: relative; height: var(--m2-bar); display: flex; align-items: center; padding: 0 max(10px, var(--sar)) 0 max(10px, var(--sal)); gap: 8px; }
.m2-l, .m2-r { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.m2-l { flex: 0 1 auto; min-width: 0; }
.m2-r { margin-left: auto; flex: none; }
.m2-title {
  position: absolute; left: 96px; right: 96px; top: 0; height: var(--m2-bar);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  font: 600 17px/1.2 var(--font); letter-spacing: -.02em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .18s, transform .18s;
}
.m2-title.dim { opacity: 0; transform: translateY(4px); }
.m2-me { all: unset; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.m2-ava {
  display: grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none;
  background: linear-gradient(140deg, #1C3D6E, #0B1F3A); color: #fff; font: 700 13px/1 var(--font); letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px rgba(16,24,40,.06);
}
.m2-ava.img { background: #fff; }
.m2-ava img { width: 100%; height: 100%; object-fit: contain; }
.m2-back {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; height: 44px; padding: 0 8px 0 0; margin-left: -6px;
  color: var(--accent); font: 400 17px/1 var(--font); letter-spacing: -.02em; max-width: 140px;
}
.m2-back .m2-i { margin-right: -1px; }
.m2-back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-ibtn { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.m2-cta {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 15px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; max-width: 170px;
  box-shadow: 0 4px 12px rgba(255,90,54,.28);
}
.m2-cta span { overflow: hidden; text-overflow: ellipsis; }
.m2-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 9px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); text-decoration: none !important;
}
.m2-pill b { font: 700 14px/1 var(--font); color: var(--ink); }
.m2-pill .m2-i { color: var(--accent); }
.m2-pill.low { background: var(--danger-soft); }
.m2-pill.low b, .m2-pill.low .m2-i { color: var(--danger); }
/* Переключатель «Документы»: Ваучеры · Договоры · Авиабилеты */
.m2-hub { padding: 0 16px 10px; }
.m2-seg { display: flex; background: var(--bg-2); border-radius: 11px; padding: 2px; }
.m2-seg a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; border-radius: 9px;
  font: 600 14px/1 var(--font); color: var(--ink-2); text-decoration: none !important; letter-spacing: -.01em; white-space: nowrap;
}
.m2-seg a.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.m2-seg a .m2-i { opacity: .55; }

/* ---------- Нижнее меню ---------- */
.m2-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: stretch; height: calc(var(--m2-tabh) + var(--sab));
  padding: 0 max(4px, var(--sar)) var(--sab) max(4px, var(--sal));
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -.5px 0 rgba(16,24,40,.14);
  transition: transform .26s var(--ease);
}
html[data-theme="dark"] .m2-tabs { background: rgba(18,19,22,.9); box-shadow: 0 -.5px 0 rgba(255,255,255,.12); }
html.m2-deep .m2-tabs, html.kb .m2-tabs { transform: translateY(110%); pointer-events: none; }
html:not(.m2-app) .m2-tabs, html:not(.m2-app) .m2-nav { display: none; }
.m2-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding-top: 2px;
  color: var(--ink-4); font: 600 10.5px/1.1 var(--font); letter-spacing: 0; text-decoration: none !important;
}
.m2-tab.on { color: var(--accent); }
.m2-tab-plus { justify-content: center; }
.m2-plus {
  width: 52px; height: 38px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,90,54,.32);
}
.m2-tab-plus.on .m2-plus { background: var(--accent-ink); }

/* ---------- Страница ---------- */
.page {
  padding: 6px max(16px, var(--sar)) calc(var(--m2-tb) + 28px) max(16px, var(--sal));
  overflow-x: clip; animation: m2In .28s var(--ease) backwards;   /* backwards: после анимации не остаётся transform — иначе fixed-панели «прилипают» к странице */
}
.page.page-wide { padding-bottom: calc(var(--m2-tb) + 96px); }
#page .page[data-dir="back"] { animation-name: m2Back; }
@keyframes m2In { from { opacity: 0; transform: translate3d(18px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes m2Back { from { opacity: 0; transform: translate3d(-14px, 0, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page, .modal, .toast, .m2-sheet { animation: none !important; transition: none !important; } }
html.m2-deep .page { padding-bottom: calc(var(--sab) + 110px); }

/* ---------- Шапка раздела: одна строка ---------- */
.page-head.m2-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 10px; margin: 2px 0 16px; }
.page-head.m2-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.page-head.m2-head h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; overflow-wrap: anywhere; }
.page-head.m2-head > div:first-child > p, .page-head.m2-head > p { display: none; }
.page-head.m2-head .row { flex-wrap: nowrap; gap: 8px; margin: 0 0 0 auto; width: auto !important; }
.page-head.m2-head .row > .btn { width: auto !important; flex: none !important; }
.m2-moved { display: none !important; }
.page-head .m2-pri, .page-head .m2-sec1 {
  display: inline-flex !important; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 15px; gap: 6px;
}
.page-head .m2-pri { box-shadow: 0 4px 12px rgba(255,90,54,.25); }
.page-head .m2-pri .ico, .page-head .m2-sec1 .ico { width: 17px; height: 17px; }
.m2-hubpage > .page-head, .m2-hubpage > * > .page-head, .m2-hubpage .page-head.m2-head { display: none !important; }
.m2-hubpage { padding-top: 2px; }

/* Экран редактирования: заголовок без своей стрелки «назад» */
.dz-top.m2-top { margin: 2px 0 14px; }
.dz-top.m2-top .dz-title h2 { font-size: 24px; letter-spacing: -.025em; }
.dz-top.m2-top .dz-top-r { display: none !important; }

/* ---------- Сводки: компактная лента вместо сетки ---------- */
.ct-kpi, .av-kpi, .sl-kpi, .hx-stats {
  display: flex !important; flex-wrap: nowrap !important; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px;
  margin: 0 -16px 14px !important; padding: 2px 16px 4px !important; grid-template-columns: none !important; max-width: none !important; width: auto !important;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ct-kpi > *, .av-kpi > *, .sl-kpi > *, .hx-stats > * {
  flex: 0 0 auto; min-width: 128px; max-width: 200px; scroll-snap-align: start;
  padding: 11px 14px !important; border-radius: 14px !important; min-height: 0 !important;
}
.ct-kpi > * b, .av-kpi > * b, .sl-kpi > * b { font-size: 19px !important; letter-spacing: -.02em; }
.ct-kpi > * span, .av-kpi > * span, .sl-kpi > * span, .ct-kpi > * small, .av-kpi > * small { font-size: 12.5px !important; }
.hx-stat { gap: 10px; }
.hx-stat b { font-size: 19px; }
.hx-stat span { font-size: 12px; }

/* ---------- Ряды-переключатели: одной строкой с прокруткой ---------- */
.av-tabs, .ct-tabs, .hx-chips, .ws-mtabs, .mobile-links, .av-quick, .dz-acts, .db-period {
  display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.av-tabs, .hx-chips, .mobile-links { margin-left: -16px !important; margin-right: -16px !important; padding-left: 16px !important; padding-right: 16px !important; }
.av-tabs > *, .ct-tabs > *, .hx-chips > *, .ws-mtabs > *, .mobile-links > *, .av-quick > *, .dz-acts > * { flex: none; white-space: nowrap; }
.av-tabs {
  gap: 6px; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; padding-top: 0 !important; padding-bottom: 2px !important; margin-bottom: 14px !important;
}
.av-tabs a {
  height: 36px; padding: 0 14px; border-radius: 999px !important; background: var(--surface) !important; color: var(--ink-2) !important;
  box-shadow: var(--shadow); font: 600 14px/1 var(--font) !important; display: inline-flex; align-items: center; gap: 6px;
}
.av-tabs a .ico { width: 16px; height: 16px; }
.av-tabs a.on { background: var(--ink) !important; color: var(--bg) !important; box-shadow: none; }
.av-tabs a.on .ico { color: var(--accent); }
.ct-tabs { gap: 6px; }
.ct-tabs > * { height: 34px; }
.mobile-links { display: none !important; }                       /* Telegram, сотрудники, тариф — в «Меню» */

/* ---------- Главная ---------- */
.db-head { gap: 12px; margin-bottom: 14px; }
.db-head h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
.db-head > div > p { display: none; }
.db-period { background: transparent !important; padding: 0 !important; gap: 6px; margin: 0 -16px; padding: 0 16px !important; width: auto !important; }
.db-period button {
  flex: none; height: 34px; min-height: 34px; padding: 0 14px; border-radius: 999px !important; background: var(--surface) !important;
  box-shadow: var(--shadow) !important; color: var(--ink-2); font-size: 14px;
}
.db-period button.on { background: var(--ink) !important; color: var(--bg) !important; box-shadow: none !important; }
.db-kpis { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 8px !important; margin-bottom: 14px; }
.db-kpi { padding: 12px 14px !important; border-radius: 14px !important; min-height: 0 !important; }
.db-kpi .db-kl { font-size: 12.5px; }
.db-kpi .db-kv { font-size: 21px !important; letter-spacing: -.025em; }
.db-kpi .db-ks { font-size: 12px; }
.db-card { padding: 14px; border-radius: 16px; }
.db-grid2, .db-grid3 { gap: 12px !important; grid-template-columns: minmax(0, 1fr) !important; margin-bottom: 12px; }
.db-foot { text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- Мои подборки ---------- */
.hx-head .hx-new { display: inline-flex !important; }
.hx-row { border-radius: 16px; }
.hx-row:hover { box-shadow: var(--shadow); }
.hx-main { padding: 12px 14px; gap: 12px; }
.hx-day-h { font-size: 12px; letter-spacing: .05em; color: var(--ink-3); margin-top: 6px; }
.hx-chip { height: 34px; font-size: 14px; }
.hx-search { height: 44px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }

/* ---------- Новая подборка ---------- */
.drop { border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--surface-2); padding: 26px 16px; }
.drop:hover, .drop.over { background: var(--sel-bg); border-color: var(--accent); }
.drop .big { font-size: 40px; }
.drop h3 { font-size: 18px; }
.drop p { font-size: 14px; color: var(--ink-3); }
.drop p:first-of-type { display: none; }                      /* «перетащите / Ctrl+V» — для компьютера */
.drop kbd { display: none; }
.xtip { cursor: pointer; position: relative; padding-right: 34px !important; }
.xtip::after { content: ""; position: absolute; right: 14px; top: 16px; width: 8px; height: 8px; border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4); transform: rotate(45deg); transition: transform .2s; }
.xtip.m2-open::after { transform: rotate(-135deg); top: 20px; }
.xtip:not(.m2-open) > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.gen-opts { gap: 10px 14px; margin-top: 16px; }
.thumbs { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
#genCard > .row { justify-content: stretch !important; }
#genCard #go { width: 100%; }
.progress-card { padding: 40px 20px; }

/* ---------- Результат: подборка, картинка, видео, пост ---------- */
.ws-head { margin-bottom: 10px; }
.ws-hero { border-radius: 18px; background: linear-gradient(135deg, #12345F, #0B1F3A) !important; color: #fff; padding: 16px !important; min-height: 0 !important; }
.ws-hero h2, .ws-hero .ws-ttl h2 { color: #fff !important; font-size: 24px; }
.ws-hero .ws-meta, .ws-hero .ws-meta * { color: rgba(255,255,255,.78) !important; }
.ws-hero .ws-meta .ico { color: #FF9C7D !important; }
.ws-mtabs { position: sticky; top: var(--m2-navh) !important; z-index: 20; gap: 6px; padding: 8px 16px 10px !important; margin: 0 -16px 4px !important; background: var(--bg); }
.ws-mtabs button { height: 36px; padding: 0 14px; border-radius: 999px; font: 600 14px var(--font); background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); }
.ws-mtabs button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.ws-mtabs button.on b { color: var(--accent); }
.ws-bar { border-radius: 16px; padding: 4px 12px 10px; }
.m2-wsb {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 0;
  border-bottom: 1px solid var(--line); margin-bottom: 8px; color: var(--ink);
}
.m2-wsb > .m2-i:first-child { color: var(--accent); }
.m2-wsb span { flex: 1; min-width: 0; display: grid; }
.m2-wsb b { font: 600 15px/1.2 var(--font); }
.m2-wsb small { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-wsb > .m2-i:last-child { color: var(--ink-4); transform: rotate(90deg); transition: transform .2s; }
.ws-bar.m2-open .m2-wsb > .m2-i:last-child { transform: rotate(-90deg); }
.ws-bar:not(.m2-open) .ws-bar-row:not(.ws-selrow) { display: none !important; }
.ws-panel { border-radius: 16px; }
.ws-pfoot { padding: 10px 14px 12px; bottom: var(--m2-tb) !important; }
html.m2-deep .ws-pfoot.is-fixed { padding-bottom: calc(12px + var(--sab)); }
.ws-pfoot .btn { min-height: 48px; }
.ws-pfoot.pair > .btn, .ws-pfoot.pair .tgsend .btn { padding: 12px 10px; font-size: 16px; }
.trow { border-radius: 0; }

/* ---------- Ваучеры и договоры: списки ---------- */
.dz-rows { grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
.dz-row { border-radius: 16px; padding: 12px 14px; gap: 12px; flex-wrap: wrap; align-items: flex-start; min-width: 0; }
.dz-num { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.dz-main-c { flex: 1 1 0; min-width: 0; }
.dz-t { flex-wrap: wrap; row-gap: 4px; }
.dz-t b { font-size: 16px; letter-spacing: -.01em; }
.dz-m { min-width: 0; }
.dz-m span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dz-acts { width: auto !important; margin: 0 -14px -2px; padding: 2px 14px 0 70px; gap: 6px; flex-basis: calc(100% + 28px); }
.dz-chip { padding: 7px 11px; font-size: 13px; }
.ct-row .dz-num { width: auto; min-width: 44px; padding: 0 8px; font-size: 14px; }
.dz-search { margin-bottom: 10px; }
.dz-search .input, .av-search input { min-height: 44px; border-radius: 12px; background: var(--surface); }
.ct-bar { gap: 10px; margin-bottom: 10px; }
.dz-empty { padding: 28px 18px !important; }
/* Нижняя панель экрана редактирования */
.dz-mbar {
  bottom: var(--m2-tb) !important; padding: 10px 16px !important;
  background: rgba(255,255,255,.92) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 0 !important; box-shadow: 0 -.5px 0 rgba(16,24,40,.14); z-index: 35 !important;
}
html.m2-deep .dz-mbar { padding-bottom: calc(10px + var(--sab)) !important; }
html[data-theme="dark"] .dz-mbar { background: rgba(18,19,22,.92) !important; box-shadow: 0 -.5px 0 rgba(255,255,255,.12); }
.dz-mbar .btn { min-height: 48px; }
html.kb .dz-mbar { display: none !important; }
.dz-page { padding-bottom: calc(var(--m2-tb) + 100px); }
.ct-card, .dz-sec { border-radius: 16px; }

/* ---------- Авиабилеты ---------- */
.av-filters { padding: 12px !important; margin-bottom: 12px; }
.av-filters .av-frow { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center; }
.av-filters .av-search { flex: 1 1 160px; min-width: 0; }
.av-filters .av-ftoggle { display: inline-flex !important; min-height: 44px; border-radius: 12px; }
.av-filters:not(.m2-open) .av-period, .av-filters:not(.m2-open) .av-quick, .av-filters:not(.m2-open) .av-fbtns { display: none !important; }
.av-filters .av-period { width: 100%; }
.av-filters .av-quick { gap: 6px; margin: 8px -12px 0; padding: 0 12px; }
.av-tcard { padding: 0 !important; overflow: hidden; }

/* ---------- Сотрудники, зарплата, тариф, профиль ---------- */
.team-grid { gap: 12px !important; grid-template-columns: minmax(0, 1fr) !important; }
.mem { border-radius: 14px; }
.mem-acts { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 -14px; padding: 0 14px; }
.mem-acts .btn { flex: none; }
.m2-clamp { cursor: pointer; }
.m2-clamp:not(.m2-open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-head .row { width: 100% !important; justify-content: space-between; flex-wrap: nowrap; }
.sl-mnav { flex: 1 1 0; min-width: 0; }
.sl-mnav b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sl-rule { border-radius: 14px; }
.bill-now { border-radius: 18px; }
.plans { gap: 10px; }
.pf-grid { gap: 12px !important; grid-template-columns: minmax(0, 1fr) !important; }
.pf-save, .bo-bar { bottom: calc(var(--m2-tb) + 10px) !important; }
html.kb .pf-save, html.kb .bo-bar { bottom: 10px !important; }
.mod-lock { border-radius: 18px; }
.actionbar {
  left: 0 !important; right: 0; bottom: var(--m2-tb) !important; padding: 10px 16px;
  background: rgba(255,255,255,.92); box-shadow: 0 -.5px 0 rgba(16,24,40,.14); border-top: 0;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: transform .25s var(--ease);
}
html[data-theme="dark"] .actionbar { background: rgba(18,19,22,.92); }

/* Таблицы — прокрутка по горизонтали внутри карточки */
.page table { font-size: 14px; }
.page .table-wrap, .page .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =========================================================
   Листы снизу: свои (Создать, Меню, «⋯») и окна общего кода
   ========================================================= */
.m2-sheet-bg {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0); transition: background .26s;
}
.m2-sheet-bg.on { background: rgba(10,14,22,.42); }
html[data-theme="dark"] .m2-sheet-bg.on { background: rgba(0,0,0,.62); }
.m2-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - var(--sat) - 12px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  transform: translate3d(0, 100%, 0); transition: transform .34s var(--ease); will-change: transform; touch-action: pan-y;
}
.m2-sheet-bg.on .m2-sheet { transform: none; }
.m2-sheet-bg.off .m2-sheet { transform: translate3d(0, 105%, 0); transition-duration: .24s; transition-timing-function: ease-in; }
.m2-grab { position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(120,128,140,.4); }
.m2-sheet-in { overflow-y: auto; overscroll-behavior: contain; padding: 22px 16px calc(16px + var(--sab)); -webkit-overflow-scrolling: touch; }
.m2-sh { font-size: 20px; letter-spacing: -.02em; margin: 2px 4px 14px; }
.m2-sec { margin: 20px 6px 8px; font: 600 13px/1 var(--font); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.m2-list { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.m2-list.m2-gap { margin-top: 12px; }
.m2-row {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 9px 14px;
  font: 400 17px/1.25 var(--font); color: var(--ink); position: relative; text-decoration: none !important; letter-spacing: -.01em;
}
.m2-row + .m2-row::before { content: ""; position: absolute; left: 62px; right: 0; top: 0; height: .5px; background: var(--line-2); opacity: .7; }
.m2-row.static { cursor: default; }
.m2-row.static:active { transform: none; opacity: 1; }
.m2-row > .m2-i:last-child { color: var(--ink-4); }
.m2-rt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.m2-rt small { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.m2-ric {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-ink);
}
.m2-ric svg { width: 20px; height: 20px; }
.m2-row.danger { color: var(--danger); }
.m2-row.danger .m2-ric { background: var(--danger-soft); color: var(--danger); }
.m2-cancel {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; margin-top: 10px; text-align: center; min-height: 54px; line-height: 54px;
  background: var(--surface); border-radius: 16px; font: 600 17px/54px var(--font); color: var(--accent); box-shadow: var(--shadow);
}
/* Цвета значков разделов */
.c-voucher { background: var(--accent-soft) !important; color: var(--accent-ink) !important; }
.c-contract { background: var(--blue-soft) !important; color: var(--blue) !important; }
.c-plane { background: #E5F6FD !important; color: #0B86B3 !important; }
.c-site { background: var(--teal-soft) !important; color: var(--teal-ink) !important; }
.c-gift { background: var(--violet-soft) !important; color: var(--violet) !important; }
.c-wallet { background: var(--amber-soft) !important; color: #B66A00 !important; }
.c-users { background: var(--blue-soft) !important; color: var(--blue) !important; }
.c-send { background: #E6F4FD !important; color: #229ED9 !important; }
.c-user, .c-globe, .c-moon, .c-desktop, .c-help, .c-download { background: var(--bg-2) !important; color: var(--ink-2) !important; }
html[data-theme="dark"] .c-plane { background: rgba(40,170,220,.16) !important; color: #6CCDF0 !important; }
html[data-theme="dark"] .c-wallet { color: #F2B544 !important; }
html[data-theme="dark"] .c-send { background: rgba(34,158,217,.16) !important; color: #5EC0EE !important; }

/* Лист «Создать» */
.m2-hero {
  display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; border-radius: 18px; text-decoration: none !important;
  background: linear-gradient(135deg, #FF6A3D, #FF4D2E); color: #fff; box-shadow: 0 10px 24px rgba(255,90,54,.3);
}
.m2-hero-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.m2-hero-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.m2-hero-t b { font: 700 17px/1.2 var(--font); letter-spacing: -.01em; }
.m2-hero-t small { font-size: 13.5px; line-height: 1.3; color: rgba(255,255,255,.88); }
.m2-hero > .m2-i:last-child { opacity: .8; }
.m2-create .m2-row > .m2-i:last-child { color: var(--ink-4); }

/* Лист «Меню» */
.m2-me-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: var(--shadow); text-decoration: none !important; color: var(--ink); }
.m2-me-card:only-of-type { border-radius: 18px; }
.m2-me-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.m2-me-t b { font: 700 18px/1.2 var(--font); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-me-t small { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-me-t em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.m2-me-card > .m2-i:last-child { color: var(--ink-4); }
.m2-me-use { display: block; padding: 12px 14px 14px; background: var(--surface); border-radius: 0 0 18px 18px; box-shadow: var(--shadow); margin-top: 1px; text-decoration: none !important; color: var(--ink); position: relative; }
.m2-use-t { font-size: 14px; color: var(--ink-3); }
.m2-use-t b { font: 700 17px/1 var(--font); color: var(--ink); letter-spacing: -.02em; }
.m2-use-b { height: 6px; border-radius: 3px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.m2-use-b i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #22C55E, #16A34A); }
.m2-use-b.low i { background: var(--danger); }
.m2-me-link { position: absolute; right: 14px; top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.m2-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.m2-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow);
  text-decoration: none !important; color: var(--ink); font: 600 13px/1.2 var(--font); text-align: center; letter-spacing: -.01em;
}
.m2-tile.on { box-shadow: 0 0 0 2px var(--accent); }
.m2-tic { position: relative; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.m2-lk { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-4); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.m2-mini-seg { display: inline-flex; background: var(--bg-2); border-radius: 9px; padding: 2px; }
.m2-mini-seg button { all: unset; cursor: pointer; min-width: 40px; height: 30px; text-align: center; border-radius: 7px; font: 600 13px/30px var(--font); color: var(--ink-2); }
.m2-mini-seg button.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.m2-switch { position: relative; width: 51px; height: 31px; border-radius: 31px; background: rgba(120,120,128,.32); border: 0; padding: 0; cursor: pointer; transition: background .2s; flex: none; }
.m2-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.18); transition: transform .22s var(--ease); }
.m2-switch[aria-checked="true"] { background: #34C759; }
.m2-switch[aria-checked="true"]::after { transform: translateX(20px); }
.m2-ver { text-align: center; color: var(--ink-4); font-size: 12px; margin: 14px 0 0; }

/* ---------- Окна общего кода → листы снизу ---------- */
.modal-bg { display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(10,14,22,.44); overflow: hidden; }
html[data-theme="dark"] .modal-bg { background: rgba(0,0,0,.62); }
.modal, .modal.wide, .modal.tplm, .modal.vrm, .modal.qrm, .modal.ft-modal, .modal.dz-pmodal, .modal.pm-modal, .modal.more-modal, .modal.tpk-modal, .modal.sl-modal {
  width: 100%; max-width: 100%; max-height: calc(100dvh - var(--sat) - 10px);
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); background: var(--surface);
  animation: m2Up .36s var(--ease); padding-bottom: var(--sab); will-change: transform; touch-action: pan-y;
}
.modal-bg.is-closing .modal { animation: m2Down .22s ease-in forwards; }
@keyframes m2Up { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes m2Down { from { transform: none; } to { transform: translate3d(0, 110%, 0); } }
.modal .mh { padding: 8px 16px 12px; border-bottom: .5px solid var(--line); position: relative; }
.modal .mh::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(120,128,140,.4); }
.modal .mh h3 { font-size: 17px; font-weight: 600; padding: 14px 40px 0; text-align: center; }
.modal .mh .icon-btn[data-close] {
  position: absolute; right: 12px; top: 16px; width: 30px; height: 30px; font-size: 13px; font-weight: 700;
  background: var(--bg-2); color: var(--ink-2); border-radius: 50%;
}
.modal .mb { padding: 16px 16px 20px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal .mf { padding: 12px 16px calc(12px + var(--sab)); gap: 8px; border-top: .5px solid var(--line); background: var(--surface); }
.modal .mf .btn { flex: 1 1 auto; justify-content: center; }
.modal .mf .btn.ghost { flex: 0 1 auto; }

/* ---------- Уведомления — баннер сверху ---------- */
.toast-wrap { top: calc(var(--sat) + 10px); bottom: auto; width: calc(100% - 32px); max-width: 420px; z-index: 300; }
.toast {
  background: rgba(255,255,255,.95); color: var(--ink); border-radius: 16px; padding: 13px 16px 13px 46px;
  font-weight: 500; font-size: 15px; box-shadow: 0 10px 30px rgba(16,24,40,.18), 0 0 0 .5px rgba(16,24,40,.06);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: m2Toast .4s var(--ease); position: relative; text-align: left;
}
html[data-theme="dark"] .toast, html[data-theme="dark"] .toast.ok, html[data-theme="dark"] .toast.err { background: rgba(40,41,46,.96); color: #fff; }
.toast::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 8v5M12 16.5v.5'/%3E%3C/svg%3E") center/16px no-repeat;
}
.toast.ok, .toast.err { background: rgba(255,255,255,.95); }
.toast.ok::before { background-color: #22C55E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }
.toast.err::before { background-color: var(--danger); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E"); }
@keyframes m2Toast { from { opacity: 0; transform: translate3d(0, -24px, 0) scale(.96); } to { opacity: 1; transform: none; } }

/* =========================================================
   Вход и регистрация
   ========================================================= */
.auth { grid-template-columns: 1fr; min-height: 100dvh; background: var(--bg); }
.auth .side { display: none; }
.auth .main { align-items: start; padding: calc(var(--sat) + 28px) 20px calc(var(--sab) + 28px); }
.auth .card { max-width: 440px; background: transparent; box-shadow: none; padding: 0; }
.auth .card .m-logo { display: inline-flex !important; align-items: center; gap: 0; margin: 0 0 26px; font-size: 24px; }
.auth .card .m-logo .mark { margin-right: 9px; }
.auth .card .m-logo .mark { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
.auth .card h2 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 6px; }
.auth .card .sub { font-size: 16px; color: var(--ink-3); margin-bottom: 22px; }
.auth .auth-lang { position: absolute; right: 16px; top: calc(var(--sat) + 14px); }
.auth .auth-tabs { display: flex; margin-bottom: 22px; }
.auth .auth-tabs a { flex: 1; text-align: center; justify-content: center; }
.auth .stack > * + * { margin-top: 12px; }
.auth .input { background: var(--surface); }
.auth .switch { margin-top: 24px; text-align: center; font-size: 15px; color: var(--ink-3); }
.auth form .btn.block { margin-top: 10px; min-height: 52px; }

/* =========================================================
   Экран-приветствие для гостей
   ========================================================= */
.lp.mw {
  --display: var(--font); --body: var(--font);
  min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); overflow-x: clip;
}
.mw .logo { color: var(--ink); }
.mw .lang-sw { display: inline-flex !important; }
.mw-head { display: flex; align-items: center; gap: 8px; padding: calc(var(--sat) + 12px) 16px 0; }
.mw-head .logo { font-size: 22px; margin-right: auto; }
.mw-hero { padding: 40px 24px 8px; text-align: center; }
.mw-hero .mw-app { width: 88px; height: 88px; border-radius: 24px; background: linear-gradient(140deg, #1C3D6E, #0B1F3A); color: #fff; display: grid; place-items: center; margin: 0 auto 24px; font: 800 44px/1 var(--font); box-shadow: 0 14px 34px rgba(11,31,58,.28); }
.mw-hero .mw-app span { color: var(--accent); transform: rotate(-8deg); display: inline-block; }
.mw-hero h1 { font-size: 31px; line-height: 1.12; letter-spacing: -.035em; font-weight: 800; }
.mw-hero h1 .hl { color: var(--accent); }
.mw-hero .lead { margin-top: 12px; font-size: 16px; color: var(--ink-3); line-height: 1.45; }
.mw-cta { display: grid; gap: 10px; padding: 24px 20px 6px; }
.mw-cta .lp-btn { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 54px; border-radius: 16px; font: 600 17px var(--font); text-decoration: none !important; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.mw-cta .lp-btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(255,90,54,.3); }
.mw-cta .lp-btn--light { background: var(--ink); color: var(--bg); }
.mw-cta .lp-btn .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-free { text-align: center; color: var(--teal-ink); font-weight: 600; font-size: 14px; padding: 8px 20px 0; }
.lp .lp-free { color: var(--ink-3); margin-top: 8px; }
.lp-free b { color: var(--teal-ink); }
.mw-sec { padding: 28px 16px 0; }
.mw-sec h2 { font-size: 22px; margin: 0 4px 12px; }
.mw-grp { background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.mw-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; position: relative; }
.mw-row + .mw-row::before { content: ""; position: absolute; left: 64px; right: 0; top: 0; height: .5px; background: var(--line); }
.mw-row .ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.mw-row .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mw-row:nth-child(2) .ic { background: var(--blue-soft); color: var(--blue); }
.mw-row:nth-child(3) .ic { background: var(--teal-soft); color: var(--teal-ink); }
.mw-row:nth-child(4) .ic { background: var(--violet-soft); color: var(--violet); }
.mw-row b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.mw-row p { font-size: 14px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.mw-steps { display: grid; gap: 8px; }
.mw-step { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.mw-step .no { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 15px var(--font); }
.mw-step b { display: block; font-size: 15px; font-weight: 600; }
.mw-step p { font-size: 13.5px; color: var(--ink-3); }
.lp-plans { display: grid; gap: 10px; }
.lp-plan { background: var(--surface); border-radius: 18px; padding: 18px 16px; box-shadow: var(--shadow); position: relative; }
.lp-plan.is-feat { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.lp-plan .bdg { position: absolute; right: 14px; top: 14px; background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 10px; font: 600 12px var(--font); }
.lp-plan h3 { font-size: 19px; }
.lp-plan .d { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.lp-plan .pr { font: 700 30px/1.1 var(--font); letter-spacing: -.03em; margin-top: 12px; }
.lp-plan .per { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.lp-plan ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.lp-plan li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.lp-plan li .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: #22C55E; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.lp-plan li.off { color: var(--ink-4); }
.lp-plan li.off .ic { stroke: var(--line-2); }
.lp-plan .lp-btn { display: flex; justify-content: center; align-items: center; min-height: 50px; border-radius: 14px; font: 600 16px var(--font); background: var(--bg-2); color: var(--ink); text-decoration: none !important; }
.lp-plan .lp-btn--accent { background: var(--accent); color: #fff; }
.lp-plan .lp-btn--dark { background: var(--ink); color: var(--bg); }
.lp-packs { margin-top: 12px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.lp-pay { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.mw-faq { background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.mw-faq details { border-top: .5px solid var(--line); }
.mw-faq details:first-child { border-top: 0; }
.mw-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 16px; font-size: 16px; font-weight: 500; }
.mw-faq summary::-webkit-details-marker { display: none; }
.mw-faq summary .pl { margin-left: auto; width: 22px; height: 22px; flex: none; color: var(--ink-4); transition: transform .25s var(--ease); }
.mw-faq summary .pl .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mw-faq details[open] summary .pl { transform: rotate(45deg); color: var(--accent); }
.mw-faq details p { padding: 0 16px 14px; color: var(--ink-3); font-size: 15px; line-height: 1.45; }
.mw-foot { margin-top: auto; padding: 32px 20px calc(var(--sab) + 28px); text-align: center; color: var(--ink-4); font-size: 13px; line-height: 1.6; }
.mw-foot a { color: var(--ink-3); font-weight: 600; }
.mw .hidden { display: none !important; }
