:root {
  --emerald-light: #4A9B7F;
  --emerald-deep: #0A3431;
  --emerald-mid: #1f5b4f;
  --emerald-glow: rgba(74, 155, 127, 0.18);
  --emerald-soft: rgba(74, 155, 127, 0.10);
  --gradient-emerald: linear-gradient(135deg, #4A9B7F 0%, #0A3431 100%);
  --gradient-emerald-soft: linear-gradient(135deg, rgba(74, 155, 127, 0.16) 0%, rgba(10, 52, 49, 0.16) 100%);

  --bg: #f7f4ee;
  --bg-soft: #efeae0;
  --panel: rgba(255, 253, 248, 0.96);
  --panel-strong: #fffdf8;
  --line: rgba(10, 52, 49, 0.12);
  --text: #0c1716;
  --muted: #6a7470;
  --primary: #0A3431;
  --primary-dark: #07221f;
  --accent: #4A9B7F;
  --success: #4A9B7F;
  --warning: #c98a3c;
  --shadow: 0 24px 60px rgba(10, 52, 49, 0.08);
  --shadow-soft: 0 12px 32px rgba(10, 52, 49, 0.06);
  --shadow-deep: 0 28px 70px rgba(10, 52, 49, 0.18);
  --radius-xl: 4px;
  --radius-lg: 2px;
  --radius-md: 2px;
}

:root[data-theme="light"] {
  --bg: #f7f4ee;
  --bg-soft: #efeae0;
  --panel: rgba(255, 253, 248, 0.96);
  --panel-strong: #fffdf8;
  --line: rgba(10, 52, 49, 0.12);
  --text: #0c1716;
  --muted: #6a7470;
  --primary: #0A3431;
  --primary-dark: #07221f;
  --accent: #4A9B7F;
  --success: #4A9B7F;
  --warning: #c98a3c;
  --shadow: 0 24px 60px rgba(10, 52, 49, 0.08);
  --shadow-soft: 0 12px 32px rgba(10, 52, 49, 0.06);
}

:root[data-theme="dark"] {
  --bg: #030908;
  --bg-soft: #061410;
  --panel: rgba(13, 30, 27, 0.92);
  --panel-strong: rgba(20, 42, 38, 0.96);
  --line: rgba(74, 155, 127, 0.20);
  --text: #ecf3ee;
  --muted: #a4bdb1;
  --primary: #4A9B7F;
  --primary-dark: #7BC9A8;
  --accent: #4A9B7F;
  --accent-light: #7BC9A8;
  --success: #7BC9A8;
  --warning: #e0b06f;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.42);
  --shadow-deep: 0 36px 90px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 0%, rgba(74, 155, 127, 0.10), transparent 40%), linear-gradient(180deg, #f7f4ee 0%, #efeae0 100%);
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background: radial-gradient(circle at 12% 0%, rgba(74, 155, 127, 0.10), transparent 40%), linear-gradient(180deg, #f7f4ee 0%, #efeae0 100%);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(74, 155, 127, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 12%, rgba(10, 52, 49, 0.5), transparent 55%),
    linear-gradient(180deg, #030908 0%, #060f0d 50%, #020706 100%);
}

button,
input,
select {
  font: inherit;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient-1 {
  width: 380px;
  height: 380px;
  background: rgba(74, 155, 127, 0.20);
  top: -100px;
  left: -80px;
}

.ambient-2 {
  width: 320px;
  height: 320px;
  background: rgba(10, 52, 49, 0.16);
  top: 30%;
  right: -80px;
  animation-duration: 24s;
}

.ambient-3 {
  width: 260px;
  height: 260px;
  background: rgba(74, 155, 127, 0.14);
  bottom: -80px;
  left: 30%;
  animation-duration: 22s;
}

:root[data-theme="light"] .ambient {
  opacity: 0.22;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, rgba(255,255,255,0.8), rgba(255,255,255,0.08));
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(20,60,100,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,60,100,0.03) 1px, transparent 1px);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -20px, 0) scale(1.08); }
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 24px 20px;
  display: grid;
  gap: 22px;
  align-content: start;
  background: rgba(255, 253, 248, 0.86);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

:root[data-theme="light"] .sidebar {
  background: rgba(255, 253, 248, 0.86);
}

:root[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, rgba(13, 30, 27, 0.92) 0%, rgba(6, 20, 18, 0.85) 100%);
  border-right-color: rgba(74, 155, 127, 0.22);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 2px;
  background: var(--gradient-emerald);
  display: grid;
  place-items: center;
  color: #f7f4ee;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 30px rgba(10, 52, 49, 0.28);
}

