* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Компактная шапка */
.top-nav-compact {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #0f172a;
}

.tg-link {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

/* Первый экран */
.hero {
  padding: 32px 0 20px 0;
  text-align: center;
}

.badge {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.main-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.subtitle {
  font-size: 16px;
  color: #475569;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
}

/* Блок формы */
.form-wrapper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
  margin-top: 20px;
}

.form-badge {
  font-size: 11px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 22px;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.field {
  width: 100%;
  padding: 13px 15px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
}

.field:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.field-sub {
  margin-top: 8px;
  background: #fff;
}

.field-select {
  cursor: pointer;
}

/* Чекбоксы болей */
.chips-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
}

.chip input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
}

/* Радио-кнопки срочности */
.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  background: #ffffff;
  font-size: 13.5px;
  transition: all 0.15s;
}

.radio-card input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
}

.radio-card:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

/* Сетка контактов */
.grid-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .grid-inputs {
    grid-template-columns: 1fr;
  }
  .main-title {
    font-size: 26px;
  }
  .form-wrapper {
    padding: 22px 16px;
  }
}

/* Юридические чекбоксы (НЕ выделены) */
.legal-group {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #475569;
  cursor: pointer;
  line-height: 1.4;
}

.legal-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #2563eb;
}

.legal-item a {
  color: #2563eb;
  text-decoration: underline;
}

/* Кнопка */
.submit-button {
  width: 100%;
  padding: 16px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
  transition: all 0.2s;
}

.submit-button:hover {
  background: #1d4ed8;
}

.status-msg {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
}

/* Автор */
.author-section {
  margin: 28px 0;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  background: #0f172a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.author-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 2px;
}

.author-bio {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 6px;
}

.author-tg {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

/* Подвал */
.footer {
  border-top: 1px solid #e2e8f0;
  padding: 20px 0;
  margin-top: 36px;
  background: #ffffff;
  font-size: 13px;
  color: #64748b;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-tg-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

/* Попапы / Модальные окна */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #64748b;
}

.modal-body {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

.modal-body p {
  margin-bottom: 10px;
}

.legal-scroll {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
}
.legal-scroll p {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}
