/* =============================================
   BEAUTY BALM — базове скидання

   Замінив bootstrap.min.css (232 КБ → 2,2 КБ).
   Сюди винесено рівно те, на що спирається верстка
   редизайну, і нічого більше: глобальний border-box,
   скидання відступів і успадкування шрифту формами.

   Bootstrap прибрано на кроці 7, коли з розмітки зникли
   останні його класи (index.php, page-about.php,
   page-contact.php переписані). Якщо колись знадобиться
   сітка — брати CSS Grid, а не повертати бібліотеку.

   Джерело поведінки — Bootstrap Reboot, який сам
   побудований на normalize.css.
   ============================================= */

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    margin: 0;
    text-align: left;
}

/* Заголовки й абзаци приходять з браузерними відступами,
   а вся сітка редизайну рахує проміжки сама. */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
}

hr {
    margin: 0;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: .25;
}

/* Медіа не вилазить за свій контейнер */
img, svg, video, canvas, iframe, embed, object {
    display: block;
    max-width: 100%;
}

img, svg {
    height: auto;
}

a {
    text-decoration: none;
}

/* Форми не успадковують шрифт від body без цього */
button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="submit"]:disabled {
    cursor: default;
}

textarea {
    resize: vertical;
}

table {
    border-collapse: collapse;
}

th {
    text-align: inherit;
    font-weight: inherit;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

legend {
    padding: 0;
}

summary {
    display: list-item;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}
