:root {
  --bg: #071424;
  --panel: #0b1c2d;
  --panel2: #0e243a;
  --text: #e8f1ff;
  --muted: #a8b7cc;
  --line: #17324b;
  --blue: #00a6ff;
  --blue2: #1b7fff;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --block-gap: 32px;
}

/* Светлая тема для дашборда и страницы авторизации */
.dashBody {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel2: #f0f2f5;
  --text: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #1e90ff;
  --blue2: #007bff;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  --block-gap: 32px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  /* Убраны градиенты, оставлен только чистый цвет фона */
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Единый контейнер для всего контента */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(14px 14px at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, rgba(0, 166, 255, 1), rgba(27, 127, 255, 1));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 30px rgba(0, 166, 255, 0.18);
  flex: 0 0 auto;
}

/* Глобальные стили кнопок */
.btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-size: 15px;
  line-height: 1.4;
  min-width: 120px;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.btnPrimary {
  background: linear-gradient(135deg, rgba(0, 166, 255, 1), rgba(27, 127, 255, 1));
  border-color: rgba(0, 166, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0, 166, 255, 0.18);
}

.btnPrimary:hover {
  filter: brightness(1.5);
}

.btnGhost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

/* Кнопка Log in в шапке */
.navCtas .btn.btnSmall {
  padding: 10px 16px;
  font-size: 15px;
  min-width: 120px;
  height: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Остальные маленькие кнопки (в дашборде) */
.btnSmall:not(.navCtas .btn) {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 10px;
  min-width: auto;
}

.note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.badgePill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

/* Top Navigation */
.topNav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(7, 20, 36, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brandInline {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .brandInline {
    flex-direction: column;
    text-align: center;
  }
}

.brandInline h1 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.brandInline small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.navLinks a {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.navLinks a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.navCtas {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 30px;
  width: 100%;
}

.heroGrid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.heroLeft {
  padding: 22px;
  width: 100%;
  text-align: center;
}

.hero h2 {
  margin: 20px 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero p {
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 60ch;
}

/* Кнопки и статистика */
.heroCtas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto 24px;
}

.statsRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-content: center;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .statsRow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .heroCtas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .heroCtas .btn {
    width: 100%;
  }
}

.stat {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.stat .v {
  font-size: 18px;
  font-weight: 900;
}

.stat .l {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

/* Sections */
.section {
  padding: 8px 0;
  margin-bottom: 0;
}

.section:last-of-type {
  margin-bottom: 0;
}

.sectionHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.sectionHeader h3 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.5px;
  font-weight: 900;
}

.sectionHeader p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

/* Benefits */
.benefitList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefitRow {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 14px;
  padding: 18px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.benefitRow:before {
  content: '';
  position: absolute;
  inset: -120px -120px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 166, 255, 0.22), transparent 62%);
  transform: rotate(12deg);
  pointer-events: none;
}

.benefitRow.reverse {
  grid-template-columns: 420px 1fr;
}

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

.bText h4 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.1px;
}

.bText .bSub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.bStack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.bMedia {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
}

.phoneImg {
  width: min(380px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 600px) {
  .phoneImg {
    max-width: 280px;
  }
}

/* Header inside benefits (without card) */
.benefit-header {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: var(--block-gap) 0;
}

.benefit-header .bText {
  padding: 0;
}

.benefit-header h4 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 0 10px 0;
  line-height: 1.1;
}

.benefit-header .bSub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.benefitList .benefitRow:last-child {
  margin-bottom: var(--block-gap);
}

/* Packages */
.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .packages {
    grid-template-columns: 1fr;
  }
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--green);
  flex: 0 0 auto;
  margin-top: 1px;
  font-weight: 900;
}

.pkg {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.pkg .name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.pkg .price {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 8px;
}

.pkg .sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pkg ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pkg li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pkg.highlight {
  border-color: rgba(0, 166, 255, 0.22);
  background: rgba(0, 166, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 166, 255, 0.08) inset, var(--shadow);
}

#packages {
  margin-top: 0;
  margin-bottom: 0;
}

