:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  color: #182923;
  background: #f7f8f4;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-wrap: anywhere;
}
header {
  min-height: 74px;
  border-bottom: 1px solid #d7ded7;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: max(16px, env(safe-area-inset-top, 0px))
    max(24px, calc((100vw - 1120px) / 2), calc(16px + env(safe-area-inset-right, 0px))) 16px
    max(24px, calc((100vw - 1120px) / 2), calc(16px + env(safe-area-inset-left, 0px)));
  background: #fff;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #193d30;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #6d7d72;
}
nav {
  display: flex;
  gap: 24px;
  flex: 1;
  flex-wrap: wrap;
}
a {
  color: #215c46;
  text-underline-offset: 4px;
}
nav a {
  text-decoration: none;
  font-size: 0.92rem;
}
button,
.button {
  font: inherit;
  border: 0;
  border-radius: 3px;
  background: #22543f;
  color: white;
  padding: 13px 19px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  min-height: 46px;
}
button:hover,
.button:hover {
  background: #163b2b;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.language,
.secondary {
  background: transparent;
  color: #24513d;
  border: 1px solid #a6b6aa;
}
.language:hover,
.secondary:hover {
  background: #e5eee6;
  color: #173a2b;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px max(24px, calc(16px + env(safe-area-inset-right, 0px))) 96px
    max(24px, calc(16px + env(safe-area-inset-left, 0px)));
  min-height: 70vh;
}
footer {
  padding: 28px max(24px, calc((100vw - 1120px) / 2), calc(16px + env(safe-area-inset-right, 0px)))
    calc(28px + env(safe-area-inset-bottom, 0px))
    max(24px, calc((100vw - 1120px) / 2), calc(16px + env(safe-area-inset-left, 0px)));
  border-top: 1px solid #d7ded7;
  color: #65766b;
  font-size: 0.85rem;
  display: flex;
  gap: 16px;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 800px;
  margin: 0 0 22px;
}
h2 {
  font-size: 1.5rem;
  margin: 0 0 18px;
}
h3 {
  font-size: 1.1rem;
}
p {
  line-height: 1.65;
  margin: 0 0 16px;
}
.lead {
  font-size: 1.15rem;
  color: #53675b;
  max-width: 720px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #617e6d;
  margin-bottom: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 46px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #dce4dc;
  padding: 26px;
  min-width: 0;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card p {
  flex: 1;
  color: #53675b;
}
.narrow {
  max-width: 760px;
}
.stack > * + * {
  margin-top: 20px;
}
.notice {
  padding: 16px;
  border-inline-start: 3px solid #a87e38;
  background: #f5f0df;
  line-height: 1.5;
}
.error {
  color: #9b3027;
}
.success {
  color: #205e40;
}
.muted {
  color: #617268;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
}
label {
  font-weight: 600;
}
input,
textarea,
select {
  font: inherit;
  color: #182923;
  background: #fff;
  border: 1px solid #aebdb1;
  border-radius: 3px;
  padding: 12px;
  max-width: 100%;
  width: 100%;
  min-height: 46px;
}
textarea {
  min-height: 150px;
  resize: vertical;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
}
.check input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0;
}
.check label {
  font-weight: 400;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.field-error {
  color: #9b3027;
  font-size: 0.9rem;
}
.status {
  min-height: 1.5em;
  margin: 12px 0;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  overflow-wrap: anywhere;
}
.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.details div {
  overflow-wrap: anywhere;
}
.details strong {
  display: block;
  color: #65766b;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.message {
  border-top: 1px solid #dce4dc;
  padding: 20px 0;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ticket-row {
  display: block;
  width: 100%;
  text-align: start;
  background: #fff;
  color: #182923;
  border: 1px solid #dce4dc;
  margin: 8px 0;
}
.ticket-row:hover {
  background: #eef4ee;
  color: #182923;
}
.ticket-row span {
  display: block;
  overflow-wrap: anywhere;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.policy section {
  margin: 36px 0;
}
.policy p {
  white-space: pre-wrap;
}
.secret {
  word-break: break-all;
  padding: 12px;
  background: #f0f4ef;
}
.hidden {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #b28b45;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  header {
    padding: max(16px, env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px))
      16px calc(16px + env(safe-area-inset-left, 0px));
    gap: 14px;
    flex-wrap: wrap;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    gap: 16px;
  }
  .language {
    margin-inline-start: auto;
  }
  main {
    padding: 40px calc(16px + env(safe-area-inset-right, 0px)) 72px
      calc(16px + env(safe-area-inset-left, 0px));
  }
  .grid,
  .filters,
  .details {
    grid-template-columns: 1fr;
  }
  .card,
  .panel {
    padding: 20px;
  }
  footer {
    padding: 24px calc(16px + env(safe-area-inset-right, 0px))
      calc(24px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  }
  h1 {
    font-size: 2.3rem;
  }
}
