/* =============================================================================
   Страница заказа /order/ — новая вёрстка (v2). Логика: order.js (классы шагов, поля).
   ============================================================================= */

.order-page {
  /* Как на сайте: utilities/variables.css + прежняя страница заказа */
  --op-surface: rgba(57, 63, 77, 0.5);
  --op-surface2: rgba(57, 63, 77, 0.65);
  --op-border: rgba(255, 255, 255, 0.1);
  --op-text: var(--text-light);
  --op-muted: var(--text-muted);
  --op-accent: var(--bee-yellow);
  --op-accent2: var(--gold-accent);
  --op-danger: #f4717a;
  --op-radius: 14px;
  --op-radius-sm: 10px;
  --op-shadow: var(--shadow-lg);
  --op-card-pad-x: 1.2rem;
  --op-card-pad-b: 1.2rem;
  --op-team-col: 280px;
  --op-max: 920px;
  --op-form-pad: clamp(1rem, 3.5vw, 2rem);

  padding: calc(var(--header-height) + clamp(1.25rem, 4vw, 2.5rem)) 0 max(4rem, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(135deg, var(--darker-slate) 0%, var(--dark-slate) 100%);
  color: var(--op-text);
  min-height: 100vh;
  box-sizing: border-box;
}

/* Сброс legacy `.order-section` из forms.css (flex + padding), сохраняем класс для совместимости */
.order-page.order-section {
  display: block;
  justify-content: unset;
  align-items: unset;
  padding: calc(var(--header-height) + clamp(1.25rem, 4vw, 2.5rem)) 0 max(4rem, env(safe-area-inset-bottom, 0px));
}

.order-page *,
.order-page *::before,
.order-page *::after {
  box-sizing: border-box;
}

.order-page__layout {
  width: 100%;
  max-width: var(--op-max);
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
}

/* --- Шапка --- */
.order-page__intro {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.order-page__eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--darker-slate);
  background: linear-gradient(90deg, var(--bee-yellow) 0%, var(--gold-accent) 100%);
  border-radius: 999px;
}

.order-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--bee-yellow);
  text-shadow: var(--shadow-sm);
}

.order-page__lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--op-muted);
}

/* --- Прогресс --- */
.progress-steps {
  list-style: none;
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.progress-steps .step {
  display: flex;
  padding: 0;
  border: none;
  background: transparent;
}

.progress-steps__trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.progress-steps__trigger:focus-visible {
  outline: 2px solid var(--bee-yellow);
  outline-offset: 2px;
}

.progress-steps .step.active .progress-steps__trigger {
  border-color: transparent;
  background: var(--bee-yellow);
  color: var(--darker-slate);
  box-shadow: 0 4px 15px rgba(254, 218, 106, 0.3);
}

.progress-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
}

.progress-steps .step.active .progress-steps__num {
  background: var(--darker-slate);
  color: var(--bee-yellow);
}

.progress-steps .step:not(:last-child)::after {
  display: none;
}

/* --- Ошибки --- */
.order-page .order-errors {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--op-radius-sm);
  border: 1px solid rgba(244, 113, 122, 0.45);
  background: rgba(244, 113, 122, 0.08);
  color: #ffd6da;
}

.order-page .order-errors ul {
  margin: 0.5rem 0 0 1.1rem;
  padding: 0;
}

/* --- Оболочка формы --- */
.order-form-shell {
  position: relative;
  border-radius: calc(var(--op-radius) + 4px);
  padding: var(--op-form-pad);
  background: var(--dark-slate);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.order-form-shell::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--bee-yellow) 0%, var(--gold-accent) 100%);
  pointer-events: none;
}

.order-page .order-form {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* --- Шаги --- */
.order-page .form-section {
  display: none;
  animation: opFade 0.35s ease;
}

.order-page .form-section.active {
  display: block;
}

@keyframes opFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--op-border);
}

.form-step__badge {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 12px;
  background: rgba(254, 218, 106, 0.15);
  border: 1px solid rgba(254, 218, 106, 0.35);
  color: var(--bee-yellow);
}

.form-step__heading.section-title {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--silver-fox);
}

.form-step__heading.section-title::after {
  display: none;
}

.form-step__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--op-muted);
  line-height: 1.45;
}

/* =============================================================================
   Шаг 3 — order-details (селекторы для order.js сохранены)
   ============================================================================= */

#details-section .order-details {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.1rem);
}

#details-section .od-card--tight .od-card__body {
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(0.95rem, 2.5vw, 1.35rem);
}

#details-section .od-card__head--micro {
  margin-bottom: 0.55rem;
}

#details-section .od-card__head--micro .od-card__title {
  margin: 0;
}

#details-section .od-textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.55;
}

/* Выдвижной блок «Доп. услуги» — без отдельной заливки: фон как у карточки описания */
#details-section .od-drawer {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

