:root {
  --bg: #f6f7f9;
  --paper: #fff;
  --ink: #14233d;
  --muted: #58657a;
  --line: #dce2eb;
  --blue: #087993;
  --soft: #eaf7f9;
  --green: #187256;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
header {
  padding: 22px max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
}
.brand small {
  display: block;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 24px;
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 90px;
  min-height: calc(100vh - 174px);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.13;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 0;
}
h3 {
  font-size: 17px;
  margin: 0 0 6px;
}
p {
  margin: 0 0 20px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 38em;
}
.layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 30px #15234005;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span2 {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #bdc7d7;
  border-radius: 8px;
  padding: 11px 13px;
  width: 100%;
  color: var(--ink);
  outline-offset: 3px;
}
textarea {
  resize: vertical;
  min-height: 160px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--blue);
}
button,
.button {
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 4px 6px;
}
.secondary {
  background: var(--soft);
  color: var(--blue);
}
.hint,
small {
  font-size: 13px;
  color: var(--muted);
}
.hint {
  margin-top: 5px;
}
.check {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  align-items: start;
}
.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}
.steps {
  margin-top: 36px;
  display: grid;
  gap: 22px;
}
.step {
  display: flex;
  gap: 14px;
}
.number {
  background: #e4f3f6;
  color: var(--blue);
  border-radius: 50%;
  height: 29px;
  width: 29px;
  text-align: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 29px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.note {
  border-left: 3px solid var(--blue);
  padding: 12px 18px;
  background: var(--soft);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  margin: 24px 0;
}
.error {
  background: #fff0ef;
  color: #a32424;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.success {
  background: #eaf7ef;
  color: #176542;
  padding: 18px;
  border-radius: 10px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  letter-spacing: 0.05em;
  background: #fff3d7;
  color: #815d0a;
  padding: 4px 8px;
}
.status {
  font-size: 12px;
  border-radius: 30px;
  padding: 4px 10px;
  background: var(--soft);
  color: var(--blue);
  white-space: nowrap;
}
.status.closed {
  color: var(--green);
  background: #eaf7ef;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.toolbar h1 {
  font-size: 32px;
  flex: 1;
  margin: 0;
}
.toolbar select {
  width: auto;
}
.list {
  display: grid;
  gap: 12px;
}
.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 20px 24px;
}
.ticket-row:hover {
  border-color: #a5b4df;
}
.meta {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.message {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 14px 0;
}
.message.support {
  border-left: 3px solid var(--blue);
}
.message.agent,
.internal {
  background: #f1edf9;
}
.message pre,
.mailbody {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.narrow {
  max-width: 760px;
  margin: auto;
}
.login {
  max-width: 430px;
  margin: 24px auto;
}
.login input {
  margin-bottom: 16px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}
.inline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.spinner {
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px max(24px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  header {
    padding: 18px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  main {
    padding: 34px 18px 60px;
  }
  .steps {
    display: none;
  }
  .card {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  h1 {
    font-size: 34px;
  }
  nav {
    gap: 8px;
  }
  .ticket-row {
    align-items: start;
  }
  .toolbar h1 {
    flex-basis: 100%;
  }
  footer {
    padding: 20px 18px;
    flex-direction: column;
  }
  .badge {
    font-size: 9px;
  }
}

.brand-logo {
  display: block;
  width: 44px;
  height: 48px;
  object-fit: contain;
}
