@font-face { font-family: "Gilroy"; font-weight: 400; font-display: swap; src: url("fonts/Gilroy-Regular.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-weight: 500; font-display: swap; src: url("fonts/Gilroy-Medium.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-weight: 700; font-display: swap; src: url("fonts/Gilroy-Bold.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-weight: 900; font-display: swap; src: url("fonts/Gilroy-Black.woff2") format("woff2"); }

:root {
  --blue: #69caf0;
  --navy: #0d153a;
  --cyan: #27c4fb;
  --ocean: #2aa0ce;
  --ice: #e8f4ff;
  --ink: #1a1a1a;
  --muted: #494949;
  --line: #d9e3ef;
  --bg: #ffffff;
  --panel: #f5f9fd;
  --link: #1d7fae;
  --ok: #1d8a5b;
  --err: #b3261e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Gilroy", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.topbar { background: var(--navy); }
.topbar .inner { max-width: 880px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar img { height: 34px; width: auto; display: block; }
.topbar .client { color: var(--blue); font-weight: 500; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

main { max-width: 880px; margin: 0 auto; padding: 40px 16px 64px; }

h1 { font-weight: 900; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; color: var(--navy); margin: 0 0 10px; }
h1 + p { color: var(--muted); font-size: 15px; margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
h2 { font-weight: 700; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.25; color: var(--navy); margin: 44px 0 12px; }
h3 { font-weight: 700; font-size: 20px; color: var(--navy); margin: 32px 0 8px; }
p { margin: 0 0 16px; }
strong { font-weight: 700; color: var(--navy); }
a { color: var(--link); text-underline-offset: 2px; word-break: break-word; }
a:hover { color: var(--ocean); }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li > p { margin: 0 0 6px; }
code { font-size: .9em; background: var(--panel); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--panel); padding: 14px; border-radius: 8px; overflow-x: auto; }
blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 3px solid var(--blue); color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--ice); color: var(--navy); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td p { margin: 0; }

select.decision {
  font: 500 15px/1.3 "Gilroy", system-ui, sans-serif;
  color: var(--navy);
  padding: 8px 32px 8px 10px;
  min-width: 210px;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230d153a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}
select.decision:focus { outline: 3px solid rgba(105, 202, 240, .4); outline-offset: 1px; }
select.decision.picked { background-color: var(--ice); }

@media (max-width: 640px) {
  .table-wrap:has(table.decisions) { border: 0; overflow: visible; }
  table.decisions thead { display: none; }
  table.decisions, table.decisions tbody, table.decisions tr, table.decisions td { display: block; width: 100%; }
  table.decisions tr { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
  table.decisions td { border: 0; padding: 3px 0; }
  table.decisions td:first-child { font-weight: 700; color: var(--navy); font-size: 17px; padding-bottom: 6px; }
  table.decisions td:not(:first-child)[data-th]::before { content: attr(data-th) ": "; color: var(--muted); font-weight: 500; }
  table.decisions td:last-child::before { display: block; margin: 6px 0 4px; content: attr(data-th); }
  table.decisions select.decision { width: 100%; }
}

.submit-panel {
  margin-top: 40px;
  padding: 24px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.submit-panel h2 { margin-top: 0; font-size: 22px; }
.submit-panel p { color: var(--muted); font-size: 15px; }
.submit-panel label { display: block; font-weight: 700; color: var(--navy); font-size: 14px; margin: 14px 0 6px; }
.submit-panel input, .submit-panel textarea {
  width: 100%;
  font: 400 16px/1.4 "Gilroy", system-ui, sans-serif;
  padding: 10px 12px;
  border: 1px solid #b9c7d8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.submit-panel textarea { min-height: 88px; resize: vertical; }
.submit-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .submit-panel .row { grid-template-columns: 1fr; } }
.btn {
  margin-top: 18px;
  font: 700 16px/1 "Gilroy", system-ui, sans-serif;
  color: #fff;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #69caf0, #0d153a);
  cursor: pointer;
}
.btn:hover { background: linear-gradient(90deg, #27c4fb, #69caf0); }
.btn[disabled] { opacity: .6; cursor: wait; }
.status { margin: 14px 0 0; font-weight: 500; font-size: 15px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

footer { border-top: 1px solid var(--line); }
footer .inner { max-width: 880px; margin: 0 auto; padding: 20px 16px 32px; color: var(--muted); font-size: 13px; }

@media print {
  .topbar { background: none; }
  .submit-panel { display: none; }
  select.decision { border: 0; background: none; padding: 0; }
}
