/* Сброс, типографика, общие элементы */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-base)/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section) 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--wood); color: var(--white); padding: 10px 16px; border-radius: var(--r-md);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; border-radius: 6px; }

/* Заголовок секции: слева заголовок, справа пояснение, как в референсе */
.section-head {
  display: grid; gap: 16px 48px; align-items: end;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p { color: var(--ink-soft); font-size: var(--fs-md); max-width: 46ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 6px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; text-decoration: none; font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--linen); }
.btn--dark { background: var(--wood); color: var(--white); }
.btn--dark:hover { background: var(--wood-hover); }
.btn--outline { border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
/* Кнопка с круглой стрелкой справа */
.btn--arrow { padding-right: 6px; }
.btn__arrow {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--wood); color: var(--white);
  transition: transform .2s var(--ease);
}
.btn--dark .btn__arrow { background: var(--white); color: var(--wood); }
.btn--arrow:hover .btn__arrow { transform: translateX(3px); }

.tag {
  display: inline-block; padding: 7px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white); font-size: var(--fs-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.tag--dark { background: var(--wood); border-color: var(--wood); color: var(--white); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--outline:disabled:hover { background: transparent; color: var(--ink); }
