/* ============================================================
   NEOANALYTICS DESIGN SYSTEM "BUSINESS CASUAL"
   Версия: 4.0 (чистовая) | 31.07.2026
   ============================================================ */

/* === ПЕРЕМЕННЫЕ === */
:root {
  --z-map: 1;
  --z-maptools: 20;
  --z-tab-trigger: 25;
  --z-layers-menu: 30;
  --z-filter-drop: 50;
  --z-panel: 60;
  --z-passport: 60;
  --z-modal-overlay: 500;
  --z-progress: 200;
  --z-toast: 9999;
  --z-notif: 1000;
  --z-auth: 10000;
  --z-profile: 10001;
  --z-admin: 10002;

  --color-bg-page: #E8E5E0;
  --color-bg-surface: #FFFFFF;
  --color-bg-elevated: #F5F3F0;
  --color-bg-hover: #EDEAE6;
  --color-bg-active: #FFF8ED;
  --color-text-primary: #1A1816;
  --color-text-secondary: #6B6560;
  --color-text-tertiary: #9C9690;
  --color-accent: #8B6914;
  --color-accent-hover: #6B4F0E;
  --color-accent-light: #FFF8ED;
  --color-success: #3D5A46;
  --color-success-bg: #E8F0EA;
  --color-warning: #B8860B;
  --color-warning-bg: #FFF8ED;
  --color-danger: #C44B3B;
  --color-danger-bg: #FEF3F2;
  --color-border: #DDD9D4;
  --color-border-light: #EDEAE6;

  --color-pb-good: #3D5A46;
  --color-pb-good-bg: #E8F0EA;
  --color-pb-medium: #B8860B;
  --color-pb-medium-bg: #FFF8ED;
  --color-pb-bad: #C44B3B;
  --color-pb-bad-bg: #FEF3F2;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --line-height-tight: 1.2;
  --line-height-base: 1.5;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 16px rgba(28,25,23,0.08);
  --shadow-lg: 0 8px 32px rgba(28,25,23,0.12);
  --shadow-xl: 0 20px 60px rgba(28,25,23,0.20);

  --topbar-height: 52px;
  --panel-width: 380px; /* deprecated, use fixed */
}

/* === СБРОС === */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
}

/* === КАРТА === */
#map {
  width: 100%; height: 100vh;
  z-index: var(--z-map);
  padding-top: var(--topbar-height);
  padding-left: 380px;
  padding-right: 380px;
  box-sizing: border-box;
}
.ymaps-2-1-79-copyright,
.ymaps-2-1-79-controls__toolbar,
.ymaps-2-1-79-controls__bottom { display: none !important; }

/* === СКРОЛЛБАР === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-tertiary); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  border-bottom: 1px solid var(--color-border-light);
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 0 16px;
  z-index: var(--z-maptools);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  padding: 0 12px;
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
}
.topbar__group--left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__group--right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.topbar__group--center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}
.topbar__group--center .topbar__search {
  flex: 1;
  max-width: 300px;
  margin: 0;
}
.topbar__divider {
  width: 1px;
  height: 24px;
  background: var(--color-border-light);
  margin: 0 8px;
  flex-shrink: 0;
}
.topbar__btn,
.topbar__icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: 500 var(--font-size-md) var(--font-family);
  color: var(--color-text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease;
}
.topbar__btn:hover,
.topbar__icon-btn:hover {
  background: var(--color-bg-hover);
}
.topbar__icon-btn {
  width: 36px;
  padding: 0;
  justify-content: center;
  position: relative;
}
.topbar__icon-btn svg {
  width: 18px; height: 18px;
}
.topbar__badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px; font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.topbar__search {
  flex: 1;
  max-width: 400px;
  margin: 0 12px;
}
.topbar__search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-surface);
  font: var(--font-size-md) var(--font-family);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 150ms ease;
}
.topbar__search-input:focus {
  border-color: var(--color-accent);
}
.topbar__search-input::placeholder {
  color: var(--color-text-tertiary);
}
.topbar__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}
.topbar__logo svg {
  width: 18px; height: 18px;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  white-space: nowrap;
}
.status-indicator__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-indicator__dot--green { background: var(--color-success); }
.status-indicator__dot--yellow { background: var(--color-warning); }
.status-indicator__dot--red { background: var(--color-danger); }

/* ============================================================
   TABS
   ============================================================ */
