:root {
  --ink: #0c152c;
  --muted: #687083;
  --paper: #f7f7f8;
  --white: #fff;
  --green: #e22236;
  --green-deep: #0c152c;
  --lime: #fff;
  --line: #e5e6e9;
  --shadow: 0 18px 50px rgba(12, 21, 44, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header {
  height: 82px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  color: white;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.7px;
}
.brand img {
  width: 192px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
}
.main-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
}
.main-nav a:hover { color: white; }
.header-phone {
  display: flex;
  flex-direction: column;
  color: white;
  text-align: right;
  text-decoration: none;
}
.header-phone small { color: rgba(255,255,255,.52); font-size: 9px; }
.header-phone strong { margin-top: 3px; font-size: 14px; }

.hero {
  min-height: 520px;
  padding: 62px max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 30px;
  color: var(--ink);
  background: linear-gradient(118deg, #fff 0%, #fff 47%, #eff1f4 47%, #e4e7ec 100%);
  overflow: hidden;
  position: relative;
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -2.7px;
}
.hero h1 em { color: var(--green); font-style: normal; font-weight: 700; }
.hero-text { max-width: 540px; margin: 24px 0 0; color: var(--muted); line-height: 1.7; }
.hero-button {
  width: fit-content;
  margin-top: 30px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: white;
  background: var(--green);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.hero-button:hover { opacity: .88; }
.hero-button span { font-size: 19px; }
.hero-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual > img {
  position: relative;
  z-index: 2;
  width: min(650px, 58vw);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(12,21,44,.21));
}
.hero-stamp {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 10px;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(12,21,44,.2);
}
.hero-stamp strong { font-size: 32px; }
.hero-stamp span { font-size: 9px; line-height: 1.4; text-transform: uppercase; }

.advantages {
  max-width: 1288px;
  margin: 0 auto;
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  color: white;
}
.advantages div { padding: 12px 28px; display: flex; align-items: center; gap: 17px; border-right: 1px solid rgba(255,255,255,.12); }
.advantages div:last-child { border-right: 0; }
.advantages strong { color: var(--green); font-size: 13px; }
.advantages span { font-size: 12px; font-weight: 600; line-height: 1.45; }

.catalog {
  max-width: 1288px;
  margin: 0 auto;
  padding: 42px 24px 80px;
}
.section-kicker { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-intro h2 { margin: 0; font-size: 35px; letter-spacing: -1.4px; }
.section-intro p { max-width: 480px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 220px;
  gap: 12px;
  margin-bottom: 42px;
}
.search, .select-wrap select {
  height: 54px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
}
.search:focus-within, .select-wrap select:focus { border-color: #8eaa9d; box-shadow: 0 0 0 4px rgba(29,92,69,.07); outline: none; }
.search svg { width: 20px; fill: none; stroke: #758078; stroke-width: 1.8; }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search input::placeholder { color: #9ba39e; }
.select-wrap select {
  width: 100%;
  padding: 0 42px 0 16px;
  color: var(--ink);
  appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2368736c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center;
}
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.catalog-head h3 { margin: 0; font-size: 23px; letter-spacing: -.7px; }
.catalog-head span { color: var(--muted); font-size: 13px; }

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.car-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e5e8e3;
  border-radius: 17px;
  box-shadow: 0 3px 10px rgba(23,33,28,.025);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.car-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7e9e6;
}
.car-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.car-card:hover .car-image img { transform: scale(1.025); }
.available {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: white;
  background: rgba(226,34,54,.94);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}
.photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  color: white;
  background: rgba(10,20,15,.72);
  backdrop-filter: blur(6px);
  border-radius: 7px;
  font-size: 11px;
}
.card-body { padding: 20px; }
.car-brand { margin-bottom: 7px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.car-title { min-height: 48px; margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.45px; }
.card-specs { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.card-specs span { position: relative; }
.card-specs span + span::before { content: "•"; position: absolute; left: -10px; color: #c4cac6; }
.price-row { display: flex; align-items: end; justify-content: space-between; padding-top: 17px; border-top: 1px solid #edf0ec; }
.price small { display: block; margin-bottom: 3px; color: #8a938d; font-size: 10px; }
.price strong { font-size: 23px; letter-spacing: -.7px; }
.detail-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--green); font-size: 18px; }
.skeleton { height: 440px; border-radius: 17px; background: linear-gradient(100deg, #e9ebe7 20%, #f5f6f3 40%, #e9ebe7 60%); background-size: 200% 100%; animation: shine 1.2s infinite; }
@keyframes shine { to { background-position-x: -200%; } }
.empty { padding: 80px 20px; text-align: center; color: var(--muted); }
.empty div { font-size: 52px; color: #a5ada8; }
.empty h3 { margin: 8px 0; color: var(--ink); }
.empty p { margin: 0; }

footer {
  min-height: 160px;
  padding: 40px max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--ink);
  color: rgba(255,255,255,.58);
  font-size: 12px;
}
.brand-footer img { width: 185px; }
.footer-phone { color: white; font-size: 18px; font-weight: 700; text-decoration: none; }

.detail-dialog {
  width: min(1120px, calc(100% - 36px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.detail-dialog::backdrop { background: rgba(12, 22, 17, .72); backdrop-filter: blur(5px); }
.dialog-close {
  position: fixed;
  z-index: 5;
  top: max(28px, calc((100vh - min(760px, calc(100vh - 36px))) / 2 + 15px));
  right: max(28px, calc((100vw - min(1120px, calc(100vw - 36px))) / 2 + 15px));
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 5px 20px rgba(0,0,0,.13);
}
.detail-layout { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 650px; }
.gallery { padding: 20px; background: #eceeea; }
.gallery-main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: #dfe3de; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumb {
  padding: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #ddd;
}
.thumb.active { border-color: var(--green); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 42px 38px; overflow-y: auto; }
.detail-status { display: inline-block; padding: 7px 10px; color: white; background: var(--green); border-radius: 7px; font-size: 11px; font-weight: 800; }
.detail-info h2 { margin: 16px 0 9px; font-size: 30px; line-height: 1.2; letter-spacing: -1px; }
.detail-model { margin: 0 0 25px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.detail-price { margin-bottom: 30px; color: var(--green-deep); font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.detail-price small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.quick-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 34px; }
.quick-spec { padding: 14px 12px; background: var(--paper); border-radius: 10px; }
.quick-spec small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.quick-spec strong { display: block; margin-top: 5px; font-size: 13px; }
.detail-section { margin-top: 28px; }
.detail-section h3 { margin: 0 0 14px; font-size: 16px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.spec-row { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #eaede9; font-size: 12px; }
.spec-row span { color: var(--muted); }
.spec-row strong { text-align: right; font-weight: 700; }
.features { display: flex; flex-wrap: wrap; gap: 7px; }
.feature { padding: 8px 10px; color: #445149; background: #f0f2ef; border-radius: 7px; font-size: 11px; }
.vin { padding: 13px 15px; display: flex; justify-content: space-between; gap: 15px; background: var(--ink); color: white; border-radius: 10px; font-size: 12px; }
.vin span { color: #a9beb5; }

@media (max-width: 900px) {
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-info { overflow: visible; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-visual { min-height: 320px; }
  .advantages { margin: 0; }
}
@media (max-width: 600px) {
  .site-header { height: 68px; }
  .brand img { width: 156px; }
  .header-phone { display: none; }
  .hero { min-height: 620px; padding-top: 42px; padding-bottom: 20px; background: linear-gradient(160deg, white 0 61%, #e5e8ed 61%); }
  .hero h1 { font-size: 39px; letter-spacing: -2px; }
  .hero-text { font-size: 14px; }
  .hero-visual { min-height: 250px; }
  .hero-visual > img { width: 110%; max-height: 260px; }
  .hero-stamp { width: 88px; height: 88px; top: 3px; right: 0; }
  .hero-stamp strong { font-size: 25px; }
  .advantages { grid-template-columns: 1fr; padding: 16px; }
  .advantages div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .advantages div:last-child { border-bottom: 0; }
  .catalog { padding: 44px 15px 60px; }
  .section-intro { display: block; }
  .section-intro h2 { font-size: 29px; }
  .section-intro p { margin-top: 12px; }
  .toolbar { grid-template-columns: 1fr; margin-bottom: 32px; }
  .search { grid-column: auto; }
  .car-grid { grid-template-columns: 1fr; }
  .catalog-head h3 { font-size: 21px; }
  .catalog-head span { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
  .detail-dialog { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .dialog-close { top: 13px; right: 13px; }
  .gallery { padding: 10px; }
  .detail-info { padding: 28px 20px 40px; }
  .detail-info h2 { font-size: 25px; }
  .quick-specs { grid-template-columns: 1fr 1fr 1fr; }
  .spec-table { grid-template-columns: 1fr; }
}
