:root {
  --ink: #111c2d;
  --ink-2: #1c2a3e;
  --paper: #f5f6f8;
  --white: #ffffff;
  --red: #a71930;
  --red-dark: #801124;
  --muted: #637083;
  --line: #dce1e7;
  --shadow: 0 22px 60px rgba(17, 28, 45, .12);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--red); }
.skip-link:focus { top: 16px; }

.topbar { color: #dce4ef; background: #0a1321; font-size: .84rem; letter-spacing: .02em; }
.topbar .shell { display: flex; justify-content: space-between; gap: 24px; padding-block: 8px; }
.topbar-links { display: flex; gap: 22px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(220,225,231,.86); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; width: 190px; min-height: 96px; }
.brand img { max-height: 92px; width: auto; object-fit: contain; }
.brand-fallback { display: none; font-weight: 900; letter-spacing: -.03em; }
.site-menu { display: flex; align-items: center; gap: 28px; font-weight: 720; font-size: .92rem; }
.site-menu a { position: relative; padding-block: 10px; }
.site-menu a:not(.button)::after { content: ""; position: absolute; inset: auto 0 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-menu a:hover::after, .site-menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu-button { display: none; width: 46px; height: 42px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; font-weight: 800; line-height: 1.1; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--red { color: #fff; background: var(--red); }
.button--red:hover { background: var(--red-dark); }
.button--dark { color: #fff; background: var(--ink); }
.button--outline { border-color: currentColor; color: var(--ink); background: transparent; }
.button--white { color: var(--ink); background: #fff; }

.eyebrow { margin: 0 0 14px; color: var(--red); font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.04em; }
h1 { max-width: 860px; font-size: clamp(3rem, 6.4vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { font-size: 1.35rem; }
.lead { max-width: 720px; margin: 24px 0 0; color: #d9e0e9; font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
.section-lead { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.kicker-line { display: flex; align-items: center; gap: 13px; color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; }
.kicker-line::before { content: ""; width: 42px; height: 3px; background: var(--red); }

.hero { overflow: hidden; color: #fff; background: var(--ink); }
.hero-grid { min-height: 710px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(370px, .85fr); align-items: stretch; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 96px 7vw 96px max(20px, calc((100vw - var(--max)) / 2)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual { position: relative; min-height: 560px; overflow: hidden; background: #152236; isolation: isolate; }
.hero-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(17,28,45,.42), transparent 45%), linear-gradient(0deg, rgba(8,18,32,.5), transparent 45%); }
.hero-panel { position: absolute; left: 6%; bottom: 7%; z-index: 2; width: min(300px, 50%); padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(8,18,32,.84); backdrop-filter: blur(8px); }
.hero-panel strong { display: block; font-size: 1.08rem; line-height: 1.25; }
.hero-panel span { display: block; margin-top: 5px; color: #c6d0dd; font-size: .88rem; line-height: 1.45; }
.hero-stamp { position: absolute; top: 8%; left: 9%; z-index: 2; display: grid; width: 122px; height: 122px; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); text-align: center; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-8deg); }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 32px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-size: 1.55rem; line-height: 1.1; }
.trust-item span { color: var(--muted); font-size: .9rem; }

.section { padding-block: 104px; }
.section--soft { background: var(--paper); }
.section--dark { color: #fff; background: var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 46px; }
.section-head .button { flex: 0 0 auto; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vehicle-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.vehicle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vehicle-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #24354c, #0c1625); }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vehicle-card:hover img { transform: scale(1.025); }
.vehicle-media--fallback::after { content: "CHERNY AUTO GROUP"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 900; letter-spacing: .15em; }
.vehicle-badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 9px; color: #fff; background: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.vehicle-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.vehicle-type { color: var(--red); font-size: .73rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.vehicle-body h3 { margin-top: 8px; }
.vehicle-summary { margin: 14px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 15px 0 0; color: var(--muted); font-size: .88rem; }
.vehicle-bottom { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; }
.price { font-size: 1.38rem; font-weight: 900; letter-spacing: -.03em; }
.price small { display: block; margin-top: 2px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.vehicle-link { color: var(--red); font-size: .86rem; font-weight: 850; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.metric-wall { position: relative; min-height: 530px; padding: 36px; color: #fff; background: var(--ink); }
.metric-wall::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.15); pointer-events: none; }
.metric { position: relative; z-index: 1; padding: 32px 20px; border-bottom: 1px solid rgba(255,255,255,.16); }
.metric:last-child { border-bottom: 0; }
.metric strong { display: block; color: #fff; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .95; letter-spacing: -.07em; }
.metric span { display: block; margin-top: 10px; color: #c9d2de; }
.copy p { color: var(--muted); }
.copy .button { margin-top: 20px; }
.ticks { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.16); }
.category { min-height: 290px; padding: 38px; background: var(--ink); }
.category-no { color: var(--red); font-size: 3.8rem; font-weight: 950; letter-spacing: -.08em; opacity: .9; }
.category h3 { margin-top: 46px; color: #fff; font-size: 1.8rem; }
.category p { margin-bottom: 0; color: #b9c5d4; }

.cta-band { color: #fff; background: var(--red); }
.cta-band .shell { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding-block: 55px; }
.cta-band h2 { max-width: 720px; font-size: clamp(2rem, 4vw, 3.6rem); }

.page-hero { padding-block: 100px 92px; color: #fff; background: var(--ink); }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.page-hero .lead { max-width: 780px; }
.crumbs { margin-bottom: 32px; color: #aab7c7; font-size: .86rem; }
.crumbs a { color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; }
.filter-chip { padding: 9px 15px; border: 1px solid var(--line); color: var(--muted); background: #fff; font-weight: 750; font-size: .87rem; }
.filter-chip.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.inventory-tools { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.inventory-tools .filter-row { margin: 0; }
.inventory-search { display: grid; min-width: min(100%, 310px); gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.inventory-search input { min-height: 46px; padding: 10px 13px; border: 1px solid #cbd2db; color: var(--ink); background: #fff; text-transform: none; letter-spacing: normal; }
.inventory-search input:focus { outline: 3px solid rgba(167,25,48,.14); border-color: var(--red); }
.inventory-empty { padding: 36px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); text-align: center; }
.inventory-note { margin-top: 32px; }
.sold-grid { grid-template-columns: repeat(4, 1fr); }
.sold-card h3 { font-size: 1.08rem; line-height: 1.18; }
.sold-card .vehicle-body { padding: 20px; }
.sold-card .vehicle-media { aspect-ratio: 4 / 3; }
.vehicle-badge--sold { background: var(--ink); }
.archive-price { display: grid; font-size: 1.08rem; font-weight: 900; }
.archive-price small { color: var(--muted); font-size: .68rem; font-weight: 700; }
.archive-intro { display: grid; grid-template-columns: 150px 1fr; gap: 35px; align-items: center; margin-bottom: 46px; padding: 34px; color: #fff; background: var(--ink); }
.archive-intro > strong { color: #fff; font-size: 4.5rem; line-height: 1; letter-spacing: -.08em; }
.archive-intro h2 { font-size: 2rem; }
.archive-intro p { margin: 10px 0 0; color: #bdc8d6; }

.detail-hero { padding-block: 70px; color: #fff; background: var(--ink); }
.detail-hero h1 { max-width: 850px; font-size: clamp(2.7rem, 5.5vw, 5.3rem); }
.detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 45px; align-items: end; }
.detail-summary { max-width: 700px; margin: 20px 0 0; color: #cbd5e1; font-size: 1.12rem; }
.detail-price { min-width: 220px; padding: 23px 26px; border-left: 4px solid var(--red); background: rgba(255,255,255,.08); }
.detail-price span, .detail-price small { display: block; color: #bcc7d5; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-price strong { display: block; margin: 5px 0; color: #fff; font-size: 2rem; line-height: 1; }
.detail-section { background: var(--paper); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr); gap: 34px; align-items: start; }
.vehicle-gallery { min-width: 0; }
.gallery-main { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumb { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 3px solid transparent; background: var(--ink); cursor: pointer; }
.gallery-thumb.active { border-color: var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel { position: sticky; top: 118px; padding: 34px; background: #fff; box-shadow: var(--shadow); }
.detail-panel h2 { font-size: 2rem; }
.spec-list { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spec-list li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); }
.spec-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 9px; height: 5px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.finance-note { color: var(--muted); font-size: .82rem; }
.detail-actions { display: grid; gap: 10px; margin-top: 25px; }
.condition-alert { margin-bottom: 28px; padding: 18px; border-left: 4px solid var(--red); background: #fff0f2; }
.condition-alert strong { color: var(--red-dark); }
.condition-alert p { margin: 5px 0 0; color: var(--ink); font-size: .9rem; }

.timeline { display: grid; margin-top: 50px; }
.timeline-row { display: grid; grid-template-columns: 160px 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline-year { color: var(--red); font-weight: 900; }
.timeline-row p { margin: 8px 0 0; color: var(--muted); }
.profile-quote { padding: 46px; color: #fff; background: var(--ink); }
.profile-quote blockquote { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.28; letter-spacing: -.025em; }
.profile-quote cite { display: block; margin-top: 30px; color: #b8c3d2; font-style: normal; }
.boris-profile { position: relative; min-height: 610px; margin: 0; overflow: hidden; background: var(--ink); }
.boris-profile > img { width: 100%; height: 610px; object-fit: cover; object-position: center top; }
.boris-profile figcaption { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 25px 27px; color: #fff; background: rgba(10,19,33,.9); backdrop-filter: blur(8px); }
.boris-profile blockquote { margin: 0; font-size: 1.2rem; font-weight: 760; line-height: 1.35; letter-spacing: -.02em; }
.boris-profile figcaption span { display: block; margin-top: 12px; color: #c1ccd9; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { counter-increment: step; padding: 32px; border: 1px solid var(--line); background: #fff; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 38px; color: var(--red); font-size: 2.4rem; font-weight: 950; }
.step p { margin-bottom: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.contact-list { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-item strong { display: block; margin-top: 4px; font-size: 1.12rem; }
.form-card { padding: 38px; background: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd2db; border-radius: 0; padding: 13px 14px; color: var(--ink); background: #fff; }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(167,25,48,.16); border-color: var(--red); }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }
.map-card { display: grid; min-height: 360px; place-items: center; margin-top: 50px; padding: 40px; color: #fff; text-align: center; background: linear-gradient(135deg, #23344b, #0b1524); }

.archive-state { display: grid; min-height: 420px; place-items: center; padding: 56px; border: 1px solid var(--line); background: var(--paper); text-align: center; }
.archive-state-inner { max-width: 660px; }
.archive-mark { display: grid; width: 84px; height: 84px; place-items: center; margin: 0 auto 28px; border-radius: 50%; color: #fff; background: var(--red); font-size: 1.8rem; font-weight: 950; }
.archive-state p { color: var(--muted); }

.site-footer { color: #c7d0dc; background: #09121f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 70px; padding-block: 70px; }
.footer-brand { width: 230px; padding: 8px; background: #fff; }
.footer-copy { max-width: 430px; margin: 22px 0 0; color: #aeb9c7; }
.footer-heading { margin: 0 0 16px; color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #8f9cad; font-size: .8rem; }
.floating-contact { position: fixed; right: 18px; bottom: 18px; z-index: 15; display: none; gap: 8px; }
.floating-contact a { display: grid; min-width: 54px; height: 54px; place-items: center; padding-inline: 15px; color: #fff; background: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: .78rem; font-weight: 900; }

@media (max-width: 1000px) {
  .site-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; padding: 18px 24px 26px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 20px 35px rgba(17,28,45,.1); }
  .site-menu[data-open="true"] { display: grid; }
  .menu-button { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 90px max(20px, calc((100vw - var(--max)) / 2)); }
  .hero-visual { min-height: 400px; }
  .hero-panel { left: 5%; bottom: 20px; width: min(250px, 46%); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .sold-grid { grid-template-columns: repeat(3, 1fr); }
  .split { gap: 45px; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .topbar .shell { justify-content: center; }
  .topbar .shell > span { display: none; }
  .topbar-links { gap: 16px; }
  .nav { min-height: 76px; }
  .brand { width: 145px; min-height: 76px; }
  .brand img { max-height: 72px; }
  .hero-grid { min-height: auto; }
  .hero-copy { padding-block: 72px; }
  .hero-visual { min-height: 330px; }
  .hero-stamp { width: 94px; height: 94px; font-size: .58rem; }
  .hero-panel { left: 4%; width: 44%; padding: 13px 14px; }
  .hero-panel strong { font-size: .9rem; }
  .hero-panel span { font-size: .76rem; line-height: 1.35; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 21px 16px; }
  .trust-item strong { font-size: 1.2rem; }
  .section, .page-hero { padding-block: 74px; }
  .section-head { display: grid; margin-bottom: 32px; }
  .vehicle-grid, .category-grid, .steps { grid-template-columns: 1fr; }
  .sold-grid { grid-template-columns: 1fr 1fr; }
  .inventory-tools { display: grid; align-items: stretch; }
  .inventory-search { min-width: 0; }
  .detail-heading { grid-template-columns: 1fr; }
  .detail-price { min-width: 0; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .archive-intro { grid-template-columns: 90px 1fr; padding: 26px; }
  .archive-intro > strong { font-size: 3.5rem; }
  .split { grid-template-columns: 1fr; }
  .boris-profile, .boris-profile > img { min-height: 520px; height: 520px; }
  .metric-wall { min-height: auto; }
  .category { min-height: 230px; }
  .category h3 { margin-top: 28px; }
  .cta-band .shell { display: grid; }
  .timeline-row { grid-template-columns: 90px 1fr; gap: 18px; }
  .form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; padding-block: 55px; }
  .footer-bottom { display: grid; }
  .floating-contact { display: flex; }
}

@media (max-width: 480px) {
  .sold-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .archive-intro { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