.tab-trigger {
  position: fixed;
  left: 0;
  z-index: var(--z-tab-trigger);
  width: 36px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  color: #FFFFFF;
  transition: left 250ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms, box-shadow 150ms;
  box-shadow: 0 2px 8px rgba(139,105,20,0.3);
}
.tab-trigger span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #FFFFFF;
}
.tab-trigger svg { display: none; }
.tab-trigger:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(139,105,20,0.4);
}
.tab-trigger.open {
  left: var(--panel-width);
  background: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(139,105,20,0.4);
}
.tab-trigger--sale { top: calc(50% - 120px); }
.tab-trigger--fav { top: calc(50% + 30px); }
.tab-trigger--hist { top: calc(50% + 150px); }

/* ============================================================
   PANELS
   ============================================================ */
.panel {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  width: var(--panel-width);
  background: var(--color-bg-surface);
  border-right: 1px solid var(--color-border-light);
  z-index: var(--z-panel);
  display: flex;
  flex-direction: column;

  box-shadow: var(--shadow-lg);
}
.panel__header {
  padding: 12px 12px 16px 12px;
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}
.panel__search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  padding-right: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  font: var(--font-size-md) var(--font-family);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 150ms ease;
}
.panel__search:focus {
  border-color: var(--color-accent);
}
.panel__search::placeholder {
  color: var(--color-text-tertiary);
}
.panel__search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--color-text-tertiary);
  font-size: 18px;
  z-index: 1;
}
.panel__count {
  padding: 8px 12px;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  flex-shrink: 0;
}
.panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.panel__chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  display: block;
  padding: 16px;
  margin: 6px 8px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-light);
  border-left: 3px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 200ms ease;
}
.card:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-success);
  border-left-color: var(--color-success);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(61,90,70,0.15);
}
.card {
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-success);
  border-top: 3px solid var(--color-success);
}
.card.active {
  border-color: var(--color-accent);
  border-left-color: var(--color-success);
  background: var(--color-bg-active);
}
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.card__addr {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  flex: 1;
}
.card__city {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}
.card__pb {
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.card__pb--good { background: var(--color-pb-good-bg); color: var(--color-pb-good); }
.card__pb--medium { background: var(--color-pb-medium-bg); color: var(--color-pb-medium); }
.card__pb--bad { background: var(--color-pb-bad-bg); color: var(--color-pb-bad); }
.card__pb--archive { background: var(--color-bg-elevated); color: var(--color-text-tertiary); }
.card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 10px;
}
.card__metric {
  display: flex;
  flex-direction: column;
}
.card__metric-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.card__metric-value {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
}
.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card__chain-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.card__chain-tag {
  font-size: var(--font-size-xs);
  background: var(--color-bg-elevated);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-light);
}
.card__status {
  display: none;
}

/* ============================================================
   PASSPORT
   ============================================================ */