:root[data-theme="light"] .brand-logo,
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .pill.active {
  color: #fff;
}

.brand-name,
.mission-text,
.footer-value,
.hero-side-value,
.metric-card strong,
.mini-stat strong,
.big-number,
.progress-value,
.balance-number {
  display: block;
}

.brand-name {
  font-weight: 800;
}

.brand-subtitle,
.mission-label,
.footer-label,
.footer-note,
.section-kicker,
.section-head p,
.hero-side-label,
.hero-side-note,
.metric-card span,
.metric-card small,
.mini-stat span,
.list,
label span,
.muted,
.platform-label,
.timeline-item p,
.progress-label,
.balance-card span,
.status-card small,
.table-note,
.header-profile span {
  color: var(--muted);
}

.mission-card,
.sidebar-footer,
.header,
.hero,
.metric-card,
.panel,
.platform-card,
.hero-side,
.mini-stat,
.status-card,
.balance-card,
.timeline-card,
.progress-card,
.header-profile {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

:root[data-theme="dark"] .mission-card,
:root[data-theme="dark"] .sidebar-footer,
:root[data-theme="dark"] .header,
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .platform-card,
:root[data-theme="dark"] .mini-stat,
:root[data-theme="dark"] .status-card,
:root[data-theme="dark"] .balance-card,
:root[data-theme="dark"] .timeline-card,
:root[data-theme="dark"] .progress-card,
:root[data-theme="dark"] .summary-card,
:root[data-theme="dark"] .header-profile {
  background: linear-gradient(135deg, rgba(74, 155, 127, 0.22) 0%, rgba(31, 91, 79, 0.55) 35%, rgba(10, 52, 49, 0.92) 75%, rgba(6, 20, 18, 0.96) 100%);
  border: 1px solid rgba(74, 155, 127, 0.28);
  box-shadow: 0 1px 0 rgba(123, 201, 168, 0.08) inset, 0 24px 60px rgba(0, 0, 0, 0.55);
  position: relative;
}

:root[data-theme="dark"] .panel::before,
:root[data-theme="dark"] .header::before,
:root[data-theme="dark"] .platform-card::before,
:root[data-theme="dark"] .mission-card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 155, 127, 0.5), transparent);
  pointer-events: none;
}

.mission-card,
.sidebar-footer {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.mission-text,
.footer-value {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--primary-dark);
}

.menu {
  display: grid;
  gap: 8px;
}

.menu-item,
.btn,
.quick-card,
.pill,
.theme-btn {
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-item {
  text-align: left;
  padding: 12px 14px;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.menu-item.active,
.menu-item:hover {
  background: rgba(74, 155, 127, 0.14);
  color: #fff;
}

:root[data-theme="light"] .menu-item.active,
:root[data-theme="light"] .menu-item:hover {
  color: var(--primary-dark);
}

.content {
  position: relative;
  z-index: 1;
  padding: 24px;
  display: grid;
  gap: 22px;
}

.header {
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.theme-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(74, 155, 127, 0.08);
  border: 1px solid var(--line);
}

.theme-btn {
  padding: 12px 16px;
  min-height: 44px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.theme-btn.active {
  background: linear-gradient(180deg, var(--accent), var(--primary));
  color: #fffdf8;
}

:root[data-theme="light"] .theme-btn.active {
  color: #fff;
}

.header-profile {
  padding: 14px 16px;
  border-radius: 2px;
}

.header-profile strong {
  color: var(--primary-dark);
  font-size: 18px;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 38px;
}

h2 {
  margin-bottom: 10px;
  font-size: 34px;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.header-buttons,
.hero-actions,
.platform-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 18px;
  border-radius: 2px;
  font-weight: 700;
}

.btn-primary,
.pill.active {
  background: var(--gradient-emerald);
  color: #fffdf8;
  box-shadow: 0 10px 24px rgba(10, 52, 49, 0.20);
}

.btn-primary:hover,
.pill.active:hover {
  box-shadow: 0 14px 32px rgba(10, 52, 49, 0.28);
}

.btn-primary:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-light,
.pill,
.quick-card {
  background: rgba(74, 155, 127, 0.08);
  color: var(--text);
}

.btn:hover,
.quick-card:hover,
.pill:hover,
.theme-btn:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 155, 127, 0.22) 0%, rgba(74, 155, 127, 0) 72%);
  pointer-events: none;
}

