.wrap.checkout {
  max-width:1040px;
  gap:32px
}
.checkout .intro {
  max-width:690px
}
.checkout h1 {
  font-size:clamp(2rem,5vw,3rem)
}
.checkout .top {
  margin-bottom:8px
}
.checkout-back {
  font-size:.875rem;
  text-decoration:none
}
.checkout-note {
  background:var(--accent-soft);
  color:var(--ink);
  padding:17px 20px;
  border-radius:12px;
  font-size:.9375rem;
  line-height:1.6
}
.checkout-note a {
  font-weight:600
}
.checkout .intro p {
  font-size:1rem
}
.checkout-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:35px;
  align-items:start
}
.checkout-fields {
  min-width:0;
  display:grid;
  gap:30px
}
fieldset {
  border:0;
  padding:0;
  margin:0;
  min-width:0
}
legend {
  font-size:1.125rem;
  font-weight:650;
  margin-bottom:16px;
  padding:0;
  color:var(--ink)
}
.step-label {
  display:inline-grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:var(--surface-2);
  font-size:.8125rem;
  margin-right:8px;
  color:var(--muted)
}
.tariffs {
  display:grid;
  gap:10px
}
.tariff {
  position:relative
}
.tariff input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px
}
.tariff label {
  display:grid;
  grid-template-columns:22px 1fr auto;
  gap:5px 12px;
  align-items:center;
  padding:17px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  cursor:pointer
}
.radio-dot {
  width:20px;
  height:20px;
  border:1.5px solid var(--faint);
  border-radius:50%;
  grid-row:1/3;
  display:grid;
  place-items:center
}
.tariff input:checked+label {
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent);
  background:var(--accent-soft)
}
.tariff input:checked+label .radio-dot {
  border-color:var(--accent)
}
.tariff input:checked+label .radio-dot:after {
  content:'';
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent)
}
.tariff input:focus-visible+label {
  outline:3px solid var(--accent);
  outline-offset:3px
}
.tariff .name {
  font-weight:600;
  font-size:1rem
}
.tariff .price {
  font-size:1.125rem;
  font-weight:700;
  grid-column:3;
  grid-row:1/3
}
.tariff .note {
  font-size:.8125rem;
  color:var(--muted);
  grid-column:2
}
.field-row {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:18px
}
.field-row label {
  font-size:.9375rem;
  font-weight:600;
  color:var(--ink)
}
.field-row input {
  font:inherit;
  font-size:1rem;
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  padding:13px 14px;
  width:100%;
  min-height:48px
}
.field-row input:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:2px
}
.field-row .hint {
  font-size:.8125rem;
  color:var(--muted)
}
.field-row .err {
  font-size:.875rem;
  color:var(--danger);
  display:none
}
.field-row.invalid .err {
  display:block
}
.field-row.invalid input {
  border-color:var(--danger)
}
.device-help {
  border-bottom:1px solid var(--border);
  margin:8px 0 20px;
  padding-bottom:14px
}
.device-help summary {
  font-size:.875rem;
  color:var(--accent);
  cursor:pointer;
  padding:8px 0;
  min-height:44px
}
.device-help ol {
  padding-left:23px;
  font-size:.875rem;
  margin:10px 0 16px;
  display:grid;
  gap:8px
}
.device-help img {
  display:block;
  width:100%;
  max-width:470px;
  border-radius:10px
}
.device-help p {
  font-size:.8125rem;
  margin-top:10px
}
.order-summary {
  position:sticky;
  top:24px;
  border:1px solid var(--border);
  padding:24px;
  border-radius:16px;
  background:var(--surface)
}
.order-summary h2 {
  font-size:1.125rem;
  margin-bottom:20px
}
.order-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:.9375rem;
  margin-bottom:12px
}
.order-summary .order-meta {
  font-size:.8125rem;
  line-height:1.6;
  color:var(--muted);
  margin-bottom:20px
}
.total {
  border-top:1px solid var(--border);
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px
}
.total .sum {
  font-size:1.7rem;
  font-weight:700;
  letter-spacing:-.035em;
  color:var(--ink)
}
.agree {
  display:flex;
  gap:10px;
  font-size:.8125rem;
  color:var(--muted);
  line-height:1.6;
  margin:0 0 20px
}
.agree input {
  width:18px;
  height:18px;
  margin-top:4px;
  flex-shrink:0;
  accent-color:var(--accent)
}
.order-summary .btn {
  width:100%;
  min-height:52px;
  padding-inline:12px
}
.order-summary .hint {
  font-size:.8125rem;
  line-height:1.6;
  color:var(--faint);
  margin-top:12px
}
.submit-status {
  font-size:.875rem;
  color:var(--accent);
  margin-top:12px;
  min-height:0
}
.checkout-help {
  border-top:1px solid var(--border);
  padding-top:24px;
  font-size:.9375rem
}
.checkout .pay-marks {
  margin-top:18px
}
.checkout .mark {
  font-family:var(--body);
  font-size:.75rem;
  text-transform:none;
  letter-spacing:0;
  padding:5px 9px;
  border-radius:5px
}
.checkout footer {
  margin-top:10px
}
.prefill-note {
  font-size:.8125rem;
  color:var(--ok);
  margin-bottom:14px
}
.agree-error {
  color:var(--danger);
  font-size:.875rem;
  margin-bottom:12px
}
@media(max-width:780px) {
  .checkout-grid {
    grid-template-columns:1fr;
    gap:25px
  }
  .order-summary {
    position:static;
    padding:22px
  }
  .wrap.checkout {
    gap:26px
  }
  .tariff label {
    padding:16px 13px
  }
  .checkout .top {
    align-items:center
  }
  .checkout-fields {
    gap:24px
  }
}
@media(max-width:360px) {
  .tariff .price {
    font-size:1rem
  }
  .tariff label {
    gap:5px 8px
  }
  .tariff .note {
    font-size:.75rem
  }
  .order-summary {
    padding:18px
  }
}
