/* ============================================================
   Всё на виду — Главная
   Стили полностью по макету «Главная.html»
   ============================================================ */

/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  --bg: #0D0D0D;
  --surface: #1A1A1A;
  --text-main: #FFFFFF;
  --text-muted: #888888;

  --primary: #C6F54A;
  --primary-hover: #B5E636;
  --primary-text: #000000;

  --purple: #7B61FF;
  --cyan: #00E5FF;

  --border: #2A2A2A;
  --font-sans: 'Inter', sans-serif;
}

/* ============================================================
   СБРОС
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body.landing {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

svg {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

/* ============================================================
   ГРАДИЕНТНЫЕ ПЯТНА НА ФОНЕ
   ============================================================ */
.bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   КОНТЕЙНЕР
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-eye {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-eye-pupil {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.btn-login {
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 60px;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(198, 245, 74, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-main);
  overflow-wrap: break-word;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-large {
  background: var(--primary);
  color: var(--primary-text);
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-large:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-secondary:hover {
  background: var(--surface);
}

/* ============================================================
   ДЕМО-ДАШБОРД
   ============================================================ */
.dashboard-preview {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 100px;
  z-index: 2;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 16px;
  margin-top: 8px;
}

.bar {
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  transition: height 1s ease-out, background 0.3s;
  height: 0;
}

.bar.active {
  background: var(--primary);
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tx-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.tx-icon.in {
  background: rgba(198, 245, 74, 0.1);
  color: var(--primary);
}

.tx-icon.out {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.tx-name {
  font-size: 14px;
  font-weight: 500;
}

.tx-date {
  font-size: 12px;
  color: var(--text-muted);
}

.tx-amount {
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tx-amount.in {
  color: var(--primary);
}

.tx-amount.out {
  color: var(--text-main);
}

.chart-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 0;
}

.donut-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.donut-wrapper:hover {
  transform: scale(1.05);
}

.donut-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#2A2A2A 0% 100%);
  transition: background 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.donut-inner {
  position: absolute;
  width: 70px;
  height: 70px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-inner strong {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.2;
}

.donut-inner span {
  font-size: 10px;
  color: var(--text-muted);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.site-footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* ============================================================
   КУРСОР
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(198, 245, 74, 0.5);
  border-radius: 50%;
  z-index: 9999;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-dot.is-visible,
.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-ring.is-hover {
  width: 48px;
  height: 48px;
  background: rgba(198, 245, 74, 0.08);
  border-color: var(--primary);
}

.cursor-ring.is-click {
  width: 22px;
  height: 22px;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-bottom {
    grid-template-columns: 1fr;
  }

  

  
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .site-nav {
    padding: 16px 0;
  }

  .nav-links,
  .btn-login {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-large,
  .btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .chart-box {
    flex-direction: column;
    text-align: center;
  }

  .legend {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
  }

  .bg-blobs {
    display: none;
  }

  .footer-inner,
  .site-footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .stat-value {
    font-size: 22px;
  }
}

/* ============================================================
   МОБИЛКА — плитки 2×2, компактно (как в приложении)
   ============================================================ */
@media (max-width: 640px) {
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .stat-card {
    padding: 12px 11px !important;
    border-radius: 12px !important;
  }

  .stat-label {
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 6px !important;
    line-height: 1.2;
  }

  .stat-value {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    line-height: 1.1;
    letter-spacing: -0.4px;
  }

  .stat-sub {
    font-size: 9px !important;
    line-height: 1.3;
  }

  .bars {
    height: 16px !important;
    gap: 3px !important;
    margin-top: 6px !important;
  }

  .dashboard-bottom {
    gap: 10px !important;
  }

  .panel {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  .panel-title {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .tx-item {
    padding: 10px 0 !important;
    gap: 10px;
  }

  .tx-name {
    font-size: 13px !important;
  }

  .tx-date {
    font-size: 11px !important;
  }

  .tx-amount {
    font-size: 12px !important;
  }

  .donut-wrapper {
    width: 88px !important;
    height: 88px !important;
  }

  .donut-inner {
    width: 60px !important;
    height: 60px !important;
  }

  .donut-inner strong {
    font-size: 12px !important;
  }

  .chart-box {
    gap: 18px !important;
  }

  .legend-item {
    font-size: 12px !important;
  }

  /* Навигация */
  .site-nav {
    padding: 14px 0 !important;
    margin-bottom: 8px !important;
  }

  .brand {
    font-size: 17px !important;
  }

  .brand-eye {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }

  .btn-primary {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  /* Hero */
  .hero {
    margin: 20px auto 32px !important;
  }

  .badge {
    font-size: 11px !important;
    padding: 5px 12px !important;
    margin-bottom: 16px !important;
  }

  .hero h1 {
    font-size: 30px !important;
    letter-spacing: -1px !important;
    margin-bottom: 16px !important;
  }

  .hero p {
    font-size: 14px !important;
    margin-bottom: 24px !important;
    line-height: 1.55 !important;
  }

  .btn-large,
  .btn-secondary {
    padding: 13px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }

  .hero-actions {
    gap: 10px !important;
  }

  /* Дашборд */
  .dashboard-preview {
    margin-bottom: 32px !important;
  }

  /* Футер */
  .site-footer {
    padding: 16px 0 !important;
  }

  .footer-copy,
  .footer-links a {
    font-size: 11px !important;
  }

  .footer-links {
    gap: 14px !important;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 14px !important;
  }

  .hero h1 {
    font-size: 26px !important;
  }

  .stat-card {
    padding: 11px 9px !important;
  }

  .stat-value {
    font-size: 15px !important;
  }

  .stat-label {
    font-size: 8px !important;
  }

  .btn-primary {
    padding: 9px 13px !important;
    font-size: 12px !important;
  }
}

/* ============================================================
   ГЛАВНАЯ: крупная кнопка-герой, триал, фон
   ============================================================ */

/* Кнопка «Начать бесплатно» — крупнее */
.btn-hero {
  font-size: 19px !important;
  font-weight: 700 !important;
  padding: 20px 52px !important;
  border-radius: 14px !important;
  letter-spacing: -0.2px;
  box-shadow: 0 8px 28px -8px rgba(198, 245, 74, 0.45);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(198, 245, 74, 0.55);
}

.hero-actions {
  margin-bottom: 18px;
}



/* ============================================================
   КНОПКА «ДОБАВИТЬ НА ГЛАВНУЮ» — только мобилка
   ============================================================ */
.pwa-install {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 26px auto 0;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .2s, transform .15s, background .2s;
  -webkit-tap-highlight-color: transparent;
}

.pwa-install:active {
  transform: scale(0.98);
  background: rgba(32, 32, 32, 0.9);
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(198, 245, 74, 0.32));
}

.pwa-install-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-install-text b {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.1px;
}

.pwa-install-text i {
  font-style: normal;
  font-size: 11.5px;
  color: #8A8A8A;
}

.pwa-install-arrow {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: #6A6A6A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-install-arrow svg {
  width: 100%;
  height: 100%;
}

/* Показываем только на мобилке */
@media (max-width: 760px) {
  .pwa-install:not([hidden]) {
    display: flex;
  }
}

/* --- Подсказка для iOS --- */
.pwa-hint {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: pwaFade .2s ease-out;
}

@keyframes pwaFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pwa-hint-box {
  width: 100%;
  max-width: 420px;
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px 22px 18px;
  animation: pwaUp .26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pwaUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.pwa-hint-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.pwa-hint-steps {
  margin: 0 0 20px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pwa-hint-steps li {
  font-size: 13.5px;
  line-height: 1.5;
  color: #A8A8A8;
}

.pwa-hint-steps b {
  color: #C6F54A;
  font-weight: 700;
}

.pwa-hint-close {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: #C6F54A;
  color: #000;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.pwa-hint-close:active {
  background: #B5E636;
}


/* ============================================================
   ЖУРНАЛЬНЫЙ ГЕРОЙ — мобилка (левосторонний, крупный)
   ============================================================ */
@media (max-width: 768px) {

  /* Больше воздуха после меню */
  .site-nav {
    padding: 18px 0 20px;
  }

  .hero {
    text-align: left !important;
    margin: 0 auto 56px !important;
    padding-top: 44px;
    max-width: 100%;
  }

  /* Бейдж — по левому краю */
  .badge {
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-bottom: 22px !important;
    font-size: 11.5px !important;
    padding: 6px 13px !important;
    letter-spacing: 0.2px;
  }

  /* Заголовок — крупно, как в журнале */
  .hero h1 {
    font-size: clamp(40px, 12.5vw, 56px) !important;
    line-height: 0.98 !important;
    letter-spacing: -2.2px !important;
    font-weight: 800 !important;
    text-align: left !important;
    margin: 0 0 24px !important;
    max-width: 100%;
    word-break: normal;
    hyphens: none;
  }

  /* Перенос строки перед акцентом */
  .hero h1 span {
    display: inline;
  }

  /* Описание — по левому краю */
  .hero p {
    text-align: left !important;
    font-size: 15.5px !important;
    line-height: 1.62 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    color: var(--text-muted);
  }

  /* Кнопка — с воздухом */
  .hero-actions {
    margin: 30px 0 0 !important;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero {
    padding: 19px 32px !important;
    font-size: 17px !important;
  }

  /* Много воздуха до графиков */
  .dashboard-preview {
    margin-top: 48px !important;
  }
}

@media (max-width: 400px) {
  .hero {
    padding-top: 36px;
    margin-bottom: 48px !important;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 48px) !important;
    letter-spacing: -1.9px !important;
  }

  .hero p {
    font-size: 14.5px !important;
  }

  .dashboard-preview {
    margin-top: 40px !important;
  }
}


/* ============================================================
   ДАШБОРД — КРУПНЕЕ НА МОБИЛКЕ + воздух между плашками
   ============================================================ */
@media (max-width: 768px) {

  /* 1. Сетка KPI — одна колонка, больше воздуха */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
  }

  /* 2. KPI-карточки — крупнее */
  .stat-card {
    padding: 22px 20px !important;
    border-radius: 16px !important;
  }

  .stat-label {
    font-size: 12.5px !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 10px !important;
  }

  .stat-value {
    font-size: 36px !important;
    letter-spacing: -1.4px;
    margin-bottom: 16px !important;
  }

  .stat-sub {
    font-size: 13px !important;
    line-height: 1.45;
  }

  /* Полоски — толще и выше */
  .bars {
    height: 34px !important;
    gap: 5px !important;
  }

  .bar {
    border-radius: 4px !important;
  }

  /* 3. Нижние блоки — в одну колонку, с воздухом */
  .dashboard-bottom {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .panel {
    padding: 22px 20px !important;
    border-radius: 16px !important;
  }

  .panel-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
  }

  /* 4. Строки операций — крупнее */
  .tx-item {
    padding: 15px 0 !important;
    gap: 14px !important;
  }

  .tx-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 15px !important;
  }

  .tx-name {
    font-size: 15.5px !important;
    font-weight: 600 !important;
  }

  .tx-date {
    font-size: 12.5px !important;
    margin-top: 2px;
  }

  .tx-amount {
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  /* 5. Диаграмма — крупнее */
  .chart-box {
    flex-direction: column !important;
    align-items: center !important;
    gap: 22px !important;
    padding-top: 14px !important;
  }

  .donut-wrapper {
    width: 130px !important;
    height: 130px !important;
  }

  .donut-inner {
    width: 92px !important;
    height: 92px !important;
  }

  .donut-inner strong {
    font-size: 17px !important;
    font-weight: 700 !important;
  }

  .donut-inner span {
    font-size: 11px !important;
  }

  /* 6. Легенда — крупнее */
  .legend {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    margin-top: 4px !important;
  }

  .legend-item {
    font-size: 13.5px !important;
    gap: 8px;
  }

  .legend-color {
    width: 11px !important;
    height: 11px !important;
  }

  /* 7. Воздух между всеми блоками дашборда */
  .dashboard-preview {
    margin-top: 44px !important;
  }

  .dashboard-preview .stats-grid + .dashboard-bottom {
    margin-top: 16px;
  }
}

@media (max-width: 400px) {
  .stat-value {
    font-size: 32px !important;
  }

  .stat-label {
    font-size: 11.5px !important;
  }

  .stat-card {
    padding: 20px 16px !important;
  }

  .panel {
    padding: 20px 16px !important;
  }

  .tx-name {
    font-size: 14.5px !important;
  }

  .tx-amount {
    font-size: 14px !important;
  }

  .donut-wrapper {
    width: 118px !important;
    height: 118px !important;
  }

  .donut-inner {
    width: 84px !important;
    height: 84px !important;
  }

  .stats-grid {
    gap: 12px !important;
  }

  .dashboard-bottom {
    gap: 14px !important;
  }
}

/* ============================================================
   ДАШБОРД СКРЫТ НА МОБИЛКЕ
   ============================================================ */
@media (max-width: 768px) {
  .dashboard-preview {
    display: none !important;
  }
}
/* ============================================================
   МОБИЛЬНЫЙ ФУТЕР — компактно, в пределах экрана
   ============================================================ */
@media (max-width: 768px) {
  .site-footer {
    padding: 16px 0 14px !important;
    margin-top: auto !important;
  }

  .site-footer .container {
    padding: 0 18px !important;
  }

  .site-footer .site-footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    text-align: center;
    flex-wrap: nowrap !important;
  }

  .site-footer .footer-copy {
    order: 1;
    font-size: 11.5px !important;
    color: #7A7A7A;
    white-space: normal;
    flex-basis: auto;
  }

  .site-footer .footer-links {
    order: 2;
    margin-left: 0 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px 14px !important;
    flex-basis: auto;
    max-width: 100%;
  }

  .site-footer .footer-links a {
    font-size: 11px !important;
    color: #6E6E6E;
    white-space: nowrap;
  }

  /* Общий отступ, чтобы низ не прилипал */
  .site-footer .footer-links a:hover { color: #FFFFFF; }
}

@media (max-width: 400px) {
  .site-footer { padding: 14px 0 12px !important; }
  .site-footer .container { padding: 0 14px !important; }
  .site-footer .site-footer-inner { gap: 6px !important; }
  .site-footer .footer-copy { font-size: 11px !important; }
  .site-footer .footer-links { gap: 3px 10px !important; }
  .site-footer .footer-links a { font-size: 10.5px !important; }
}

/* ============================================================
   КОМПАКТНЫЙ ГЕРОЙ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ (высокие телефоны)
   ============================================================ */
@media (max-width: 400px) and (max-height: 620px) {
  .site-nav { padding: 12px 0 14px !important; }

  .hero {
    padding-top: 24px !important;
    margin-bottom: 28px !important;
  }

  .badge {
    margin-bottom: 14px !important;
    font-size: 10.5px !important;
    padding: 5px 11px !important;
  }

  .hero h1 {
    font-size: clamp(30px, 10vw, 38px) !important;
    letter-spacing: -1.5px !important;
    line-height: 0.98 !important;
    margin-bottom: 16px !important;
  }

  .hero p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }

  .hero-actions {
    margin-top: 20px !important;
  }

  .btn-hero {
    padding: 15px 24px !important;
    font-size: 15.5px !important;
    border-radius: 12px !important;
  }

  .pwa-install {
    margin-top: 14px !important;
    padding: 9px 12px !important;
    gap: 10px !important;
  }

  .pwa-install-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .pwa-install-text b { font-size: 12px !important; }
  .pwa-install-text i { font-size: 10.5px !important; }
  .pwa-install-arrow { width: 18px !important; height: 18px !important; }

  .site-footer { padding: 11px 0 10px !important; }
  .site-footer .footer-copy { font-size: 10.5px !important; }
  .site-footer .footer-links a { font-size: 10px !important; }
}

/* Очень маленькие: без бейджа-баннера, только суть */
@media (max-width: 400px) and (max-height: 560px) {
  .badge { display: none !important; }
  .hero { padding-top: 16px !important; }
  .hero h1 { font-size: 30px !important; margin-bottom: 12px !important; }
  .site-footer { padding: 9px 0 8px !important; }
}


/* ============================================================
   О СЕРВИСЕ — секция о сервисе на главной
   ============================================================ */
.about {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.about-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #C6F54A;
  margin-bottom: 14px;
}

.about-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C6F54A;
  box-shadow: 0 0 0 3px rgba(198, 245, 74, 0.14);
  display: block;
}

.about-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.1;
  color: #FFF;
  margin: 0 0 16px;
}

.about-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: #8E8E8E;
  margin: 0;
}

/* ---- Сетка карточек ---- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.about-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: #161616;
  border: 1px solid #262626;
  transition: border-color .2s, transform .2s, background .2s;
}

.about-card:hover {
  border-color: #363636;
  background: #1A1A1A;
  transform: translateY(-2px);
}

.about-card--wide {
  grid-column: span 2;
  background:
    linear-gradient(155deg, rgba(198, 245, 74, 0.04) 0%, transparent 55%),
    #161616;
  border-color: rgba(198, 245, 74, 0.18);
}

.about-card--wide:hover {
  border-color: rgba(198, 245, 74, 0.34);
}

.about-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.about-card-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ic) 13%, transparent);
  color: var(--ic);
  border: 1px solid color-mix(in srgb, var(--ic) 26%, transparent);
}

.about-card-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.about-card-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #C6F54A;
  background: rgba(198, 245, 74, 0.1);
  border: 1px solid rgba(198, 245, 74, 0.2);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}

.about-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: #FFF;
  margin: 0 0 9px;
}

.about-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #8E8E8E;
  margin: 0;
}

/* ---- Факты ---- */
.about-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: #262626;
  border: 1px solid #262626;
  margin-bottom: 26px;
}

.about-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px;
  background: #161616;
}

.about-fact-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 1;
  color: #FFF;
  font-variant-numeric: tabular-nums;
}

.about-fact-num em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: #C6F54A;
  margin-left: 2px;
}

.about-fact-label {
  font-size: 11.5px;
  color: #6E6E6E;
  line-height: 1.35;
}

/* ---- Для кого ---- */
.about-who {
  padding: 24px 22px;
  border-radius: 18px;
  background: #141414;
  border: 1px solid #262626;
  margin-bottom: 26px;
}

.about-who-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #FFF;
  margin: 0 0 18px;
}

.about-who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-who-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-who-emoji {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.about-who-item b {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFF;
}

.about-who-item span:last-child {
  font-size: 12.5px;
  line-height: 1.5;
  color: #7A7A7A;
}

/* ---- CTA ---- */
.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(198, 245, 74, 0.055);
  border: 1px solid rgba(198, 245, 74, 0.18);
}

.about-cta p {
  font-size: 14px;
  color: #B8C99A;
  margin: 0;
}

.about-cta-link {
  font-size: 14px;
  font-weight: 700;
  color: #C6F54A;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}

.about-cta-link:hover { opacity: 0.75; }

/* ---- Меню: база знаний ---- */
.site-nav .nav-links.hero-nav-links,
.site-nav .hero-nav-links,
.hero-nav-links {
  display: flex !important;
  gap: 24px;
  margin: 0 auto 0 32px;
}

.hero-nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #8E8E8E;
  text-decoration: none;
  transition: color .15s;
}

.hero-nav-links a:hover { color: #C6F54A; }

/* ---- Адаптив ---- */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card--wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero-nav-links { display: none; }
}

@media (max-width: 760px) {
  .about {
    padding: 0 18px 56px;
  }

  .about-head { margin-bottom: 26px; }

  .about-lead { font-size: 14px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .about-card--wide { grid-column: span 1; }

  .about-card {
    padding: 18px 16px;
  }

  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
  }

  .about-fact { padding: 16px 14px; }
  .about-fact-num { font-size: 22px; }

  .about-who {
    padding: 18px 16px;
    margin-bottom: 20px;
  }

  .about-who-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-who-item {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
  }

  .about-who-emoji { font-size: 18px; margin-bottom: 0; }
  .about-who-item b { margin-right: 4px; }

  .about-cta {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-card { transition: none; }
}


/* ============================================================
   HERO + DASHBOARD — ПО СЕТКЕ
   ============================================================ */

/* 1. Заголовок крупнее, в 2 строки */
.hero {
  max-width: 1000px;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -3.2px !important;
  margin-bottom: 26px !important;
}

/* Разрешаем перенос на 2 строки */
.hero h1 span {
  display: inline-block;
}

/* 2. Бейдж меньше и аккуратнее */
.badge {
  padding: 5px 13px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  gap: 6px !important;
  background: rgba(198, 245, 74, 0.07) !important;
  border: 1px solid rgba(198, 245, 74, 0.18) !important;
  margin-bottom: 22px !important;
}

.badge svg {
  width: 12px !important;
  height: 12px !important;
  opacity: 0.85;
}

/* 3. Дашборд — по ширине сетки (1240px) */
.dashboard-preview {
  max-width: 1240px !important;
  padding: 0 24px !important;
  margin: 0 auto 100px !important;
  box-sizing: border-box;
}

/* Внутри — та же ширина */
.dashboard-preview > * {
  max-width: 100%;
}

/* KPI-карточки — на всю ширину сетки */
.stats-grid {
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.stat-card {
  padding: 22px 20px !important;
  border-radius: 16px !important;
}

.stat-value {
  font-size: 30px !important;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 11.5px !important;
  margin-bottom: 9px !important;
}

/* Нижние панели — тоже по сетке */
.dashboard-bottom {
  gap: 14px !important;
}

.panel {
  padding: 22px 20px !important;
  border-radius: 16px !important;
}

.panel-title {
  font-size: 16px !important;
  margin-bottom: 14px !important;
}

/* Адаптив */
@media (max-width: 1280px) {
  .dashboard-preview {
    max-width: 100% !important;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(38px, 8vw, 56px) !important;
    letter-spacing: -2px !important;
  }
}

@media (max-width: 760px) {
  .dashboard-preview {
    padding: 0 18px !important;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 46px) !important;
    letter-spacing: -1.6px !important;
    line-height: 1.02 !important;
  }

  .badge {
    font-size: 10px !important;
    padding: 4px 11px !important;
  }

  .stat-card {
    padding: 18px 16px !important;
  }

  .stat-value {
    font-size: 26px !important;
  }

  .panel {
    padding: 18px 16px !important;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: clamp(30px, 9.5vw, 40px) !important;
    letter-spacing: -1.3px !important;
  }
}
