/* =========================
   1. Box sizing
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   2. Remove default margins
========================= */
* {
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
}

/* =========================
   3. Base body setup
========================= */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.lock{
  overflow: hidden;
}

/* =========================
   4. Media elements
========================= */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* =========================
   5. Form elements reset
========================= */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Убираем странные стили у кнопок */
button {
  cursor: pointer;
}

/* textarea resize только по вертикали */
textarea {
  resize: vertical;
}

/* =========================
   6. Links
========================= */
a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   7. Lists
========================= */
ul,
ol {
  list-style: none;
}

/* =========================
   8. Tables
========================= */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================
   9. Headings reset
========================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* =========================
   10. Remove animations for people who prefer it
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   11. Root defaults (optional, but useful)
========================= */
:root {
  --font-main: 'SF Pro', sans-serif;
}

body {
  font-family: var(--font-main);
}

/* =========================
   12. Fix for hidden attribute
========================= */
[hidden] {
  display: none !important;
}