:root {
  --green: #2b6e44;
  --green-dark: #1b4a2e;
  --green-light: #e2e8d2;
  --cream: #f4f1e6;
  --dark: #22261f;
  --grey: #6b6f63;
  --border: #d9dcc9;
  --white: #ffffff;
  --danger: #b3413a;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(27, 74, 46, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--cream) 0%, var(--green-light) 100%);
  color: var(--dark);
  line-height: 1.5;
}

a { color: var(--green); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
}

.site-header__logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header__phone {
  color: var(--grey);
  font-weight: 600;
  text-decoration: none;
}

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
}

.intro h1 {
  font-size: 2.1rem;
  margin: 8px 0 16px;
  color: var(--dark);
}

.intro p.lead {
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.intro-links { display: flex; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.intro-links a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.intro-links a:hover { text-decoration: underline; }

.feature {
  display: flex; gap: 16px; margin-bottom: 28px;
}
.feature__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--grey); font-size: 0.95rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.card h2 {
  text-align: center;
  margin: 0 0 4px;
  font-size: 1.5rem;
}
.card .subtitle {
  text-align: center;
  color: var(--grey);
  margin: 0 0 28px;
}

/* Stepper */
.stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 32px;
}
.stepper__step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; width: 120px; }
.stepper__circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; z-index: 1;
}
.stepper__step.is-active .stepper__circle { background: var(--green); }
.stepper__step.is-done .stepper__circle { background: var(--green); }
.stepper__label { font-size: 0.85rem; color: var(--grey); font-weight: 600; }
.stepper__step.is-active .stepper__label { color: var(--dark); }
.stepper__line {
  position: absolute; top: 16px; left: -60%; width: 120%; height: 2px;
  background: var(--border); z-index: 0;
}
.stepper__step:first-child .stepper__line { display: none; }
.stepper__step.is-done .stepper__line,
.stepper__step.is-active .stepper__line { background: var(--green); }

/* Form */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.form-grid--single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-weight: 400; color: var(--grey); font-size: 0.85rem; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 110, 68, 0.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger);
}
.field-error { color: var(--danger); font-size: 0.83rem; }
.char-count { text-align: right; font-size: 0.8rem; color: var(--grey); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.checkbox-row input { margin-top: 3px; }
.checkbox-row label { font-size: 0.92rem; }

.company-fields {
  border-left: 3px solid var(--green-light);
  padding-left: 16px;
  margin: -4px 0 18px;
}

.btn-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.btn-row.end { justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 8px; padding: 13px 26px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .05s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--green); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--green-light); }
.btn--block { width: 100%; }

.step { display: none; }
.step.is-active { display: block; }

/* Order summary (step 3) */
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 1rem; }
.summary-row.total { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 16px; }

.pay-methods { margin: 20px 0; }
.pay-methods__title { font-weight: 700; margin-bottom: 10px; }
.pay-option {
  border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 10px;
}
.pay-option__head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pay-option__desc { color: var(--grey); font-size: 0.88rem; margin: 4px 0 12px 26px; }
.bank-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-left: 26px; }
.bank-chip {
  border: 1px solid var(--border); border-radius: 6px; padding: 10px 6px;
  text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--dark);
  background: var(--cream);
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 24, 18, 0.55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto; z-index: 50;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); max-width: 640px; width: 100%;
  padding: 28px; position: relative;
}
.modal__close {
  position: absolute; top: 18px; right: 18px; border: none; background: none;
  font-size: 1.4rem; cursor: pointer; color: var(--grey); line-height: 1;
}
.modal h3 { margin-top: 0; }
.modal img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.modal__loading { text-align: center; padding: 60px 0; color: var(--grey); }

/* Status pages */
.status-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--green-light) 100%);
  padding: 24px;
}
.status-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; max-width: 480px; text-align: center;
}
.status-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--white);
}
.status-icon--ok { background: var(--green); }
.status-icon--wait { background: #b98a2e; }
.status-icon--warn { background: var(--danger); }
.status-code { font-size: 1.1rem; margin: 16px 0; }
.status-muted { color: var(--grey); font-size: 0.9rem; }
.status-card .btn { margin-top: 16px; }

.site-footer {
  text-align: center; padding: 30px; color: var(--grey); font-size: 0.85rem;
}

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: var(--white); padding: 12px 22px; border-radius: 8px;
  font-size: 0.9rem; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.is-visible { opacity: 1; }
