/*
 * Vintage Bizhu — Base (Layer 2/4)
 * Reset, типографика, контейнер, утилиты.
 */

/* ------ Reset ------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

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

/* V8: выделение текста — тихий брендовый микро-акцент */
::selection {
  background-color: var(--color-brand);
  color: #fff;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.65;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul,
ol { list-style: none; }

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

/* ------ Заголовки ------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p { max-width: 68ch; }

/* ------ Контейнер ------ */
.vb-wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------ Секции ------ */
.vb-section {
  padding-block: clamp(48px, 6vw, 96px);
}

.vb-section--paper {
  background-color: var(--color-accent-soft);
}

/* ------ Eyebrow (надзаголовок) ------ */
.vb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-accent-ink);
}

.vb-eyebrow::before,
.vb-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.vb-eyebrow--left::before { display: none; }

/* ------ Section head ------ */
.vb-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.vb-h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
}

.vb-center { text-align: center; }

/* ------ Screen reader ------ */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ------ Skip link ------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  padding: 8px 16px;
  background: var(--color-accent-strong);
  color: #fff;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  z-index: 9999;
}
.skip-link:focus { top: 8px; }
