/* БАЗА — нулиране, типография по подразбиране, контейнер. */

*, *::before, *::after { box-sizing: border-box; }

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

/* clip, не hidden — hidden чупи position: sticky */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-weight: 275;
  font-size: var(--fs-body);
  line-height: 1.5;
}

/* браузърните отстъпи на списъчните тагове не оставят следа в CSS — нулират се тук */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
ul, ol, dl, dt, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

img, video { display: block; max-width: 100%; height: auto; border: 0; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, select, textarea { font: inherit; font-size: max(16px, 1rem); }

.container {
  width: min(var(--container), 100% - var(--container-pad) * 2);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
}

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

@media (max-width: 1024px) {
  .container { width: min(var(--container), 100% - 48px); }
}

@media (max-width: 480px) {
  :root { --container-pad: 20px; }
  .container { width: min(var(--container), 100% - 40px); }
}