.hero-main p,
.panel p,
.platform-card p {
  line-height: 1.7;
}

.hero-side {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

:root[data-theme="light"] .hero-side {
  background: var(--panel-strong);
}

:root[data-theme="dark"] .hero-side {
  background: linear-gradient(180deg, rgba(20, 42, 38, 0.95) 0%, rgba(15, 33, 30, 0.88) 100%);
}

.hero-side-value,
.metric-card strong,
.mini-stat strong,
.big-number,
.progress-value,
.balance-number {
  font-size: 30px;
  line-height: 1.15;
  color: var(--primary-dark);
}

.hero-side-value {
  margin: 10px 0 8px;
}

.cards,
.platform-cards,
.platform-stats,
.quick-grid,
.status-grid,
.balance-grid {
  display: grid;
  gap: 16px;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-3,
.status-grid,
.balance-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2,
.platform-cards {
  grid-template-columns: 1fr 1fr;
}

.cards-2-1 {
  grid-template-columns: 2fr 1fr;
}

.metric-card,
.mini-stat,
.status-card,
.balance-card,
.progress-card {
  border-radius: 4px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(18, 34, 53, 0.96) 0%, rgba(11, 23, 36, 0.88) 100%);
}

:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .mini-stat,
:root[data-theme="light"] .status-card,
:root[data-theme="light"] .balance-card,
:root[data-theme="light"] .progress-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.metric-card.highlight {
  background: linear-gradient(180deg, rgba(36, 128, 208, 0.95) 0%, rgba(11, 61, 103, 0.92) 100%);
  border-color: rgba(74, 155, 127, 0.25);
  box-shadow: 0 24px 48px rgba(10, 61, 103, 0.32);
}

.metric-card.highlight span,
.metric-card.highlight small,
.metric-card.highlight strong {
  color: #fff;
}

.metric-card small {
  display: block;
  margin-top: 8px;
}

.panel,
.platform-card,
.timeline-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.panel::before,
.platform-card::before,
.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(74, 155, 127, 0), rgba(74, 155, 127, 0.7), rgba(74, 155, 127, 0));
}

.dark-panel {
  background: linear-gradient(180deg, rgba(31, 78, 121, 0.94) 0%, rgba(12, 39, 65, 0.92) 100%);
  border-color: rgba(74, 155, 127, 0.2);
}

:root[data-theme="light"] .dark-panel {
  background: linear-gradient(180deg, #4A9B7F 0%, #0A3431 100%);
}

.dark-panel h3,
.dark-panel .list,
.dark-panel .bright-list li {
  color: #fff;
}

.bright-list {
  color: rgba(255, 255, 255, 0.92);
}

.panel-head,
.platform-top,
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.big-panel {
  min-height: 260px;
}

.quick-grid {
  grid-template-columns: repeat(3, 1fr);
}

.quick-card {
  padding: 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 700;
}

.list {
  padding-left: 20px;
  line-height: 1.8;
}

.tab {
  display: none;
  gap: 18px;
}

.tab.active {
  display: grid;
}

.status-pill,
.soft-pill,
.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.status-pill {
  background: rgba(74, 155, 127, 0.14);
  color: var(--primary-dark);
}

.soft-pill {
  background: rgba(74, 155, 127, 0.14);
  color: var(--success);
}

.timeline-badge {
  background: rgba(255, 200, 87, 0.14);
  color: var(--warning);
}

.platform-card.active {
  border-color: rgba(74, 155, 127, 0.24);
  box-shadow: 0 26px 56px rgba(9, 22, 36, 0.36);
}

.platform-card.soon {
  opacity: 0.8;
}

.platform-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.platform-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.vector-view-btn:not([disabled]),
.activate-vector-btn[data-state="active"] {
  opacity: 1;
  pointer-events: auto;
}

.structure-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.structure-level-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.structure-level-subtitle {
  font-size: 22px;
  color: var(--primary-dark);
  font-weight: 700;
}

.structure-arrow {
  font-size: 28px;
  color: var(--primary-dark);
}

.structure-main-card {
  width: min(100%, 420px);
  padding: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18, 34, 53, 0.96) 0%, rgba(11, 23, 36, 0.88) 100%);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}