/* CONTACT SECTION */
.contactSection {
  background: var(--bg); /* убраны градиенты */
  padding: 0px 0;
  margin: 0;
}

.contactInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .contactInner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.contactHeading {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1px;
  margin: 0 0 18px 0;
  font-weight: 900;
}

.contactPanel {
  padding: 18px;
}

.contactSplit {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 820px) {
  .contactSplit {
    grid-template-columns: 1fr;
  }
}

.contactTextBlock .contactTitle {
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 16px;
}

.contactTextBlock .contactText {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.formCard {
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.formTitle {
  font-weight: 900;
  margin: 0 0 10px;
  font-size: 14px;
}

.contactForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .contactForm {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px 0;
}

.field .help {
  margin-top: 6px;
  color: rgba(168, 183, 204, 0.75);
  font-size: 11px;
}

.input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  width: 100%;
}

.input::placeholder {
  color: rgba(168, 183, 204, 0.65);
}

.contactActions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.contactActions .btn {
  flex: 1 1 0;
  min-width: 160px;
  text-align: center;
}

@media (max-width: 400px) {
  .contactActions {
    flex-direction: column;
  }
  .contactActions .btn {
    width: 100%;
  }
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 18px;
  padding: 16px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.contact-info {
  margin: 20px 0;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0.9);
}

.contact-info-item a {
  color: var(--blue);
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.pkg.highlight .badgePill {
  background: linear-gradient(135deg, rgba(0, 166, 255, 1), rgba(27, 127, 255, 1));
  border-color: rgba(0, 166, 255, 0.35);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 166, 255, 0.3);
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 0px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 18px;
  padding: 16px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.footer-logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 18px;
  border-radius: 4px;
}

.footer-text {
  line-height: 1.4;
}

/* ========== DASHBOARD STYLES ========== */
.btnDanger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

/* Default desktop sidebar */
.sidebar {
  padding: 18px;
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  overflow: auto;
}

@media (max-width: 980px) {
  .sidebar {
    position: relative;
    height: auto;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.brand h1 {
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.nav button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav button:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav button.active {
  background: rgba(0, 166, 255, 0.1);
  border-color: rgba(0, 166, 255, 0.22);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(0, 166, 255, 0.08) inset;
}

.nav .pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.sidebarFooter {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sidebarFooter .btn {
  width: 100%;
  justify-content: center;
  margin: 0;
}

.main {
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.topbar .title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar h2 {
  margin: 0;
  font-size: 16px;
}

.topbar p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kpis {
    grid-template-columns: 1fr;
  }
}

.kpi {
  padding: 14px;
}

.kpi .label {
  color: var(--muted);
  font-size: 12px;
}

.kpi .value {
  font-size: 20px;
  font-weight: 900;
  margin-top: 8px;
}

.kpi .sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.sectionBox {
  padding: 14px;
}

.sectionHeaderDash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sectionHeaderDash h3 {
  margin: 0;
  font-size: 14px;
}

.sectionHeaderDash .controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tableWrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.bGreen {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.1);
}

.bRed {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.1);
}

.bAmber {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.12);
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modalOverlay.open {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  padding: 14px;
}

.modalHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modalHeader h3 {
  margin: 0;
  font-size: 14px;
}

.modalHeader p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.closeX {
  all: unset;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.closeX:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .formGrid {
    grid-template-columns: 1fr;
  }
}

.toastWrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}

.toast {
  width: min(360px, calc(100vw - 32px));
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 28, 45, 0.92);
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.toast .tTitle {
  font-weight: 900;
  font-size: 13px;
}

.toast .tMsg {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.toast .tIcon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.auth-card .field {
  margin-bottom: 20px;
}

.auth-card .field:last-of-type {
  margin-bottom: 0;
}

/* Controls styling */
.sectionHeaderDash .controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sectionHeaderDash .controls select,
.sectionHeaderDash .controls .input,
.sectionHeaderDash .controls .btnSmall {
  height: 40px;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 13px;
  font-family: inherit;
}

.sectionHeaderDash .controls .input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 0 12px;
  line-height: 40px;
}

.sectionHeaderDash .controls select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 0 30px 0 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  line-height: 40px;
  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='%23a8b7cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.sectionHeaderDash .controls select:hover,
.sectionHeaderDash .controls .input:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.sectionHeaderDash .controls select:focus,
.sectionHeaderDash .controls .input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 166, 255, 0.2);
}

