/* ============================================================
   reset.css — базовые сбросы
   ============================================================ */

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

input,
select,
textarea {
  background: none;
  border: none;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: inherit;
  opacity: 0.5;
}

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

th, td {
  text-align: left;
  padding: 0;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* Убираем «синюю» подсветку тапов */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Аккуратный фокус для клавиатуры */
:focus-visible {
  outline: 2px solid var(--focus, #2f80ed);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}