#details-section .od-drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.65rem;
  cursor: pointer;
  list-style: none;
  font: inherit;
  color: inherit;
  user-select: none;
  transition: background 0.2s ease;
  border-radius: var(--op-radius-sm);
}

#details-section .od-drawer__summary .od-drawer__title {
  flex: 1;
  min-width: 0;
}

#details-section .od-drawer__summary::-webkit-details-marker {
  display: none;
}

#details-section .od-drawer__summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

#details-section .od-drawer__summary:focus-visible {
  outline: 2px solid var(--bee-yellow);
  outline-offset: 2px;
}

#details-section .od-drawer[open] .od-drawer__summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
}

#details-section .od-drawer__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--silver-fox);
}

#details-section .od-drawer__chev {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  transition: transform 0.25s ease, background 0.2s ease;
}

#details-section .od-drawer__chev::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 0.45rem;
  height: 0.45rem;
  margin: -0.2rem 0 0 -0.2rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

#details-section .od-drawer[open] .od-drawer__chev {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.08);
}

#details-section .od-drawer[open] .od-drawer__chev::after {
  border-color: rgba(200, 206, 218, 0.85);
}

#details-section .od-drawer__panel {
  padding: 0.35rem 0 0;
}

#details-section .od-drawer__panel .additional-services {
  margin-top: 0;
}

/* Итог — та же карточка, что и остальные блоки шага 3 */
#details-section .od-card.od-card--total.order-total.total-section {
  margin: 0.25rem 0 0;
  padding: 0;
}

#details-section .od-card__body.od-card__body--total-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

#details-section .order-total__breakdown {
  margin-bottom: 0.65rem;
}

#details-section .order-total__divider {
  width: 100%;
  margin: 0 0 0.65rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#details-section .order-total__divider[hidden] {
  display: none;
}

#details-section .order-total__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

#details-section .order-total__footer .order-total__label.total-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(178, 186, 204, 0.92);
  line-height: 1.25;
  text-align: left;
}

#details-section .order-total__footer .order-total__value.total-price {
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--bee-yellow);
  text-shadow: 0 2px 24px rgba(254, 218, 106, 0.18);
  line-height: 1;
  text-align: right;
}

#details-section .od-drawer__panel .order-promo {
  margin-top: 0;
}

#details-section .od-card--promo {
  margin: 0.25rem 0 0;
}

#details-section .order-promo {
  width: 100%;
  text-align: left;
}

#details-section .order-promo__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

#details-section .order-promo__input {
  flex: 1 1 8rem;
  min-width: 0;
}

#details-section .order-promo__apply,
#details-section .order-promo__clear {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

#details-section .order-promo__msg {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

#details-section .order-promo__msg--ok {
  color: #9fd4a8;
}

#details-section .order-promo__msg--err {
  color: #f0a8a8;
}

#details-section .od-card__body--total-stack .order-total__breakdown {
  width: 100%;
  font-size: 0.88rem;
  color: rgba(178, 186, 204, 0.95);
}

#details-section .order-total__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

#details-section .order-total__row--discount {
  color: #9fd4a8;
}

#details-section .od-card {
  position: relative;
  display: flex;
  border-radius: var(--op-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(29, 30, 34, 0.72);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

#details-section .od-card__body {
  flex: 1;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.8vw, 1.5rem);
}

#details-section .od-card__head {
  margin-bottom: 1rem;
}

#details-section .od-card__head--compact {
  margin-bottom: 0.65rem;
}

#details-section .od-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--silver-fox);
}

#details-section .od-card__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bee-yellow);
}

#details-section .od-card__lede {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--op-muted);
  max-width: 42rem;
}

#details-section .od-card__lede--tight {
  font-size: 0.8rem;
  line-height: 1.45;
}

#details-section .od-footer-actions {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

/* —— Команда (шаг 3) —— */
#details-section .team-selection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin-top: 0.15rem;
}

#details-section .team-checkbox {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 clamp(1.1rem, 3vw, 1.35rem) clamp(1rem, 2.5vw, 1.2rem);
  border-radius: var(--op-radius-sm);
  background: var(--op-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: default;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  min-height: 6.35rem;
  overflow: hidden;
}

#details-section .team-checkbox__hit {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
}

#details-section .team-checkbox__hit:focus-visible {
  outline: none;
}

#details-section .team-checkbox__hit:focus-within .team-checkbox-head {
  outline: none;
}

#details-section .team-checkbox .team-member-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}

#details-section .team-checkbox .team-member-checkbox:focus {
  outline: none;
}

#details-section .team-checkbox:hover {
  border-color: rgba(254, 218, 106, 0.35);
  background: rgba(254, 218, 106, 0.08);
}

