/* ============================================================
   Aesthetic Lash — база: reset, типографика, общие правила
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
               Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  transition: background var(--transition-slow), color var(--transition-slow);
}

/* ------------------------------------------------------------
   Типографика
   ------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

p {
  margin-bottom: 8px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--rose);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--pink);
}

small {
  font-size: 0.85em;
  color: var(--muted);
}

strong, b {
  font-weight: 650;
}

/* ------------------------------------------------------------
   Формы (общие свойства)
   ------------------------------------------------------------ */

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

input,
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Убираем жёлтый фон у автозаполнения Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--panel) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ------------------------------------------------------------
   Списки
   ------------------------------------------------------------ */

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   Медиа
   ------------------------------------------------------------ */

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ------------------------------------------------------------
   Таблицы
   ------------------------------------------------------------ */

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* ------------------------------------------------------------
   Скроллбар (тонкий, аккуратный)
   ------------------------------------------------------------ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

/* ------------------------------------------------------------
   Выделение текста
   ------------------------------------------------------------ */

::selection {
  background: var(--pink-bg);
  color: var(--rose);
}

/* ------------------------------------------------------------
   Фокус (доступность)
   ------------------------------------------------------------ */

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Утилиты
   ------------------------------------------------------------ */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--muted);
}

.text-rose {
  color: var(--rose);
}

.mt-0  { margin-top: 0 !important; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.mb-0  { margin-bottom: 0 !important; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }