:root {
  color-scheme: light;
  --cream: #f8f6f1;
  --paper: #fffcf8;
  --ink: #151820;
  --muted: #655f56;
  --line: #e5ded3;
  --navy: #111a2d;
  --teal: #146b63;
  --mint: #e5f1ed;
  --gold: #dfc280;
  font-family: "Avenir Next", Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 0 0, #f1e7d6, transparent 44%), radial-gradient(ellipse at 100% 8%, #e5efeb, transparent 43%), var(--cream); }
a { color: var(--teal); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #238c80; outline-offset: 4px; }
h1, h2 { font-family: Fraunces, Georgia, serif; line-height: 1.08; letter-spacing: -.035em; margin: 0 0 .55em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
p { margin: 0 0 1.15em; line-height: 1.62; color: var(--muted); overflow-wrap: anywhere; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.frame { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); background: #fffcf8bd; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand strong { display: block; font-size: .85rem; letter-spacing: .16em; }
.brand small { display: block; color: var(--muted); line-height: 1.2; }
.badge { color: #69440d; background: #f3e2ba; border: 1px solid #e4c78b; padding: 4px 8px; border-radius: 7px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.dev-note { margin: -12px 0 16px; font-size: .82rem; color: #69440d; }
.header nav { display: flex; align-items: center; gap: 14px; margin-left: auto; font-weight: 650; font-size: .86rem; }
select.language-select {
  width: auto;
  min-width: 74px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid #dedbd4;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
main { min-height: 65vh; padding-block: 30px; }
.hero { position: relative; display: grid; grid-template-columns: 1fr minmax(220px, .52fr); min-height: 290px; align-items: center; overflow: hidden; border-radius: 25px; padding: clamp(24px, 5vw, 60px); color: white; background: linear-gradient(113deg, #111a2d, #213749 56%, #146b63); box-shadow: 0 16px 42px #2031471c; }
.hero-copy { z-index: 1; }
.hero p { color: #e1e8e4; }
.eyebrow { margin-bottom: 12px; color: var(--teal); text-transform: uppercase; font-size: .72rem; letter-spacing: .15em; font-weight: 800; }
.hero .eyebrow { color: var(--gold); }
.search { display: flex; max-width: 490px; }
.search input { border-radius: 10px 0 0 10px; min-width: 0; }
.search button { display: grid; place-items: center; border: 0; border-radius: 0 10px 10px 0; padding: 0 14px; background: var(--gold); color: var(--navy); }
.art { position: relative; display: grid; place-items: center; min-height: 160px; }
.orbit { position: absolute; width: 280px; height: 110px; border: 1px solid #edddad75; border-radius: 50%; transform: rotate(-31deg); }
.stub { position: relative; display: grid; place-items: center; width: 139px; height: 100px; background: linear-gradient(145deg, #fff3d7, #cce0d0); border-radius: 18px; box-shadow: 0 13px 26px #10182950; transform: rotate(10deg); }
.stub span { color: var(--teal); font: 700 2.75rem Georgia, serif; }
.stub i { position: absolute; top: 12px; right: 14px; width: 22px; height: 4px; border-radius: 4px; background: #ae8535; }
.catalog, .lower { display: grid; gap: 14px; margin-top: 20px; }
.catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .panel { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px; min-height: 72px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.card:hover, .card[aria-current] { border-color: var(--teal); }
.icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--mint); color: var(--teal); }
.trip .icon { background: #e6eef6; color: #2b5378; }
.expense .icon { background: #f3e9cd; color: #795719; }
.other .icon { background: #f5e8df; color: #884c3d; }
.lower { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.panel { padding: clamp(19px, 4vw, 32px); }
.contact { background: linear-gradient(145deg, var(--paper), #eef5ed); }
.articles { padding: 0; margin: 0 0 8px; list-style: none; }
.articles a, .split { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.articles a { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 17px; border: 0; border-radius: 10px; background: var(--teal); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #11564f; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.narrow { max-width: 720px; margin-inline: auto; }
label { display: grid; gap: 6px; font-weight: 650; margin: 14px 0; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #cfc7ba; color: var(--ink); border-radius: 9px; background: #fffefa; }
textarea { resize: vertical; }
.hint, time, .footer { font-size: .85rem; color: var(--muted); }
.back { display: inline-block; margin-bottom: 18px; }
.escalation, .status-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.ticket-session { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.ticket-session p { margin: 8px 0 0; }
.status { display: inline-block; flex: 0 0 auto; padding: 4px 9px; border-radius: 20px; background: var(--mint); color: var(--teal); font-size: .78rem; }
.waiting { color: #704c15; background: #f6ead1; }
.closed { color: var(--muted); background: #eee8e0; }
.quiet { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--paper); color: var(--teal); }
.message { padding: 14px 17px; margin: 12px 0; border-radius: 12px; background: var(--cream); }
.message.team { background: var(--mint); }
.message p { white-space: pre-wrap; margin: 8px 0 0; }
.message-files { margin-top: 12px; overflow-wrap: anywhere; }
.message-files ul { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.message-image { display: block; max-width: 100%; max-height: min(55vh, 480px); width: auto; height: auto; margin-bottom: 6px; border-radius: 8px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px; border-top: 1px solid var(--line); }
@media (max-width: 870px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) {
  .frame { width: calc(100% - 28px); }
  .header-inner { flex-wrap: wrap; }
  .hero, .lower { grid-template-columns: 1fr; }
  .art { display: none; }
  .card { grid-template-columns: auto minmax(0, 1fr); }
  .card > span:last-child { display: none; }
  .split { flex-wrap: wrap; }
}
