:root {
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --primary: #1856f3;
  --primary-hover: #1243c4;
  --primary-light: #eff6ff;
  --border-color: #e2e8f0;
  --border-focus: #cbd5e1;
  --red-alert: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  padding-bottom: 74px; /* отступ под нижнюю липкую мобильную кнопку */
}

.container {
  width: 100%;
  max-width: 680px; /* Оптимизировано под мобильные экраны и планшеты */
  margin: 0 auto;
  padding: 0 16px;
}

/* Верхняя полоска доверия */
.top-announcement {
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 0.76rem;
  padding: 8px 0;
  text-align: center;
  font-weight: 500;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.check-icon {
  width: 14px;
  height: 14px;
  color: #38bdf8;
  flex-shrink: 0;
}

/* Официальный Header */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-shield {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-shield svg {
  width: 100%;
  height: 100%;
}

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

.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-header {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.btn-header:hover {
  background-color: var(--primary-hover);
}

/* Главный экран Hero */
.hero-section {
  padding: 26px 0 20px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid #dbeafe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}

.text-blue {
  color: var(--primary);
}

.hero-lead {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Главная кнопка Скачать */
.cta-direct-box {
  margin-bottom: 24px;
}

.btn-download-giant {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(24, 86, 243, 0.28);
  transition: transform 0.15s, background-color 0.2s;
}

.btn-download-giant:active {
  transform: scale(0.98);
}

.btn-giant-icon {
  width: 32px;
  height: 32px;
  margin-right: 14px;
  flex-shrink: 0;
}

.btn-giant-icon svg {
  width: 100%;
  height: 100%;
}

.btn-giant-text {
  display: flex;
  flex-direction: column;
}

.btn-sub {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.88;
  font-weight: 600;
}

.btn-main {
  font-size: 1.08rem;
  font-weight: 700;
}

.app-meta-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

.safety-ok {
  color: var(--green);
  font-weight: 600;
}

/* Карточка реальной блокировки звонка */
.threat-alert-card {
  background-color: var(--bg-white);
  border: 1px solid #fee2e2;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

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

.threat-badge-red {
  background-color: var(--red-bg);
  color: var(--red-alert);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--red-border);
}

.threat-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.threat-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.threat-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--red-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

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

.caller-num {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 700;
}

.threat-reason {
  font-size: 0.8rem;
  color: var(--red-alert);
  font-weight: 500;
}

.threat-footer {
  font-size: 0.76rem;
  color: var(--green);
  font-weight: 600;
  background-color: var(--green-bg);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--green-border);
}

/* Статистика */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  text-align: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

/* СЕКЦИЯ ИНСТРУКЦИИ И РАЗРЕШЕНИЙ (ГЛАВНАЯ) */
.guide-section {
  padding: 24px 0 32px;
}

.guide-banner {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.guide-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.guide-banner-text h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 4px;
}

.guide-banner-text p {
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.4;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.flow-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.alert-num {
  background-color: #fee2e2;
  color: var(--red-alert);
}

.success-num {
  background-color: var(--green-bg);
  color: var(--green);
}

.flow-content {
  flex: 1;
}

.badge-required {
  display: inline-block;
  background-color: var(--red-alert);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}

.flow-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.flow-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.flow-subtext {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #b45309;
  background: #fefce8;
  padding: 8px;
  border-radius: 6px;
  border-left: 3px solid #eab308;
}

.highlight-card {
  border: 1.5px solid #fca5a5;
  background-color: #ffffff;
}

.success-card {
  border: 1px solid var(--green-border);
  background-color: #f0fdf4;
}

.tip-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Возможности */
.features-section {
  padding: 24px 0;
}

.feature-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Блок скачивания */
.download-section {
  padding: 24px 0 32px;
}

.download-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.official-stamp {
  display: inline-block;
  background-color: #dbeafe;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
}

.download-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.action-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-action-primary {
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 86, 243, 0.3);
}

.dl-svg {
  width: 22px;
  height: 22px;
}

.btn-action-secondary {
  width: 100%;
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.progress-wrap {
  margin-top: 18px;
  text-align: left;
}

.progress-wrap.hidden {
  display: none;
}

.progress-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--green);
  transition: width 0.3s ease;
}

.reminder-note {
  margin-top: 12px;
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.security-guarantee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.guar-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* FAQ */
.faq-section {
  padding: 20px 0 40px;
}

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

.faq-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
}

.faq-q {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q span {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-light);
  transition: transform 0.2s;
}

.faq-card.active .faq-q span {
  transform: rotate(45deg);
  color: var(--red-alert);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
  transition: max-height 0.25s ease, margin-top 0.2s ease;
}

.faq-card.active .faq-a {
  max-height: 160px;
  margin-top: 8px;
}

/* Футер */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 24px 0 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.f-logo {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-legal {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Липкая нижняя кнопка под смартфоны */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  z-index: 999;
  display: flex;
  justify-content: center;
}

.sticky-dl-btn {
  width: 100%;
  max-width: 680px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(24, 86, 243, 0.35);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .mobile-sticky-bar {
    display: none;
  }
  .stats-grid {
    padding: 18px;
  }
  .stat-value {
    font-size: 1.5rem;
  }
}
