:root {
  color-scheme: light dark;
  --bg: #f3f7fb;
  --surface: #fff;
  --ink: #172c42;
  --muted: #53667c;
  --line: #dce5ee;
  --accent: #087c82;
  --tint: #e7f5f4;
  --error: #9c263a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.6 system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px max(24px, calc((100vw - 1240px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  display: block;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
main {
  max-width: 1240px;
  padding: 48px 24px;
  margin: auto;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 800px;
  margin: 14px 0 20px;
}
h2 {
  font-size: 22px;
  margin: 0 0 16px;
  line-height: 1.3;
}
h3 {
  font-size: 17px;
}
.intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 760px;
}
.steps {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.steps li {
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px;
}
.card {
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
}
.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}
.toolbar div {
  display: flex;
  gap: 18px;
  align-items: center;
}
.notice {
  background: var(--tint);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
}
.notice:empty {
  display: none;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
button,
.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.danger {
  background: var(--surface);
  border-color: var(--error);
  color: var(--error);
}
label {
  display: block;
  margin: 14px 0;
}
input,
textarea,
select {
  max-width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
textarea,
input:not([type="checkbox"]) {
  width: 100%;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.language {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin: 0;
}
textarea {
  resize: vertical;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 24px;
  color: var(--muted);
}
.principles h3 {
  color: var(--ink);
}
.principles p {
  font-size: 14px;
}
.package {
  display: block;
  width: 100%;
  margin: 10px 0;
  text-align: left;
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.photo {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.photo img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 12px;
  background: #e7ecef;
}
.badge {
  display: inline-block;
  background: var(--tint);
  border-radius: 6px;
  font-size: 12px;
  padding: 4px 10px;
}
.error {
  border: 1px solid var(--error);
  border-radius: 8px;
  color: var(--error);
  padding: 14px;
  background: var(--surface);
  margin-bottom: 16px;
}
progress {
  width: 100%;
  height: 12px;
}
.history {
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
footer {
  font-size: 13px;
  border-top: 1px solid var(--line);
}
:focus-visible {
  outline: 3px solid #35a7d3;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  background: var(--surface);
  padding: 10px;
}
.skip:focus {
  top: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  header {
    align-items: flex-start;
    padding: 16px;
  }
  nav {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    justify-content: flex-end;
  }
  main {
    padding: 28px 16px;
  }
  .layout,
  .principles {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar div {
    flex-wrap: wrap;
  }
  .steps li {
    font-size: 12px;
    padding: 8px 12px;
  }
  h2 {
    font-size: 20px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #102030;
    --surface: #192c3e;
    --ink: #e8f0f7;
    --muted: #adc0d2;
    --line: #324b61;
    --accent: #10858b;
    --tint: #193d43;
    --error: #ff9aad;
  }
  a,
  .eyebrow,
  .brand span {
    color: #78d4d4;
  }
  .photo img {
    background: #122433;
  }
}
