:root {
  color-scheme: light;
  --navy: #003050; --yellow: #f9b000; --blue: #008ac0;
  --bg: #f3f5f8; --panel: #ffffff; --line: #dfe3ea; --field: #c3c9d4;
  --muted: #56606f; --error: #a3261a;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--navy);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.top { background: var(--panel); border-bottom: 4px solid var(--yellow); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { height: 52px; width: auto; display: block; }
.top-title { font-size: 18px; font-weight: 650; }
.top-note { margin-left: auto; font-size: 14px; color: var(--muted); }

main.wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.intro h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.intro p { margin: 0; color: var(--muted); max-width: 640px; }

button, .btn, input, select, textarea { font: inherit; color: inherit; }
button, .btn { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button, .btn, .seg button {
  min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 550;
  border: 1px solid var(--field); border-radius: 8px; background: var(--panel);
}
.btn { display: inline-flex; align-items: center; }
.tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.left { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.right { flex: 1 1 320px; max-width: 380px; min-width: 0; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.card h2 { margin: 0; font-size: 18px; font-weight: 650; }

.fields { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 100%; min-width: 0; }
.field.half { flex: 1 1 220px; }
label, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; font-size: 15px;
  background: var(--panel); border: 1px solid var(--field); border-radius: 8px;
}
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; margin: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px;
  border: 1px dashed #8a94a6; border-radius: 8px; background: #f8f9fb;
}
.drop.over { border-color: var(--navy); background: #eaf1f6; }
.drop-text { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.drop:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }

.preview {
  aspect-ratio: 1; display: grid; place-items: center; padding: 12px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--muted);
}
.preview img { width: 100%; height: 100%; display: block; }
.msg { margin: -8px 0 0; font-size: 14px; color: var(--error); }
.msg:empty { display: none; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 0; min-width: 96px; padding: 0 8px; }
#sizes button[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.downloads { display: flex; flex-direction: column; gap: 8px; }
.primary {
  min-height: 48px; font-size: 16px; font-weight: 600; border-radius: 8px;
  border: 1px solid var(--yellow); background: var(--yellow); color: var(--navy);
}

footer { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 8px; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .right { max-width: none; }
  .top-note { display: none; }
  .brand { height: 40px; }
}