.pass {
  position: fixed;
  top: var(--topbar-height);
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: calc(100vh - var(--topbar-height));
  background: var(--color-bg-surface);
  z-index: var(--z-passport);
  border-left: 1px solid var(--color-border-light);
  border-radius: 12px 0 0 0;
  box-shadow: -4px 0 20px rgba(0,0,0,0.06);
  overflow-y: auto;
  border-radius: 12px 0 0 12px;
}
.pass__hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 16px;
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 2;
}
.pass__addr {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
}
.pass__sub {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: 4px;
}
.pass__close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 150ms ease;
}
.pass__close:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}
#passBody {
  padding: 16px 20px 24px;
}
.pass__sec {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}
.pass__sec:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.pass__sec-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.pass__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.pass__metric {
  display: flex;
  flex-direction: column;
}
.pass__metric-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.pass__metric-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}
.pass__metric-value--large {
  font-size: var(--font-size-xl);
  color: var(--color-accent);
}
.pass__pb {
  display: inline-block;
  font-size: var(--font-size-lg);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
}
.pass__pb--good { background: var(--color-pb-good-bg); color: var(--color-pb-good); }
.pass__pb--medium { background: var(--color-pb-medium-bg); color: var(--color-pb-medium); }
.pass__pb--bad { background: var(--color-pb-bad-bg); color: var(--color-pb-bad); }
.pass__pb--archive { background: var(--color-bg-elevated); color: var(--color-text-tertiary); }
.pass__license-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pass__license-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-md);
  padding: 6px 12px;
  border-radius: 6px;
}
.pass__license-ok { background: var(--color-success-bg); color: var(--color-success); }
.pass__license-no { background: var(--color-danger-bg); color: var(--color-danger); }
.pass__chains {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pass__chain-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.pass__chain-row:last-child { border-bottom: none; }
.pass__chain-name {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
}
.pass__chain-status {
  font-size: var(--font-size-sm);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.pass__chain-status--free { background: var(--color-success-bg); color: var(--color-success); }
.pass__chain-status--busy { background: var(--color-danger-bg); color: var(--color-danger); }
.pass__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pass__actions .btn {
  width: 100%;
  justify-content: center;
}
.pass__guest-cta {
  background: var(--color-bg-active);
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.pass__guest-cta-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text-primary);
}
.pass__guest-cta-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.pass__select,
.pass__input {
  width: 140px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  font: var(--font-size-sm) var(--font-family);
  color: var(--color-text-primary);
  outline: none;
}
.pass__select:focus,
.pass__input:focus {
  border-color: var(--color-accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 150ms ease;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--color-accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,105,20,0.25); }
.btn-secondary { background: var(--color-bg-elevated); color: var(--color-text-primary); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-bg-hover); border-color: var(--color-accent); }
.btn-ghost { background: transparent; color: var(--color-text-secondary); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-hover); color: var(--color-accent); border-color: var(--color-accent); }
.btn-danger { background: var(--color-danger); color: #FFFFFF; }
.btn-danger:hover { background: #A63B2E; }
.btn-sm { padding: 6px 12px; font-size: var(--font-size-sm); }
.btn-md { padding: 10px 20px; font-size: var(--font-size-md); }
.btn-lg { padding: 14px 28px; font-size: var(--font-size-lg); }
.btn-block { width: 100%; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.5);
  z-index: var(--z-modal-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--color-bg-surface);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}
.modal__hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}
.modal__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text-primary);
}
.modal__close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 150ms ease;
}
.modal__close:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }
.modal__body { padding: 24px; overflow-y: auto; flex: 1; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.modal__card {
  background: var(--color-bg-elevated);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--color-border-light);
}
.modal__card-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.modal__value { font-size: var(--font-size-2xl); font-weight: 700; color: var(--color-text-primary); }
.modal__value--accent { color: var(--color-accent); }
.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-light);
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ============================================================
   PROFILE PANEL
   ============================================================ */
.profile-panel {
  background: var(--color-bg-surface);
  width: 360px;
  max-width: 90vw;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  max-height: calc(100vh - var(--topbar-height) - 24px);
  overflow-y: auto;
}
.profile-panel__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-success);
  margin-bottom: 12px;
}
.profile-panel__name { font-size: var(--font-size-lg); font-weight: 600; color: var(--color-text-primary); }
.profile-panel__email { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-bottom: 16px; }
.profile-panel__balance {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
}
.profile-panel__balance-value { font-weight: 700; color: var(--color-accent); }
.profile-panel__divider {
  height: 2px;
  background: rgba(61,90,70,0.15);
  margin: 16px 0;
}
.profile-panel .btn { width: 100%; margin-bottom: 8px; }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-modal__box {
  background: var(--color-bg-surface);
  padding: 32px;
  border-radius: 16px;
  width: 380px;
  max-width: 90vw;
  box-shadow: var(--shadow-xl);
}
.auth-modal__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}
.auth-modal__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin-bottom: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: var(--font-size-md) var(--font-family);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 150ms ease;
}
.auth-modal__input:focus { border-color: var(--color-accent); }
.auth-modal__input::placeholder { color: var(--color-text-tertiary); }
.auth-modal__error {
  color: var(--color-danger);
  font-size: var(--font-size-sm);
  margin-top: 10px;
  min-height: 18px;
}

