:root {
  --pine: #14261f;
  --pine-2: #1d382e;
  --paper: #f7f3eb;
  --desk: #e4dccb;
  --ink: #1b2420;
  --muted: #5b655e;
  --line: #d5ccbb;
  --brass: #8a6730;
  --brass-2: #c6a15a;
  --ember: #9d3418;
  --ember-2: #7c2812;
  --card: #fffdf8;
  --shadow: 0 18px 40px rgba(20, 38, 31, 0.08);
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, Georgia, serif;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --ui: "Outfit", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--desk);
}
img { max-width: 100%; height: auto; }
a { color: var(--ember); text-underline-offset: 0.16em; }
a:hover { color: var(--ember-2); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3,
html[lang="ru"] .ticket h2 { font-family: var(--serif); }

html[lang="ar"] body { font-family: "Noto Naskh Arabic", var(--serif); }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .brand strong,
html[lang="ar"] .ticket h2,
html[lang="ar"] summary { font-family: "Noto Naskh Arabic", var(--serif); }
html[lang="ar"] .btn,
html[lang="ar"] .langs a,
html[lang="ar"] .index a,
html[lang="ar"] .kicker,
html[lang="ar"] th { font-family: "Noto Sans Arabic", var(--ui); }
html[dir="rtl"] blockquote {
  border-left: 0;
  border-right: 3px solid var(--ember);
  padding: 4px 16px 4px 0;
}
html[dir="rtl"] .ticket:before { left: auto; right: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  padding: 14px 22px;
  background: var(--pine);
  color: #f3ecdf;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand svg { flex: 0 0 auto; }
.brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 640;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand span {
  display: block;
  margin-top: 3px;
  color: #d9c7a2;
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 1 / -1;
}
.langs a {
  color: #e7dcc6;
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 4px 7px;
  border-bottom: 1px solid transparent;
}
.langs a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--brass-2);
}
.actions { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1;
}
.btn-log {
  color: #f3ecdf;
  border-color: #d9c7a2;
  background: transparent;
}
.btn-log:hover { background: var(--pine-2); color: #fff; }
.btn-reg { color: #1a140c; background: var(--brass-2); }
.btn-reg:hover { background: #d7b56e; color: #1a140c; }
.btn-log.on-paper { color: var(--pine); border-color: var(--pine); }
.btn-log.on-paper:hover { background: var(--pine); color: #f3ecdf; }
.btn-reg.on-paper { color: #fffaf6; background: var(--ember); }
.btn-reg.on-paper:hover { background: var(--ember-2); color: #fff; }

.sheet {
  width: min(1120px, calc(100% - 28px));
  margin: 22px auto 48px;
  padding: 34px 34px 72px;
  background: var(--paper);
  border: 1px solid #ddd3c2;
  box-shadow: var(--shadow);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.82rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.fresh {
  margin: 0 0 18px;
  color: var(--brass);
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.layout > * { min-width: 0; }
.index {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
}
.index a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 7px 0;
  border-top: 1px solid transparent;
}
.index a span { color: var(--brass); font-variant-numeric: tabular-nums; }
.index a[aria-current="true"] { border-top-color: var(--line); color: var(--ember); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 8px;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 640;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.lede {
  margin: 16px 0 0;
  max-width: 42rem;
  font-size: 1.18rem;
  line-height: 1.6;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.age {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.82rem;
}
.ticket {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
  position: relative;
}
.ticket:before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  border-left: 3px solid var(--brass-2);
}
.ticket h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 640;
  line-height: 1.2;
}
.ticket ol {
  margin: 0;
  padding: 0 0 0 1.15rem;
}
.ticket li { margin: 8px 0; }

main section {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}
.kicker {
  margin: 0 0 8px;
  color: var(--brass);
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 640;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 640;
  line-height: 1.25;
}
p { margin: 0 0 1rem; max-width: min(68ch, 100%); }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; max-width: min(68ch, 100%); }
li { margin: 0.35rem 0; }
blockquote {
  margin: 0 0 1rem;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--ember);
  max-width: min(62ch, 100%);
}
blockquote p { margin: 0; font-family: var(--display); font-size: 1.28rem; line-height: 1.35; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; max-width: min(68ch, 100%); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td {
  text-align: start;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.steps { padding-left: 1.3rem; }
.steps li::marker { color: var(--brass); font-family: var(--ui); }

.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.35;
}
summary:hover { color: var(--ember); }
.faq details p { margin-top: 8px; }

.colophon {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 28px;
  color: #3e4a44;
  font-family: var(--ui);
  font-size: 0.82rem;
  line-height: 1.55;
}
.colophon a { color: var(--pine); }
.dock {
  display: none;
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 38, 31, 0.96);
  border-top: 1px solid #2c4a3e;
}
.dock .btn { flex: 1; }

@media (max-width: 900px) {
  .layout, .hero { grid-template-columns: 1fr; }
  .index {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    max-width: 100%;
    padding-bottom: 6px;
  }
  .index a {
    grid-template-columns: auto auto;
    white-space: nowrap;
    padding: 8px 12px 8px 0;
  }
  .sheet { width: min(100% - 16px, 1120px); padding: 22px 16px 96px; margin-top: 10px; }
  .actions { display: none; }
  .dock { display: flex; }
  .top { padding: 12px; }
}

@media (min-width: 901px) {
  .langs { grid-column: auto; justify-content: center; }
  .top { grid-template-columns: auto 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