.sectionHeaderDash .controls select option {
  background: var(--panel);
  color: var(--text);
}

.sectionHeaderDash .controls .btnSmall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.sectionHeaderDash .controls .btnSmall:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
  .sectionHeaderDash .controls select,
  .sectionHeaderDash .controls .input,
  .sectionHeaderDash .controls .btnSmall {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* === Modal improvements === */
.modalOverlay {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  color: var(--text);
}

.modal .modalHeader p {
  color: var(--muted);
}

.modal .closeX {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.modal .closeX:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal .input,
.modal select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 10px 30px 10px 12px;
  border-radius: 12px;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  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='%23a8b7cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.modal .input:focus,
.modal select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 166, 255, 0.3);
}

.modal .help {
  color: var(--muted);
}

.modal select option {
  background: var(--panel);
  color: var(--text);
}

.modal #mBody {
  margin-bottom: 20px;
}

/* ====== Burger icon shared ====== */
.navBurger,
.dashBurger {
  all: unset;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: none;
  place-items: center;
}

.navBurger:hover,
.dashBurger:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.burgerLines {
  width: 18px;
  height: 2px;
  background: rgba(232, 241, 255, 0.92);
  border-radius: 999px;
  position: relative;
  display: block;
}

.burgerLines::before,
.burgerLines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(232, 241, 255, 0.92);
  border-radius: 999px;
}

.burgerLines::before {
  top: -6px;
}

.burgerLines::after {
  top: 6px;
}

/* ====== Landing mobile drawer ====== */
.siteOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 19;
}

body.siteNavOpen .siteOverlay {
  display: block;
}

@media (max-width: 900px) {
  .navBurger {
    display: grid;
  }

  .navLinks {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--panel);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
  }

  body.siteNavOpen .navLinks {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navLinks a {
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    text-align: center;
  }
}

/* ====== Dashboard drawer + overlay ====== */
.dashOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 40;
}

