/* Типографика и логотип. Стиль «Трасса»: узкий плакатный шрифт, как на европейских дорожных
   указателях и номерных знаках; заголовки прописными; логотип в виде номерного знака. */

/* Знак рубля берётся из системного шрифта в обычной толщине: рядом с жирными цифрами он не должен быть жирнее их. */
@font-face { font-family: "Rub"; src: local("Segoe UI"), local("Roboto"), local("Helvetica Neue"), local("Arial"); font-weight: 100 900; unicode-range: U+20BD; }

:root {
  --font-body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sofia Sans Extra Condensed", "Rub", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body-size: 17px;
  --body-weight: 400;
}

/* Заголовки и крупные подписи */
.h1, .h2, .h3, .feat__title, .buy__title, .lead__title, .facts b, .types b, .contacts__phone, .steps__n {
  font-family: var(--font-display); font-weight: 800; letter-spacing: .004em; text-transform: uppercase; line-height: .92;
}
.h1--sm { font-size: clamp(2.8rem, 6.4vw, 5rem); }
.hero .h1 { font-size: clamp(3.3rem, 9.4vw, 7.4rem); max-width: 1000px; }
.hero .h1 em { font-style: normal; color: var(--accent-bright); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h3 { font-size: 1.95rem; }
.feat__title { font-size: clamp(2.6rem, 4.6vw, 4rem); }
.buy__title { font-size: 2.5rem; }
.lead__title { font-size: clamp(2.1rem, 3.8vw, 3rem); }
.facts b { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.types b { font-size: 1.8rem; }
.steps__n { font-size: 4rem; letter-spacing: 0; }
.benefits h3, .steps h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; letter-spacing: .01em; line-height: 1; }
.sec__head { align-items: center; }

/* Цены */
.price { font-family: var(--font-display); font-weight: 800; letter-spacing: .005em; }
.card__foot .price { font-size: 2rem; line-height: 1; }
.buy__price .price { font-size: 3.7rem; }
.feat .buy__price .price { font-size: clamp(3.3rem, 5.2vw, 4.6rem); }
.bar__price .price { font-size: 1.75rem; }

/* Карточка машины в каталоге */
.card__title { font-family: var(--font-display); font-weight: 700; letter-spacing: .012em; text-transform: uppercase; font-size: 1.55rem; line-height: 1.1; }
.card__title span { font-weight: 500; letter-spacing: .02em; }

/* Кнопки, меню, мелкие подписи */
.btn { text-transform: uppercase; letter-spacing: .055em; font-size: .9rem; font-weight: 800; }
.btn--sm { font-size: .85rem; }
.top__nav a { text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; font-weight: 700; }
.top__phone { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; }
.more { text-transform: uppercase; font-size: .82rem; letter-spacing: .07em; font-weight: 800; }
.feat__label { font-size: .8rem; letter-spacing: .12em; }
.faq summary { font-size: 1.15rem; font-weight: 700; }
@media (max-width: 420px) { .top__phone { font-size: 1.3rem; } }

/* Логотип: европейский номерной знак */
.logo { gap: 12px; }
.plate { display: inline-flex; align-items: stretch; height: 40px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); overflow: hidden; }
.plate__eu { width: 25px; background: #1d4ac9; color: #fff; display: grid; justify-items: center; align-content: center; gap: 1px; }
.plate__eu svg { width: 15px; height: 15px; }
.plate__eu b { font: 800 9px/1 "Sofia Sans", system-ui, sans-serif; letter-spacing: .04em; }
.plate__txt { display: grid; align-items: center; padding: 2px 11px 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.72rem; line-height: 1; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.foot .plate { border-color: #fff; }
@media (max-width: 420px) { .plate { height: 34px; } .plate__txt { font-size: 1.4rem; padding: 2px 8px 0; } .plate__eu { width: 21px; } }

/* подписи и ярлыки набираются тем же узким шрифтом, что заголовки */
.kicker, .tag, .chips a { font-family: var(--font-display); }
.chips span { font-family: var(--font-body); }
.steps__n { font-size: 3.2rem; }

/* узкие экраны: логотип и телефон компактнее, заголовки страниц меньше, чтобы длинное слово помещалось */
@media (max-width: 560px) {
  .plate { height: 34px; }
  .plate__txt { font-size: 1.4rem; padding: 2px 8px 0; }
  .plate__eu { width: 21px; }
  .top__phone { font-size: 1.3rem; }
  .h1--sm { font-size: clamp(2rem, 10.5vw, 2.8rem); }
}

/* страница машины на телефоне: длинное название ужимается и остаётся в одну строку; размер считается от числа знаков (--n) */
@media (max-width: 640px) {
  .buy__title { font-size: clamp(1.5rem, calc((100vw - 2 * var(--pad)) / (var(--n, 16) * .4)), 2.5rem); }
}
