/* Оформление заказа, заглушка эквайринга, подтверждение (context/checkout.md).
   Своего макета в Figma нет: простая светлая секция в потоке, без пиксельных
   координат — в отличие от .au-home-zayavka (абсолютный блок под ровно три
   поля, см. её комментарий в home.css), сюда не подставить лишние поля и
   вторую кнопку без новой геометрии, поэтому вёрстка не переиспользуется. */

.au-checkout-form {
  padding: calc(48px + 32px * var(--au-k)) 0;
}

.au-checkout-form__title {
  margin: 0 0 32px;
}

.au-checkout-form__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

/* §137: волна — Inter Tight Regular 400, как у `.au-home-zayavka__message`. */
.au-checkout-form__message {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 15px;
  font-weight: 400;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 22px;
}

.au-checkout-form__message--error {
  background: rgba(255, 0, 0, 0.03);   /* 8.11: на 0.08 текст ошибки давал 4.19 (нужно 4.5); на 0.03 — 4.57, стакан остаётся виден */
  color: var(--au-red);
}

.au-checkout-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.au-checkout-form__field {
  position: relative;
  flex: 1 1 260px;
}

/* §137: волна — Inter Tight Regular 400, как у `.au-home-zayavka__message`.
   Лейбл поля — служебный ярус, ярлык без фона. */
.au-checkout-form__label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.6); /* 8.11: 0.5 давал 3.98:1 (нужно 4.5) */
}

/* §137: волна — Inter Tight Regular 400. Поле формы — текст, не ярлык.
   Вес 500 → 400. font-family явно заменён с 'Inter' на 'Inter Tight'. */
.au-checkout-form__input {
  width: 100%;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: transparent;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: var(--au-black);
}

.au-checkout-form__input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.au-checkout-form__input:focus,
.au-checkout-form__input:not(:placeholder-shown) {
  border-bottom-color: var(--au-black);
  outline: none;
}

/* §137: волна — Inter Tight Regular 400. Сообщение об ошибке — текст. */
.au-checkout-form__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 18px;
  color: var(--au-red);
}

.au-checkout-form__consent {
  margin: 24px 0 20px;
  max-width: 540px;
}

.au-checkout-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 0;
}

.au-checkout-form__submit--secondary {
  background: transparent;
  border: 1px solid var(--au-black);
  color: var(--au-black);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* VIS-15: инверсия при наведении и фокусе у вторичной кнопки оформления заказа */
.au-checkout-form__submit--secondary:hover,
.au-checkout-form__submit--secondary:focus-visible {
  background: var(--au-black);
  color: var(--au-white);
  opacity: 1;
}
.au-checkout-form__submit--secondary:focus-visible {
  outline: 2px solid var(--au-black);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .au-checkout-form__row {
    flex-direction: column;
    gap: 20px;
  }

  /* flex-basis — это 260px по ширине в .au-checkout-form__field, но в
     колонке главная ось вертикальная: тот же 260px без сброса стал бы
     минимальной ВЫСОТОЙ поля (в 4 раза больше настоящей). */
  .au-checkout-form__field {
    flex: 1 1 auto;
  }

  .au-checkout-form__actions {
    flex-direction: column;
  }
}

/* Заглушка эквайринга и подтверждение заказа: тот же простой формат — короткий
   текст в потоке, без карточек и колонок, которых спека не задаёт. */
.au-checkout-status {
  padding: calc(48px + 32px * var(--au-k)) 0 calc(72px + 48px * var(--au-k));
}

.au-checkout-status__title {
  max-width: 720px;
  margin: 0 0 20px;
}

/* §137: волна — Inter Tight Regular 400, как у `.au-home-zayavka__message`. */
.au-checkout-status__text {
  max-width: 620px;
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 400;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 28px;
  color: rgba(0, 0, 0, 0.7);
}

.au-checkout-status__cta {
  display: inline-flex;
}

.au-checkout-status__summary {
  max-width: 620px;
  margin: 0 0 32px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
}

/* §137: лейбл ярлыка — Inter Tight Regular 400. */
.au-checkout-status__summary-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.5);
}

/* §137: значение ярлыка — Inter Tight Regular 400. */
.au-checkout-status__summary-value {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 24px;
  color: var(--au-black);
}

.au-checkout-status__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: checkout-step;
}

/* §137: шаг заказа — Inter Tight Regular 400. */
.au-checkout-status__step {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 26px;
  color: rgba(0, 0, 0, 0.7);
  counter-increment: checkout-step;
}

/* §137: счётчик шага — Inter Tight Bold 700, как у `.au-pager__counter`.
   Цифра, не текст. */
.au-checkout-status__step::before {
  content: counter(checkout-step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--au-black);
}

/* §137: контакты в подвале статуса — Inter Tight Regular 400. */
.au-checkout-status__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.6);
}

.au-checkout-status__contact a {
  color: var(--au-black);
}
