:root {
  --dark: #1c1620;
  --gold: #cdb27e;
  --gold-dark: #b89b62;
  --gray-bg: #f5f5f5;
  --text-muted: #6b7280;
  --text-dark: #22232b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at top, #2a2130 0%, var(--dark) 60%);
  color: #fff;
  padding-bottom: 90px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.logo {
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-five {
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  margin-left: 4px;
  margin-bottom: 3px;
  align-self: flex-end;
}

.btn {
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-gold {
  background: var(--gold);
  color: #2a2130;
}

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: var(--text-dark);
}

.hero-title {
  margin-top: 64px;
  text-align: center;
}

.hero-title h1 {
  font-size: 42px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

.gold {
  color: var(--gold);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-gray {
  background: var(--gray-bg);
}

.section-title {
  text-align: center;
  color: var(--gold-dark);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
}

.section-title.dark {
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.section-lead {
  font-size: 22px;
  font-weight: 700;
  max-width: 600px;
  line-height: 1.4;
  margin-bottom: 32px;
}

/* Goal section */
.goal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.goal-heading h2 {
  font-size: 26px;
  margin: 0;
}

.icon-target {
  font-size: 24px;
}

.goal-sub {
  color: var(--text-muted);
  margin: 12px 0 24px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  color: #374151;
  line-height: 1.5;
}

.checklist li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f1e6c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Steps */
.steps-card {
  background: var(--gray-bg);
  border-radius: 16px;
  padding: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}

.step h4 {
  margin: 0 0 12px;
}

.step p {
  color: var(--text-muted);
  line-height: 1.6;
}

.step .checklist li {
  color: var(--text-muted);
  font-size: 14px;
}

.step .btn {
  margin-top: 20px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.apply-form h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.modal-sub {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 14px;
}

.apply-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.apply-form input[type="text"],
.apply-form input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.apply-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--text-dark);
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}

.form-error {
  color: #dc2626;
  font-size: 14px;
  margin: -4px 0 16px;
}

.btn-submit {
  width: 100%;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Waiting modal */
.modal-waiting {
  text-align: center;
  max-width: 380px;
}

.waiting-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-waiting h3 {
  margin: 0 0 8px;
}

.modal-waiting p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.btn-mobile-apply {
  display: none;
}

@media (max-width: 640px) {
  .hero-title h1 {
    font-size: 28px;
  }

  .hero-top {
    justify-content: center;
  }

  .btn-header-apply {
    display: none;
  }

  .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .btn-mobile-apply {
    display: inline-block;
    margin-top: 28px;
  }
}
