*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* синяя вспышка при касании на Android — вместо неё свои состояния */
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--text-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* якорь не должен уводить заголовок под липкую шапку */
:target, [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
img, svg, video { display: block; max-width: 100%; height: auto; }
/* Атрибут hidden обязан побеждать display у классов:
   .card{display:flex} перебивает встроенное [hidden]{display:none} браузера. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--brass-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: var(--space-block); }
.section--dark { background: var(--dark); color: var(--paper); }
.section--dark .eyebrow { color: var(--brass-2); }
.section--paper { background: var(--paper); }
.section--bg2 { background: var(--bg-2); }

.h-display, .h1, .h2, .h3 { font-family: var(--font-display); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.h-display { font-size: var(--text-hero); line-height: .95; }
.h1 { font-size: var(--text-h1); }
.h2 { font-size: var(--text-h2); }
.h3 { font-size: var(--text-h3); line-height: 1.2; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: var(--text-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: var(--ink-2); max-width: 36em; }
.section--dark .lead { color: rgba(250, 248, 245, .78); }
.muted { color: var(--ink-2); }
.small { font-size: var(--text-small); }
.center { text-align: center; }
.center .eyebrow::before { display: none; }
.center .lead { margin-inline: auto; }
.mt-block { margin-top: var(--space-block); }
.mb-block { margin-bottom: var(--space-block); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid--4 { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal { transform: none; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.prose { max-width: 42rem; }
.prose h2 { font-family: var(--font-display); font-size: var(--text-h3); margin: 2.2rem 0 .8rem; }
.prose h3 { font-weight: 600; margin: 1.6rem 0 .5rem; }
.prose ul { padding-left: 1.2em; list-style: disc; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table td, .prose table th { padding: .55em .8em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose table th { font-weight: 600; font-size: var(--text-small); color: var(--ink-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
