@font-face {
  font-family: Hauora;
  src: url("assets/fonts/Hauora.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Serif";
  src: url("assets/fonts/LibertinusSerif-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TikTok Sans";
  src: url("assets/fonts/TikTokSans.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-display: swap;
}

:root {
  --ink: #171614;
  --brown: #201e1c;
  --muted: #353230;
  --paper: #fdfaf5;
  --gold: #ecd1b4;
  --beige: #e3dccb;
  --cream: #f9f1e8;
  --body-font: Hauora, Arial, sans-serif;
  --accent-font: "Libertinus Serif", Georgia, serif;
  --container: 1320px;
  --gap: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ink); font: 400 16px/1.4 var(--body-font); letter-spacing: -.02em; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, select { color: inherit; font: inherit; letter-spacing: inherit; }
button, summary, select { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #9f7651; outline-offset: 4px; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.arrow {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6px;
  border-radius: 4px;
  background: rgb(23 22 20 / 70%);
  color: var(--beige);
  font-size: 16px;
  font-weight: 460;
  line-height: 1;
}
.site-header .logo { margin-left: 4px; width: max-content; }
.logo img { width: 139px; height: auto; }
.main-nav, .header-actions { display: flex; align-items: center; }
.main-nav { gap: 32px; margin-right: 62px; }
.header-actions { justify-content: flex-end; gap: 4px; }
.header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  background: rgb(23 22 20 / 78%);
}
.header-actions > a { color: var(--gold); }
.language { position: relative; }
.language summary { list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.language ul {
  position: absolute;
  z-index: 3;
  right: 0;
  top: calc(100% + 6px);
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--ink);
  line-height: 1.8;
}
.menu-toggle { display: none; }

.hero {
  height: 653px;
  background: var(--brown) var(--bg_3c5b28b30e, none) center top / auto 100% no-repeat;
  color: white;
}
.hero-inner { position: relative; padding-top: 198px; }
.hero h1 { max-width: 735px; font-size: 78px; font-weight: 460; line-height: 1; letter-spacing: -.04em; }
.hero h1 span { display: block; color: var(--gold); }
.hero-aside {
  position: absolute;
  top: 207px;
  right: 0;
  color: var(--cream);
  text-align: right;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.hero-aside span { position: absolute; right: calc(100% + 12px); top: -3px; font-size: 34px; line-height: 1; }
.button {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero-button { margin-top: 55px; background: transparent; color: var(--gold); }

.catalog { background: var(--paper); padding-block: 80px 100px; }
.sort { position: relative; display: inline-block; max-width: 100%; }
.sort select {
  display: block;
  appearance: none;
  width: 327px;
  max-width: 100%;
  height: 45px;
  padding: 0 42px 0 17px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: transparent;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.sort .arrow { position: absolute; top: 50%; right: 17px; transform: translateY(-50%); pointer-events: none; }
.lineup { margin-top: 61px; }
.lineup + .lineup { margin-top: 93px; }
.lineup-heading {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 63px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--gold);
  color: var(--brown);
}
.lineup-heading h2 { font: italic 400 44px/1 var(--accent-font); letter-spacing: -.03em; }
.lineup-heading p { font-size: 13px; font-weight: 500; line-height: 1.4; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 24px; }
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 620px;
  padding: 39px 28px 48px;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}
.product-photo { position: absolute; right: 28px; bottom: 28px; width: 186px; height: auto; pointer-events: none; }
.product-name, .product .specs, .product-more { position: relative; z-index: 1; }
.product-name { font-size: 42px; font-weight: 460; line-height: 1.1; letter-spacing: -.04em; }
.product-name span { display: block; }
.specs { color: var(--muted); font-size: 16px; line-height: 1.4; }
.product .specs { margin: 20px 0 20px; }
.specs li + li { margin-top: 1px; }
.specs li span { margin-inline: 2px; }
.product-more { margin-top: auto; padding-inline: 18px; }

.about { padding: 80px 0 100px; background: var(--brown); color: #fff; }
.tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgb(227 220 203 / 60%);
  border-radius: 2px;
  color: var(--beige);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}
.about-intro { display: grid; grid-template-columns: 1fr minmax(0, 537px); gap: 42px; margin-top: 19px; }
.about-intro h2 { max-width: 560px; font-size: 56px; font-weight: 460; line-height: 1.05; letter-spacing: -.04em; }
.about-intro h2 span { color: var(--gold); }
.about-intro p { font: 400 18px/1.6 "TikTok Sans", var(--body-font); font-stretch: 112.5%; letter-spacing: -.02em; }
.about-link, .callback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}
.about-link { margin-top: 18px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 67px; }
.about-facts figcaption { display: flex; align-items: flex-end; gap: 12px; min-height: 80px; margin-bottom: 27px; color: var(--paper); }
.about-facts strong { font: italic 400 80px/1 var(--accent-font); letter-spacing: -.03em; }
.about-facts figcaption span { padding-bottom: 7px; font-size: 18px; }
.about-facts img { width: 100%; height: auto; border-radius: 4px; }

.mobile-models { display: none; }
.footer-assistance { display: contents; }
.dialog-catalog[hidden] { display: none; }

.site-footer { padding: 67px 0 61px; color: var(--cream); }
.footer-contact {
  display: grid;
  grid-template-columns: minmax(152px, 315px) minmax(0, 1fr) 242px;
  gap: 48px;
  align-items: start;
  min-height: 137px;
  border-bottom: 1px solid #353230;
}
.footer-contact .logo { width: max-content; align-self: start; margin-top: 13px; }
.footer-contact .logo img { width: 152px; }
.footer-contact p { max-width: 656px; color: var(--cream); }
.footer-phone { text-align: center; }
.phone { display: block; font: italic 400 44px/1 var(--accent-font); letter-spacing: -.03em; color: var(--gold); white-space: nowrap; }
.callback { margin-top: 5px; padding: 0; border: 0; background: none; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 320fr) minmax(0, 289fr) minmax(0, 250fr) minmax(0, 160fr) minmax(110px, 110fr);
  gap: 48px;
  align-items: start;
  margin-top: 72px;
}
.footer-photo { width: 100%; height: auto; border-radius: 4px; }
.footer-main .tag { margin-top: 12px; margin-bottom: 31px; }
.footer-main ul, .footer-nav nav { display: grid; gap: 12px; color: var(--cream); font-size: 18px; }
.footer-models ul { gap: 16px; }
.footer-languages [aria-current] { position: relative; }
.footer-languages [aria-current]::before { content: "•"; position: absolute; right: calc(100% + 16px); }
.footer-social ul { gap: 19px; }
.footer-social img { width: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 164px; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 24px; color: var(--beige); }

dialog { max-width: min(480px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(23 22 20 / 65%); }
dialog h2 { margin: 0 30px 16px 0; font-weight: 460; }
dialog .phone { color: var(--brown); }
.dialog-close { position: absolute; top: 8px; right: 12px; padding: 3px 7px; border: 0; background: none; font-size: 24px; }

@media (max-width: 1150px) {
  .main-nav { gap: 20px; margin-right: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main, .footer-contact { gap: 24px; }
}

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

@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .site-header {
    top: 11px;
    left: 9px;
    right: 11px;
    width: auto;
    height: 42px;
    margin: 0;
    padding: 0 10px;
    transform: none;
    grid-template-columns: 1fr auto;
    background: rgb(23 22 20 / 60%);
  }
  .site-header .logo { margin: 0; }
  .site-header .logo img { width: 100px; }
  .header-actions { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; margin-right: -5px; padding: 0; border: 0; background: none; }
  .menu-toggle span { width: 32px; height: 10px; border-block: 1.5px solid #fff; }
  .main-nav { display: none; position: absolute; top: 50px; right: 0; left: 0; padding: 20px; border-radius: 4px; background: var(--ink); }
  .menu-toggle[aria-expanded="true"] + .main-nav { display: grid; }

  .hero { height: auto; min-height: 720px; background-image: var(--bg_37fba81527, none); background-position: center top; background-size: 100% auto; }
  .hero-inner { padding: clamp(365px, 106.4vw, 640px) 0 52px; }
  .hero h1 { max-width: 420px; font-size: clamp(32px, 11.2vw, 42px); line-height: 1.08; }
  .hero h1 span { max-width: 315px; }
  .hero-aside { top: 108px; right: 0; font-size: 11px; }
  .hero-aside span { top: -1px; right: calc(100% + 9px); font-size: 22px; }
  .button { min-height: 44px; padding-inline: 18px; gap: 8px; font-size: 14px; }
  .hero-button { margin-top: 44px; background: var(--gold); color: var(--ink); }

  .catalog { padding-block: 52px; }
  .sort select { width: 269px; max-width: 100%; font-size: 14px; }
  .lineup { margin-top: 38px; }
  .lineup + .lineup { margin-top: 38px; }
  .lineup-heading { min-height: 57px; align-items: center; padding-bottom: 16px; }
  .lineup-heading h2 { font-size: 32px; }
  .lineup-heading p { font-size: 11px; }
  .product-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .product { min-height: 576px; padding: 26px 24px 24px; }
  .product-photo { position: static; order: -1; align-self: center; width: auto; height: 296px; }
  .product-name { margin-top: 36px; font-size: 28px; line-height: 1.16; }
  .product-name span { display: inline; }
  .product .specs { margin: 10px 0 18px; font-size: 14px; }
  .product .specs li + li { margin-top: 2.4px; }

  .about { padding-block: 52px; }
  .tag { min-height: 19px; padding-inline: 5px; font-size: 10px; line-height: 1; }
  .about-intro, .about-facts { grid-template-columns: 1fr; }
  .about-intro { margin-top: 14px; gap: 26px; }
  .about-intro h2, .mobile-models h2 { font-size: 34px; line-height: 1.08; }
  .about-intro p { font: 400 18px/1.5 var(--body-font); }
  .about-link, .callback, .model-more { font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
  .about-link { margin-top: 19px; }
  .about-facts { margin-top: 50px; gap: 28px; }
  .about-facts figcaption { min-height: 0; margin-bottom: 10px; }
  .about-facts strong { font-size: 52px; }
  .about-facts figcaption span { padding-bottom: 6px; font-size: 14px; line-height: 1.2; }

  .site-footer { padding: 0 0 26px; }
  .site-footer > .container { display: flex; flex-direction: column; width: 100%; }
  .mobile-models {
    display: block;
    padding: 52px 20px 0;
    background: var(--brown);
    color: #fff;
  }
  .mobile-models h2 { max-width: 370px; margin-top: 14px; font-weight: 460; letter-spacing: -.04em; }
  .mobile-models h2 span { color: var(--gold); }
  .model-track {
    display: flex;
    gap: 8px;
    margin: 38px -20px 0;
    padding: 0 20px;
    overflow-x: auto;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .model-slide { flex: 0 0 160px; scroll-snap-align: start; text-align: center; }
  .model-photo { display: grid; place-items: center; height: 212px; border-radius: 4px; background: #1c1a18; }
  .model-photo img { width: auto; height: 194px; }
  .model-slide h3 { margin-top: 18px; font-size: 20px; line-height: 1.16; font-weight: 460; letter-spacing: -.04em; }
  .model-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 0; border: 0; background: none; color: var(--gold); text-transform: uppercase; }
  .models-button { margin-top: 40px; padding-inline: 22px; }

  .footer-contact { display: contents; }
  .footer-assistance { display: grid; order: 1; gap: 28px; padding: 52px 20px 43px; background: var(--brown); }
  .footer-assistance p { font-size: 14px; }
  .footer-assistance p br { display: none; }
  .footer-contact .logo { order: 2; margin: 52px 20px 0; }
  .footer-contact .logo img { width: 116px; }
  .footer-phone { text-align: left; }
  .footer-phone .phone { font-size: 36px; }
  .callback { margin-top: 14px; }
  .footer-main {
    order: 3;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 60px 18px;
    margin: 48px 20px 0;
  }
  .footer-photo, .footer-models, .footer-social h2 { display: none; }
  .footer-main .tag { margin: 0 0 17px; color: var(--gold); border-color: var(--gold); }
  .footer-main ul, .footer-nav nav { gap: 10px; font-size: 18px; line-height: 1.5; }
  .footer-languages [aria-current]::before { right: calc(100% + 18px); }
  .footer-social { grid-column: 1 / -1; }
  .footer-social ul { grid-template-columns: 59fr 83fr 82fr 67fr; align-items: center; gap: clamp(8px, 4vw, 15px); }
  .footer-social img { width: 100%; height: auto; }
  .footer-bottom { display: grid; order: 4; gap: 24px; margin: 44px 20px 0; font-size: 14px; }
  .footer-bottom p { font-weight: 500; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
  .footer-bottom div { display: grid; gap: 0; line-height: 1.8; }
}

/* styles.css — добавить в конец файла. */
.home-page {
  --home-beige-1: #e3dccf;
  --home-beige-3: #fdfaf6;
  --home-gold: #ecd1b5;
  --home-radius: 4px;
  --home-header-bottom: calc(12px + 52px);
}

@media (min-width: 1001px) {
  .home-page .home-motor-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 1000px) {
  .home-motor-copy {
    display: contents;
  }

  .home-market-icons {
    display: contents;
  }

  .home-catalog-count,
  .home-catalog-link {
    display: contents;
  }
}

/* На узких экранах сохраняется исходная сетка карточек. */
@media (max-width: 1000px) {
  .home-maneuver-choice,
  .home-maneuver-controls {
    display: none;
  }
}
