:root {
  color-scheme: light;
  --canvas: #f5f6ef;
  --paper: #fff;
  --ink: #18221d;
  --muted: #536057;
  --line: #dce3d9;
  --green: #24583f;
  --bright: #dbf48c;
  --danger: #8e2d2d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }

.shell {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

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

.brand, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand { overflow-wrap: anywhere; }
.text-link { color: var(--green); font-size: .875rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
#sandbox-mode { color: var(--muted); font-weight: 650; white-space: nowrap; }

.brand-sign {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--green);
  display: grid;
  place-items: center;
}

.brand-sign span {
  width: 14px;
  height: 11px;
  border: 2px solid var(--bright);
  border-radius: 4px 4px 4px 0;
}

.checkout {
  margin: clamp(30px, 8vw, 78px) auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 18px;
}

.package, .panel {
  border-radius: 24px;
  padding: clamp(24px, 5vw, 44px);
  min-width: 0;
}

.package {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: linear-gradient(145deg, #173329, #122b23 65%, #143a2b);
  color: #f3faef;
}

.package::after {
  content: "";
  position: absolute;
  width: 330px;
  aspect-ratio: 1;
  top: -180px;
  right: -160px;
  z-index: -1;
  border: 1px solid #b5d99645;
  border-radius: 48px;
  transform: rotate(37deg);
  box-shadow: 0 0 0 27px #a9cc8d14, 0 0 0 55px #a9cc8d0d;
}

.package-label, .order-label {
  margin: 0 0 17px;
  color: var(--bright);
  font-weight: 700;
  font-size: .8125rem;
}

h1, h2 { margin: 0; font-weight: 760; letter-spacing: -.045em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.35rem); line-height: .99; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.6rem, 4vw, 2.06rem); line-height: 1.1; }

.package-description {
  max-width: 25ch;
  margin: 17px 0 34px;
  color: #c9d8ce;
  line-height: 1.55;
}

.package-total {
  display: grid;
  gap: 7px;
  padding-top: 24px;
  margin-top: auto;
  border-top: 1px solid #d9ebd433;
  color: #d1ded2;
  font-size: .875rem;
}

.package-total strong {
  color: var(--bright);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px #192a2410;
}

.panel-description, .payment-note {
  color: var(--muted);
  line-height: 1.55;
}

.panel-description { margin: 11px 0 28px; font-size: .9375rem; }
.payment-note { margin: 15px 0 0; font-size: .8125rem; }

form, .field {
  display: grid;
  min-width: 0;
}

form { gap: 16px; }
.field { gap: 8px; font-size: .875rem; font-weight: 680; }
.name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }

input {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #fbfcf9;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 450;
}

input::placeholder { color: #68756c; }

.primary-button, .secondary-button {
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 17px;
  font: inherit;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-button { margin-top: 4px; background: var(--green); color: white; }
.primary-button:hover { background: #19452f; }
.primary-button:disabled { background: #e6ebe4; color: #465348; cursor: wait; }
.secondary-button { color: var(--green); background: white; border-color: var(--line); }
.secondary-button:hover { background: #f3f6f0; }
:focus-visible { outline: 3px solid #418560; outline-offset: 3px; }
.error { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--danger); }

.order-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.order-label { color: var(--green); }
.order-panel .text-link { margin-top: 16px; }
.order-panel .primary-button, .order-panel .secondary-button { min-width: min(100%, 210px); }

@media (max-width: 740px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .package { min-height: 0; }
}

@media (max-width: 450px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 68px; }
  .site-header .text-link { font-size: .8125rem; }
  .name-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .package, .panel { border-radius: 17px; }
}
