/* ============================================================
   QCN — assets/css/reset.css
   Минималистичный сброс + базовые глобальные стили.
   ============================================================ */

/* ── Box model ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── HTML / Body ── */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Типографика ── */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

p {
    line-height: 1.7;
}

/* ── Ссылки ── */
a {
    color: inherit;
    text-decoration: none;
}

/* ── Медиа ── */
img,
video,
svg {
    display: block;
    max-width: 100%;
}

/* ── Списки ── */
ul,
ol {
    list-style: none;
}

/* ── Формы ── */
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* ── Таблицы ── */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ── Скроллбар (WebKit) ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent2);
}

/* ── Выделение текста ── */
::selection {
    background: var(--accent-dim);
    color: var(--text);
}

/* ── Focus-visible (доступность) ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}