/* ==========================================================================
   База, общая для обеих страниц: reset, общие токены, контейнер, утилиты.
   Страницы — разные продукты со своими дизайн-системами (dojo.css, clinic.css),
   здесь только то, что у них действительно общее.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth; /* отключается в prefers-reduced-motion ниже */
}

body,
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

body {
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* ---------- Общие токены ---------- */
:root {
  --content: 1200px; /* ширина контента в обоих макетах */
  --gutter: clamp(20px, 5vw, 120px); /* поля: 20px на 390, контент 1200px с x = 120 на 1440 */

  /* Доля пути от мобильного кадра (390) к десктопному (1440): 0 → 1.
     Плавные размеры: clamp(A, A + (B − A) * var(--fluid), B) */
  --fluid: calc((100vw - 390px) / 1050);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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