/* Лендинг «ТГ-Радар»: светлая тема, mobile-first, без внешних шрифтов и картинок. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #1a2233;
  --muted: #5b6577;
  --border: #e2e7f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #e8efff;
  --danger: #c62828;
  --ok: #1b7f3b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.1em;
}

h3 {
  font-size: 1.1rem;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 680px;
}

/* ── Шапка ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

/* ── Кнопки ── */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-small {
  padding: 7px 12px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 14px 24px;
  font-size: 1.05rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ── Hero ── */
.hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-brand {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-title {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-sub {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Блоки ── */
.block {
  padding: 48px 0;
}

.block-alt {
  background: var(--bg-alt);
}

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

.card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.post-example {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  font-size: 0.92rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  font-size: 1.3rem;
  line-height: 1.2;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 20px 20px 20px 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step-num {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

/* ── Форма ── */
.lead-intro {
  margin-top: -0.6em;
  color: var(--muted);
}

.lead-form {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.field > label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  /* 16px — iOS не зумит страницу при фокусе на поле. */
  font-size: 16px;
}

.field input[type="text"]:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.radios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.radio,
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.radio {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio input,
.checkbox input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.field-error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.9rem;
}

.form-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  color: var(--danger);
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Honeypot: вне экрана, но не display:none — часть ботов такие поля пропускает. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-success {
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ok);
  font-size: 1.15rem;
  font-weight: 600;
}

.lead-success h1 {
  font-size: 1.4rem;
}

.lead-success-icon {
  font-size: 2.2rem;
}

/* ── FAQ ── */
.faq {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ── Текстовые страницы ── */
.prose h1 {
  font-size: 1.7rem;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.5em;
}

.prose li {
  margin-bottom: 6px;
}

/* ── Подвал ── */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ── Планшеты и десктоп ── */
@media (min-width: 720px) {
  .hero {
    padding: 80px 0 64px;
  }

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

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  h2 {
    font-size: 2rem;
  }

  .block {
    padding: 72px 0;
  }

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

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    padding: 72px 20px 20px;
  }

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

  .lead-form {
    padding: 28px;
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
