/* Plus One — юридичні сторінки мовою апки: кремовий папір у точку, чорнило,
   кислотний лайм, рамки 2–2.5 px і жорсткі тіні без розмиття. Archivo Black
   капслоком для заголовків, Instrument Sans для тексту, JetBrains Mono для
   підписів, як надрукованих на квитку. */
:root {
  --paper: #EFE8D8;
  --card: #FFFDF6;
  --ink: #0D0D0B;
  --muted: #6B665A;
  --lime: #D6FF3D;
  --red: #FF5A36;
  --rule: rgba(13, 13, 11, 0.3);
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(13, 13, 11, 0.11) 1px, transparent 1.3px);
  background-size: 15px 15px;
  color: var(--ink);
  font: 500 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--lime); }
strong { font-weight: 700; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* ── Шапка: квиток і назва, навігація-пігулка ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 18px; border-bottom: 2.5px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { background: none; }
.ticket { width: 44px; height: 28px; flex: none; }
.word { font: 24px/1 var(--display); letter-spacing: -0.5px; color: var(--ink); }

.nav { display: flex; gap: 4px; padding: 3px; border: 2px solid var(--ink); border-radius: 24px; background: var(--card); }
.nav a { padding: 7px 14px; border-radius: 20px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(214, 255, 61, 0.35); }
.nav a[aria-current] { background: var(--ink); color: var(--lime); font-weight: 700; }

/* ── Заголовок: капслок, останнє слово — на лаймовому маркері; праворуч два квитки ── */
.hero { position: relative; padding: 56px 0 46px; overflow: hidden; }
.hero .wrap { position: relative; min-height: 200px; }
.hero h1 { position: relative; z-index: 1; max-width: 600px; font: clamp(40px, 8.5vw, 72px)/1.04 var(--display); letter-spacing: -0.5px; text-transform: uppercase; }
.hero h1 span { background: var(--lime); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.label { display: inline-block; margin-top: 20px; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: var(--lime); font: 500 11px/1.4 var(--mono); letter-spacing: 0.6px; text-transform: uppercase; }

.stubs { position: absolute; right: 16px; top: -6px; width: 260px; height: 200px; pointer-events: none; }
.stub { position: absolute; width: 220px; height: 141px; }
.stub.back { right: 0; top: 0; transform: rotate(11deg); }
.stub.front { right: 40px; top: 48px; transform: rotate(-12deg); filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.35)); }

/* ── «Коротко»: три картки в рамці з жорсткою тінню ── */
.short { margin: 8px 0 44px; }
.short h2, .sec h2 { font: 26px/1.1 var(--display); text-transform: uppercase; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.note { padding: 16px 18px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
.note b { display: inline-block; padding: 3px 8px; border: 2px solid var(--ink); border-radius: 8px; background: var(--lime); font: 700 10px/1.4 var(--mono); letter-spacing: 0.6px; text-transform: uppercase; }
.note p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ── Розділи: номер у лаймовому колі, пунктир між розділами ── */
.sec { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-top: 2px dashed var(--rule); }
.no { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--lime); font: 18px/1 var(--display); box-shadow: 3px 3px 0 var(--ink); }
.sec:nth-of-type(even) .no { background: var(--ink); color: var(--lime); box-shadow: none; }
.body > * + * { margin-top: 12px; }
.body ul { padding-left: 0; list-style: none; }
.body li { position: relative; padding-left: 24px; }
.body li + li { margin-top: 8px; }
.body li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--ink); background: var(--lime); }

.facts { display: grid; border: 2.5px solid var(--ink); border-radius: 22px; background: var(--card); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 13px 18px; }
.facts div + div { border-top: 2px dashed var(--rule); }
.facts dt { font: 700 11px/1.9 var(--mono); letter-spacing: 0.6px; text-transform: uppercase; }
.facts dd { color: #34322C; }

/* ── Кроки видалення ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 14px; }
.step { padding: 16px 18px; border: 2.5px solid var(--ink); border-radius: 22px; background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.step b { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; border: 2px solid var(--ink); background: var(--lime); font: 17px/1 var(--display); }
.step p { font-weight: 600; }

/* ── Контакт: чорна смуга-квиток і лаймова кнопка, як головна дія апки ── */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 36px 0 0; padding: 16px 16px 16px 24px; border-radius: 30px; background: var(--ink); color: var(--paper); }
.contact span { font: 18px/1.2 var(--display); text-transform: uppercase; }
.contact a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2.5px solid var(--ink); border-radius: 26px; background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: 3px 3px 0 var(--paper); }
.contact a::after { content: '\2192'; font-size: 17px; }
.contact a:hover { background: var(--lime); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--paper); }

.foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding: 22px 0 36px; border-top: 2.5px solid var(--ink); font: 500 11px/1.6 var(--mono); letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { font-weight: 700; text-decoration: none; }
.foot a:hover { background: var(--lime); }

@media (max-width: 680px) {
  /* На телефоні квиткам немає місця поруч із заголовком — вони лягають над ним. */
  .stubs { position: relative; right: auto; top: auto; width: 150px; height: 96px; margin-bottom: 18px; }
  .stub { width: 110px; height: 70px; }
  .stub.back { right: 0; top: 0; }
  .stub.front { right: 30px; top: 22px; }
  .hero { padding: 34px 0 32px; }
  .hero .wrap { min-height: 0; }
  .notes, .steps { grid-template-columns: 1fr; }
  .sec { grid-template-columns: 1fr; gap: 12px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .nav { width: 100%; }
  .nav a { flex: 1; text-align: center; padding: 7px 4px; font-size: 10px; }
  .contact { border-radius: 26px; }
  .contact a { width: 100%; justify-content: space-between; }
}
