*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-1);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-6); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-5); }
h3 { font-size: var(--fs-3); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-2); font-weight: 600; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--gold); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding-left: 1.2em; margin: 0 0 var(--sp-4); }
small { font-size: var(--fs-0); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: rgba(255,248,235,0.06); padding: 0.1em 0.35em; border-radius: 3px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--sp-8); }
@media (min-width: 900px) { .section { padding-block: var(--sp-9); } }
.section + .section { border-top: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.lead { font-size: var(--fs-2); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack > * + * { margin-top: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.between { justify-content: space-between; }
.hidden { display: none !important; }

/* Орнаментальні лінії: «намистини» */
.beads {
  --bead: var(--accent);
  height: 6px;
  background-image: radial-gradient(circle, var(--bead) 0 2px, transparent 2.5px);
  background-size: 22px 6px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.9;
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
