:root {
  --orange: #ff7729;
  --orange-hover: #e8651c;
  --orange-soft: #fff1e8;
  --text: #4c4c4c;
  --text-strong: #1a1a1a;
  --border: #e5e5e5;
  --error: #d6333f;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid #f1f1f1;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 88px;
  width: auto;
  max-width: calc(100vw - 32px);
  display: block;
}

.page {
  min-height: calc(100vh - 128px);
  padding: 64px 24px 96px;
  background:
    radial-gradient(1200px 500px at 50% -10%, #ffeadd 0%, transparent 60%),
    #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-message {
  width: 100%;
  max-width: 720px;
  text-align: center;
  color: var(--text-strong);
  padding: 40px 20px;
}

.success-message::before {
  content: '';
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7729' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/44px no-repeat;
}

.success-text {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
}

.success-contacts {
  margin-top: 40px;
}

.form-contacts {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f1f1f1;
  text-align: center;
}

.contacts-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.contacts-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  height: 52px;
  padding: 0 22px 0 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text-strong);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.contact:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 20px rgba(255, 119, 41, 0.15);
}

.contact:active { transform: translateY(1px); }

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--orange-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  flex-shrink: 0;
}

.contact-icon-tg {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff7729'><path d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/></svg>");
}

.contact-icon-max {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7729' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20V6a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2H8l-4 4z'/></svg>");
}

.contact-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

@media (max-width: 600px) {
  .success-text { font-size: 32px; letter-spacing: -1px; }
  .success-message::before { width: 72px; height: 72px; background-size: 36px; }
  .contacts-list { flex-direction: column; align-items: stretch; }
  .contact { justify-content: flex-start; width: auto; }
}

.card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(255, 119, 41, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f4f4f4;
}

.card-title {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--text-strong);
}

.card-subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.card-highlight {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--orange);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Honeypot: невидимое поле-ловушка для ботов. Реальные пользователи его не видят. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.3px;
}

.field .optional {
  color: #9a9a9a;
  font-weight: 400;
}

.required {
  color: var(--orange);
  font-weight: 700;
  margin-left: 2px;
}

.required-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: #888;
  letter-spacing: -0.2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.2px;
  cursor: pointer;
  user-select: none;
}

.consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: #ffffff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.consent input[type="checkbox"]:checked + .consent-box {
  background: var(--orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/13px no-repeat;
  border-color: var(--orange);
}

.consent input[type="checkbox"]:focus-visible + .consent-box {
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.consent-text { line-height: 1.4; }

.consent-text a {
  color: var(--orange);
  text-decoration: underline;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  color: var(--text-strong);
  letter-spacing: -0.3px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  outline: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ff7729'><path d='M5 8l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.field input:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.field input:disabled,
.field select:disabled,
.field select.locked {
  background: #fafafa;
  color: #777;
  cursor: not-allowed;
}

.field input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(214, 51, 63, 0.08);
}

.hint {
  min-height: 18px;
  font-size: 13px;
  letter-spacing: -0.2px;
  color: var(--text);
}

.hint.success { color: #1f8a4c; }
.hint.error { color: var(--error); }
.hint.loading { color: #888; }

.btn-primary {
  margin-top: 8px;
  height: 52px;
  border: 0;
  border-radius: 100px;
  background: var(--orange);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover:not(:disabled) { background: var(--orange-hover); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: #c9c9c9; cursor: not-allowed; }

.form-status {
  min-height: 20px;
  font-size: 14px;
  text-align: center;
  letter-spacing: -0.2px;
}

.form-status.success { color: #1f8a4c; }
.form-status.error { color: var(--error); }

@media (max-width: 600px) {
  .site-header { height: 80px; }
  .logo img { height: 56px; }
  .page { min-height: calc(100vh - 80px); padding: 40px 16px 64px; }
  .card { padding: 28px 20px; border-radius: 20px; }
  .card-title { font-size: 32px; letter-spacing: -1px; }
}
