:root {
  font-family: Inter, system-ui, sans-serif;
  color: #e9edf5;
  background: #0b101b;
  font-synthesis: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1040px;
  margin: auto;
  padding: 28px 24px 60px;
}
header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
  color: inherit;
}
.badge {
  font-size: 11px;
  border: 1px solid #36435d;
  border-radius: 100px;
  padding: 5px 9px;
  color: #b9c5dc;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  max-width: 720px;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
h2 {
  font-size: 21px;
  margin: 0 0 22px;
}
h3 {
  font-size: 16px;
  margin: 24px 0 12px;
}
.intro {
  font-size: 18px;
  color: #abb9d2;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 36px;
}
section {
  border: 1px solid #283248;
  background: #111a2a;
  border-radius: 16px;
  padding: 26px;
  margin: 20px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #c9d5e9;
  margin: 12px 0;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: #0b1220;
  border: 1px solid #34445f;
  color: #fff;
  border-radius: 7px;
}
textarea {
  resize: vertical;
  line-height: 1.55;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #86b9ff;
  outline-offset: 3px;
}
button,
.action {
  display: inline-block;
  padding: 11px 17px;
  background: #99bfff;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #10203c;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  margin: 8px 6px 4px 0;
}
button.secondary {
  background: #202e46;
  color: #e9edf5;
  border-color: #40516e;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.hint,
footer {
  font-size: 13px;
  color: #9dacc4;
  line-height: 1.65;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.check {
  flex-direction: row;
  align-items: center;
}
.check input {
  width: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.card {
  border: 1px solid #34435e;
  border-radius: 9px;
  padding: 15px;
  overflow-wrap: anywhere;
}
.card p {
  font-size: 13px;
  color: #aebdd4;
  line-height: 1.5;
  margin: 9px 0;
}
.card h3 {
  margin: 0 0 12px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 10px;
  align-items: end;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar p {
  flex: 1;
  color: #c0cfe4;
}
#status {
  min-height: 24px;
  line-height: 1.5;
  color: #b5d3ff;
}
#status.error {
  color: #ffb6ba;
}
#issued {
  border: 1px solid #87b5f4;
  padding: 14px;
  border-radius: 8px;
}
footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #29354c;
}
nav {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}
nav a {
  color: #b2cfff;
}
article {
  max-width: 700px;
  line-height: 1.7;
  padding: 20px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    padding: 22px 16px;
  }
  header {
    margin-bottom: 40px;
  }
  section {
    padding: 20px 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .price-row {
    grid-template-columns: 1fr 1fr;
  }
  .price-row button {
    align-self: center;
  }
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #0b1220;
  border-radius: 8px;
  line-height: 1.65;
}
code {
  overflow-wrap: anywhere;
}
a {
  color: #9cc3ff;
}
section p {
  line-height: 1.65;
}
[hidden] {
  display: none !important;
}
.price-row details {
  grid-column: 1 / -1;
  width: 100%;
}
.price-row details input {
  min-width: 0;
}

header {
  flex-wrap: wrap;
}
input,
textarea,
select {
  min-width: 0;
}
@media (max-width: 600px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