/* ============================================================
   FILTERS
   ============================================================ */
.filter-drop { position: relative; }
.filter-drop__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  font: var(--font-size-sm) var(--font-family);
  color: var(--color-text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease;
}
.filter-drop__btn:hover { border-color: var(--color-accent); }
.filter-drop__list {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  z-index: var(--z-filter-drop);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-md);
  min-width: 160px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
  font: var(--font-size-sm) var(--font-family);
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
}
.chip:hover { border-color: var(--color-accent); }
.chip.active { background: var(--color-accent); border-color: var(--color-accent); color: #FFFFFF; }
.chip-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  font: var(--font-size-sm) var(--font-family);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.chip-check input[type=checkbox] { margin: 0; accent-color: var(--color-accent); }
.filter-group { margin-bottom: 8px; }
.filter-group__title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ============================================================
   MAP TOOLS
   ============================================================ */
.maptools__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  font: 500 var(--font-size-sm) var(--font-family);
  color: var(--color-text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
}
.maptools__btn:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.maptools__btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #FFFFFF; }
.maptools__btn svg { width: 15px; height: 15px; }

.layers-menu {
  position: absolute;
  top: 4px; left: 4px;
  z-index: var(--z-layers-menu);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}
.layers-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: var(--font-size-sm) var(--font-family);
  color: var(--color-text-primary);
  cursor: pointer;
}
.layers-menu input[type=checkbox] { margin: 0; accent-color: var(--color-accent); }