:root[data-theme="light"] .structure-main-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.structure-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.structure-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
  color: #fffdf8;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.structure-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(74, 155, 127, 0.14);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.structure-main-card h3 {
  margin-bottom: 8px;
}

.structure-legs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(100%, 720px);
}

.structure-leg {
  padding: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18, 34, 53, 0.96) 0%, rgba(11, 23, 36, 0.88) 100%);
  border: 1px solid var(--line);
  text-align: center;
}

:root[data-theme="light"] .structure-leg {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.leg-state {
  color: var(--muted);
  margin-bottom: 12px;
}

.leg-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(74, 155, 127, 0.08);
  color: var(--primary-dark);
}

.leg-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.leg-benefits {
  margin: 0;
  padding-left: 18px;
  text-align: left;
  line-height: 1.8;
  color: var(--muted);
}

.platform-stats span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.platform-stats strong {
  color: var(--primary-dark);
}

.timeline-card {
  display: grid;
  gap: 18px;
}

.premium-timeline {
  background: linear-gradient(180deg, rgba(14, 28, 43, 0.96) 0%, rgba(8, 18, 28, 0.9) 100%);
  border: 1px solid rgba(10, 52, 49, 0.18);
}

:root[data-theme="light"] .premium-timeline {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-date {
  font-weight: 700;
  color: var(--primary-dark);
}

.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.progress-bar {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(74, 155, 127, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 0 18px rgba(74, 155, 127, 0.34);
}

.progress-value {
  margin-top: 12px;
  font-size: 22px;
}

.balance-number {
  margin-top: 8px;
}

.balance-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
}

.marketing-table {
  width: 100%;
  border-collapse: collapse;
}

.marketing-table th,
.marketing-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.marketing-table thead th {
  position: sticky;
  top: 0;
  background: rgba(9, 20, 32, 0.96);
  backdrop-filter: blur(12px);
  z-index: 1;
}

:root[data-theme="light"] .marketing-table thead th {
  background: rgba(244, 250, 255, 0.96);
}

.marketing-table th {
  color: var(--primary-dark);
  font-size: 14px;
}

.marketing-table tbody tr:hover {
  background: rgba(74, 155, 127, 0.04);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.analysis-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.analysis-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.analysis-table {
  margin-top: 4px;
}

.analysis-empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
}

.analysis-link-btn {
  border: 1px solid rgba(72, 198, 255, 0.42);
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(26, 58, 86, 0.96) 0%, rgba(13, 31, 48, 0.92) 100%);
  color: #4A9B7F;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
  box-shadow: 0 0 0 1px rgba(72, 198, 255, 0.08), 0 0 14px rgba(72, 198, 255, 0.22);
}

.analysis-link-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(37, 86, 125, 0.98) 0%, rgba(15, 39, 61, 0.96) 100%);
  border-color: rgba(112, 223, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(112, 223, 255, 0.12), 0 0 18px rgba(72, 198, 255, 0.34);
  text-decoration: none;
}

.vector-bottom-layout {
  align-items: start;
}

