/* 
   ============================================================================================
   ПОЛНЫЙ СБРОС CSS
   ============================================================================================
   Основан на лучших современных практиках, обеспечивающих согласованную работу всех браузеров.
   ============================================================================================ 
*/

/* 1. Установите глобальный размер коробки */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Удалите поля, отступы и рамку по умолчанию */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

/* 3. Сброс роли отображения HTML5 для старых браузеров */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
    display: block;
}

/* 4. Удалите стили списка */
ol, ul {
    list-style: none;
}

/* 5. Удалите кавычки в blockquote и q */
blockquote, q {
    quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
    content: '';
    content: none;
}

/* 6. Сворачивание границы таблицы */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 7. Сбросить ссылки */
a {
    background: transparent;
    text-decoration: none !important;
    color: inherit;
}
a:where(:link, :visited) {
  all: unset;
  display: inline;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
a:where(:hover) { text-decoration: underline; }
a:where(:focus-visible) {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* 8. Изображения и медиа */
img, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* 9. Элементы формы */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    appearance: none;
}
button {
    cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: default;
}

/* 10. Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* 11. Удалить дескриптор изменения размера текстовой области */
textarea {
    resize: none;
}

/* 12. Наследование шрифтов для элементов, похожих на код */
code, kbd, pre, samp {
    font-family: monospace, monospace;
}

/* 13. Нормализуйте форму контура автофокусировки */
:focus {
    outline: none;
}

/* 14. Корневые настройки по умолчанию */
html {
    line-height: 1;
    -webkit-text-size-adjust: 100%; /* Предотвращение масштабирования шрифта в альбомной ориентации */
}
body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
