/* Базовые элементы страницы v2: сброс, типографика, кнопки, переключатели, раскладка секций.
   Макет — haas-draft.pages.dev (27.09.2026), перенос поручил пользователь 28.09.2026; размеры сверены с Figma
   «haas-platform.com», фрейм «1260w eng» (пользователь, 01.10.2026).
   Подписи 10px и серый #9a9796 — как в макете (пользователь, 01.10.2026); прежде ради доступности были 11px и #73706f
   (ревью 22.09.2026). Видимый фокус, клавиатура и тач-цели 44px на телефоне сохраняются */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; overflow-x: hidden; }
body.dialog-open { overflow: hidden; }
button, input, select, textarea { color: inherit; font: inherit; }
button { background: none; border: 0; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 88px; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 350; }
h2 { font-size: 32px; letter-spacing: -1px; line-height: 36px; }

/* сглаженные углы Figma — только CSS, общее правило в tokens.css: где corner-shape не поддерживается, обычное скругление.
   JS-библиотеку сглаживания из макета не подключали (новые библиотеки — по согласованию) */
.squircle { border-radius: var(--r); }

.skip-link { background: var(--ink); color: var(--paper); left: 12px; padding: 10px 14px; position: fixed; top: -60px; z-index: 100; }
.skip-link:focus { top: 12px; }
.eyebrow { color: var(--pebble); font: var(--t-eyebrow); letter-spacing: 1px; text-transform: uppercase; }
.site-shell { margin: 0 auto; max-width: 1260px; width: 100%; }

/* кнопки: Figma Button Main 16/16 и Small 12/14, радиус 12 */
.button { align-items: center; border-radius: var(--r-btn); display: inline-flex; font: var(--t-btn); justify-content: center;
  min-height: 48px; padding: 16px 24px; text-align: center; }
.button:hover { transform: translateY(-1px); }
.button-small { font: var(--t-btn-s); min-height: 38px; padding: 12px 16px; }
.button-dark { background: var(--ink); color: var(--canvas); }
.button-dark:hover { opacity: .9; }
.button-light { background: var(--canvas); color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.button-light:hover { box-shadow: var(--shadow-hover); }
.button:disabled { cursor: progress; opacity: .6; transform: none; }
:is(.button, button, a, summary, input, textarea, [tabindex]):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* переключатели — Figma Button xs: 8/12, высота 30, радиус 8; выбранный чёрный */
.choice-group { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-button { background: var(--canvas); border-radius: var(--r-xs); color: var(--ink); font: var(--t-btn-s);
  min-height: 30px; padding: 8px 12px; white-space: nowrap; }
.choice-button:hover { box-shadow: var(--shadow-hover); }
.choice-button.is-active { background: var(--ink); color: var(--canvas); }
.choice-button.choice-blue { background: var(--blue); color: var(--canvas); }

/* отклик кнопок (пользователь, 02.10.2026): общий для страницы и калькулятора. Нажатие — кнопка сразу проседает и плавно
   возвращается; выбор переключателя перекрашивается плавно. Крупные кнопки проседают на 3%, мелкие — на 6%: иначе не видно */
:is(.button, .choice-button, .calculator-cta, .calc-clear, .calc-cancel, .calc-close, .mini, .ct-pop-x, .sim-close) {
  transition: background-color .18s, color .18s, box-shadow .2s, opacity .2s, transform .2s var(--ease); }
:is(.button, .calculator-cta, .calc-clear, .calc-cancel, .mini):active:not(:disabled) { transform: scale(.97); transition-duration: .06s; }
:is(.choice-button, .calc-close, .ct-pop-x, .sim-close):active:not(:disabled) { transform: scale(.94); transition-duration: .06s; }

@media (max-width: 1100px) {
  h2 { font-size: 30px; line-height: 34px; }
}
@media (max-width: 767px) {
  h2 { font-size: 28px; line-height: 32px; }
  /* тач-цели 44px (ревью, 22.09.2026) */
  .choice-button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