#details-section .team-checkbox.active {
  border-color: rgba(254, 218, 106, 0.4);
  background: rgba(254, 218, 106, 0.14);
  box-shadow: inset 3px 0 0 var(--bee-yellow);
}

/* Лёгкое кольцо только с клавиатуры, без дубля с .active */
#details-section .team-checkbox:has(.team-member-checkbox:focus-visible) {
  outline: 2px solid rgba(254, 218, 106, 0.55);
  outline-offset: 2px;
}

#details-section .team-checkbox.active:has(.team-member-checkbox:focus-visible) {
  outline: none;
}

#details-section .team-checkbox-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 0 0.45rem;
  min-width: 0;
}

#details-section .team-checkbox__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

#details-section .team-checkbox.active .team-checkbox__icon {
  border-color: rgba(254, 218, 106, 0.4);
  background: rgba(254, 218, 106, 0.12);
}

#details-section .member-icon {
  font-size: 1.4rem;
  color: var(--bee-yellow);
}

#details-section .member-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

#details-section .member-role {
  font-weight: 600;
  color: var(--silver-fox);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#details-section .team-rate {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--op-muted);
}

#details-section .team-time-selection {
  display: none;
  margin-top: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: default;
  min-width: 0;
}

#details-section .team-time-selection .time-range {
  margin-bottom: 0.35rem;
}

#details-section .team-time-selection .time-range--inline .form-control[type="time"] {
  flex: 1 1 6rem;
  max-width: none;
  min-width: 5.25rem;
}

#details-section .member-duration {
  font-weight: 600;
  color: var(--gold-accent);
}

#details-section .member-cost {
  font-weight: 600;
  color: var(--bee-yellow);
  margin-left: 0.35rem;
}

#details-section .member-synced-hint {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--op-muted);
  border-radius: var(--op-radius-sm);
  border-left: 3px solid var(--bee-yellow);
  background: rgba(0, 0, 0, 0.2);
}

#details-section .team-time-selection--synced {
  border-top-color: rgba(255, 255, 255, 0.14);
}

#details-section .team-checkbox--editor .team-time-selection--synced {
  margin-top: 0.55rem;
}

/* —— Доп. услуги —— */
#details-section .additional-services {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

#details-section .service-checkbox {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem;
  min-height: 4.25rem;
  border-radius: var(--op-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 19, 23, 0.55);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

#details-section .service-checkbox:hover {
  border-color: rgba(254, 218, 106, 0.32);
  background: rgba(254, 218, 106, 0.08);
}

#details-section .service-checkbox.active {
  border-color: rgba(254, 218, 106, 0.38);
  background: rgba(254, 218, 106, 0.12);
  box-shadow: inset 3px 0 0 var(--bee-yellow);
}

#details-section .service-checkbox input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

#details-section .service-checkbox label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  pointer-events: none;
  cursor: inherit;
}

#details-section .service-icon {
  color: var(--bee-yellow);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

#details-section .service-info {
  flex: 1;
  min-width: 0;
}

#details-section .service-name {
  font-weight: 600;
  color: var(--silver-fox);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#details-section .service-price {
  margin-left: auto;
  font-weight: 700;
  color: var(--bee-yellow);
  white-space: nowrap;
}

#details-section .service-description-full {
  display: none;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--op-muted);
}

#details-section .service-checkbox.active .service-description-full {
  display: block;
}

#details-section .order-muted {
  margin: 0;
  padding: 0.5rem 0;
  color: var(--op-muted);
  font-size: 0.9rem;
}

/* Сетка полей */
.form-step__grid {
  display: grid;
  gap: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.form-step__grid--project {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  column-gap: clamp(2rem, 4.5vw, 0.5rem);
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--silver-fox);
}

.field__hint,
.order-page .input-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--op-muted);
}

.label-hint {
  font-weight: 400;
  color: var(--op-muted);
  font-size: 0.82rem;
}

/* Контакты: две колонки на широком */
#contact-section .form-step__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#contact-section .field--full {
  grid-column: 1 / -1;
}

/* Проект: дата (тянется влево) | время (колонка по содержимому, у правого края сетки) */
#project-section .project-step__field--date .form-control[type="date"] {
  width: 100%;
  max-width: none;
}

#project-section .project-step__field--time {
  min-width: 0;
  justify-self: end;
}

#project-section .project-step__time-label {
  display: block;
  margin-bottom: 0.5rem;
}

#project-section .time-range--project-step {
  justify-content: flex-start;
}

#project-section .time-range--project-step.time-range--inline .form-control[type="time"] {
  min-width: 7.35rem;
  max-width: 10.5rem;
  flex: 0 1 9.25rem;
  padding: 0.7rem 0.85rem;
}

#project-section .time-range--project-step .time-range__prefix {
  font-size: 0.95rem;
  font-weight: 600;
}

