/* Шрифты, сброс, базовые классы. Шрифты лицензионные: файлы кладутся в public/fonts руками (см. README). */
@font-face { font-family: 'Suisse Intl'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/SuisseIntl-Light.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 300; font-style: italic; font-display: swap; src: url('/fonts/SuisseIntl-LightItalic.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 350; font-style: normal; font-display: swap; src: url('/fonts/SuisseIntl-Book.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 350; font-style: italic; font-display: swap; src: url('/fonts/SuisseIntl-BookItalic.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/SuisseIntl-Regular.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/SuisseIntl-RegularItalic.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/SuisseIntl-Medium.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 500; font-style: italic; font-display: swap; src: url('/fonts/SuisseIntl-MediumItalic.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/SuisseIntl-SemiBold.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 600; font-style: italic; font-display: swap; src: url('/fonts/SuisseIntl-SemiBoldItalic.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/SuisseIntl-Bold.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 700; font-style: italic; font-display: swap; src: url('/fonts/SuisseIntl-BoldItalic.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 900; font-style: normal; font-display: swap; src: url('/fonts/SuisseIntl-Black.otf') format('opentype'); }
@font-face { font-family: 'Suisse Intl'; font-weight: 900; font-style: italic; font-display: swap; src: url('/fonts/SuisseIntl-BlackItalic.otf') format('opentype'); }

/* Gotham. U+00A0 (неразрывный пробел) в нём шириной ~25em — исключён через unicode-range. */
@font-face { font-family: 'Gotham'; font-weight: 100; font-style: normal; font-display: swap; unicode-range: U+0000-009F, U+00A1-10FFFF; src: url('/fonts/Gotham-Thin.otf') format('opentype'); }
@font-face { font-family: 'Gotham'; font-weight: 200; font-style: normal; font-display: swap; unicode-range: U+0000-009F, U+00A1-10FFFF; src: url('/fonts/Gotham-XLight.otf') format('opentype'); }
@font-face { font-family: 'Gotham'; font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-009F, U+00A1-10FFFF; src: url('/fonts/Gotham-Light.otf') format('opentype'); }
@font-face { font-family: 'Gotham'; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-009F, U+00A1-10FFFF; src: url('/fonts/Gotham-Book.otf') format('opentype'); }
@font-face { font-family: 'Gotham'; font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-009F, U+00A1-10FFFF; src: url('/fonts/Gotham-Medium.otf') format('opentype'); }
@font-face { font-family: 'Gotham'; font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-009F, U+00A1-10FFFF; src: url('/fonts/Gotham-Bold.otf') format('opentype'); }
@font-face { font-family: 'Gotham'; font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0000-009F, U+00A1-10FFFF; src: url('/fonts/Gotham-Black.otf') format('opentype'); }
@font-face { font-family: 'Gotham'; font-weight: 900; font-style: normal; font-display: swap; unicode-range: U+0000-009F, U+00A1-10FFFF; src: url('/fonts/Gotham-Ultra.otf') format('opentype'); }

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

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

body {
  margin: 0;
  font: var(--font-body);
  color: var(--color-ink);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* Табличные цифры Gotham для цен, пробегов и телефонов. */
.tnum {
  font-family: var(--font-secondary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 759px) { .container { padding-inline: var(--gutter-mobile); } }

/* Белый блок на сером фоне страницы — базовая единица раскладки дизайна. */
.box {
  background: var(--color-white);
  border-radius: var(--radius-box);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tanda-icon { flex: none; }
.body-icon { display: block; }

/* Заголовки по брендбуку. */
.section-title { text-wrap: balance; }
.section-title--h1 { font: var(--font-h1); letter-spacing: var(--tracking-h1); }
.section-title--h2 { font: var(--font-h2); }
.section-title--h3 { font: var(--font-h3); }
@media (max-width: 759px) {
  .section-title--h1 { font: var(--font-h2); }
  .section-title--h2 { font: var(--font-h3); }
}

/* Страница ошибки */
.error-page { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 16px; }
.error-page__code { font: 700 36px/42px var(--font-primary); letter-spacing: -0.02em; }
.error-page__text { font: 400 16px/24px var(--font-primary); color: #7b7b7b; }
.error-page__link { color: #3ec696; font-weight: 500; }
