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

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Верхняя панель: надёжная адаптивность */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px clamp(16px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 21px);
  letter-spacing: -0.6px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-badge-icon {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 1.8vw, 22px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}

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

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s;
}
.btn-ghost:hover {
  color: var(--ink);
}

.btn-primary {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: var(--blue-hover);
}

/* Кнопка мобильного меню */
.nav-burger-btn {
  display: none;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  flex-shrink: 0;
}

/* Мобильная выпадающая шторка */
.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  box-shadow: 0 16px 32px rgba(32, 51, 77, 0.12);
  animation: slideDown 0.2s ease;
}
.mobile-menu-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu-drawer a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-subtle);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Основной контейнер */
.page-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

/* ============================================================== */
/* ХЕДЕР С ВЕРТИКАЛЬНОЙ АВТОКАРТОЙ И ПРЕДМЕТНЫМ СРАВНЕНИЕМ */
/* ============================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.hero-title {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 750;
  letter-spacing: -1.4px;
  line-height: 1.12;
  color: var(--ink-deep);
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}

/* ФИРМЕННЫЙ РЕДИЗАЙН БЛОКА СРАВНЕНИЯ */
.brand-comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.comp-card {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
}

.comp-card.legacy {
  background: #fafcfe;
  border-color: #e2e8f0;
}

.comp-card.modern {
  background: #eaf2fd;
  border-color: var(--blue-border);
  box-shadow: 0 4px 16px rgba(36, 91, 214, 0.06);
}

.comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comp-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.comp-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.comp-card.legacy .comp-tag {
  background: var(--red-soft);
  color: var(--red);
}
.comp-card.modern .comp-tag {
  background: white;
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.comp-list {
  list-style: none;
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comp-card.legacy .comp-list li {
  color: #72849a;
}
.comp-card.legacy .comp-list li span.bullet {
  color: var(--red);
  font-weight: 700;
}

.comp-card.modern .comp-list li {
  color: var(--ink);
  font-weight: 500;
}
.comp-card.modern .comp-list li span.bullet {
  color: var(--green);
  font-weight: 700;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ВЕРТИКАЛЬНАЯ АВТОКАРТА ПОД СТЕКЛОМ */
.card-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.car-badge-vertical {
  width: 100%;
  max-width: 330px;
  background: #ffffff;
  border: 1px solid #d5deea;
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow:
    0 20px 45px -10px rgba(32, 51, 77, 0.12),
    0 0 0 1px rgba(220, 227, 236, 0.6);
  position: relative;
  overflow: hidden;
}

.glass-sheen {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.badge-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.badge-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.badge-nfc-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--canvas);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.badge-prompt-text {
  text-align: center;
  margin-bottom: 16px;
}
.badge-prompt-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.badge-prompt-text p {
  font-size: 12px;
  color: var(--muted);
}

.badge-qr-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #ffffff;
  border: 2px solid var(--ink-deep);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: grid;
  place-items: center;
}

.badge-bottom-info {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

.badge-code-serial {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.badge-subnote {
  font-size: 11px;
  color: #465c7b;
  margin-top: 4px;
  font-weight: 500;
}

.card-placement-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* КОМПАКТНЫЙ СТРИП ДОВЕРИЯ */
.trust-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 28px;
  margin-bottom: 72px;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================================== */
/* НОВАЯ ГРАФИЧЕСКАЯ СЕКЦИЯ: КАК ЭТО РАБОТАЕТ ЗА 3 ШАГА */
/* ============================================================== */

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

.section-title {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.8px;
  color: var(--ink-deep);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.step-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(32, 51, 77, 0.08);
  border-color: var(--blue-border);
}

/* Область иллюстрации в карточке */
/* ============================================================== */
/* ЕДИНЫЙ ВЕКТОРНЫЙ СТИЛЬ И ЖИВАЯ АНИМАЦИЯ ВСЕХ 3 ШАГОВ */
/* ============================================================== */

.step-image-wrap {
  height: 200px;
  background: #eef4fa;
  background-image: radial-gradient(#d5e2ed 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  border-bottom: 1px solid var(--line-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* --- ШАГ 1: Анимация камеры и сканирования --- */
.camera-scan-scene {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-target-card {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(32, 51, 77, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.scan-phone-device {
  width: 175px;
  height: 170px;
  background: #0b111e;
  border-radius: 22px 22px 0 0;
  border: 3px solid #1e293b;
  border-bottom: none;
  position: absolute;
  right: 22px;
  bottom: -15px;
  box-shadow: -10px 14px 35px rgba(11, 17, 30, 0.3);
  padding: 7px 7px 0;
  transform: rotate(3deg);
  transition: transform 0.3s ease;
  z-index: 3;
}
.step-card:hover .scan-phone-device {
  transform: rotate(0deg) translateY(-4px);
}

.scan-phone-display {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
}

.camera-reticle-box {
  width: 84px;
  height: 84px;
  position: relative;
  margin-top: 14px;
}

.reticle-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #f59e0b;
  border-style: solid;
}
.reticle-corner.tl {
  top: 0;
  left: 0;
  border-width: 2.5px 0 0 2.5px;
  border-top-left-radius: 4px;
}
.reticle-corner.tr {
  top: 0;
  right: 0;
  border-width: 2.5px 2.5px 0 0;
  border-top-right-radius: 4px;
}
.reticle-corner.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2.5px 2.5px;
  border-bottom-left-radius: 4px;
}
.reticle-corner.br {
  bottom: 0;
  right: 0;
  border-width: 0 2.5px 2.5px 0;
  border-bottom-right-radius: 4px;
}

.laser-sweep {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  box-shadow: 0 0 8px #3b82f6;
  animation: laserScan 2.4s 1 ease-in-out;
}
@keyframes laserScan {
  0%,
  100% {
    top: 6px;
    opacity: 0.3;
  }
  50% {
    top: 76px;
    opacity: 1;
  }
}

.ios-scan-pill {
  position: absolute;
  top: 8px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 9.5px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  white-space: nowrap;
  animation: pillFloat 3s 1 ease-in-out;
}
@keyframes pillFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* --- ШАГ 2: Анимация выбора в 1 клик с тактильным тапом --- */
.tap-action-scene {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen-container {
  width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 10px 30px rgba(32, 51, 77, 0.1);
  padding: 12px 14px 18px;
  margin-top: 14px;
  position: relative;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.step-card:hover .phone-screen-container {
  transform: translateY(4px);
}

.mini-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-subtle);
}

.simulated-button-card {
  background: var(--blue-soft);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 8px;
  animation: buttonTapCycle 3.5s 1 ease;
}

.simulated-button-secondary {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Тактильный курсор-палец и волна нажатия */
.touch-tap-finger {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 5;
  animation: fingerTapCycle 3.5s 1 ease;
}

.tap-ripple-circle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(36, 91, 214, 0.35);
  pointer-events: none;
  opacity: 0;
  animation: rippleExpand 3.5s 1 ease;
}

@keyframes buttonTapCycle {
  0%,
  30%,
  100% {
    transform: scale(1);
    background: var(--blue-soft);
  }
  15% {
    transform: scale(0.96);
    background: #d9e6fc;
  }
}

@keyframes fingerTapCycle {
  0%,
  30%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.85;
  }
  15% {
    transform: translateY(-42%) scale(0.9);
    opacity: 1;
  }
}

@keyframes rippleExpand {
  0%,
  12% {
    width: 10px;
    height: 10px;
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  28% {
    width: 44px;
    height: 44px;
    opacity: 0;
    transform: translateY(-50%) translateX(15px);
  }
  100% {
    opacity: 0;
  }
}

/* --- ШАГ 3: Анимация живого чата с эффектом печати по буквам --- */
.tg-mockup-scene {
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.tg-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--ink);
  border: 1px solid rgba(220, 227, 236, 0.8);
}

.tg-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-avatar {
  width: 22px;
  height: 22px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.tg-typing-badge {
  font-size: 10px;
  color: var(--blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tg-typing-badge.show {
  opacity: 1;
}

.tg-bubble-msg {
  background: white;
  border-radius: 12px 12px 12px 3px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(32, 51, 77, 0.05);
  border: 1px solid rgba(220, 227, 236, 0.7);
  line-height: 1.4;
  margin: 6px 0;
}

.tg-bubble-reply {
  background: #266747;
  color: white;
  border-radius: 12px 12px 3px 12px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(38, 103, 71, 0.18);
  min-height: 32px;
  min-width: 150px;
  justify-content: space-between;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: white;
  margin-left: 2px;
  animation: blinkCursor 0.8s 1;
}
@keyframes blinkCursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.tg-checks {
  font-size: 10px;
  opacity: 0.85;
  margin-left: 4px;
  white-space: nowrap;
}

/* Стили текста и бейджей карточек шагов */
.step-content {
  padding: 24px 22px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 12px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-content p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.usecases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}

.usecase-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.usecase-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: block;
}

.usecase-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.usecase-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.usecase-features {
  list-style: none;
  font-size: 13px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.usecase-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.usecase-features li::before {
  content: '↔';
  color: var(--blue);
  font-weight: 700;
}

/* ============================================================== */
/* НОВАЯ КРЕАТИВНАЯ СПЛИТ-ВИТРИНА FAQ С ДИНАМИКОЙ */
/* ============================================================== */

.faq-split-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 72px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.faq-list-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-tab-btn {
  width: 100%;
  text-align: left;
  background: #fafcfe;
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.faq-tab-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue-border);
}

.faq-tab-btn.active {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(36, 91, 214, 0.08);
}

.faq-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(36, 91, 214, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-tab-btn:hover .faq-icon-pill {
  background: #d9e6fc;
  transform: scale(1.04);
}
.faq-tab-btn.active .faq-icon-pill {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(36, 91, 214, 0.28);
  transform: scale(1.06);
}
.faq-icon-pill svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item-text strong {
  display: block;
  font-size: 15px;
  color: var(--ink-deep);
  margin-bottom: 4px;
}
.faq-item-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Правая интерактивная колонка визуального доказательства */
.faq-visual-col {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  min-height: 340px;
}

.landing-enhanced .visual-card-state {
  display: none;
  width: 100%;
  animation: fadeInScale 0.25s ease;
}
.landing-enhanced .visual-card-state.active {
  display: block;
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.visual-preview-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(32, 51, 77, 0.08);
  max-width: 320px;
  margin: 0 auto 16px;
}

.visual-label-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.visual-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 6px;
}

.visual-caption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ПОДВАЛ (FOOTER) */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 48px 36px 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-legal-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

/* Стили адаптивной кнопки с трансформацией */
.btn-text-short {
  display: none;
}

/* АДАПТИВНОСТЬ ПОД ВСЕ ЭКРАНЫ */
/* Меню держится открытым до последнего (до 780px планшетов) */
@media (max-width: 780px) {
  .nav-links {
    display: none !important;
  }
  .nav-burger-btn {
    display: grid !important;
  }
  .btn-ghost.desktop-only {
    display: none !important;
  }
}

@media (min-width: 781px) {
  .nav-links {
    display: flex !important;
  }
  .nav-burger-btn {
    display: none !important;
  }
  .btn-ghost.desktop-only {
    display: inline-flex !important;
  }
  .mobile-menu-drawer {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .card-stage-wrap {
    order: -1;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .faq-split-stage {
    grid-template-columns: 1fr;
  }
  .usecases-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 10px 16px;
    min-height: 56px;
  }
  .brand-comparison-cards {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 14px;
  }
  .btn-primary {
    padding: 7px 12px;
    font-size: 13px;
  }
  .btn-text-full {
    display: none;
  }
  .btn-text-short {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.2px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 27px;
  }
  .badge-qr-container {
    width: 170px;
    height: 170px;
  }
  .car-badge-vertical {
    padding: 18px 16px;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

[data-landing-style='landing-detail-1'] {
  padding: 13px 26px;
  font-size: 15px;
}

[data-landing-style='landing-detail-2'] {
  font-size: 13px;
  color: var(--muted);
}

[data-landing-style='landing-detail-3'] {
  width: 20px;
  height: 20px;
  font-size: 12px;
  border-radius: 5px;
}

[data-landing-style='landing-detail-4'] {
  margin-bottom: 72px;
}

[data-landing-style='landing-detail-5'] {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-mono);
}

[data-landing-style='landing-detail-6'] {
  color: var(--green);
  font-weight: 600;
}

[data-landing-style='landing-detail-7'] {
  display: none;
}

[data-landing-style='landing-detail-8'] {
  background: #eaf0ff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #20334d;
}

[data-landing-style='landing-detail-9'] {
  display: flex;
  justify-content: center;
  gap: 8px;
}

[data-landing-style='landing-detail-10'] {
  font-size: 11px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
}

[data-landing-style='landing-detail-11'] {
  font-size: 32px;
  font-weight: 800;
  color: #245bd6;
  margin: 8px 0;
}

[data-landing-style='landing-detail-12'] {
  font-size: 12px;
  color: #617188;
}

[data-landing-style='landing-detail-13'] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 12px 0;
}

[data-landing-style='landing-detail-14'] {
  text-decoration: line-through;
  color: #a82d40;
}

[data-landing-style='landing-detail-15'] {
  color: #266747;
  font-weight: bold;
}

[data-landing-style='landing-detail-16'] {
  background: #fff0f1;
  border: 1px solid #fecdd3;
  color: #a82d40;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

[data-landing-style='landing-detail-17'] {
  font-size: 11px;
  color: #617188;
}

[data-landing-style='landing-detail-18'] {
  margin-bottom: 12px;
}

[data-landing-style='landing-detail-19'] {
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
  color: var(--muted);
}

.visual-card-state {
  display: block;
  margin-block: 20px;
}
.btn-primary,
.btn-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge-qr-container img {
  display: block;
  width: 100%;
  height: 100%;
}
section {
  scroll-margin-top: 88px;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus {
  top: 12px;
}
.nav-burger-btn {
  min-width: 44px;
  min-height: 44px;
}
.hero-grid > *,
.nav-left {
  min-width: 0;
}
html:not(.landing-enhanced) .mobile-menu-drawer {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
html:not(.landing-enhanced) .top-nav {
  flex-wrap: wrap;
}
html:not(.landing-enhanced) .nav-burger-btn {
  visibility: hidden;
}
@media (min-width: 541px) and (max-width: 640px) {
  .btn-text-full {
    display: inline;
  }
  .btn-text-short {
    display: none;
  }
}
@media (min-width: 781px) and (max-width: 1080px) {
  .btn-ghost.desktop-only {
    display: none !important;
  }
}
@media (max-width: 360px) {
  .top-nav {
    gap: 8px;
    padding-inline: 12px;
  }
  .nav-actions {
    gap: 6px;
  }
  .brand-logo {
    gap: 6px;
  }
  .page-container {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}
.tg-checks.reply-delivered {
  display: inline;
}
@media (max-width: 440px) {
  .faq-split-stage {
    padding: 20px 16px;
  }
  .faq-split-stage > * {
    min-width: 0;
  }
  .faq-tab-btn {
    padding: 16px 12px;
    gap: 10px;
  }
}
