/* ==========================================================================
   CHECK EXPERT — PREMIUM DARK GREY DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Цветовая палитра: строго серые, графитовые и серебристые тона */
  --bg-primary: #121316;
  --bg-secondary: #18191c;
  --bg-card: #212328;
  --bg-card-hover: #262930;
  --bg-input: #1a1b1f;
  --bg-subtle: rgba(255, 255, 255, 0.03);
  --bg-badge: rgba(228, 231, 236, 0.08);

  /* Границы и разделители */
  --border-subtle: #2d3039;
  --border-strong: #363a45;
  --border-accent: #4a4f5c;
  --border-light: rgba(228, 231, 236, 0.2);

  /* Типографика и цвета текста */
  --text-primary: #ffffff;
  --text-secondary: #e4e7ec;
  --text-muted: #9ba1ad;
  --text-dim: #717784;

  /* Акценты: холодное серебро и металл */
  --accent-silver: #e4e7ec;
  --accent-metal: #a6adb9;
  --accent-glow: rgba(228, 231, 236, 0.12);
  --accent-highlight: #ffffff;

  /* Индикаторы статусов */
  --status-green: #34d399;
  --tg-color: #2aabee;
  --wa-color: #25d366;

  /* Шрифты и радиусы */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);

  /* Переходы */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* СБРОС И БАЗОВЫЕ СТИЛИ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(228, 231, 236, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(54, 58, 69, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

img, svg {
  vertical-align: middle;
}

/* ==========================================================================
   ВЕРХНИЙ ИНФО-БАР
   ========================================================================== */
.topbar {
  background-color: #0d0e10;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 8px 0;
  position: relative;
  z-index: 20;
}

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-items {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-item svg {
  color: var(--accent-metal);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-silver);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
}

.topbar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(18, 19, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* ЛОГОТИП */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2a2d34, #18191c);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-silver);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
}

.logo-accent {
  color: #9ba1ad;
  font-weight: 700;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 2px;
}

/* МЕНЮ */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-silver);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ДЕЙСТВИЯ ШАПКИ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1000;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-4px);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* МОБИЛЬНОЕ МЕНЮ ВЫПАДАЮЩЕЕ */
.mobile-menu {
  display: block;
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  height: calc(100vh - 74px);
  background-color: rgba(18, 19, 22, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px 16px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.mobile-nav-link:hover {
  background-color: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-strong);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Основная кнопка (Серебристо-белый акцент) */
.btn-primary {
  background: linear-gradient(180deg, #f0f2f5 0%, #d8dce3 100%);
  color: #121316;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e2e6ed 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25), 0 6px 20px rgba(0, 0, 0, 0.5);
  color: #000;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary-sm {
  background: linear-gradient(180deg, #f0f2f5 0%, #d8dce3 100%);
  color: #121316;
  font-size: 0.875rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}

.btn-primary-sm:hover {
  background: #ffffff;
  color: #000;
}

/* Вторичная графитовая кнопка */
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Мессенджеры */
.btn-tg-sm {
  background-color: rgba(42, 171, 238, 0.1);
  color: #5ac4f8;
  border: 1px solid rgba(42, 171, 238, 0.25);
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.btn-tg-sm:hover {
  background-color: rgba(42, 171, 238, 0.2);
  border-color: rgba(42, 171, 238, 0.5);
  color: #ffffff;
}

.btn-wa-sm {
  background-color: rgba(37, 211, 102, 0.1);
  color: #3fe07b;
  border: 1px solid rgba(37, 211, 102, 0.25);
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.btn-wa-sm:hover {
  background-color: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.success-direct-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-tg-lg {
  background: linear-gradient(135deg, #229ed9 0%, #177aa9 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.25);
}

.btn-tg-lg:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
}

.btn-wa-lg {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-wa-lg:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline-card {
  width: 100%;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  font-size: 0.875rem;
}

.btn-outline-card:hover {
  background-color: var(--accent-silver);
  color: #121316;
  border-color: var(--accent-silver);
}

.btn-outline-banner {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border-strong);
  padding: 14px 28px;
}

.btn-outline-banner:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-silver);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-badge);
  border: 1px solid var(--border-strong);
  color: var(--accent-silver);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  align-self: flex-start;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.title-line {
  display: inline-block;
  white-space: nowrap;
}

.title-line.highlight {
  background: linear-gradient(180deg, #ffffff 30%, #9ba1ad 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-divider {
  color: var(--border-accent);
  font-weight: 300;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   СТИЛИЗОВАННЫЙ КАССОВЫЙ ЧЕК В HERO
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.receipt-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.receipt-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(228, 231, 236, 0.08) 0%, rgba(33, 35, 40, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.receipt-card {
  position: relative;
  z-index: 2;
  background: #191b1f;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.receipt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.receipt-header-strip {
  background-color: #24272e;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-strong);
}

.receipt-dots {
  display: flex;
  gap: 6px;
}

.receipt-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3b3f4c;
}

.receipt-chip {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  background-color: rgba(52, 211, 153, 0.12);
  color: var(--status-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.receipt-body {
  padding: 20px 22px;
  background: 
    linear-gradient(180deg, rgba(25, 27, 31, 0.98) 0%, rgba(20, 21, 24, 0.98) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
}

.receipt-brand {
  text-align: center;
  margin-bottom: 12px;
}

.receipt-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.receipt-sub {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e5e7eb;
}

.receipt-inn, .receipt-meta {
  font-size: 0.6875rem;
  color: #9ca3af;
  margin-top: 2px;
}

.receipt-divider-dashed {
  border-bottom: 1px dashed #374151;
  margin: 12px 0;
}

.receipt-details-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: #9ca3af;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-item-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.75rem;
  color: #f3f4f6;
}

.item-name {
  flex: 1;
}

.item-cost {
  font-weight: 600;
  white-space: nowrap;
}

.receipt-item-sub {
  font-size: 0.68rem;
  color: #9ca3af;
  padding-left: 12px;
}

.receipt-total-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.receipt-row.total {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  padding: 4px 0;
}

.total-sum {
  font-size: 1.05rem;
  color: #ffffff;
}

.receipt-row.payment-type,
.receipt-row.payment-tax {
  font-size: 0.7rem;
  color: #9ca3af;
}

.receipt-fiscal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.fiscal-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.68rem;
  color: #9ca3af;
}

.fiscal-line-badge {
  color: #cbd5e1;
  font-weight: 500;
  margin-top: 4px;
}

.fiscal-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-box {
  background: #ffffff;
  padding: 6px;
  border-radius: 4px;
  color: #121316;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.qr-box svg {
  display: block;
}

.qr-caption {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--status-green);
}

.receipt-barcode-line {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #374151;
  text-align: center;
}

.barcode-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 24px;
  gap: 2px;
  margin-bottom: 4px;
}

.barcode-bars span {
  display: block;
  background-color: #9ca3af;
  width: 2px;
  height: 100%;
}

.barcode-bars span:nth-child(2n) {
  width: 3px;
}

.barcode-bars span:nth-child(3n) {
  width: 1px;
}

.barcode-bars span:nth-child(5n) {
  width: 4px;
}

.barcode-number {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #9ca3af;
}

.receipt-tear-edge {
  width: 100%;
  height: 14px;
  line-height: 0;
  position: relative;
}

.receipt-tear-edge svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Плавающие плашки вокруг чека */
.float-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(33, 35, 40, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  transition: transform 0.3s ease;
}

.float-badge:hover {
  transform: translateY(-2px);
}

.float-badge-1 {
  top: 15%;
  right: -24px;
}

.float-badge-2 {
  bottom: 25px;
  left: -24px;
}

.float-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(52, 211, 153, 0.15);
  color: var(--status-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-icon-wrap.lock {
  background-color: rgba(228, 231, 236, 0.12);
  color: var(--accent-silver);
}

.float-text {
  display: flex;
  flex-direction: column;
}

.float-text strong {
  font-size: 0.8125rem;
  color: #ffffff;
  line-height: 1.2;
}

.float-text span {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   СЕКЦИИ И ЗАГОЛОВКИ
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-darker {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-silver);
  background-color: var(--bg-badge);
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   ВИДЫ ЧЕКОВ (СЕТКА)
   ========================================================================== */
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.type-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(228, 231, 236, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.type-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.type-card:hover::before {
  opacity: 1;
}

.type-card-wide {
  grid-column: span 2;
}

.type-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.type-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-silver);
  transition: var(--transition);
}

.type-card:hover .type-icon-box {
  background-color: rgba(228, 231, 236, 0.1);
  border-color: var(--border-strong);
  color: #fff;
}

.type-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.type-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.type-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.type-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.type-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.type-features li svg {
  color: var(--accent-metal);
  flex-shrink: 0;
}

.type-card-footer {
  margin-top: auto;
}

/* ==========================================================================
   ПРЕИМУЩЕСТВА (СЕТКА 4x1)
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.adv-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.adv-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.adv-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.adv-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-silver);
  margin-bottom: 20px;
}

.adv-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.adv-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.adv-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-silver);
  background-color: rgba(228, 231, 236, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   КАК МЫ РАБОТАЕМ (STEP-BY-STEP)
   ========================================================================== */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0, var(--border-strong) 6px, transparent 6px, transparent 12px);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #191b1f;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 0 6px var(--bg-primary);
  transition: var(--transition);
}

.step-item:hover .step-badge {
  border-color: var(--accent-silver);
  background-color: var(--bg-card);
}

.step-counter {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.step-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.step-icon {
  color: var(--accent-silver);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.step-hint {
  font-size: 0.75rem;
  color: var(--accent-metal);
  font-weight: 500;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* ==========================================================================
   КАЛЬКУЛЯТОР И ФОРМА РАСЧЁТА
   ========================================================================== */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}

.calculator-info {
  display: flex;
  flex-direction: column;
}

.calc-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.calc-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.calc-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.calc-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.calc-benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: rgba(228, 231, 236, 0.08);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-silver);
  flex-shrink: 0;
  margin-top: 2px;
}

.calc-benefit-item strong {
  display: block;
  font-size: 0.9375rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.calc-benefit-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Мессенджеры в калькуляторе */
.direct-messengers-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
}

.direct-messengers-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.direct-messengers-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* КАРТОЧКА ФОРМЫ */
.form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-card-header {
  margin-bottom: 28px;
}

.form-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-card-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.interactive-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.range-value-display {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.9375rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-silver);
  box-shadow: 0 0 0 3px rgba(228, 231, 236, 0.12);
  background-color: #21242b;
}

.form-control::placeholder {
  color: var(--text-dim);
}

/* Кастомный селект */
.custom-select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.form-select option {
  background-color: #1e2025;
  color: #ffffff;
  padding: 10px;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

/* Поле с иконкой / валютой */
.input-with-icon {
  position: relative;
}

.input-currency {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Ползунок слайдера */
.range-slider-wrapper {
  margin-top: 6px;
}

.range-slider {
  width: 100%;
  height: 6px;
  background: #2d3039;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #212328;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Блок ориентировочной цены */
.estimate-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estimate-lbl {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.estimate-value {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
}

.estimate-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.form-privacy-notice {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
}

/* Успешное состояние формы */
.form-success-state {
  display: none;
  text-align: center;
  padding: 40px 10px;
}

.form-success-state.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(52, 211, 153, 0.15);
  color: var(--status-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-state h4 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.form-success-state p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   FAQ АККОРДЕОН
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-silver);
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-metal);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  background-color: rgba(228, 231, 236, 0.15);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   ПРИЗЫВ К ДЕЙСТВИЮ (CTA BANNER)
   ========================================================================== */
.cta-banner-section {
  padding: 80px 0;
}

.cta-banner-card {
  background: linear-gradient(135deg, #1d1f25 0%, #151619 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(228, 231, 236, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  max-width: 600px;
}

.cta-banner-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-silver);
  background-color: var(--bg-badge);
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.cta-banner-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 250px;
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer {
  background-color: #0b0c0e;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
  display: inline-block;
}

.footer-contact-text {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-messengers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-msg-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.footer-msg-link:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: #fff;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 820px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-window {
  background-color: #1a1c22;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-silver);
  background-color: var(--bg-badge);
  border: 1px solid var(--border-strong);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 30px 10px 10px;
}

.modal-success.active {
  display: block;
}

.modal-success h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-success p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   КНОПКА СКРОЛЛА НАВЕРХ
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top-btn:hover {
  background-color: var(--accent-silver);
  color: #121316;
  transform: translateY(-4px);
}

/* ==========================================================================
   АДАПТИВНОСТЬ (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-title {
    font-size: 2.35rem;
  }
  
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .type-card-wide {
    grid-column: span 2;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .steps-timeline::before {
    display: none;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .float-badge-1 {
    right: 0;
  }

  .float-badge-2 {
    left: 0;
  }
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  /* Скрываем широкие кнопки мессенджеров из шапки на мобильных, оставляем логотип, компактную кнопку заказа и гамбургер */
  .header-actions .btn-tg-sm,
  .header-actions .btn-wa-sm {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-container {
    height: 64px;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu {
    top: 64px;
    height: calc(100vh - 64px);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-badge {
    align-self: center;
    max-width: 100%;
    text-align: center;
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .hero-title {
    justify-content: center;
    font-size: 2rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .float-badge-1 {
    right: 0;
  }

  .float-badge-2 {
    left: 0;
  }

  .cta-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 36px 20px;
  }

  .cta-banner-actions {
    width: 100%;
    min-width: 0;
  }
}

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

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .hero-section {
    padding: 30px 0 50px;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
    gap: 6px 6px;
  }

  .title-line {
    white-space: normal;
    display: inline;
  }

  .title-divider {
    display: inline;
  }

  .hero-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    width: 100%;
  }

  .hero-cta-group .btn-primary {
    width: 100%;
    padding: 14px 18px;
  }

  .hero-messengers {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-messengers .btn {
    width: 100%;
    white-space: normal;
    font-size: 0.9375rem;
    padding: 12px 14px;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
  }

  .stat-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-align: center;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  /* Чек на мобильном */
  .hero-visual {
    width: 100%;
    overflow: hidden;
  }

  .receipt-card-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .receipt-card {
    font-size: 0.6875rem;
    max-width: 100%;
  }

  .receipt-body {
    padding: 16px 12px;
  }

  .receipt-item-line {
    font-size: 0.7rem;
    gap: 8px;
  }

  .item-name {
    word-break: break-word;
  }

  .receipt-row.total {
    font-size: 0.875rem;
  }

  .total-sum {
    font-size: 0.95rem;
  }

  .receipt-fiscal {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .fiscal-left {
    align-items: center;
  }

  .float-badge {
    position: static;
    margin-top: 10px;
    width: 100%;
    box-shadow: none;
    justify-content: flex-start;
  }

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

  .type-card {
    padding: 20px 16px;
  }

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

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

  .adv-card {
    padding: 20px 16px;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-badge {
    margin-bottom: 12px;
    width: 40px;
    height: 40px;
  }

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

  .calculator-wrapper {
    gap: 28px;
  }

  .calc-title {
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .form-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .direct-messengers-box {
    padding: 16px 14px;
  }

  .direct-messengers-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .direct-messengers-buttons .btn {
    width: 100%;
    white-space: normal;
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  .cta-banner-card {
    padding: 28px 16px;
    border-radius: var(--radius-lg);
  }

  .cta-banner-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .cta-banner-desc {
    font-size: 0.9375rem;
  }

  .cta-banner-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }

  .footer-msg-link {
    width: 100%;
    justify-content: center;
  }

  .modal-window {
    padding: 24px 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .scroll-top-btn {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .logo-title {
    font-size: 1.05rem;
  }

  .logo-sub {
    display: none;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .header-actions .btn-primary-sm {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .receipt-title {
    font-size: 0.8125rem;
  }

  .receipt-sub {
    font-size: 0.75rem;
  }
}