.dashSideTop {
  padding: 10px 50px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.dashClose {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  display: none;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

@media (max-width: 980px) {
  .dashClose {
    display: grid;
  }
}

.dashClose:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.topbarResponsive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbarLeft {
  min-width: 0;
}

.topbarRight {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 980px) {
  .dashBody .dashBurger {
    display: grid;
  }

  .dashBody .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(340px, 88vw);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    border-radius: 0;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    background: var(--panel) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .dashBody .main {
    padding: 14px;
  }

  body.dashNavOpen .dashOverlay {
    display: block;
  }

  body.dashNavOpen .dashBody .sidebar,
  body.dashNavOpen .sidebar {
    transform: translateX(0);
  }

  .dashBody .topbar {
    padding: 12px 12px;
    margin-bottom: 12px;
  }

  .dashBody .topbarRight {
    gap: 8px;
  }

  .dashBody .topbarRight .btnSmall {
    padding: 10px 12px;
    min-width: auto;
  }
}

@media (max-width: 520px) {
  .dashBody .topbarRight a.btnSmall {
    display: none;
  }
}

/* Дополнительные улучшения адаптива дашборда */
@media (max-width: 480px) {
  .dashBody .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 640px) {
  .topbar .title h2 {
    font-size: 14px;
  }
  .topbar .title p {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .topbarRight .btnSmall {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .kpi {
    padding: 12px;
  }
  .kpi .value {
    font-size: 18px;
  }
}

.tableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ====== Мобильная адаптация таблиц ====== */
@media screen and (max-width: 760px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
  }

  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
    text-align: right;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    margin-right: 10px;
    text-align: left;
    flex: 1;
  }

  td > * {
    text-align: right;
  }

  .badge {
    margin-left: auto;
  }
}

/* Дополнительные фиксы для очень маленьких экранов */
@media (max-width: 480px) {
  .dashBody .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .kpi {
    padding: 10px;
  }

  .kpi .value {
    font-size: 16px;
  }

  .kpi .sub {
    font-size: 10px;
  }

  .topbar {
    padding: 10px 8px;
  }

  .topbar .title h2 {
    font-size: 13px;
  }

  .topbar .title p {
    font-size: 10px;
  }

  .btnSmall {
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* Глобальная защита от горизонтального скролла */
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.container,
.contactInner,
.shell,
.main,
.sidebar,
.topbar,
.kpis,
.sectionBox {
  max-width: 100%;
  box-sizing: border-box;
}

/* Исправления для дашборда – гарантия отсутствия горизонтального скролла */
* {
  box-sizing: border-box;
}

.dashBody .container,
.dashBody .shell,
.dashBody .main,
.dashBody .sidebar,
.dashBody .topbar,
.dashBody .kpis,
.dashBody .sectionBox,
.dashBody .tableWrap,
.dashBody .modal {
  max-width: 100%;
}

@media (max-width: 760px) {
  .dashBody table {
    min-width: 0 !important;
  }
}

@media (max-width: 480px) {
  .dashBody .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .dashBody .main {
    padding: 10px;
  }
  .dashBody .topbar {
    padding: 10px 8px;
  }
  .dashBody .kpi {
    padding: 10px;
  }
  .dashBody .sectionBox {
    padding: 10px;
  }
  .dashBody .btnSmall {
    padding: 6px 8px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .dashBody .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .dashBody .main {
    padding: 6px;
  }
  .dashBody .kpi {
    padding: 6px;
  }
  .dashBody .kpi .value {
    font-size: 16px;
  }
  .dashBody .kpi .sub {
    font-size: 9px;
  }
  .dashBody .topbar {
    padding: 6px 4px;
  }
  .dashBody .topbar .title h2 {
    font-size: 13px;
  }
  .dashBody .topbar .title p {
    font-size: 10px;
  }
  .dashBody .btnSmall {
    padding: 4px 6px;
    font-size: 11px;
  }
}

@media screen and (max-width: 760px) {
  .dashBody td {
    word-break: break-word;
    white-space: normal;
  }
  .dashBody td .badge {
    margin-left: auto;
    flex-shrink: 0;
  }
}

.dashBody {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 480px) {
  .sidebarFooter .btn {
    padding: 12px 10px;
    font-size: 14px;
    min-width: 120px;
    white-space: nowrap;
  }
  .nav button {
    padding: 12px 10px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .sidebarFooter .btn {
    padding: 10px 8px;
    font-size: 13px;
    min-width: 100px;
  }
  .nav button {
    padding: 10px 8px;
    font-size: 13px;
  }
}

/* ====== Мобильный логотип внутри меню ====== */
.navBrandMobile {
  display: none;
}

@media (max-width: 600px) {
  .brandInline > div {
    display: none;
  }

  body.siteNavOpen .navBrandMobile {
    display: block;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  body.siteNavOpen .navBrandMobile .logo-img {
    height: 48px;
    margin-bottom: 8px;
  }

  body.siteNavOpen .navBrandMobile h1 {
    font-size: 16px;
    margin: 0;
  }

  body.siteNavOpen .navBrandMobile small {
    font-size: 12px;
    color: var(--muted);
  }
}

/* ====== УВЕЛИЧИВАЕМ КНОПКИ НА СТРАНИЦЕ АВТОРИЗАЦИИ ====== */
.auth-card .btnSmall {
  padding: 12px 16px;
  font-size: 15px;
  height: auto;
  min-width: 120px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .auth-card .btnSmall {
    padding: 10px 14px;
    font-size: 14px;
    min-width: 100px;
  }
}

@media (max-width: 400px) {
  .auth-card div[style*='display:flex'] {
    flex-direction: column;
    gap: 8px;
  }
  .auth-card .btnSmall {
    width: 100%;
    min-width: 0;
  }
}

/* Верхняя полоса с логотипом в дашборде */
.topLogoRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.topLogoRow .logo-img {
  height: 36px;
  width: auto;
}

.topLogoRow h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.topLogoRow small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .topLogoRow {
    padding: 8px 0 12px;
  }
  .topLogoRow h4 {
    font-size: 14px;
  }
  .topLogoRow small {
    font-size: 10px;
  }
}

/* Светлая тема для дашборда – переопределение всех компонентов */
.dashBody {
  background: var(--bg);
}

.dashBody .card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashBody .btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.dashBody .btn:hover {
  background: var(--panel2);
}

.dashBody .btnPrimary {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border-color: var(--blue);
  color: white;
}

.dashBody .btnGhost {
  background: transparent;
  border-color: var(--line);
}

.dashBody .topbar {
  background: var(--panel);
  border-color: var(--line);
}

.dashBody .sidebar {
  background: var(--panel);
  border-color: var(--line);
}

.dashBody .input,
.dashBody select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.dashBody .input::placeholder {
  color: var(--muted);
}

.dashBody table {
  background: var(--panel);
}

.dashBody th {
  background: var(--panel2);
  color: var(--muted);
  font-weight: 600;
}

.dashBody td {
  border-color: var(--line);
  color: var(--text);
}

.dashBody .badge {
  background: var(--panel2);
  border-color: var(--line);
}

.dashBody .bGreen {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--green);
  color: var(--green);
}

.dashBody .bRed {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--red);
  color: var(--red);
}

.dashBody .bAmber {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--amber);
  color: var(--amber);
}

.dashBody .badge .dot {
  background: currentColor;
}

.dashBody .modal {
  background: var(--panel);
  border-color: var(--line);
}

.dashBody .closeX {
  background: var(--panel2);
  border-color: var(--line);
}

.dashBody .nav button {
  color: var(--muted);
}

.dashBody .nav button:hover {
  background: var(--panel2);
  border-color: var(--line);
}

.dashBody .nav button.active {
  background: rgba(30, 144, 255, 0.1);
  border-color: var(--blue);
  color: var(--blue);
}

.dashBody .kpi {
  background: var(--panel);
  border-color: var(--line);
}

.dashBody .kpi .label {
  color: var(--muted);
}

.dashBody .kpi .value {
  color: var(--text);
}

.dashBody .topLogoRow {
  border-color: var(--line);
}

.dashBody .topLogoRow small {
  color: var(--muted);
}

.dashBody .toast {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.dashBody .toast .tTitle {
  color: var(--text);
}

.dashBody .toast .tMsg {
  color: var(--muted);
}

.dashBody .toast .tIcon {
  border-color: var(--line);
  background: var(--panel2);
}

.dashBody .dashBurger {
  border: 1px solid #cbd5e1;       /* светло-серая рамка */
  background-color: #ffffff;       /* белый фон */
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dashBody .dashBurger:hover {
  border-color: var(--blue);       /* синяя рамка при наведении */
  background-color: #f8fafc;       /* чуть темнее при наведении */
}

@media screen and (max-width: 760px) {
  .dashBody tr {
    background: var(--panel);
    border-color: var(--line);
  }
  .dashBody td {
    border-color: var(--line);
  }
  .dashBody td::before {
    color: var(--muted);
  }
}

.dashBody .btnPrimary:hover {
  color: #333333; /* тёмный текст */
  filter: brightness(1.05); /* можно оставить или убрать */
}

/* Улучшение видимости полей ввода в светлой теме */
.dashBody .input,
.dashBody select {
  border: 1px solid #cbd5e1; /* более тёмный, чем #e5e7eb */
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.dashBody .input:focus,
.dashBody select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.2), inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Явная обводка для полей ввода в дашборде (всегда видимая) */
.dashBody .input,
.dashBody select {
  border: 1px solid #94a3b8 !important;  /* средне-серая граница */
}

/* При фокусе можно подсветить синим */
.dashBody .input:focus,
.dashBody select:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(30,144,255,0.2);
}
