:root {
  --black: #050607;
  --black-soft: #0d0f11;
  --panel: #15181b;
  --panel-strong: #1b1f22;
  --line: #34393e;
  --text: #f2f2ef;
  --muted: #aab0b5;
  --yellow: #ffed27;
  --yellow-deep: #d6c600;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--black); font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
button, input, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 99; padding: 10px 14px; color: #000; background: var(--yellow); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgb(5 6 7 / 96%); border-bottom: 2px solid var(--yellow); backdrop-filter: blur(12px); }
.header-inner { width: min(var(--max), calc(100% - 40px)); min-height: 76px; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 42px; }
.brand img { width: 226px; height: 52px; object-fit: contain; }
.desktop-nav { display: flex; justify-content: center; gap: 28px; }
.desktop-nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--yellow); }
.phone { text-decoration: none; font-weight: 800; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); color: var(--text); background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }
.mobile-nav { display: none; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 12px 0; text-decoration: none; font-weight: 700; }

.catalog-hero, .brand-hero, .vehicle-hero { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.compact-hero { min-height: 510px; display: flex; align-items: center; background: radial-gradient(circle at 80% 50%, #20252a 0 1px, transparent 1px 100%); background-size: 28px 28px; }
.hero-copy { max-width: 870px; padding: 90px 0; }
.eyebrow { margin: 0 0 12px; color: var(--yellow); font-size: 14px; font-weight: 900; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 980px; margin-bottom: 22px; font-size: clamp(42px, 5.5vw, 76px); line-height: 1.02; letter-spacing: 0; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: 0; }
h3 { letter-spacing: 0; }
.hero-copy > p:not(.eyebrow), .brand-hero-copy > p:not(.eyebrow), .price-note { max-width: 780px; color: var(--muted); font-size: 20px; }
.hero-facts { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts span { padding: 10px 14px; border-left: 3px solid var(--yellow); background: var(--panel); font-weight: 700; }
.yellow-rule { border-top: 2px solid var(--yellow); }
.catalog-section { padding: 84px max(20px, calc((100vw - var(--max)) / 2)); }
.section-head { max-width: 790px; margin-bottom: 36px; }
.section-head > p:last-child { color: var(--muted); font-size: 18px; }

.brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.brand-card { min-height: 142px; padding: 16px 14px; display: grid; grid-template-rows: 44px auto; align-items: center; gap: 8px; overflow: hidden; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--yellow); text-align: center; text-decoration: none; border-radius: 4px; transition: transform .2s ease, background .2s ease; }
.brand-card:hover { transform: translateY(-3px); background: var(--panel-strong); }
.brand-card img { width: 100%; max-width: 94px; height: 42px; margin: auto; object-fit: contain; filter: brightness(0) invert(1); }
.brand-card .brand-text-mark { min-height: 36px; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 15px; font-weight: 900; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.brand-card h2 { margin: 0; font-size: 20px; }
.brand-card p, .brand-card span { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.25; }
.brand-card > div > span { display: none; }
.brand-card strong { color: var(--yellow); white-space: nowrap; }
.brand-card .brand-price { display: block; margin: 2px 0 0; color: var(--text); font-size: 16px; line-height: 1.15; white-space: nowrap; }
.brand-card .brand-price strong { font-size: 18px; }
.brand-card .arrow { display: none; }
.principles { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 84px; display: grid; grid-template-columns: repeat(3, 1fr); }
.principles article { min-height: 220px; padding: 34px 28px; border-right: 1px solid var(--line); background: var(--black-soft); }
.principles article:last-child { border-right: 0; }
.principles article > span { color: var(--yellow); font-weight: 900; }
.principles h3 { margin: 35px 0 10px; font-size: 23px; }
.principles p { color: var(--muted); }

.brand-hero { min-height: 430px; display: flex; align-items: end; }
.brand-hero-copy { width: 100%; padding: 54px 0 70px; position: relative; }
.brand-mark { position: absolute; right: 0; bottom: 64px; width: min(32vw, 350px); max-height: 160px; object-fit: contain; opacity: .22; filter: brightness(0) invert(1); }
.brand-mark.brand-text-mark { width: auto; max-width: 44%; color: var(--text); border-left: 8px solid var(--yellow); padding-left: 18px; font-size: 52px; font-weight: 900; line-height: 1; text-transform: uppercase; filter: none; overflow-wrap: anywhere; }
.brand-hero h1 { position: relative; }
.breadcrumbs { margin-bottom: 54px; display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { text-decoration: none; }
.search-head { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.search-field { width: min(100%, 360px); }
.search-field span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.search-field input { width: 100%; min-height: 48px; padding: 0 15px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; outline: none; }
.search-field input:focus { border-color: var(--yellow); }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.model-card { min-height: 300px; padding: 24px; display: flex; flex-direction: column; background: var(--panel); border-top: 4px solid transparent; border-radius: 4px; }
.model-card:hover { border-color: var(--yellow); }
.model-card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.model-index { color: var(--yellow); font-weight: 900; }
.model-card h3 { margin: 44px 0 5px; font-size: 23px; line-height: 1.15; }
.model-card p { margin-bottom: 2px; color: var(--muted); }
.model-card strong { color: var(--yellow); font-size: 26px; white-space: nowrap; }
.model-card a { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; color: var(--text); border-top: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.model-card a[aria-disabled="true"] { color: #777d82; cursor: default; }
.empty-state { padding: 30px; color: var(--muted); background: var(--panel); }

.vehicle-hero { min-height: 690px; display: grid; grid-template-columns: .94fr 1.06fr; align-items: stretch; }
.vehicle-copy { padding: 54px 44px 72px 0; align-self: center; }
.vehicle-copy h1 { font-size: clamp(42px, 4.8vw, 68px); }
.vehicle-badge { margin-bottom: 24px; display: flex; align-items: center; gap: 15px; color: var(--muted); }
.vehicle-badge img { width: 62px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.vehicle-badge .vehicle-brand-mark.brand-text-mark { padding-left: 10px; color: var(--text); border-left: 4px solid var(--yellow); font-size: 20px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.vehicle-price { margin: 8px 0 16px; font-size: 26px; }
.vehicle-price strong { color: var(--yellow); font-size: 46px; white-space: nowrap; }
.vehicle-copy .price-note { font-size: 17px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 54px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 900; cursor: pointer; }
.button-primary { color: #050607; background: var(--yellow); }
.button-primary:hover { background: #fff45c; }
.button-outline { color: var(--text); background: transparent; border-color: #666c71; }
.vehicle-visual { position: relative; width: 100%; aspect-ratio: 16 / 9; align-self: center; overflow: hidden; background: #020303; border-left: 2px solid var(--yellow); }
.vehicle-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 6 7 / 54%), transparent 35%); pointer-events: none; }
.vehicle-visual img { width: 100%; height: 100%; object-fit: contain; }
.visual-label { position: absolute; right: 18px; bottom: 18px; z-index: 2; padding: 9px 12px; color: #050607; background: var(--yellow); font-size: 12px; font-weight: 900; }
.trust-strip { width: min(var(--max), calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); }
.trust-strip article { padding: 27px 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.trust-strip article:last-child { border-right: 0; }
.trust-strip strong { color: var(--yellow); font-size: 28px; }
.trust-strip span { color: var(--muted); }
.content-split, .price-explain, .final-cta { width: min(var(--max), calc(100% - 40px)); margin: 84px auto 0; padding: 70px 0; display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.included-list { margin: 0; padding: 0; list-style: none; }
.included-list li { padding: 22px 0; display: grid; grid-template-columns: 60px 1fr; gap: 10px; border-bottom: 1px solid var(--line); }
.included-list li > span { color: var(--yellow); font-weight: 900; }
.included-list h3 { margin-bottom: 6px; font-size: 22px; }
.included-list p, .price-copy > p, .final-cta p { color: var(--muted); }
.price-explain { grid-template-columns: minmax(0, 760px); }
.text-link { padding: 0 0 6px; color: var(--yellow); background: transparent; border: 0; border-bottom: 1px solid var(--yellow); font-weight: 900; cursor: pointer; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.final-cta { margin-bottom: 84px; padding: 50px; grid-template-columns: 1fr auto; align-items: center; background: var(--panel); border-left: 6px solid var(--yellow); }
.final-cta h2 { margin-bottom: 10px; }

.site-footer { min-height: 190px; padding: 46px max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 70px; color: var(--muted); border-top: 2px solid var(--yellow); background: #020303; }
.site-footer img { width: 210px; }
.site-footer p { margin: 8px 0 0; }
.site-footer div:nth-child(2) { display: flex; flex-direction: column; }
.site-footer strong, .site-footer a { color: var(--text); }
.site-footer a { font-size: 20px; font-weight: 900; text-decoration: none; }

.lead-dialog { width: min(560px, calc(100% - 28px)); padding: 34px; color: var(--text); background: var(--panel); border: 1px solid var(--yellow); border-radius: 6px; }
.lead-dialog::backdrop { background: rgb(0 0 0 / 78%); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; color: var(--text); background: transparent; border: 0; font-size: 32px; cursor: pointer; }
.lead-dialog label { display: block; margin: 24px 0; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.lead-dialog textarea { width: 100%; min-height: 105px; margin-top: 8px; padding: 13px; color: var(--text); background: var(--black); border: 1px solid var(--line); resize: none; }
.lead-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lead-channel { min-height: 88px; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 5px; color: var(--text); text-decoration: none; text-align: left; background: #0b0d0f; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.lead-channel:hover, .lead-channel:focus-visible { color: var(--yellow); border-color: var(--yellow); }
.lead-channel.max-channel-disabled { color: #858a91; background: #2a2d31; border-color: #45494f; cursor: not-allowed; opacity: .8; pointer-events: none; filter: grayscale(1); }
.lead-channel.max-channel-disabled:hover, .lead-channel.max-channel-disabled:focus-visible { color: #858a91; border-color: #45494f; }
.lead-channel-primary { color: #050607; background: var(--yellow); border-color: var(--yellow); }
.lead-channel-primary:hover, .lead-channel-primary:focus-visible { color: #050607; background: #fff35e; }
.lead-channel strong { font-size: 16px; }
.lead-channel span { font-size: 12px; opacity: .78; }
.dialog-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.chat-toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: min(420px, calc(100% - 40px)); padding: 14px 18px; color: var(--text); background: #101317; border-left: 4px solid var(--yellow); box-shadow: 0 12px 40px rgb(0 0 0 / 45%); }

@media (max-width: 900px) {
  .header-inner { min-height: 68px; grid-template-columns: 1fr auto auto; gap: 14px; }
  .brand img { width: 174px; height: 42px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav:not([hidden]) { display: grid; }
  .vehicle-hero { width: 100%; grid-template-columns: 1fr; }
  .vehicle-copy { width: min(100% - 40px, var(--max)); margin: auto; padding-right: 0; }
  .vehicle-visual { order: -1; min-height: 0; border-left: 0; border-bottom: 2px solid var(--yellow); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .content-split, .price-explain { grid-template-columns: 1fr; gap: 32px; }
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .principles { grid-template-columns: 1fr; }
  .principles article { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .header-inner, .catalog-hero, .brand-hero, .trust-strip, .content-split, .price-explain, .final-cta { width: calc(100% - 28px); }
  .phone { font-size: 0; }
  .phone::after { content: "Позвонить"; font-size: 14px; }
  .compact-hero { min-height: 570px; }
  .hero-copy { padding: 74px 0; }
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .hero-copy > p:not(.eyebrow), .brand-hero-copy > p:not(.eyebrow) { font-size: 17px; }
  .brand-mark { bottom: auto; top: 62px; width: 130px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brand-card { min-height: 126px; padding: 12px 8px; grid-template-rows: 38px auto; gap: 6px; }
  .brand-card img { max-width: 78px; height: 34px; }
  .brand-card .brand-text-mark { min-height: 32px; font-size: 12px; }
  .brand-card h2 { font-size: 16px; }
  .brand-card p, .brand-card span { font-size: 10px; }
  .brand-mark.brand-text-mark { top: 66px; right: 0; max-width: 46%; padding-left: 10px; border-left-width: 5px; font-size: 24px; }
  .search-head { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 250px; }
  .vehicle-copy { padding-top: 38px; }
  .vehicle-copy h1 { font-size: 40px; }
  .vehicle-price strong { font-size: 40px; }
  .vehicle-visual { min-height: 0; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .content-split, .price-explain { margin-top: 58px; padding: 48px 0; }
  .final-cta { padding: 34px 24px; grid-template-columns: 1fr; gap: 20px; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; }
  .lead-channels { grid-template-columns: 1fr; }
  .lead-channel { min-height: 68px; }
}

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