/* ============ базовые ============ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #e8e8e8;
  color: #111;
  line-height: 1.35;
}

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font-family: inherit; }

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #fff;
  position: relative;
}

@media (min-width: 520px) {
  .page { box-shadow: 0 0 40px rgba(0, 0, 0, .12); }
}

.screen { display: none; animation: fadeIn .18s ease; }
.screen--active { display: block; }

@keyframes fadeIn {
  from { opacity: .4; }
  to   { opacity: 1; }
}

.topbar { padding: 20px 16px 4px; }

.icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  margin-left: -6px; border-radius: 50%; color: #111;
}
.icon-btn:active { background: #f2f2f2; }

.title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 18px 20px 0;
}

.title--pay { padding-bottom: 18px; }

.subtitle {
  font-size: 17px;
  color: #1a1a1a;
  padding: 12px 20px 0;
}

.bottom-space { height: 48px; }

/* ============ чек-лист проверок ============ */
.checks { list-style: none; padding: 22px 20px 0; }

.check-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 16px;
  padding: 9px 0;
}

.check-item--extra { display: none; }
.checks--expanded .check-item--extra { display: flex; }

.check-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  color: #43a047;
}
.check-icon svg { width: 100%; height: 100%; }

.show-all {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 10px 20px 0;
  color: #4a90c4;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0;
}
.show-all svg { transition: transform .2s ease; }
.show-all--open svg { transform: rotate(180deg); }

/* ============ выбор авто ============ */
.section-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 30px 20px 0;
  max-width: 380px;
}

.offers { padding: 18px 20px 0; display: flex; flex-direction: column; gap: 14px; }

.offer {
  display: block; width: 100%; text-align: left;
  background: #f5f5f5;
  border-radius: 28px;
  padding: 20px 22px 22px;
}

.offer--selected {
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
}
.offer:active { transform: scale(.99); }

.offer__label { display: block; font-size: 17px; }

.offer__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.offer__badge {
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.offer__badge--40 { background: linear-gradient(90deg, #ffb04a, #ff8a3d); }
.offer__badge--50 { background: #e5322e; }

.offer .offer__check { display: none; }
.offer--selected .offer__check { display: flex; }

.offer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
}

.offer__price { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.offer__per { font-size: 24px; }

.offer__check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #43a047;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.offer__check svg { width: 18px; height: 18px; }

/* ============ email ============ */
.email-block { padding: 34px 20px 0; }

.email-block__title { font-size: 15px; margin-bottom: 12px; max-width: 300px; }

.input {
  width: 100%;
  height: 54px;
  background: #f2f2f2;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 16px;
  color: #111;
  outline: none;
}
.input::placeholder { color: #9a9a9a; }
.input:focus { background: #ededed; }

/* ============ промокод ============ */
.promo {
  margin: 26px 20px 0;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 18px 18px 16px;
}

.promo__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.promo__text { font-size: 15px; max-width: 250px; }
.promo__icon { display: block; flex: 0 0 auto; width: 64px; height: 48px; }

.promo__form { display: flex; gap: 8px; margin-top: 14px; }
.promo__input { flex: 1; background: #fff; height: 48px; border-radius: 12px; }
.promo__input:focus { background: #fff; }

.promo__apply {
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: #e3f0fb;
  color: #2f7cd0;
  font-size: 15px;
  font-weight: 600;
}
.promo__apply:active { background: #d3e6f8; }
.promo__apply:disabled { color: #a8c8e8; cursor: default; }

.promo__status { font-size: 13px; margin-top: 10px; min-height: 16px; }
.promo__status--ok { color: #2e7d32; }
.promo__status--err { color: #c62828; }

/* ============ экран оплаты ============ */
.pay-amount {
  padding: 22px 20px 0;
  font-size: 20px;
  color: #b0232f;
}
.pay-amount b { font-weight: 700; }

.receipt {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 20px 6px;
  cursor: pointer;
  user-select: none;
}
.receipt input { position: absolute; opacity: 0; pointer-events: none; }

.receipt__box {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #f0f0f0;
  border: 1.5px solid #e0e0e0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex: 0 0 auto;
  transition: background .15s ease, border-color .15s ease;
}
.receipt__box svg { width: 16px; height: 16px; opacity: 0; }
.receipt input:checked + .receipt__box { background: #43a047; border-color: #43a047; }
.receipt input:checked + .receipt__box svg { opacity: 1; }
.receipt__label { font-size: 15px; }

/* банки */
.bank {
  display: flex; align-items: center; gap: 16px;
  width: calc(100% - 40px);
  margin: 12px 20px 0;
  height: 74px;
  background: #f5f5f5;
  border-radius: 36px;
  padding: 0 22px;
  text-align: left;
}
.bank:active { background: #ededed; }

.bank__logo {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 700;
}
.bank__logo svg { width: 26px; height: 26px; }

.bank__logo--sber  { background: #21a038; }
.bank__logo--sbp   { background: #fff; box-shadow: inset 0 0 0 1.5px #ececec; }
.bank__logo--tbank { background: #ffdd2d; color: #111; font-size: 21px; }
.bank__logo--vtb   { background: #0a2896; }
.bank__logo--vtb span { font-size: 10.5px; letter-spacing: .02em; }
.bank__logo--alfa  { background: #ef3124; font-size: 20px; font-family: Georgia, serif; }

.bank__logo--ozon  { background: #005bff; flex-direction: column; line-height: 1; }
.ozon-top    { font-size: 10.5px; font-weight: 800; letter-spacing: .01em; }
.ozon-bottom { font-size: 7.5px; font-weight: 600; margin-top: 1px; }

.bank__logo--all { background: #ececec; }

.bank__name { font-size: 17px; }

/* ============ загрузка (режим клиентской ссылки) ============ */
.loading-overlay {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 60;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}

.loading__spinner {
  width: 46px; height: 46px;
  border: 4px solid #eee;
  border-top-color: #43a047;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading__title { font-size: 19px; font-weight: 700; margin-top: 22px; }
.loading__text { font-size: 14px; color: #666; margin-top: 8px; max-width: 280px; }
.loading__text--err { color: #c62828; }


.offer {
  cursor: default;
}

.offer__order {
  display: block;
  width: 100%;
  margin-top: 14px;
  height: 48px;
  border-radius: 14px;
  background: #2f6fed;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.offer__order:active {
  background: #2559c7;
  transform: scale(.99);
}
