/* ==========================================================================
   Reset / Normalize overrides — сглаживания поверх normalize.css + Bootstrap
   ========================================================================== */

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

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

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
}

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

img {
  -webkit-touch-callout: none;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

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

input, textarea, select {
  font: inherit;
  color: inherit;
}

textarea {
  resize: vertical;
}

/* Bootstrap-overrides for harmony with tokens */
.btn:focus,
.btn:focus-visible {
  box-shadow: var(--shadow-focus-ring);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-focus-ring);
}

/* Удаляем подчёркивание у navbar-brand и nav-link */
.navbar-brand,
.nav-link {
  text-decoration: none;
}

/* Mobile: компенсация для bottom tab bar (чтобы контент не уходил под него) */
@media (max-width: 991px) {
  body {
    padding-block-end: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }
}
