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

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
}

input, select, button {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.center {
  text-align: center;
}

.multiline {
  white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link для доступности */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ios-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

/* Скрытый заголовок для скринридеров */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Подсказка под инпутом */
.input-hint {
  display: block;
  font-size: 12px;
  color: var(--ios-secondary);
  margin-top: 4px;
}

/* Иконки в кнопках */
.btn-icon {
  margin-right: 6px;
}

/* Hero card */
.hero-card {
  position: relative;
}

/* Footer meta */
.footer-meta {
  font-size: 12px;
  color: var(--ios-secondary);
  margin-top: 8px;
}

.footer-meta a {
  color: var(--ios-primary);
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}