/* =========================================================================
   AdoptMeScripts — gate.css
   Страницы воронки /confirm/ (шаг 1) и /download/ (шаг 2).
   Одна колонка, максимум фокуса на таймере и кнопке.
   ========================================================================= */

.gate-page {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 32px) clamp(48px, 8vw, 90px);
}

.gate-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-pop);
  text-align: center;
}

.gate-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin: 0 0 16px;
}

.gate-card h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 12px;
}
.gate-card h1 .quoted { color: var(--accent); }

.gate-text {
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 auto 24px;
}

/* ---- Прогресс-бар ---- */
.gate-progress {
  height: 12px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 0 0 12px;
}
.gate-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-peach));
  border-radius: var(--radius-pill);
  transition: width 1s linear;
}
.gate-timer {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}
.gate-timer #gateSeconds { color: var(--accent-peach); font-weight: 700; }

/* Кнопка перехода/скачивания появляется после таймера */
.gate-hidden { display: none !important; }

.gate-card .btn-primary,
.gate-card .btn-download {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  font-size: 1.05rem;
  padding: 16px 26px;
}
.btn-primary.is-done,
.btn-download.is-done {
  background: #9FE0B0;
  box-shadow: none;
  cursor: default;
  transform: none;
}

/* ---- Инфоблок под кнопкой ---- */
.gate-info {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.gate-info h2 { font-size: 1.05rem; margin: 0 0 10px; }
.gate-info p { margin: 0 0 8px; color: var(--text-muted); font-size: 0.95rem; }
.gate-info ul { margin: 0; padding-left: 0; list-style: none; }
.gate-info li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.gate-info li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---- Рекламный слот ---- */
.ad-slot { margin: 24px auto 0; }
.ad-slot--gate {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
}
.ad-slot--gate:empty::before { content: 'реклама'; opacity: 0.4; letter-spacing: 1px; }

/* Возврат на главную под картой */
.gate-back { margin-top: 18px; }
.gate-back a { color: var(--text-muted); font-size: 0.9rem; }
.gate-back a:hover { color: var(--accent); }
