/* Сброс и базовая типографика */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17 px на телефоне */
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  body {
    font-size: var(--fs-16);
  }
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: var(--fs-22);
  line-height: 1.25;
  font-weight: 700;
}

h2 {
  font-size: var(--fs-18);
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  font-size: var(--fs-16);
  font-weight: 600;
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--fs-28);
  }
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

code,
kbd {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 var(--s-1);
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
}

:focus-visible,
.is-focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  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: var(--s-2);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-1);
  box-shadow: var(--shadow-2);
}

.skip-link:focus {
  top: var(--s-2);
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: var(--fs-14);
}

.no-scroll {
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 18px;
  height: 18px;
}