.radius-input {
  position: absolute;
  top: 4px; left: 4px;
  z-index: 25;
  background: var(--color-bg-surface);
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  gap: 4px;
}
.radius-input input {
  width: 80px; height: 30px;
  padding: 0 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: var(--font-size-md) var(--font-family);
  outline: none;
  text-align: center;
}
.radius-input input:focus { border-color: var(--color-accent); }
.radius-input button {
  height: 30px; width: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notif-dropdown {
  position: absolute;
  top: var(--topbar-height);
  right: 12px;
  z-index: var(--z-notif);
  background: var(--color-bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 360px;
  max-width: 90vw;
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--color-border-light);
  display: none;
}
.notif-item {
  padding: 12px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}
.notif-item:last-child { border-bottom: none; }
.notif-item--warning { border-left: 3px solid var(--color-warning); padding-left: 9px; }
.notif-item--danger { border-left: 3px solid var(--color-danger); padding-left: 9px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: var(--z-toast);
  padding: 12px 20px;
  border-radius: 8px;
  font: 500 var(--font-size-md) var(--font-family);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s ease;
  max-width: 360px;
}
.toast--success { background: var(--color-success); }
.toast--warning { background: var(--color-warning); }
.toast--danger { background: var(--color-danger); }

/* ============================================================
   SKELETON
   ============================================================ */
.skeleton {
  background: var(--color-bg-elevated);
  border-radius: 6px;
  animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-card { height: 80px; margin-bottom: 8px; }
.skeleton-text { height: 12px; margin: 6px 0; }
.skeleton-text--lg { height: 18px; }
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   ADMIN MODAL
   ============================================================ */
.admin-modal {
  position: fixed; inset: 0;
  background: rgba(28,25,23,0.45);
  z-index: var(--z-admin);
  display: none;
  align-items: center; justify-content: center;
}
.admin-modal__box {
  background: var(--color-bg-surface);
  padding: 24px; border-radius: 16px;
  width: 95%; max-width: 800px; max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.admin-modal__title {
  margin: 0 0 12px;
  font-size: var(--font-size-2xl); font-weight: 700;
  color: var(--color-accent);
}
.admin-modal__stats {
  margin-bottom: 12px;
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
}
.admin-modal__input {
  width: 100%; padding: 8px 12px; margin-bottom: 10px;
  border: 1px solid var(--color-border); border-radius: 8px;
  font: var(--font-size-md) var(--font-family);
  outline: none;
}
.admin-modal__input:focus { border-color: var(--color-accent); }

/* ============================================================
   MATRIX TABLE
   ============================================================ */
.chain-matrix-table {
  font: var(--font-size-xs) var(--font-family);
  border-collapse: collapse;
  width: 100%;
}
.chain-matrix-table th {
  position: sticky;
  top: 0;
  background: var(--color-bg-page);
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  white-space: nowrap;
  font-weight: 600;
  text-align: center;
  min-width: 60px;
  font-size: var(--font-size-xs);
}
.chain-matrix-table td {
  padding: 4px 6px;
  border: 1px solid var(--color-border-light);
  text-align: center;
}
.chain-matrix-table .col-chain {
  position: sticky;
  left: 0;
  background: var(--color-bg-surface);
  z-index: 1;
  text-align: left;
  font-weight: 600;
  min-width: 130px;
  cursor: pointer;
}
.chain-matrix-table .col-chain:hover { background: var(--color-bg-hover); }
.chain-matrix-table .chk-blocked { opacity: 0.3; cursor: not-allowed; }
.chain-matrix-table .chk-header { cursor: pointer; font-weight: 600; }
.chain-matrix-table .chk-header:hover { background: var(--color-bg-hover); }
.chain-matrix-table input[type="text"],
.chain-matrix-table input[type="number"] {
  width: 55px;
  padding: 3px 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: var(--font-size-xs) var(--font-family);
  text-align: center;
  outline: none;
}
.chain-matrix-table input:focus { border-color: var(--color-accent); }
.matrix-scroll { max-height: 60vh; overflow: auto; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
#progressBar {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-progress);
  background: var(--color-bg-surface);
  padding: 28px 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  font: var(--font-size-lg) var(--font-family);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hint-cell { cursor: help; border-bottom: 1px dotted var(--color-text-secondary); }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-success { color: var(--color-success); }
.icon-danger { color: var(--color-danger); }
.scroll-chains { max-height: 200px; overflow-y: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .pass { width: 100%; right: 0; border-radius: 0; }
  .modal { width: 95%; max-height: 90vh; }
  .modal__grid { grid-template-columns: 1fr; }
  .card__metrics { grid-template-columns: 1fr 1fr; }
  .topbar__search { max-width: 160px; }
}

.tab-trigger--fav,
.tab-trigger--hist {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}
.tab-trigger--fav svg,
.tab-trigger--hist svg {
  display: block;
  width: 18px; height: 18px;
}
.tab-trigger--fav:hover,
.tab-trigger--hist:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.tab-trigger--fav.open,
.tab-trigger--hist.open {
  background: var(--color-bg-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.profile-panel__balance-box {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.profile-panel__balance-box .profile-panel__balance-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.profile-panel__balance-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.pass__guest-cta[style*="display:"] { margin-top: 0; }


/* === ADMIN TABLE === */
#admin-users table {
  width: 100%;
  border-collapse: collapse;
  font: var(--font-size-sm) var(--font-family);
}
#admin-users th {
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#admin-users td {
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
}
#admin-users tr:hover td {
  background: var(--color-bg-hover);
}
#admin-users input[type="number"] {
  width: 60px;
  padding: 4px 6px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font: var(--font-size-sm) var(--font-family);
  text-align: center;
}
#admin-users input[type="number"]:focus {
  border-color: var(--color-accent);
  outline: none;
}
.admin-modal__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: var(--font-size-md) var(--font-family);
  margin-bottom: 12px;
}
.admin-modal__input:focus {
  border-color: var(--color-accent);
  outline: none;
}

#admin-users th:first-child,
#admin-users td:first-child { width: 50px; }
#admin-users th:nth-child(4),
#admin-users td:nth-child(4) { min-width: 200px; }

#admin-users td:last-child { text-align: right; }
.filter-drop__list--open { display: block !important; }

/* === ТУЛТИПЫ ПОДСКАЗОК === */
[data-tooltip] {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--color-accent);
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 24, 22, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  z-index: 1000;
  pointer-events: none;
  backdrop-filter: blur(6px);
  text-align: left;
}
input[type=checkbox] { accent-color: #8B6914; }


/* ============================================================
   LANDING — 100 AREND
   ============================================================ */
body.landing {
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

.l-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.l-hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(rgba(232,229,224,0.85), rgba(232,229,224,0.92)), url(/static/hero-bg.jpeg) center/cover no-repeat;
}
.l-hero__title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.l-hero__accent { color: var(--color-accent); }
.l-hero__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* Sections */
.l-section { padding: 80px 0; }
.l-section--alt { background: var(--color-bg-elevated); }
.l-section__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.l-section__subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

/* Calculator */
.l-calc { max-width: 500px; margin: 0 auto; text-align: center; }
.l-calc__fields {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
}
.l-calc__field { text-align: left; }
.l-calc__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.l-calc__input {
  width: 180px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  font: 14px var(--font-family);
  outline: none;
  transition: border-color 150ms;
}
.l-calc__input:focus { border-color: var(--color-accent); }
.l-calc__hint {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 12px;
}
.l-link { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.l-link:hover { text-decoration: underline; }

/* Steps */
.l-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.l-step {
  background: var(--color-bg-surface);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 1px 3px rgba(28,25,23,0.04);
}
.l-step__num {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.l-step__image { margin-bottom: 16px; }
.l-step__img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}
.l-step__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.l-step__text { color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }

/* Result */
.l-result { max-width: 500px; margin: 0 auto; text-align: center; }
.l-result__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.l-result__row--big { border-bottom: none; padding-top: 20px; }
.l-result__label { font-size: 14px; color: var(--color-text-secondary); }
.l-result__value { font-size: 18px; font-weight: 600; }
.l-result__value--accent {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-success);
}
.l-result__error {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
.l-result__hint {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* FAQ */
.l-faq { max-width: 700px; margin: 0 auto; }
.l-faq__item { margin-bottom: 32px; }
.l-faq__q { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.l-faq__a { font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; }

/* CTA */
.l-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--color-bg-elevated);
}
.l-cta__text {
  font-size: 26px;
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Footer */
.l-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 13px;
  border-top: 1px solid var(--color-border-light);
}

@media (max-width: 768px) {
  .l-hero { padding: 60px 0 40px; }
  .l-section { padding: 40px 0; }
  .l-cta { padding: 40px 0; }
  .l-calc__input { width: 140px; }
  .l-steps { grid-template-columns: 1fr; }
}

body.landing {
  overflow: auto;
  height: auto;
}

/* Hero icon */
.l-hero__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  stroke-width: 2;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -4px;
}

/* Hero description */
.l-hero__desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Steps icons */
.l-step__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  stroke-width: 2;
  margin-bottom: 16px;
}

