@font-face {
  font-family: Manrope;
  src: url(/assets/manrope-cyrillic-wght-normal.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope;
  src: url(/assets/manrope-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: Manrope, system-ui, sans-serif;
  color: #f4f6f9;
  background: #11161c;
  --ground: #11161c;
  --surface: #19212b;
  --deep: #131a22;
  --ink: #f4f6f9;
  --muted: #b7c2ce;
  --faint: #9baab9;
  --accent: #80bbff;
  --line: #34414f;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .45; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 7.5vw), 1296px); margin-inline: auto; }
.section { padding-block: clamp(58px, 6vw, 100px); }
section[id] { scroll-margin-top: 28px; }
p { margin: 0; color: var(--muted); line-height: 1.65; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.1vw, 3.6rem); letter-spacing: -.055em; line-height: 1.05; font-weight: 790; }
h3 { letter-spacing: -.032em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; transform: translateY(-150%); padding: 10px; background: var(--accent); color: var(--ground); }
.skip-link:focus { transform: none; }

.site-header { background: #10151b; border-bottom: 1px solid #273442; }
.header-inner { min-height: 76px; display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 11px; align-items: center; flex-shrink: 0; }
.brand strong { font-size: 1.55rem; letter-spacing: .17em; line-height: 1; font-weight: 800; }
.brand span { border-left: 1px solid #4f6378; padding-left: 11px; font-size: .68rem; letter-spacing: .17em; color: var(--accent); font-weight: 800; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 45px); align-items: center; font-size: .92rem; font-weight: 700; }
.site-header nav a { color: #d7e0e9; }
.site-header nav a:hover, .site-footer a:hover, .contact-actions > a:last-child:hover { color: var(--accent); }
.button { border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 44px; padding: 9px 16px; color: var(--ink); font-size: .9rem; font-weight: 790; line-height: 1.3; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s; }
.button span { font-size: 1.15em; }
.button-primary { background: var(--accent); color: #101820; }
.button-primary:hover { background: #a4cfff; }
.button-outline { border-color: #435366; background: transparent; }
.button-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.button-plain { padding-inline: 4px; }
.button-plain:hover { color: var(--accent); }

.hero {
  position: relative;
  min-height: clamp(540px, 46vw, 690px);
  display: grid;
  align-items: center;
  isolation: isolate;
  background: #111a26;
  overflow: hidden;
}
.hero::before, .hero::after { content: ""; inset: 0; position: absolute; z-index: -1; }
.hero::before { background: url(/assets/hero.jpg) center 58% / cover no-repeat; }
.hero::after { background: linear-gradient(90deg, #101821 1%, #101821ee 17%, #101821b0 34%, #10182114 59%, #10182100 80%), linear-gradient(0deg, var(--ground), transparent 22%); }
.hero-inner { padding-block: 65px 78px; }
.hero-copy { max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: #b5d6fa; letter-spacing: .20em; font-weight: 800; font-size: .72rem; margin-bottom: 20px; }
.eyebrow > span:first-child { height: 1px; width: 25px; background: var(--accent); }
.route-arrow { font-size: 1.06rem; line-height: 1; letter-spacing: 0; }
h1 { font-size: clamp(3.4rem, 6.55vw, 6.6rem); line-height: .99; font-weight: 800; letter-spacing: -.066em; text-wrap: initial; }
.hero-description { font-size: clamp(1rem, 1.45vw, 1.24rem); margin-top: 25px; max-width: 35ch; font-weight: 570; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 22px; margin-top: 30px; }
.hero-actions .button, .contact .button { min-height: 52px; font-size: .96rem; }
.hero-actions .button-primary { padding-inline: 20px; }
.hero-caption { position: absolute; bottom: 30px; left: 0; right: 0; justify-content: flex-end; display: flex; align-items: center; gap: 12px; color: #c5d3e1; font-size: .64rem; letter-spacing: .21em; font-weight: 800; pointer-events: none; }
.hero-caption span:last-child { width: 25px; height: 1px; background: #96a7ba; }

.catalog { padding-top: clamp(42px, 5vw, 68px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 29px; }
.section-heading p { margin-top: 10px; }
.feed-indicators { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.feed-indicators span { padding: 6px 10px; background: #1a222c; color: #c8d5e0; border: 1px solid #323f4d; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; }
.feed-indicators i { width: 6px; height: 6px; border-radius: 50%; background: #a0aebd; }
.feed-indicators i.connected { background: #94caba; }

.model-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 13px; }
.chip { min-height: 40px; padding: 7px 13px; border: 1px solid var(--line); background: transparent; border-radius: 7px; font-weight: 740; font-size: .85rem; color: #d3dce7; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { color: #c2ddff; background: #21374d; border-color: #527da7; }
.filter-box { display: grid; gap: 14px; padding: 15px; border: 1px solid #2d3a48; border-radius: var(--radius); background: var(--surface); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--muted); transform: translateY(-2px); pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 1.6px; right: -5px; bottom: -2px; background: var(--muted); transform: rotate(46deg); }
.search-field input { padding-left: 43px; }
.search-button { min-width: 120px; }
.filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.filter-grid label { display: grid; gap: 5px; color: #bfcbd8; font-size: .76rem; font-weight: 730; }
input, select { min-width: 0; width: 100%; height: 43px; background: var(--deep); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 0 11px; font-size: .89rem; font-weight: 640; }
input::placeholder { color: #9baabd; opacity: 1; }
select { padding-right: 25px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 18px 9px; }
.results-bar p { font-size: .85rem; font-weight: 750; }
.sort-label select { height: 37px; }
.feed-message { border-left: 2px solid #6084a9; padding: 4px 0 4px 10px; margin-bottom: 17px; color: var(--muted); font-size: .84rem; }
.lot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.lot-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid #303d4b; border-radius: var(--radius); }
.lot-photo { display: grid; align-items: center; justify-items: center; position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #263849, #17222d); color: #a8bbce; }
.lot-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.lot-photo .no-photo { font-size: .83rem; }
.lot-photo.demo-photo { background-image: url(/assets/demo-cars.jpg); background-size: 200% 200%; background-repeat: no-repeat; }
.demo-photo.tl { background-position: left top; }
.demo-photo.tr { background-position: right top; }
.demo-photo.bl { background-position: left bottom; }
.demo-photo.br { background-position: right bottom; }
.lot-sources { display: flex; position: absolute; z-index: 1; left: 10px; right: 10px; top: 10px; justify-content: space-between; gap: 5px; }
.lot-tag { padding: 4px 8px; border-radius: 5px; background: #101822ee; color: #e4effc; font-size: .68rem; font-weight: 800; letter-spacing: .025em; }
.lot-tag.example { color: #c0d4e8; }
.lot-body { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.lot-id { color: var(--faint); font-size: .72rem; font-weight: 730; }
.lot-card h3 { font-size: clamp(1.09rem, 2vw, 1.48rem); margin: 4px 0 1px; overflow-wrap: anywhere; }
.lot-trim { color: var(--muted); min-height: 1.3em; font-size: .78rem; }
.lot-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 15px 0; }
.lot-specs div { min-width: 0; }
.lot-specs dt, .price span { color: var(--faint); font-size: .7rem; }
.lot-specs dd { margin: 2px 0 0; color: #e0e6ed; font-size: .79rem; font-weight: 710; overflow-wrap: anywhere; }
.lot-footer { border-top: 1px solid var(--line); margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: end; gap: 6px; }
.price { display: grid; gap: 3px; }
.price strong { font-size: 1.12rem; }
.lot-footer button { padding-inline: 10px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; font-size: .84rem; color: var(--muted); }
.empty { padding: 28px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty button { display: flex; margin: 12px auto 0; }

.process { background: #151d26; border-block: 1px solid #273442; }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); }
.process-grid li { padding-top: 18px; border-top: 1px solid var(--line); }
.process-grid li span { color: var(--accent); font-size: .84rem; font-weight: 780; }
.process-grid h3 { margin: 9px 0 6px; font-size: 1.22rem; }
.process-grid p, .faq p { font-size: .94rem; }
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.faq details { border-top: 1px solid var(--line); padding-block: 16px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details p { margin-top: 8px; }
.faq summary { font-weight: 760; }
.faq summary::marker { color: var(--accent); }
.contact { background: #1b2937; border-block: 1px solid #314354; }
.contact-inner { padding-block: clamp(38px, 6vw, 68px); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.contact h2 { font-size: clamp(1.95rem, 3.5vw, 3rem); }
.contact p { margin-top: 9px; }
.contact-actions { display: grid; gap: 9px; justify-items: center; }
.contact-actions > a:last-child { color: var(--muted); font-size: .86rem; font-weight: 750; }
.site-footer { padding-block: 23px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 12px 20px; color: var(--muted); font-size: .82rem; }

dialog { width: min(calc(100% - 26px), 595px); max-height: calc(100% - 32px); border: 1px solid #405267; border-radius: 12px; padding: 0; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #0a1018bc; }
.dialog-content { padding: 24px; }
.dialog-content h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); padding-right: 28px; text-wrap: initial; }
.dialog-content .lot-photo { border-radius: 6px; margin-top: 12px; }
.dialog-content .lot-specs { gap: 14px; }
.dialog-content .lot-specs dd { font-size: .89rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-close { position: absolute; top: 11px; right: 11px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--deep); font-size: 1.35rem; }
.dialog-close:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  .hero { min-height: 525px; }
  .hero::before { background-position: 64% 57%; }
  .hero::after { background: linear-gradient(90deg, #101821f5, #101821c9 32%, #10182124 70%), linear-gradient(0deg, var(--ground), transparent 22%); }
  .lot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 63px; gap: 10px; }
  .site-header nav { margin-left: auto; }
  .site-header nav a:nth-child(2) { display: none; }
  .header-contact { font-size: .74rem; gap: 3px; padding-inline: 8px; min-height: 38px; }
  .brand { gap: 6px; }
  .brand strong { font-size: 1.18rem; }
  .brand span { padding-left: 6px; font-size: .58rem; }
  .hero { min-height: auto; align-items: start; }
  .hero::before { top: 200px; background-position: 72% 57%; background-size: auto 100%; }
  .hero::after { background: linear-gradient(180deg, #101821 0%, #101821 26%, #101821a0 50%, #10182100 75%, var(--ground) 100%); }
  .hero-inner { padding-block: 41px 242px; }
  h1 { font-size: clamp(2.8rem, 12vw, 4.3rem); }
  .eyebrow { margin-bottom: 15px; }
  .hero-description { margin-top: 13px; }
  .hero-actions { gap: 7px 13px; margin-top: 16px; }
  .hero-actions .button { font-size: .82rem; min-height: 44px; }
  .hero-actions .button-primary { padding-inline: 12px; }
  .hero-caption { bottom: 15px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .filter-box { padding: 10px; gap: 8px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-button { min-width: auto; padding-inline: 10px; }
  .chip { padding-inline: 8px; font-size: .79rem; }
  .process-grid, .faq { grid-template-columns: 1fr; }
  .contact-inner, .site-footer { align-items: flex-start; flex-direction: column; }
  .contact-actions { justify-items: start; }
}

@media (max-width: 480px) {
  .lot-grid { grid-template-columns: 1fr; }
  .lot-specs { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
