:root {
  --bg: #FBF6F0;
  --card: #FFFFFF;
  --ink: #2E2420;
  --muted: #8C7D72;
  --coral: #D97757;
  --coral-dark: #BC5F40;
  --coral-soft: #F9E9E2;
  --line: #EEE1D6;
  --ok: #4C9A6B;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(122, 84, 60, 0.07), 0 12px 32px rgba(122, 84, 60, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Nunito", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(640px 420px at 85% -60px, rgba(217, 119, 87, 0.10), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .step-num, .price {
  font-family: "Nunito", "Manrope", sans-serif;
}

.blob {
  position: fixed;
  top: -140px;
  right: -160px;
  width: 380px;
  height: 380px;
  background: var(--coral);
  opacity: 0.07;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

/* появление секций при загрузке */
.fade-in {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in, .cc-circle, .cc-mark { animation: none !important; }
}

/* ── Шапка ── */
.hero { padding: 8px 0 6px; }

.hero-badge {
  display: inline-block;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 46ch;
}

/* ── Шаги ── */
.step { margin-top: 34px; }

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
}

.step-num {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 9px;
  transform: rotate(-4deg);
}

/* ── Услуги ── */
.services { display: grid; gap: 12px; }

.service {
  position: relative;
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.service:active { transform: scale(0.985); }
.service[aria-checked="true"] {
  border-color: var(--coral);
  background: linear-gradient(0deg, rgba(217, 119, 87, 0.05), rgba(217, 119, 87, 0.05)), var(--card);
}
.service[aria-checked="true"]::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.service h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  padding-right: 30px;
}

.service .meta {
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 14px;
  margin: 3px 0 7px;
}

.service p.desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ── Слоты ── */
.service-note {
  background: var(--coral-soft);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 0 0 14px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.slot {
  font: inherit;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.slot:active { transform: scale(0.97); }
.slot .d { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.slot .t { display: block; font-size: 19px; font-weight: 800; font-family: "Nunito", sans-serif; }
.slot .left { display: block; font-size: 12px; color: var(--ok); font-weight: 700; }

.slot[aria-checked="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.slot[aria-checked="true"] .d,
.slot[aria-checked="true"] .left { color: rgba(255, 255, 255, 0.85); }

.slot:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: transparent;
  border-style: dashed;
}
.slot:disabled .t { text-decoration: line-through; }
.slot:disabled .left { color: var(--muted); }

.no-slots { color: var(--muted); font-size: 15px; }

/* ── Форма ── */
.field { margin-bottom: 18px; border: 0; padding: 0; }

.field label, .field legend {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 7px;
}

.label-hint { color: var(--muted); font-weight: 500; font-size: 13px; }

input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus, textarea:focus { border-color: var(--coral); }
textarea { resize: vertical; min-height: 84px; }

.field.invalid input[type="text"],
.field.invalid textarea,
.choice-field.invalid .pill span { border-color: var(--coral-dark); }

.field-error {
  color: var(--coral-dark);
  font-size: 13.5px;
  margin: 6px 2px 0;
}

/* пилюли-варианты */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill input { position: absolute; opacity: 0; pointer-events: none; }

.pill span {
  display: inline-block;
  padding: 9px 16px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.pill input:checked + span {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.pill input:focus-visible + span { outline: 2px solid var(--coral-dark); outline-offset: 2px; }

.warn {
  margin-top: 12px;
  background: #FFF3E8;
  border: 1.5px solid #F2C9A8;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

/* honeypot прячем от людей, но не через display:none (боты это палят) */
.hp {
  position: absolute;
  left: -6000px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Отправка ── */
.submit-row { margin-top: 26px; }

.btn-submit {
  width: 100%;
  font: inherit;
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: var(--coral);
  border: none;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(217, 119, 87, 0.35);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-submit:hover { background: var(--coral-dark); }
.btn-submit:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(217, 119, 87, 0.3); }
.btn-submit:disabled { opacity: 0.65; cursor: wait; }

.submit-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 10px 0 0;
}

.error-box {
  margin-top: 16px;
  background: #FDECEC;
  border: 1.5px solid #EFB9B0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
}

/* ── Подтверждение ── */
.confirm {
  margin-top: 40px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px 22px;
  text-align: center;
  animation: fadeUp 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.confirm h2 { font-size: 26px; font-weight: 900; margin: 18px 0 6px; }
.confirm p { margin: 6px auto; max-width: 42ch; color: var(--muted); }
.confirm-recap { font-weight: 700; color: var(--ink) !important; }

.confirm-next {
  background: var(--coral-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink) !important;
  margin-top: 16px !important;
}

.confirm-check svg { width: 64px; height: 64px; }
.cc-circle {
  stroke: var(--coral);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: dash 0.6s ease-out forwards;
}
.cc-mark {
  stroke: var(--coral);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: dash 0.4s 0.45s ease-out forwards;
}
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ── Футер ── */
.foot {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot a { color: var(--coral-dark); font-weight: 600; }
.foot-links span { margin: 0 6px; }

@media (min-width: 560px) {
  .wrap { padding-top: 48px; }
  .services { grid-template-columns: 1fr; }
}
