:root {
  color-scheme: dark;
  --base: #12110f;
  --panel: #1d1a15;
  --ink: #f0e5d0;
  --muted: #bdb09a;
  --gold: #d9b67b;
  --line: #46372a;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--base);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
img, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
p { color: var(--muted); }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 3; padding: .6rem 1rem; background: var(--gold); color: #21180e; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.bar { position: relative; background: #14120f; border-bottom: 1px solid #382d22; }
.bar-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font: 1.22rem var(--serif); }
.brand strong { font-weight: 400; color: var(--gold); }
.brand img { object-fit: contain; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.7rem); font-size: .95rem; color: var(--muted); }
.button { min-height: 3rem; display: inline-flex; justify-content: center; align-items: center; gap: .3em; padding: .67rem 1.1rem; border: 1px solid transparent; border-radius: 3px; font-size: .94rem; font-weight: 650; line-height: 1.2; text-align: center; transition: background-color .18s, border-color .18s, color .18s; }
.button.compact { min-height: 2.42rem; font-size: .875rem; padding: .49rem .91rem; }
.button.gold { color: #22190e; background: #d7b478; border-color: #e8c992; box-shadow: inset 0 1px #f8dca480; }
.button.gold:hover { color: #1d1307; background: #edcc93; }
.button.ghost { background: #18140f99; color: var(--ink); border-color: #755b3d; }
.button.ghost:hover { color: #f8dfb2; background: #33271a; border-color: #b38754; }
.hero { position: relative; isolation: isolate; border-bottom: 1px solid #584227; background: #17130f url('/assets/hero.png') center 59% / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#12110ffb 0%,#12110fce 40%,#17130f46 77%,#17130f8a), linear-gradient(0deg,#12110fe6,transparent 40%); }
.hero-inner { min-height: 535px; display: grid; grid-template-columns: 1fr 1.14fr; align-items: center; gap: clamp(2rem, 5vw, 4.7rem); padding-block: 4.6rem; }
.eyebrow { color: var(--gold); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .135em; }
.hero h1 { margin: .53rem 0 1rem; font-size: clamp(3.9rem, 7.05vw, 6.6rem); letter-spacing: -.057em; line-height: .97; }
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.hero-lead { max-width: 28rem; font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.47; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.65rem 0 1rem; }
.hero-note { font-size: .88rem; }
.hero-note span { margin: 0 .32rem; color: var(--gold); }
.map-card { min-width: 0; color: var(--ink); border: 1px solid #ac83569a; background: #16130ff2; box-shadow: 0 22px 70px #0009, 0 0 0 5px #17110a55; }
.map-header, .map-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .81rem 1.13rem; }
.map-header { border-bottom: 1px solid var(--line); }
.map-header h2 { font-size: 1.5rem; margin-top: .14rem; }
.map-header h2 span { color: var(--gold); }
.map-meta, .map-coordinates { color: #d2b17c; text-transform: uppercase; font-size: .75rem; letter-spacing: .09em; }
.map-view { position: relative; background: radial-gradient(ellipse at center,#292015 0%,#14120f 76%); }
.map-view canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; }
.map-error { position: absolute; inset: 40% 1rem auto; text-align: center; }
.map-coordinates { position: absolute; left: 1.1rem; bottom: .65rem; color: #aa987d; }
.map-coordinates span { margin-inline: .3rem; color: #c5a36a; }
.map-footer { min-height: 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; padding-block: .55rem; }
.map-legend { display: flex; gap: 1rem; flex-wrap: wrap; }
.map-legend span { display: flex; align-items: center; gap: .42rem; }
.legend-dot { width: .42rem; height: .42rem; background: #5fc8c0; transform: rotate(45deg); }
.legend-dot.loot { background: #e1b864; }
.map-mode { display: flex; align-items: center; gap: .42rem; border: 0; color: var(--ink); background: transparent; border-radius: 3px; padding: .25rem; font-size: .83rem; white-space: nowrap; }
.map-mode:hover { color: var(--gold); }
kbd { background: #30251a; color: var(--gold); border: 1px solid #705638; border-radius: 3px; padding: .06rem .29rem; font: .76rem 'Segoe UI', sans-serif; }
.section { padding-block: 4.4rem; scroll-margin: 1rem; }
.section-heading { margin-bottom: 1.85rem; }
.section h2, .inbox h1 { font-size: clamp(2.2rem, 4vw, 3.45rem); letter-spacing: -.034em; margin-top: .43rem; }
.section-heading > p:last-child:not(.eyebrow) { margin-top: .9rem; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.feature-list article { padding: 1.45rem 1.55rem 1.7rem; }
.feature-list article:first-child { padding-left: 0; }
.feature-list article + article { border-left: 1px solid var(--line); }
.feature-icon { color: var(--gold); font-family: var(--serif); font-size: 1.85rem; line-height: 1; }
.feature-list h3, .steps h3 { margin: .45rem 0 .55rem; font-size: 1.55rem; }
.archive { margin-top: 3.5rem; background: linear-gradient(120deg, #241c14, #181511 66%); border: 1px solid var(--line); padding: clamp(1.3rem,4vw,2.5rem); display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(1.5rem,5vw,4rem); }
.archive h3 { margin: .5rem 0 .7rem; font-size: clamp(1.7rem, 3vw, 2.55rem); }
.archive img { width: 100%; height: auto; border: 1px solid #72573c; box-shadow: 0 10px 24px #0006; }
.access { border-block: 1px solid var(--line); background: #191612; }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.access-grid:has(.plan-trial) { grid-template-columns: 1.55fr 1fr 1fr; }
.plan { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #46382b; background: #1f1a14; padding: clamp(1rem, 2vw, 1.5rem); }
.plan-trial { border-color: #9a774b; background: #281f15; scroll-margin: 1rem; }
.plan h3 { margin: .4rem 0 .65rem; font-size: clamp(1.85rem, 3vw, 2.55rem); }
.plan > p:not(.eyebrow) { margin-bottom: 1.2rem; }
.plan > button { margin-top: auto; }
#trial-form { width: 100%; }
label { display: block; font-size: .875rem; color: var(--ink); margin-bottom: .32rem; }
.form-row { display: flex; flex-wrap: wrap; gap: .5rem; }
input { flex: 1 1 11rem; padding: .6rem .72rem; min-width: 0; min-height: 3rem; color: var(--ink); background: #15120e; border: 1px solid #775b3c; border-radius: 3px; }
input::placeholder { color: #9f9079; }
.form-status { color: #d7caae; font-size: .9rem; margin-top: .55rem; }
.form-status:empty { display: none; }
.form-status[data-error] { color: #ffb2a0; }
.plan-price { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.access-note { margin-top: .8rem; font-size: .9rem; }
.link-button { padding: 0; background: transparent; color: inherit; border: 0; text-decoration: underline; cursor: pointer; }
.order-page { max-width: 48rem; }
.requisites { width: 100%; margin: 1.2rem 0 0; }
.requisites > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .3rem 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 36rem) { .requisites > div { grid-template-columns: 1fr; } }
.order-card { gap: 1rem; }
.order-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.order-card > p:not(.eyebrow) { margin-bottom: 0; }
.order-id { overflow-wrap: anywhere; }
.order-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.order-actions:empty { display: none; }
.order-form, .order-block { width: 100%; display: grid; gap: .75rem; justify-items: start; }
.order-form input, #open-order-form input { width: min(100%, 24rem); }
#open-order-form input { margin-bottom: .75rem; }
.order-block { border-top: 1px solid #46382b; padding-top: 1rem; }
.order-block h2 { font-size: 1.45rem; margin: 0; }
#license-key {
  max-width: 100%;
  padding: .65rem .9rem;
  border: 1px solid #9a774b;
  border-radius: 3px;
  background: #17130e;
  color: #f2d297;
  font: 600 clamp(1.125rem, 3vw, 1.375rem)/1.4 Consolas, ui-monospace, monospace;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  user-select: all;
}
.text-link { color: var(--gold); text-decoration: underline; text-underline-offset: .23em; }
.text-link:hover { color: #f6d39b; }
.mail-link { margin-top: .75rem; font-size: .875rem; }
.steps { list-style-position: inside; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: .75rem 0 1.65rem; margin: 0; }
.steps li { border-top: 1px solid var(--line); padding-top: .9rem; }
.steps li::marker { color: var(--gold); font-weight: 600; }
.steps li h3 { display: inline; margin: 0; }
.steps li p { margin-top: .55rem; }
code { color: var(--gold); }
.footer { background: #17140f; border-top: 1px solid var(--line); padding: 1rem 0; }
.footer > div { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; }
.footer > div > :not(.brand) { font-size: .88rem; color: var(--muted); }
dialog { width: min(26rem, calc(100% - 2rem)); color: var(--ink); background: var(--panel); border: 1px solid #9a774b; padding: 1.5rem; box-shadow: 0 1rem 4rem #000b; }
dialog::backdrop { background: #000a; }
dialog h2 { font-size: 1.55rem; }
dialog p { margin: .65rem 0 1rem; }
.inbox { max-width: 840px; }
#mail-status { margin-block: .75rem; }
.messages { display: grid; gap: .8rem; }
.message { padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); overflow-wrap: anywhere; }
.message h2 { font-size: 1.34rem; letter-spacing: 0; margin-bottom: .38rem; }
.message-key { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; margin-block: .6rem; }
.message-time { font-size: .875rem; }
@media (max-width: 950px) {
  .hero h1 { font-size: clamp(3.5rem, 8vw, 5rem); }
  .desktop-label { display: none; }
  .wrap { width: min(1180px, calc(100% - 48px)); }
  .access-grid:has(.plan-trial) { grid-template-columns: repeat(2, 1fr); }
  .plan-trial { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .bar-inner { min-height: 64px; gap: .65rem; flex-wrap: wrap; padding-block: .5rem; }
  .bar-inner nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--line); padding-block: .4rem .15rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.65rem; }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 5.35rem); }
  .hero { background-position: 65% center; }
  .hero::before { background: linear-gradient(90deg,#14110edc,#17130f7f), linear-gradient(0deg,#12110fdd,transparent); }
  .section { padding-block: 2.65rem; }
  .feature-list, .archive, .steps { grid-template-columns: 1fr; }
  .feature-list article, .feature-list article:first-child { padding: 1rem 0; }
  .feature-list article + article { border-left: 0; border-top: 1px solid var(--line); }
  .archive { margin-top: 2.15rem; }
  .steps { gap: .85rem; }
}
@media (max-width: 360px) {
  .access-grid, .access-grid:has(.plan-trial) { grid-template-columns: 1fr; }
  .map-footer { padding-inline: .6rem; gap: .4rem; }
  .map-legend { gap: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
