* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f4f5f7;
  color: #1f2937;
  line-height: 1.6;
  font-size: 15px;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Хедер */
header {
  background: #1e293b;
  color: #fff;
  padding: 32px 0 28px;
  border-bottom: 3px solid #c9a227;
}
header .back-link {
  display: inline-block;
  color: #c9a227;
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: 12px;
  transition: color .15s;
}
header .back-link:hover { color: #f4d03f; }
header h1 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; }
header p { margin: 0; color: #cbd5e1; font-size: .95rem; }

/* Секции */
section { margin: 44px 0; }
section h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: #1e293b;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
section .subtitle { color: #64748b; margin: 10px 0 20px; font-size: .9rem; }
section h3 { color: #1e293b; font-size: 1.05rem; margin: 20px 0 8px; font-weight: 600; }
section p { color: #334155; margin: 0 0 12px; }
section ul, section ol { color: #334155; padding-left: 22px; margin: 0 0 14px; }
section ul li, section ol li { margin-bottom: 6px; }

/* Шаги */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #c9a227;
  padding: 20px 24px 20px 64px;
  margin-bottom: 12px;
  position: relative;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 28px;
  height: 28px;
  background: #1e293b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}
.steps li h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: #1e293b;
}
.steps li p { margin: 0; color: #475569; font-size: .92rem; }

/* Требования */
.requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.req-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #c9a227;
  padding: 22px 20px;
}
.req-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #1e293b;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.req-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: .9rem;
  color: #475569;
}
.req-card ul li { margin-bottom: 6px; }

/* Примечание */
.note {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  padding: 14px 18px;
  color: #1e3a8a;
  font-size: .9rem;
  margin: 16px 0 !important;
}

/* Карточки займов */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.offer-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .15s, box-shadow .15s;
}
.offer-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 12px rgba(30,41,59,.08); }
.offer-card .name { font-weight: 600; font-size: 1.08rem; margin-bottom: 8px; color: #1e293b; }
.offer-card .desc { color: #475569; font-size: .9rem; margin-bottom: 14px; }

.offer-card .params {
  font-size: .85rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.offer-card .params b { color: #1e293b; font-weight: 600; }

.offer-card .actions { display: flex; gap: 8px; }
.offer-card .actions .btn { flex: 1; text-align: center; padding: 10px 16px; font-size: .88rem; }
.offer-card .actions .btn-detail {
  background: #fff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  flex: 0 0 auto;
  padding: 10px 14px;
}
.offer-card .actions .btn-detail:hover { background: #f1f5f9; border-color: #94a3b8; color: #1e293b; }

/* Кнопки */
.btn {
  display: inline-block;
  background: #1e293b;
  color: #fff;
  font-weight: 500;
  padding: 12px 28px;
  text-decoration: none;
  font-size: .93rem;
  border: 1px solid #1e293b;
  transition: background .15s, border-color .15s;
  cursor: pointer;
  letter-spacing: .01em;
}
.btn:hover { background: #c9a227; border-color: #c9a227; }

/* Модальное окно */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 30px 28px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 50px rgba(15,23,42,.3);
  animation: popIn .2s ease;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes popIn {
  from { transform: scale(.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal h3 { margin: 0 0 18px; font-size: 1.25rem; color: #1e293b; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
}
.modal-close:hover { color: #1e293b; }
.modal-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .92rem;
}
.modal-row span { color: #64748b; }
.modal-row b { color: #1e293b; font-weight: 600; }
.modal-desc { color: #475569; font-size: .9rem; margin: 18px 0; }
.modal .btn { width: 100%; text-align: center; }

footer {
  text-align: center;
  padding: 32px 16px 44px;
  color: #94a3b8;
  font-size: .82rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
}
footer p { margin: 4px 0; }

@media (max-width: 600px) {
  header h1 { font-size: 1.3rem; }
  .steps li { padding: 18px 18px 18px 58px; }
}