.checkout-body {
  min-height: 100vh;
  background: #091224;
}

.checkout-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.checkout-header,
.checkout-footer,
.checkout-main {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.checkout-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.checkout-brand b {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 15px;
}

.checkout-brand small {
  color: var(--text-soft);
  font-size: 12px;
}

.checkout-header nav,
.checkout-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.checkout-header nav a,
.checkout-footer a {
  color: #d3def8;
  font-size: 14px;
  font-weight: 750;
}

.checkout-main {
  padding: 54px 0 82px;
}

.checkout-intro {
  max-width: 760px;
  margin-bottom: 30px;
}

.checkout-eyebrow,
.checkout-form__head span,
.checkout-summary__head span {
  margin: 0 0 10px;
  color: #a9c5f5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.checkout-intro h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
}

.checkout-intro > p:last-child {
  max-width: 64ch;
  margin: 0;
  color: var(--text-soft);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 22px;
  align-items: start;
}

.checkout-form,
.checkout-summary,
.checkout-result {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, #14233e, #0e1a30);
  box-shadow: var(--shadow-hard);
}

.checkout-form {
  padding: clamp(22px, 4vw, 34px);
}

.checkout-summary {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 24px;
  padding: 26px;
}

.checkout-result {
  grid-column: 1 / -1;
  padding: 32px;
}

.checkout-form__head,
.checkout-summary__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.checkout-form__head h2,
.checkout-summary__head h2,
.checkout-result h2 {
  font-size: clamp(21px, 2vw, 28px);
}

.checkout-form__head > p {
  max-width: 230px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  text-align: right;
}

.checkout-error,
.checkout-payment-status {
  margin-bottom: 24px;
  border: 1px solid rgba(255, 112, 112, .55);
  border-radius: 14px;
  background: rgba(101, 18, 32, .34);
  color: #ffd6dc;
  padding: 14px 16px;
}

.checkout-section,
.checkout-payment {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-section + .checkout-section,
.checkout-email {
  margin-top: 30px;
}

.checkout-section legend,
.checkout-payment legend,
.checkout-email > span {
  display: block;
  margin-bottom: 13px;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.checkout-tariffs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-periods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checkout-option,
.checkout-method {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.checkout-option input,
.checkout-method input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.checkout-option__surface,
.checkout-method__surface {
  display: grid;
  min-height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(6, 14, 28, .5);
  padding: 16px;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.checkout-option:hover .checkout-option__surface,
.checkout-method:hover .checkout-method__surface {
  transform: translateY(-1px);
  border-color: #7595ca;
}

.checkout-option input:checked + .checkout-option__surface,
.checkout-method input:checked + .checkout-method__surface {
  border-color: #fff;
  background: #fff;
  color: #081426;
  box-shadow: 0 0 0 3px rgba(160, 193, 248, .22);
}

.checkout-option input:focus-visible + .checkout-option__surface,
.checkout-method input:focus-visible + .checkout-method__surface {
  outline: 3px solid #92b7f6;
  outline-offset: 3px;
}

.checkout-option b,
.checkout-method b {
  font-size: 16px;
  line-height: 1.3;
}

.checkout-option small,
.checkout-method small {
  margin-top: 7px;
  color: var(--text-soft);
  line-height: 1.45;
}

.checkout-option input:checked + .checkout-option__surface small,
.checkout-method input:checked + .checkout-method__surface small {
  color: #516173;
}

.checkout-option em {
  margin-top: 14px;
  color: #fff;
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
}

.checkout-option input:checked + .checkout-option__surface em {
  color: #081426;
}

.checkout-email {
  display: block;
}

.checkout-email input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #081427;
  color: #fff;
  padding: 0 16px;
  font: inherit;
}

.checkout-email input:focus {
  border-color: #fff;
  outline: 3px solid rgba(160, 193, 248, .25);
}

.checkout-email[data-invalid] input {
  border-color: #ff7d8e;
}

.checkout-email small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.checkout-email .checkout-field-error {
  color: #ffb2bd;
}

.checkout-summary dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  margin: 0;
}

.checkout-summary dt {
  color: var(--text-soft);
}

.checkout-summary dd {
  max-width: 190px;
  margin: 0;
  color: #fff;
  font-weight: 850;
  text-align: right;
}

.checkout-summary__price {
  font-size: 24px;
}

.checkout-consents {
  display: grid;
  gap: 12px;
}

.checkout-consents label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text-soft);
  cursor: pointer;
}

.checkout-consents label[data-invalid] {
  border-color: #ff7d8e;
  color: #ffd6dc;
}

.checkout-consents input {
  width: 20px;
  height: 20px;
  accent-color: #fff;
}

.checkout-consents a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-payment [data-payment-method-list] {
  display: grid;
  gap: 10px;
}

.checkout-method__surface {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.checkout-method__surface img {
  width: 34px;
  height: 38px;
  object-fit: contain;
}

.checkout-method__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  font-weight: 900;
}

.checkout-method__copy {
  display: grid;
}

.checkout-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #bcd5ff);
  color: #071427;
  cursor: pointer;
  font: 850 16px/1 "Manrope", sans-serif;
  box-shadow: 0 15px 32px rgba(137, 176, 245, .27);
}

.checkout-submit[aria-disabled="true"] {
  background: #35435b;
  color: #8998b2;
  box-shadow: none;
}

.checkout-submit:not([aria-disabled="true"]):hover {
  transform: translateY(-1px);
}

.checkout-submit-note {
  margin: -12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-payment-status {
  display: grid;
  gap: 7px;
  margin: 0;
  border-color: #6f91c9;
  background: rgba(44, 70, 112, .38);
  color: #e4edff;
}

.checkout-payment-status a,
.checkout-result a {
  display: inline-flex;
  margin-top: 10px;
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
}

.checkout-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.checkout-footer > span {
  font-family: "Unbounded", "Manrope", sans-serif;
  color: #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 640px) {
  .checkout-header,
  .checkout-footer,
  .checkout-main { width: min(100% - 24px, 1180px); }
  .checkout-header { min-height: 72px; }
  .checkout-brand small,
  .checkout-header nav a:first-child { display: none; }
  .checkout-main { padding: 34px 0 54px; }
  .checkout-intro h1 { font-size: 34px; }
  .checkout-form,
  .checkout-summary,
  .checkout-result { border-radius: 16px; }
  .checkout-form,
  .checkout-summary { padding: 20px; }
  .checkout-form__head { align-items: start; }
  .checkout-form__head > p { max-width: 130px; }
  .checkout-tariffs,
  .checkout-periods { grid-template-columns: 1fr; }
  .checkout-option__surface { padding: 15px; }
  .checkout-footer { align-items: start; flex-direction: column; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-option__surface,
  .checkout-method__surface,
  .checkout-submit { transition: none; }
}
