/* Визуал посадочной и форм apps.leads — использует те же CSS-переменные, что
   static/report/report.css (подключён раньше в <head>, см. templates/report/base.html), не
   дублирует их: только новые классы, которых там нет. */

.page--wide {
  max-width: 760px;
}

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(242, 238, 230, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(242, 238, 230, 0.1);
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: reveal 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}

.roles .role-card:nth-child(2) { animation-delay: 0.08s; }
.roles .role-card:nth-child(3) { animation-delay: 0.16s; }

.role-card:hover {
  background: var(--surface-hover);
  border-color: rgba(132, 125, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(132, 125, 255, 0.3);
}

.role-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-input);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(132, 125, 255, 0.16);
  color: var(--accent-soft);
  font-size: 1.2rem;
}

.role-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0;
}

.role-card__desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.role-card__arrow {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* Мини-версия .hero с сайта отчёта (report.css) — не карточка роли, а превью того, что
   покажет сама оценка (решение 2026-09-24: «сделай главную выразительнее, как калькулятор»),
   тот же язык — золотая рамка цены, тень, motion — но в одну строку, не отдельный градиентный
   блок, чтобы не спорить по весу с тремя карточками ролей ниже. */
.proof-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-6) 0 var(--space-8);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(242, 238, 230, 0.1);
  animation: reveal 1s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  animation-delay: 0.05s;
}

.proof-strip__eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.proof-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.proof-strip__address {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.proof-strip__price-frame {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 10px;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.26)) padding-box,
    linear-gradient(110deg, #fff2b8, #ffcc33, #a9720a, #ffcc33, #fff2b8) border-box;
  background-size: 100% 100%, 320% 100%;
  box-shadow: 0 0 6px rgba(255, 204, 51, 0.5), 0 0 20px rgba(255, 204, 51, 0.32);
  animation: gold-shimmer 5s ease-in-out infinite;
}

.proof-strip__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--white);
  font-variant-numeric: tabular-nums lining-nums;
}

.proof-strip__term {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  color: hsl(142 70% 60%);
}

@media (max-width: 480px) {
  .proof-strip__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

.utility-link {
  display: block;
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(242, 238, 230, 0.1);
  font-size: 0.8rem;
  color: var(--text-faint);
  text-decoration: none;
}

.utility-link:hover {
  color: var(--text-muted);
}

/* Форма заявки — в .card (report.css), как .mortgage-calc__field на калькуляторе, а не голые
   поля на холсте страницы (решение 2026-09-24: «каждая страница выразительнее, как калькулятор»). */
.lead-form {
  animation: reveal 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}

.lead-form .button--primary {
  margin-top: var(--space-3);
  width: 100%;
}

/* .field-row — теперь в report.css (общий для всех форм, не только заявок). */

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.preset {
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: var(--radius-input);
  background: var(--surface);
  border: 1px solid rgba(242, 238, 230, 0.16);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.preset[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(132, 125, 255, 0.4);
}

.district-picker {
  display: none;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 0 1.5px rgba(242, 238, 230, 0.1);
}

.district-picker[data-open] {
  display: block;
}

.district-picker__group-title {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--text-faint);
  margin: var(--space-3) 0 var(--space-2);
}

.district-picker__group-title:first-child {
  margin-top: 0;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-2);
}

.district-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-input);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.district-chip:has(input:checked) {
  background: rgba(132, 125, 255, 0.16);
  color: var(--text);
}

.district-chip input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.confirm {
  text-align: center;
}

/* Переключатель «По району» / «По адресу» (спека 2026-09-21-buyer-address-radius-design.md) —
   реальные радиокнопки form.location_mode остаются в DOM для отправки формы, видимый UI —
   кнопки .preset выше, управляемые static/leads/buyer_locations.js. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.location-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-input);
  background: rgba(132, 125, 255, 0.16);
  color: var(--text);
  font-size: 0.86rem;
}

.location-chip__remove {
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.button--telegram {
  background: #229ed9;
  color: var(--white);
}

@media (max-width: 480px) {
  .district-grid {
    grid-template-columns: 1fr;
  }
}