.vector-structure-stage {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.vector-analysis-anchor {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.vector-floating-actions {
  display: grid;
  gap: 14px;
  width: min(320px, 100%);
}

.vector-analysis-floating-btn,
.vector-analysis-floating-btn.vector-action-primary {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 58px;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(72, 198, 255, 0.24);
  background: linear-gradient(180deg, rgba(24, 48, 72, 0.98) 0%, rgba(11, 27, 43, 0.96) 100%) !important;
  color: #4A9B7F !important;
  box-shadow: 0 14px 30px rgba(4, 14, 24, 0.34), 0 0 0 1px rgba(72, 198, 255, 0.08);
}

.vector-analysis-floating-btn:hover,
.vector-analysis-floating-btn.vector-action-primary:hover {
  background: linear-gradient(180deg, rgba(31, 66, 99, 0.98) 0%, rgba(14, 35, 55, 0.96) 100%) !important;
  border-color: rgba(112, 223, 255, 0.42);
}

.vector-action-primary {
  color: #4A9B7F;
  font-weight: 800;
}

:root[data-theme="light"] .vector-analysis-floating-btn {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  color: #0A3431;
  border-color: rgba(74, 155, 127, 0.22);
  box-shadow: 0 16px 30px rgba(122, 174, 211, 0.18);
}

.placement-preview-result {
  min-height: 140px;
  color: var(--text);
}

.placement-preview-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(18, 34, 53, 0.96) 0%, rgba(11, 23, 36, 0.88) 100%);
  border: 1px solid rgba(74, 155, 127, 0.18);
}

.vector-side-column {
  display: grid;
  gap: 20px;
}

.vector-actions-panel {
  position: sticky;
  top: 24px;
}

.vector-actions-list {
  display: grid;
  gap: 12px;
}

.vector-action-primary {
  background: linear-gradient(180deg, #f0b548 0%, #cb8f1d 100%);
  color: #0A3431;
  font-weight: 800;
}

:root[data-theme="light"] .vector-action-primary {
  color: #fff;
}

label {
  display: grid;
  gap: 8px;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 28, 0.82);
  color: var(--text);
}

:root[data-theme="light"] input,
:root[data-theme="light"] select {
  background: #fff;
}

.full {
  width: 100%;
}

.big-number {
  margin: 18px 0 8px;
}