/* Funnel */
.l-funnel {
  max-width: 500px;
  margin: 0 auto 32px;
}
.l-funnel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.l-funnel__row--final {
  border-bottom: none;
}
.l-funnel__num {
  font-size: 28px;
  font-weight: 800;
  min-width: 80px;
  text-align: right;
}
.l-funnel__num--accent {
  font-size: 40px;
  color: var(--color-success);
}
.l-funnel__label {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-left: 16px;
}

/* Tenants */
.l-tenants {
  max-width: 500px;
  margin: 0 auto 24px;
  text-align: left;
}
.l-tenants__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.l-tenants__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.l-tenants__list li {
  background: var(--color-bg-elevated);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 14px;
  border: 1px solid var(--color-border-light);
}

/* Result summary */
.l-result__summary {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* Remove old image styles */
.l-step__image { display: none; }

/* Funnel — fix alignment */
.l-funnel__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.l-funnel__row--final {
  border-bottom: none;
}
.l-funnel__num {
  font-size: 32px;
  font-weight: 800;
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}
.l-funnel__num--accent {
  font-size: 44px;
  color: var(--color-success);
}
.l-funnel__label {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

/* Calculator result */
.l-calc__result {
  margin-top: 24px;
}

/* Hint */
.l-calc__hint {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 12px;
  text-align: center;
}


/* === HERO v2 === */
.l-hero {
  padding: 120px 0 100px;
  text-align: center;
  background: linear-gradient(rgba(232,229,224,0.82), rgba(232,229,224,0.9)), url(/static/hero-bg.jpeg) center/cover no-repeat;
  border-bottom: 1px solid var(--color-border-light);
}
.l-hero__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  stroke-width: 2;
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -6px;
}
.l-hero__title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.l-hero__accent { color: var(--color-accent); }
.l-hero__subtitle {
  font-size: 22px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 500;
  line-height: 1.4;
}
.l-hero__features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 750px;
  margin: 0 auto 48px;
}
.l-hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-secondary);
}
.l-hero__feature-icon {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  stroke-width: 2;
  flex-shrink: 0;
}

