/* base.css — сброс, типографика, каркас страницы (topbar / sidebar / контент) */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a {
  color: inherit;
}

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

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Утилиты ──────────────────────────────────────────────────────────── */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Инлайн-спрайт иконок: не участвует в раскладке */
.u-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.c-skip {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 100;
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transform: translateY(-200%);
}

.c-skip:focus-visible {
  transform: none;
}

/* ── Текст ────────────────────────────────────────────────────────────── */
.c-eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.c-hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-block: var(--sp-2) var(--sp-1);
}

.c-hero__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

.c-hero__lead {
  max-width: 48ch;
  color: var(--text-muted);
  text-wrap: pretty;
}

.c-text {
  max-width: 68ch;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--text);
}

.c-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: var(--text-muted);
}

.c-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.c-note--center {
  justify-content: center;
  text-align: center;
}

.c-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--accent-text);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: var(--r-sm);
}

.c-link svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.c-link--bare {
  text-decoration: none;
  min-height: var(--tap);
}

@media (hover: hover) {
  .c-link:hover {
    text-decoration-thickness: 2px;
  }
}

/* Денежная сумма в тексте: табличные цифры, не разрывается переносом */
.c-amount {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

/* Надзаголовок внутри карточки: отделяет группу полей или блок */
.c-eyebrow--section {
  margin-top: var(--sp-2);
}
