/* Сброс и базовые правила */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
::selection { background: var(--c-navy); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--c-navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* Иконки: в макете линия всегда 1,5 px независимо от размера иконки (16–54 px), поэтому толщина не масштабируется вместе с viewBox */
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }
symbol path, symbol rect, symbol circle, symbol ellipse, symbol line, symbol polyline, symbol polygon { vector-effect: non-scaling-stroke; }

.main { flex: 1 0 auto; }
body.no-scroll { overflow: hidden; }

/* Типографика */
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; color: var(--c-text); overflow-wrap: anywhere; }
.h1--product { font-size: var(--fs-product); line-height: var(--lh-product); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; color: var(--c-text); }
.h2--sm { font-size: var(--fs-h2-sm); line-height: var(--lh-h2-sm); }
.eyebrow { font-size: 14px; line-height: 1.5; font-weight: 500; text-transform: uppercase; color: var(--c-text-3); letter-spacing: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-text-2); }
.text-muted { color: var(--c-text-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