/* === STEPS v2 === */
.l-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.l-step {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-bg-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 2px 8px rgba(28,25,23,0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.l-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(28,25,23,0.08);
}
.l-step__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  stroke-width: 1.5;
  margin-bottom: 20px;
}
.l-step__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.l-step__text {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* === CALC v2 === */
.l-calc {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-bg-surface);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 4px 16px rgba(28,25,23,0.06);
  border: 1px solid var(--color-border-light);
}
.l-calc__fields {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 24px;
}
.l-calc__field { text-align: left; flex: 1; min-width: 140px; }
.l-calc__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.l-calc__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-page);
  font: 15px var(--font-family);
  outline: none;
  transition: border-color 150ms;
}
.l-calc__input:focus { border-color: var(--color-accent); }
.l-calc__result { margin-top: 32px; }

/* Funnel v2 — status bar style */
.l-funnel { margin-bottom: 24px; }
.l-funnel__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.l-funnel__row--final { border-bottom: none; }
.l-funnel__num {
  font-size: 28px;
  font-weight: 800;
  min-width: 64px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}
.l-funnel__num--accent {
  font-size: 38px;
  color: var(--color-success);
}
.l-funnel__label {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

/* Tenants v2 */
.l-tenants { margin-bottom: 24px; }
.l-tenants__title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.l-tenants__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.l-tenants__list li {
  background: var(--color-bg-elevated);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  border: 1px solid var(--color-border-light);
  font-weight: 500;
}
.l-result__summary { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 20px; }
.l-result__error { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 16px; }

/* === FAQ v2 — accordion === */
.l-faq { max-width: 700px; margin: 0 auto; }
.l-faq__item {
  border-bottom: 1px solid var(--color-border-light);
}
.l-faq__q {
  font-size: 17px;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  margin: 0;
}
.l-faq__q::after {
  content: '+';
  font-size: 22px;
  color: var(--color-text-tertiary);
  font-weight: 400;
  transition: transform 200ms ease;
}
.l-faq__item.open .l-faq__q::after {
  content: '−';
  color: var(--color-accent);
}
.l-faq__a {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding-bottom: 20px;
  display: none;
}
.l-faq__item.open .l-faq__a { display: block; }

/* === CTA v2 === */
.l-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--color-accent);
  color: #FFFFFF;
}
.l-cta__text {
  font-size: 28px;
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto 32px;
  color: #FFFFFF;
}
.l-cta .btn-primary {
  background: #FFFFFF;
  color: var(--color-accent);
}
.l-cta .btn-primary:hover {
  background: var(--color-bg-elevated);
}

/* Utility */
.l-link { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.l-link:hover { text-decoration: underline; }

/* Hero description block */
.l-hero__desc-block {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}
.l-hero__desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Step list markers */
.l-step__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
  text-align: left;
}
.l-step__list li {
  font-size: 14px;
  color: var(--color-text-primary);
  padding: 2px 0 2px 20px;
  position: relative;
}
.l-step__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Footer contacts */
.l-footer__contacts {
  margin-bottom: 8px;
  font-size: 13px;
}
.l-footer__contacts a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.l-footer__contacts a:hover {
  color: var(--color-accent);
}

/* Hero description rows with markers */
.l-hero__desc {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.l-hero__desc-row {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding: 6px 0 6px 24px;
  position: relative;
}
.l-hero__desc-marker {
  position: absolute;
  left: 4px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Hero features — always in one row */
.l-hero__features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: nowrap;
  max-width: 750px;
  margin: 0 auto 48px;
}
@media (max-width: 700px) {
  .l-hero__features {
    flex-wrap: wrap;
    gap: 16px;
  }
}

.l-steps__cta {
  text-align: center;
  margin-top: 40px;
}

/* CTA after steps */
.l-steps__cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-light);
}
