/* ==========================================================================
   base.css — reset и типографика. Подключается после tokens.css
   ========================================================================== */

/* Шрифты подключаются с Google Fonts в <head> index.html (решение владельца), не через @import:
   Montserrat 400/500/600/700 + Roboto 300 (только «МЕНЮ» в шапке). Ссылка уже в index.html.
   Если позже понадобятся локальные файлы — положить в assets/fonts/ и добавить @font-face. */

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

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

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--fs-text);
  font-weight: var(--fw-regular);
  line-height: 1.5; /* TODO: сверить с line-height макета */
  color: var(--color-navy);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: 1.2; }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: 1.25; }

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

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

summary {
  cursor: pointer;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Утилита контейнера */
.container {
  width: min(var(--container-max), 100% - 2 * var(--container-gutter));
  margin-inline: auto;
}

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

/* Ссылка «Перейти до вмісту»: видна только при фокусе с клавиатуры (как в Elementor) */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
}
