/* Сброс + типографическая база.

   Масштабирование: макет Figma свёрстан на ширину 1920px.
   Корневой font-size задан во vw так, что 1rem === 16px ровно при 1920px,
   поэтому любой размер из макета переводится как figma_px / 16 = rem,
   а вся страница пропорционально ужимается и растягивается.
   Ниже 1200px пропорциональное масштабирование отключается —
   там работают адаптивные правила секций. */

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

@media (min-width: 2400px) {
    html {
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 16px;
    }
}

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

body {
    margin: 0;
    background: var(--c-page);
    color: var(--c-black);
    font-family: var(--font-text);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    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;
    }
}
