/* === Reset === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Якоря не прячутся под sticky header */
    scroll-padding-top: calc(var(--header-height, 64px) + 12px);
}

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: var(--color-porcelain);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-cobalt);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--color-cobalt-hover);
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--color-cobalt);
    outline-offset: 2px;
}
