:root {
  --color-bg: #ffffff;
  --color-raise: #f6f5f3;
  --color-text: #191512;
  --color-muted: #5f574f;
  --color-accent: #a1522a;
  --color-accent-deep: #7d3e1f;
  --color-border: #e5e1dc;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mark: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 820px;
  --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-deep); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.28; margin: 0 0 18px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 18px; }

.xd-wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.xd-skip { position: absolute; left: -9999px; }
.xd-skip:focus { left: 22px; top: 10px; z-index: 20; background: var(--color-accent); color: #fff; padding: 10px 16px; }

.xd-head { padding: 18px 0; }
.xd-head__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.xd-logo {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.2px;
  color: var(--color-text); text-decoration: none; padding: 8px 0;
}
.xd-head__mail { font-size: 0.94rem; }
.xd-head__mail a { padding: 8px 0; display: inline-block; }

.xd-hero { padding: 40px 0 0; }
.xd-hero__lead { font-size: 1.14rem; margin-bottom: 22px; }
.xd-crit { font-size: 0.96rem; color: var(--color-muted); margin-bottom: 24px; }
.xd-jump { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.xd-jump a {
  font-family: var(--font-mark); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; display: inline-block; padding: 11px 0; min-height: 44px;
}
.xd-jump a:hover { text-decoration: underline; }

.xd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 14px 26px;
  background: var(--color-accent); color: #fff; border: 1px solid var(--color-accent);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: background 140ms ease, border-color 140ms ease;
}
.xd-btn:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: #fff; }
.xd-btn--ghost { background: none; color: var(--color-accent); }
.xd-btn--ghost:hover { background: var(--color-raise); color: var(--color-accent-deep); }
.xd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.xd-arrow { display: inline-block; font-weight: 600; text-decoration: none; }
.xd-arrow::after { content: " \2192"; display: inline-block; transition: transform 140ms ease; }
.xd-arrow:hover { text-decoration: underline; }
.xd-arrow:hover::after { transform: translateX(4px); }

.xd-sec { padding: 72px 0 0; }
.xd-sec:last-of-type { padding-bottom: 40px; }
.xd-sec ul, .xd-sec ol { padding-left: 22px; }
.xd-sec li { margin-bottom: 10px; }

.xd-apps { list-style: none; padding: 0; margin: 26px 0 0; }
.xd-app { margin-bottom: 44px; }
.xd-app:last-child { margin-bottom: 0; }
.xd-app__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.xd-app__head img { display: block; }
.xd-app__head h3 { margin: 0; }
.xd-app__meta {
  font-family: var(--font-mark); font-size: 0.74rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--color-muted); margin: 0 0 14px;
}
.xd-app img.xd-shot { display: block; margin-bottom: 16px; }

.xd-table__scroll { overflow-x: auto; margin: 24px 0 12px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
caption { text-align: left; font-size: 0.95rem; color: var(--color-muted); margin-bottom: 14px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
thead th {
  font-family: var(--font-mark); font-size: 0.68rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--color-muted); font-weight: 600;
}
tbody th { font-weight: 600; }
td.xd-numcell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xd-source { font-style: italic; color: var(--color-muted); font-size: 0.9rem; margin: 0; }

.xd-mail { margin-top: 24px; }
.xd-mail a { font-size: clamp(1.2rem, 4.6vw, 1.7rem); font-weight: 700; word-break: break-word; display: inline-block; padding: 6px 0; }
.xd-mail p { color: var(--color-muted); }

.xd-note { font-size: 0.9rem; color: var(--color-muted); }

.xd-foot { padding: 64px 0 48px; font-size: 0.95rem; color: var(--color-muted); }
.xd-foot h2 { font-size: 1rem; color: var(--color-text); margin-bottom: 10px; }
.xd-foot ul { list-style: none; margin: 0 0 20px; padding: 0; }
.xd-foot a { display: inline-block; padding: 8px 0; }

.xd-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--color-text); color: #fff; padding: 18px 0; }
.xd-cookie p { margin: 0 0 14px; font-size: 0.93rem; }
.xd-cookie a { color: #f0c3a8; }
.xd-cookie__row { display: flex; flex-wrap: wrap; gap: 10px; }
.xd-cookie button {
  min-height: 44px; padding: 12px 22px; font: inherit; font-weight: 600;
  background: #fff; color: var(--color-text); border: 1px solid #fff; cursor: pointer;
  transition: background 140ms ease;
}
.xd-cookie button:hover { background: #e6e2dd; }

.xd-mail p a[href^="tel:"] { font-size: 1.05rem; font-weight: 600; }

[hidden] { display: none !important; }

@media (min-width: 720px) {
  .xd-head { padding: 24px 0; }
  .xd-hero { padding: 56px 0 0; }
  .xd-sec { padding: 96px 0 0; }
  .xd-cookie__row { flex-wrap: nowrap; }
}
