/* Пропуск МСК — Дизайн-система (Center-Propusk style) */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ── Палитра ───────────────────────────────────────────────────────────── */
  --bg:           #FBFBFB;       /* основной фон */
  --bg-section:   #F2F2F2;       /* фон секции */
  --bg-card:      #FFFFFF;       /* карточки */
  --bg-dark:      #282323;       /* тёмные блоки (футер, hero-элементы) */

  --text:         #282323;       /* основной текст (почти-чёрный) */
  --text-on-dark: #FBFBFB;       /* текст на тёмном */
  --text-secondary: #555555;     /* вторичный текст */
  --text-dim:     #898989;       /* приглушённый */

  --accent:       #D93433;       /* бренд-красный */
  --accent-hover: #B82A29;       /* hover */
  --accent-soft:  #fbe5e5;       /* очень светло-красный (фоны) */

  --success:      #38cc70;
  --warn:         #FFA726;
  --danger:       #D93433;

  --border:       #E7E7E7;       /* основной бордер */
  --border-strong: #D9D9D9;

  --radius-sm:    8px;
  --radius:       16px;
  --radius-pill:  100px;

  --shadow-sm:    0 2px 6px rgba(0,0,0,0.05);
  --shadow:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);

  --font-heading: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body:    "Inter", "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero__lead {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 40px;
}

/* ── Кнопки (pill-style как в Центр.Пропуск) ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn--dark {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}
.btn--dark:hover { background: #fff; color: var(--bg-dark); }

.btn--large { padding: 20px 44px; font-size: 17px; }

/* ── Форма проверки гос.номера ────────────────────────────────────────────── */
.check-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.check-form__label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.check-form__row {
  display: flex;
  gap: 12px;
}
.check-form__row input { flex: 1; }
.check-form__row .btn { white-space: nowrap; }

.check-form input {
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color .15s;
}
.check-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.check-result {
  margin-top: 14px;
  padding: 18px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  text-align: left;
}

/* ── Секции ───────────────────────────────────────────────────────────────── */
.features, .zones {
  max-width: 920px;
  margin: 48px auto;
  padding: 0 24px;
}

.features h2, .zones h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.features h2::after, .zones h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.features__list {
  padding-left: 24px;
  color: var(--text);
  font-size: 16px;
}
.features__list li { margin-bottom: 12px; line-height: 1.6; }
.features__list li strong { font-weight: 600; color: var(--text); }

/* ── Зоны въезда ──────────────────────────────────────────────────────────── */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.zone-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.zone-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.zone-item__code {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.zone-item__name {
  font-size: 14px;
  color: var(--text-dim);
}

/* ── CTA баннер ───────────────────────────────────────────────────────────── */
.cta-banner {
  max-width: 920px;
  margin: 0 auto 48px;
  padding: 48px 32px;
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius);
}
.cta-banner h3 { color: var(--text-on-dark); font-size: 28px; margin-bottom: 12px; }
.cta-banner p {
  font-size: 17px;
  color: rgba(251, 251, 251, 0.85);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Футер ────────────────────────────────────────────────────────────────── */
.footer {
  margin-top: 64px;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-section);
}

/* ── Утилиты ──────────────────────────────────────────────────────────────── */
.text-accent { color: var(--accent) !important; }
.text-dim    { color: var(--text-dim) !important; }