#project-section .project-step__duration {
  margin-top: 0.5rem;
}

/* --- Поля ввода --- */
.order-page .form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--op-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--matte-grey);
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background-color 0.2s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.order-page .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.order-page .form-control:focus {
  outline: none;
  border-color: var(--bee-yellow);
  box-shadow:
    0 0 0 3px rgba(254, 218, 106, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.order-page .form-control.error {
  border-color: rgba(244, 113, 122, 0.85);
  box-shadow: 0 0 0 2px rgba(244, 113, 122, 0.2);
}

/* Автозаполнение */
.order-page .order-form input.form-control:-webkit-autofill,
.order-page .order-form input.form-control:-webkit-autofill:hover,
.order-page .order-form input.form-control:-webkit-autofill:focus,
.order-page .order-form input.form-control:-webkit-autofill:active,
.order-page .order-form textarea.form-control:-webkit-autofill,
.order-page .order-form textarea.form-control:-webkit-autofill:hover,
.order-page .order-form textarea.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-light) !important;
  caret-color: var(--text-light);
  transition: background-color 99999s ease-out;
  -webkit-box-shadow: 0 0 0 1000px var(--matte-grey) inset !important;
  box-shadow: 0 0 0 1000px var(--matte-grey) inset !important;
}

.order-page .order-form select.form-control:-webkit-autofill,
.order-page .order-form select.form-control:-webkit-autofill:hover,
.order-page .order-form select.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-light) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--matte-grey) inset !important;
  box-shadow: 0 0 0 1000px var(--matte-grey) inset !important;
}

.order-page .order-form input.form-control:-moz-autofill,
.order-page .order-form textarea.form-control:-moz-autofill {
  background-color: var(--matte-grey) !important;
  color: var(--text-light) !important;
}

.order-page select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a1a1a6' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
}

/* Время */
.time-range {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem 0.65rem;
  min-width: 0;
}

.time-range--inline .form-control[type="time"] {
  width: auto;
  min-width: 6.25rem;
  max-width: 9rem;
  flex: 0 1 8rem;
  padding: 0.7rem 0.75rem;
}

.time-range__prefix {
  font-weight: 700;
  color: var(--silver-fox);
}

.time-range__mid {
  color: var(--op-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.duration-info {
  font-size: 0.88rem;
  color: var(--op-muted);
}

.duration-display {
  font-weight: 700;
  color: var(--gold-accent);
}

/* --- Кнопки --- */
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.form-actions--end {
  justify-content: flex-end;
}

.form-actions--split {
  justify-content: space-between;
}

.order-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--op-radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  font-family: inherit;
}

.order-page .btn--primary {
  background: linear-gradient(90deg, var(--bee-yellow) 0%, var(--gold-accent) 100%);
  color: var(--darker-slate);
  box-shadow: var(--shadow-md);
}

.order-page .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(254, 218, 106, 0.3);
}

.order-page .btn-submit,
.order-page .btn--accent {
  background: linear-gradient(90deg, var(--bee-yellow) 0%, var(--gold-accent) 100%);
  color: var(--darker-slate);
  box-shadow: var(--shadow-md);
  padding-inline: 1.5rem;
}

.order-page .btn-submit:hover,
.order-page .btn--accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(250, 215, 104, 0.4);
}

.order-page .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-page .btn--ghost:hover {
  color: var(--silver-fox);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.order-page .btn-submit svg {
  flex-shrink: 0;
}

/* Старые классы кнопок — подстраховка, если где-то остались без .btn */
.order-page .btn-next,
.order-page .btn-prev,
.order-page .btn-submit {
  font-family: inherit;
}

/* --- Адаптив --- */
@media (max-width: 720px) {
  .form-step__grid--project {
    grid-template-columns: 1fr;
  }

  #project-section .project-step__field--time {
    justify-self: stretch;
  }

  #contact-section .form-step__grid {
    grid-template-columns: 1fr;
  }

  #project-section .project-step__field--date .form-control[type="date"] {
    max-width: 100%;
  }

  #details-section .team-selection {
    grid-template-columns: 1fr;
  }

  .form-actions--split {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions--split .btn {
    width: 100%;
  }

  #details-section .team-time-selection .time-range--inline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .order-page__title {
    font-size: 1.55rem;
  }

  .progress-steps__trigger {
    font-size: 0.75rem;
    padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  }

  .progress-steps__label {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Баннер сохранённого черновика (восстановление только по клику) */
.order-draft-banner {
  max-width: var(--op-max, 920px);
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--op-radius-sm, 10px);
  border: 1px solid var(--op-border, rgba(255, 255, 255, 0.12));
  background: var(--op-surface2, rgba(57, 63, 77, 0.65));
  box-sizing: border-box;
}

.order-draft-banner__text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--op-text, #fff);
}

.order-draft-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
