:root {
  color-scheme: light;
  --canvas: #f2f1ec;
  --surface: #fffefa;
  --ink: #1e241e;
  --muted: #515d53;
  --line: #d9dcd2;
  --dark: #202c23;
  --accent: #ffcf00;
  --accent-ink: #292214;
  --quiet: #edf0e7;
  --good: #24593c;
  --error: #9c392b;
  --shadow: 0 12px 32px #23302412;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --canvas: #151b17;
  --surface: #1e2721;
  --ink: #f3f1e8;
  --muted: #b9c8ba;
  --line: #3b4b40;
  --dark: #202e24;
  --quiet: #26372c;
  --good: #a1d8ad;
  --error: #ffb19f;
  --shadow: 0 12px 32px #0003;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 290px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid #ad8134; outline-offset: 3px; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.03; letter-spacing: -.06em; }
h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1.08rem; line-height: 1.3; }
small, .muted { color: var(--muted); }
.top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 10px; padding: env(safe-area-inset-top) max(20px, calc((100vw - 940px) / 2)) 0; border-bottom: 1px solid var(--line); background: var(--canvas); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.05rem; line-height: 1.05; font-weight: 900; letter-spacing: -.04em; }
.brand-secondary { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.brand-mark { display: block; width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; border-radius: 11px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.mode { font-size: .78rem; font-weight: 750; color: var(--muted); }
.theme { background: var(--surface); color: var(--ink); border: 1px solid var(--line); width: 44px; min-height: 44px; border-radius: 15px; font-size: 1.15rem; }
main { width: min(940px, 100%); margin: 0 auto; padding: 25px 18px calc(118px + env(safe-area-inset-bottom)); }
.stack { display: grid; gap: 15px; min-width: 0; }
.stack-tight { display: grid; gap: 10px; min-width: 0; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); padding: clamp(15px, 3vw, 24px); border-radius: 21px; }
.hero { position: relative; isolation: isolate; overflow: hidden; border: 0; display: grid; gap: 13px; padding: clamp(22px, 5.5vw, 42px); min-height: 240px; align-content: center; background: #243027; color: #fffaf0; box-shadow: var(--shadow); }
.hero > * { position: relative; z-index: 1; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero::before { background: url('/brand.png') calc(100% + 13px) center / min(62%, 390px) auto no-repeat; opacity: .42; }
.hero::after { background: linear-gradient(90deg, #222820 16%, #222820ed 43%, #22282072 79%, transparent); }
.hero p { max-width: 33ch; color: #dee3d5; }
.hero .button { justify-self: start; margin-top: 5px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tile { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; gap: 10px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); padding: 16px; border-radius: 17px; }
.tile span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.tile:hover, .button.secondary:hover { border-color: #a48a56; }
.tile i { justify-self: end; font-style: normal; display: grid; place-items: center; background: var(--quiet); min-width: 32px; height: 32px; border-radius: 10px; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; gap: 7px; padding: 9px 14px; border: 1px solid transparent; border-radius: 13px; background: var(--accent); color: var(--accent-ink); font-weight: 780; text-decoration: none; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.danger { background: var(--surface); color: var(--error); border-color: var(--line); }
.button.small { font-size: .87rem; }
.actions, .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions > .button { flex-shrink: 0; }
.status { display: inline-block; width: fit-content; border-radius: 50px; padding: 3px 9px; background: var(--quiet); color: var(--good); font-size: .75rem; font-weight: 760; }
.alert { background: var(--quiet); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; overflow-wrap: anywhere; }
.alert.error, .error { color: var(--error); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 14px; }
label:not(.check) { display: grid; gap: 5px; min-width: 0; font-size: .91rem; font-weight: 700; }
input:not([type=checkbox]), textarea, select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; background: var(--canvas); color: var(--ink); padding: 8px 11px; font-size: 1rem; }
textarea { min-height: 94px; resize: vertical; }
.check { display: grid; grid-template-columns: 23px 1fr; align-items: start; gap: 9px; }
.check input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: #93722c; }
.card { background: var(--quiet); border: 1px solid var(--line); border-radius: 16px; padding: 15px; overflow-wrap: anywhere; user-select: text; }
.card h3 { font-size: clamp(1.25rem, 4.5vw, 1.6rem); line-height: 1.16; letter-spacing: -.025em; }
.card table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.card th, .card td { text-align: left; border-bottom: 1px solid var(--line); padding: 6px 6px 6px 0; vertical-align: top; }
.card th { width: 38%; }
.card p, .preline { white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-main { width: min(760px, 100%); padding: 18px 14px 38px; }
.legal-document { color: var(--ink); display: grid; gap: 12px; overflow-wrap: anywhere; }
.legal-document h1, .legal-document h2, .legal-document p { margin: 0; }
.legal-document h2 { margin-top: 12px; font-size: 1.1rem; }
.legal-document p, .legal-document td, .legal-document th { line-height: 1.55; }
.legal-document a, .legal-footer a { text-decoration: underline; text-underline-offset: 3px; }
.legal-notice { border-inline-start: 3px solid var(--accent); padding: 7px 10px; }
.legal-table table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .94rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); text-align: left; padding: 6px; vertical-align: top; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 14px; font-size: .875rem; }
.site-footer { width: min(940px, 100%); margin: -90px auto 94px; }
@media print {
  .legal-main { width: 100%; padding: 0; }
  .legal-document { display: block; padding: 0; border: 0; color: #151515; background: #fff; }
  .legal-document p, .legal-table { margin: 5pt 0 8pt; }
  .legal-document h1, .legal-document h2 { break-after: avoid-page; }
  .legal-table tr { break-inside: avoid-page; }
}
.card-field { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.card-icon { display: block; flex: 0 0 auto; width: 23px; height: 23px; }
.card-contacts { display: grid; justify-items: start; gap: 4px; border-top: 1px solid var(--line); padding-top: 9px; }
.card .button { max-width: 100%; overflow-wrap: anywhere; }
.thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbnail { display: grid; justify-items: start; gap: 4px; }
.thumbnail > .button { font-size: .72rem; padding-inline: 6px; }
.thumb { padding: 0; width: 74px; height: 62px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery { width: min(580px, calc(100% - 24px)); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface); color: var(--ink); }
.gallery[open] { display: grid; gap: 8px; }
.gallery::backdrop { background: #000b; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gallery-photo { display: block; width: 100%; height: min(59dvh, 530px); object-fit: contain; border-radius: 9px; background: #141412; }
.rows { display: grid; gap: 7px; }
.list-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; padding: 8px 11px; }
.details { border: 1px solid var(--line); border-radius: 13px; padding: 12px; min-width: 0; }
summary { cursor: pointer; font-weight: 750; }
.details[open] summary { margin-bottom: 12px; }
.details code { overflow-wrap: anywhere; }
.nav-group { display: contents; }
nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 4; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 3px; width: min(570px, 100%); background: var(--surface); border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow); border-radius: 20px 20px 0 0; padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); }
nav button { border: 0; display: grid; gap: 1px; align-content: center; justify-items: center; min-width: 0; min-height: 53px; padding: 4px 1px; color: var(--muted); background: transparent; border-radius: 12px; font-size: .67rem; font-weight: 750; }
nav button span { font-size: 1.08rem; line-height: 1; }
nav button[aria-current=page] { color: var(--ink); background: var(--quiet); }
.toast { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); width: max-content; max-width: min(520px, 90vw); border-radius: 13px; background: #243027; color: #fffaf0; padding: 10px 14px; box-shadow: var(--shadow); }
@media (max-width: 375px) {
  .top { padding-inline: 12px; }
  main { padding-inline: 12px; }
  .hero p { max-width: 28ch; }
}
