/* ===================================================================
   Сучасний Reset CSS (2025)
   Базується на Eric Meyer's Reset + додаткові виправлення
   =================================================================== */

/* 1. Базовий сброс */
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,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* 2. HTML5 display-role reset для старих браузерів */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* 3. Базові стилі для body */
body {
    line-height: 1;
}

/* 4. Скидання списків */
ol, ul {
    list-style: none;
}

/* 5. Таблиці */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 6. Скидання blockquote та q */
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

/* 7. Текстовий контент */
strong, b {
    font-weight: bold;
}
em, i {
    font-style: italic;
}
u {
    text-decoration: underline;
}
s, strike, del {
    text-decoration: line-through;
}

/* 8. Посилання */
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}
a img {
    border: none;
}

/* 9. Форми */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    margin: 0;
    padding: 0;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}
button[disabled],
input[disabled] {
    cursor: default;
}

/* 10. Виправлення для iOS та Safari */
input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
    -webkit-appearance: none;
    border-radius: 0;
}

/* 11. Box-sizing для всіх елементів */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 12. Плавні шрифти (опціонально) */
html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 13. Скидання фокусу (можна прибрати, якщо використовуєш свої стилі фокусу) */
/*
:focus {
    outline: 0;
}
*/

/* 14. Додатково: прибираємо анімацію для людей, які віддають перевагу зменшенню руху */
@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;
    }
}