.btn[disabled],
.quick-card[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.activation-feedback {
  margin-top: 12px;
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.activation-feedback[data-state="error"] {
  color: #d97171;
}

.activation-feedback[data-state="success"] {
  color: var(--success);
}

.vector-mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.mechanics-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mechanics-stats span,
.leg-person {
  color: var(--muted);
  font-size: 14px;
}

.mechanics-stats strong,
.leg-person {
  display: block;
  margin-top: 6px;
}

.leg-person {
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary-dark);
}

.structure-leg.filled {
  border-color: rgba(74, 155, 127, 0.34);
  box-shadow: 0 14px 34px rgba(74, 155, 127, 0.14);
}

.structure-nav-up,
.structure-nav-down {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  margin: 10px auto 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.structure-main-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.structure-main-actions .btn,
.structure-main-actions .structure-transition-row {
  width: 100%;
  justify-content: center;
}

.structure-nav-up[disabled],
.structure-nav-down[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 1280px) {
  .layout,
  .hero,
  .cards-4,
  .cards-3,
  .cards-2,
  .cards-2-1,
  .platform-cards,
  .platform-stats,
  .status-grid,
  .balance-grid,
  .progress-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .vector-mechanics-grid,
  .mechanics-stats,
  .analysis-form-grid,
  .vector-bottom-layout,
  .vector-structure-stage {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .content,
  .sidebar {
    padding: 18px;
  }

  .header,
  .panel-head,
  .platform-top,
  .timeline-head,
  .header-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .header-buttons,
  .hero-actions,
  .platform-tabs {
    width: 100%;
  }

  .structure-legs {
    grid-template-columns: 1fr;
  }

  .vector-actions-panel {
    position: static;
    top: auto;
  }

  .vector-analysis-anchor {
    justify-content: stretch;
    padding-top: 0;
  }

  .vector-analysis-floating-btn {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .btn,
  .pill,
  .theme-btn {
    width: 100%;
  }

  .theme-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.placement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.placement-badge[data-kind="direct"] { background: rgba(74, 155, 127, 0.16); color: #4A9B7F; }
.placement-badge[data-kind="overflow"] { background: rgba(74, 155, 127, 0.16); color: #4A9B7F; }
.placement-badge[data-kind="clone"] { background: rgba(255, 200, 87, 0.16); color: #c98a3c; }
.placement-badge[data-kind="overtake"] { background: rgba(255, 143, 143, 0.16); color: #d97171; }

.level-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.level-switch {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.level-switch.active {
  background: linear-gradient(180deg, rgba(56, 176, 255, 0.98) 0%, rgba(31, 122, 216, 0.96) 100%);
  color: #fffdf8;
  border-color: rgba(143, 231, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(143, 231, 255, 0.14), 0 0 18px rgba(56, 176, 255, 0.45), 0 0 32px rgba(56, 176, 255, 0.22);
}

.level-switch[data-state="idle"] {
  opacity: 0.7;
}

.level-switch[data-state="active"] {
  background: linear-gradient(180deg, rgba(24, 48, 72, 0.98) 0%, rgba(11, 27, 43, 0.96) 100%);
  color: #4A9B7F;
  border-color: rgba(72, 198, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(72, 198, 255, 0.12), 0 0 16px rgba(72, 198, 255, 0.26);
}

.level-switch[data-state="closed"] {
  background: linear-gradient(180deg, rgba(18, 70, 60, 0.98) 0%, rgba(10, 43, 36, 0.96) 100%);
  color: #4A9B7F;
  border-color: rgba(143, 244, 198, 0.34);
  box-shadow: 0 0 0 1px rgba(143, 244, 198, 0.1), 0 0 16px rgba(74, 155, 127, 0.24);
}

.vector-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.node-status-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.node-status-badge[data-state="open"] { background: rgba(74, 155, 127, 0.16); color: #4A9B7F; }
.node-status-badge[data-state="half"] { background: rgba(255, 200, 87, 0.16); color: #c98a3c; }
.node-status-badge[data-state="ready"] { background: rgba(255, 143, 143, 0.16); color: #d97171; }
.node-status-badge[data-state="closed"] { background: rgba(74, 155, 127, 0.16); color: #4A9B7F; }


.leg-benefits li:empty {
  display: none;
}

.structure-wrap {
  max-width: 980px;
  margin: 0 auto 28px;
}

.structure-main-card {
  max-width: 520px;
  margin: 0 auto 26px;
  padding: 34px 28px;
}

.structure-legs {
  align-items: stretch;
}

.structure-leg {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.structure-leg .leg-benefits {
  margin-top: auto;
}

#structure-transition-pill {
  max-width: 260px;
  margin: 14px auto 0;
  padding: 10px 18px;
}

.structure-main-card h3 {
  margin-bottom: 10px;
}

.structure-main-card p {
  margin: 6px 0;
}

.structure-nav-up {
  margin-bottom: 18px;
}

.vector-mechanics-grid .panel,
.cards.cards-2 .panel {
  border-radius: 4px;
}

.structure-transition-row {
  margin-top: 14px;
  text-align: center;
  color: var(--text);
  font-size: 15px;
  opacity: 0.92;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.structure-transition-row[disabled] {
  opacity: 0.45;
  cursor: default;
}

.leg-benefits {
  list-style: none;
  padding-left: 0;
}

.leg-benefits li::marker {
  content: '';
}

.vector-level-lock {
  margin: 18px 0 24px;
  padding: 22px;
  border-radius: 4px;
  background: rgba(255, 244, 210, 0.92);
  color: #7a4f17;
  text-align: center;
}

.vector-level-lock-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.vector-level-lock-message {
  margin-bottom: 14px;
  font-size: 15px;
}

.level-switcher {
  gap: 14px;
}

.level-switch {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  font-size: 20px;
  padding: 0;
}

.level-switch.active {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08), 0 0 0 1px rgba(74, 155, 127, 0.45) inset;
}

.leg-date {
  min-height: 20px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.structure-leg.filled .leg-title {
  margin-top: 12px;
}

.structure-leg.filled .leg-person {
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
  color: var(--text);
}

.structure-leg.filled .leg-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 44px;
}

.leg-login {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.leg-referrer {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--muted);
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.finance-card,
.finance-history-card {
  display: grid;
  gap: 16px;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.muted-text {
  color: var(--muted);
}

.finance-history-list {
  display: grid;
  gap: 14px;
}

.finance-history-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.finance-history-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.finance-history-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-weight: 700;
}

.finance-history-meta small {
  color: var(--muted);
  font-weight: 500;
}

.finance-history-meta.positive span {
  color: #4A9B7F;
}

@media (max-width: 820px) {
  .finance-grid,
  .compact-form {
    grid-template-columns: 1fr;
  }

  .finance-history-item {
    flex-direction: column;
  }

  .finance-history-meta {
    justify-items: start;
  }
}

.finance-feedback {
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}

.finance-feedback[data-state="error"] {
  color: #d97171;
}

.finance-feedback[data-state="success"] {
  color: #4A9B7F;
}

.leg-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.structure-leg.blocked {
  border-color: rgba(255, 200, 87, 0.45);
  background: rgba(255, 200, 87, 0.08);
}

.leg-action-panel {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.leg-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

/* Дашборд: блок «Суммарные начисления» */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(140px, 1fr) minmax(140px, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .summary-card::before {
  content: "";
  position: absolute;
  top: 0; left: 16%; right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 201, 168, 0.55), transparent);
  pointer-events: none;
}

:root[data-theme="dark"] .summary-card:hover {
  border-color: rgba(74, 155, 127, 0.45);
  box-shadow: 0 1px 0 rgba(123, 201, 168, 0.10) inset, 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(74, 155, 127, 0.18);
}

.summary-card .summary-eyebrow {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.summary-card .summary-amount {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.01em;
}

.summary-card .summary-hint {
  font-size: 13px;
  color: var(--muted);
}

.summary-card.summary-main {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--gradient-emerald);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(10, 52, 49, 0.28), 0 0 0 1px rgba(74, 155, 127, 0.18) inset;
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .summary-card.summary-main {
  box-shadow: 0 32px 80px rgba(10, 52, 49, 0.6), 0 0 80px rgba(74, 155, 127, 0.18), 0 0 0 1px rgba(74, 155, 127, 0.30) inset;
}

.summary-card.summary-main::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.summary-card.summary-main .summary-eyebrow {
  color: rgba(255,255,255,0.78);
}

.summary-card.summary-main .summary-amount {
  font-size: 56px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.summary-card.summary-main .summary-hint {
  color: rgba(255,255,255,0.78);
}

@media (max-width: 1180px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .summary-card.summary-main {
    grid-column: span 2;
    grid-row: auto;
  }
  .summary-card.summary-main .summary-amount {
    font-size: 44px;
  }
}

@media (max-width: 640px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-card.summary-main {
    grid-column: auto;
  }
  .summary-card.summary-main .summary-amount {
    font-size: 36px;
  }
}

/* Кошелёк: правила, операции, история */

.wallet-rules-panel {
  margin-top: 24px;
}

.rules-list {
  display: grid;
  gap: 10px;
}

.rules-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.55;
  color: var(--ink, #0c1716);
}

.rules-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: #4A9B7F;
  font-weight: 700;
}

.wallet-grid {
  margin-top: 20px;
}

.wallet-op-card {
  display: grid;
  gap: 14px;
}

.wallet-op-card .panel-head h3 {
  font-size: 18px;
}

.wallet-history-panel {
  margin-top: 22px;
}

.finance-history-empty {
  background: rgba(255,255,255,0.02);
  border-style: dashed;
  border-color: rgba(255,255,255,0.12);
  color: var(--muted);
  text-align: left;
}

.finance-history-empty p {
  margin: 6px 0 0;
}

@media (max-width: 1100px) {
  .wallet-grid.cards.cards-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Mobile/tablet navigation: sticky horizontal scroller
   На ≤1280px sidebar становится верхней полосой. Делаем меню
   sticky-горизонтальным с overflow-x scroll, чтобы навигация
   была всегда под рукой и не съедала первый экран.
   ============================================================ */
@media (max-width: 1280px) {
  .sidebar {
    position: relative;
    padding: 14px 16px 0;
    gap: 12px;
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    z-index: 40;
  }

  :root[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, rgba(6, 20, 18, 0.95) 0%, rgba(13, 30, 27, 0.88) 100%);
  }

  .sidebar .mission-card,
  .sidebar .sidebar-footer {
    display: none;
  }

  .brand-block {
    gap: 12px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 12px;
    max-width: 100%;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 12px 18px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(10, 52, 49, 0.08);
    color: var(--text);
    border: 1px solid rgba(10, 52, 49, 0.10);
  }

  :root[data-theme="dark"] .menu-item {
    background: rgba(74, 155, 127, 0.10);
    border-color: rgba(74, 155, 127, 0.22);
  }

  :root[data-theme="light"] .menu-item.active,
  .menu-item.active {
    background: linear-gradient(135deg, #4A9B7F 0%, #0A3431 100%);
    color: #f7f4ee;
    border-color: rgba(74, 155, 127, 0.55);
    box-shadow: 0 8px 22px rgba(10, 52, 49, 0.32);
  }

  :root[data-theme="dark"] .menu-item.active {
    background: linear-gradient(135deg, #7BC9A8 0%, #4A9B7F 50%, #0A3431 100%);
    color: #ffffff;
    border-color: rgba(123, 201, 168, 0.55);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 28px rgba(74, 155, 127, 0.45);
  }
}

/* На совсем узких экранах ≤640px — sticky шапка */
@media (max-width: 640px) {
  .sidebar {
    position: sticky;
    top: 0;
    padding: 10px 14px 0;
  }
}

/* ============================================================
   Контраст: light-тема override для чипов/бейджей.
   Базовые правила использовали rgba(255,255,255,0.04-0.08) —
   на светлом фоне это невидимо. В dark остаются базовые,
   light получают тёмный rgba.
   ============================================================ */
:root[data-theme="light"] .structure-nav-up,
:root[data-theme="light"] .structure-nav-down,
:root[data-theme="light"] .placement-badge,
:root[data-theme="light"] .level-switch,
:root[data-theme="light"] .node-status-badge,
:root[data-theme="light"] .finance-history-item {
  background: rgba(10, 52, 49, 0.06);
  border-color: rgba(10, 52, 49, 0.14);
  color: var(--text);
}

:root[data-theme="light"] .finance-history-empty {
  background: rgba(10, 52, 49, 0.04);
  border-color: rgba(10, 52, 49, 0.18);
}

/* Сохранить «семантические» цвета бейджей (direct/clone/overtake) на свету */
:root[data-theme="light"] .placement-badge[data-kind="direct"],
:root[data-theme="light"] .placement-badge[data-kind="overflow"] {
  background: rgba(74, 155, 127, 0.16);
  color: #1f5b4f;
}
:root[data-theme="light"] .placement-badge[data-kind="clone"] {
  background: rgba(255, 200, 87, 0.16);
  color: #8c6a23;
}
:root[data-theme="light"] .placement-badge[data-kind="overtake"] {
  background: rgba(217, 113, 113, 0.16);
  color: #8c2a2a;
}

:root[data-theme="light"] .node-status-badge[data-state="open"] {
  background: rgba(74, 155, 127, 0.16);
  color: #1f5b4f;
}
:root[data-theme="light"] .node-status-badge[data-state="half"] {
  background: rgba(255, 200, 87, 0.16);
  color: #8c6a23;
}
:root[data-theme="light"] .node-status-badge[data-state="ready"] {
  background: rgba(217, 113, 113, 0.16);
  color: #8c2a2a;
}

/* iOS theme-color синхронизирован с тёмным фоном по умолчанию;
   глобальный scroll-margin-top даёт зазор для sticky-меню на мобиле */
@media (max-width: 1280px) {
  .tab {
    scroll-margin-top: 110px;
  }
}
