:root {
  --graphite: #17191d;
  --graphite-2: #22252a;
  --paper: #f4f3f0;
  --white: #fff;
  --ink: #191b1f;
  --muted: #74777d;
  --line: #dcdcd9;
  --coral: #f05a4f;
  --coral-dark: #d94339;
  --success: #41a36f;
  color: var(--ink);
  background: var(--graphite);
  font-family: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--graphite); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
main { width: min(100%, 840px); margin: 0 auto; background: var(--paper); overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; letter-spacing: -.055em; line-height: .98; }

.hero {
  position: relative;
  min-height: 720px;
  padding: max(20px, env(safe-area-inset-top)) 20px 24px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 75% 42%, #3b3f46 0, transparent 38%),
    linear-gradient(155deg, #24272c 0%, #15171a 75%);
}
.topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: white; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.brand span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--coral); letter-spacing: -.08em; }
.favorite-head { position: relative; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #ffffff2a; border-radius: 14px; background: #ffffff0d; color: white; }
.favorite-head span { color: var(--coral); font-size: 19px; }
.favorite-head b { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 99px; background: white; color: var(--ink); font-size: 10px; line-height: 19px; }
.hero__copy { position: relative; z-index: 3; max-width: 590px; margin-top: 75px; }
.hero__copy h1 { max-width: 650px; font-size: clamp(45px, 12vw, 78px); }
.hero__copy > p:last-child { max-width: 430px; margin: 22px 0 0; color: #b7bac0; font-size: 14px; line-height: 1.6; }
.hero-car { position: absolute; z-index: 1; top: 305px; right: -18%; width: 110%; pointer-events: none; }
.hero-car img { position: relative; z-index: 1; width: 100%; height: 265px; object-fit: contain; filter: drop-shadow(0 30px 28px #0008); }
.hero-car__glow { position: absolute; inset: 15% 12%; border-radius: 50%; background: var(--coral); filter: blur(80px); opacity: .22; }
.location-cards { position: absolute; z-index: 4; right: 18px; bottom: 24px; left: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.location-cards button { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; min-width: 0; padding: 15px 12px; border: 1px solid #ffffff25; border-radius: 16px; background: #25282de8; color: white; text-align: left; backdrop-filter: blur(16px); }
.location-cards button:hover { border-color: #ffffff55; }
.location-cards__icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: #ffffff10; color: var(--success); font-size: 10px; }
.location-cards__icon--port { color: var(--coral); font-size: 16px; }
.location-cards__icon--order { color: white; background: var(--coral); font-size: 17px; }
.location-cards__order { grid-column: 1 / -1; }
.location-cards b, .location-cards small { display: block; }
.location-cards b { font-size: 12px; }
.location-cards small { margin-top: 3px; color: #9fa2a8; font-size: 8px; line-height: 1.35; }
.location-cards i { color: var(--coral); font-style: normal; }

.catalog, .calculator, .info { padding: 66px 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-head h2, .manager-strip h2, .info > h2, dialog h2 { font-size: clamp(34px, 8vw, 54px); }
.section-head > span { color: var(--muted); font-size: 11px; }
.status-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; padding: 5px; border-radius: 14px; background: #e7e6e3; }
.status-tabs button { padding: 11px 4px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.status-tabs button.is-active { background: white; color: var(--ink); box-shadow: 0 3px 12px #2525250c; }
.catalog-tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search { position: relative; }
.search input, .tool-button, .catalog-controls select, .filters-panel input, .filters-panel select, .calculator input, .calculator select, .lead-dialog input, .lead-dialog select, .lead-dialog textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: white; color: var(--ink);
}
.search input { padding: 0 42px 0 15px; }
.search > span:not(.sr-only) { position: absolute; top: 11px; right: 15px; color: var(--muted); font: 24px Georgia; }
.tool-button { width: auto; padding: 0 14px; font-size: 11px; font-weight: 800; }
.tool-button b { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; place-items: center; border-radius: 99px; background: var(--coral); color: white; font-size: 9px; }
.filters-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 10px; padding: 15px; border-radius: 16px; background: white; box-shadow: 0 18px 40px #19191912; }
.filters-panel label span, .calculator label span, .lead-dialog label span { display: block; margin: 0 0 6px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.filters-panel input, .filters-panel select, .calculator input, .calculator select, .lead-dialog input, .lead-dialog select, .lead-dialog textarea { min-height: 43px; padding: 0 11px; font-size: 12px; }
.link-button { grid-column: 1 / -1; justify-self: start; padding: 5px 0; border: 0; background: none; color: var(--coral-dark); font-size: 11px; font-weight: 800; }
.catalog-controls { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 18px; }
.catalog-controls select { min-height: 39px; padding: 0 31px 0 11px; font-size: 10px; font-weight: 700; }
.view-toggle { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: #e7e6e3; }
.view-toggle button { width: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.view-toggle button.is-active { background: white; color: var(--ink); }

.car-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.car-list.is-list { grid-template-columns: 1fr; }
.car-card { position: relative; min-width: 0; overflow: hidden; border-radius: 18px; background: white; box-shadow: 0 10px 30px #1617190b; }
.car-card__media { position: relative; height: 172px; overflow: hidden; background: #dededa; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.car-card:hover .car-card__media img { transform: scale(1.025); }
.car-card__status { position: absolute; top: 10px; left: 10px; padding: 7px 9px; border-radius: 99px; background: #17191dd9; color: white; font-size: 8px; font-weight: 800; backdrop-filter: blur(8px); }
.car-card__status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--success); }
.car-card__status.port::before { background: var(--coral); }
.car-card__arrival { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 7px 9px; border-radius: 99px; background: var(--coral); color: white; font-size: 8px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.favorite-button { position: absolute; z-index: 2; top: 9px; right: 9px; display: grid; width: 33px; height: 33px; place-items: center; border: 0; border-radius: 11px; background: #fffef5e8; color: var(--ink); font-size: 17px; }
.favorite-button.is-active { background: var(--coral); color: white; }
.car-card__dots { position: absolute; bottom: 8px; left: 50%; display: flex; gap: 3px; transform: translateX(-50%); }
.car-card__dots i { width: 4px; height: 4px; border-radius: 50%; background: #ffffff8a; }
.car-card__dots i.is-active { width: 12px; border-radius: 99px; background: white; }
.card-gallery-next { position: absolute; right: 9px; bottom: 8px; display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 9px; background: #17191ddd; color: white; }
.car-card__body { width: 100%; padding: 14px; border: 0; background: white; color: var(--ink); text-align: left; }
.car-card__brand { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.car-card__title { display: block; margin-top: 4px; font-size: 17px; font-weight: 800; line-height: 1.15; }
.car-card__meta { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.car-card__price { display: block; margin-top: 12px; font-size: 14px; font-weight: 800; }
.car-list.is-list .car-card { display: grid; grid-template-columns: 42% 1fr; }
.car-list.is-list .car-card__media { height: 100%; min-height: 150px; }
.empty-state { padding: 65px 20px; border: 1px dashed #cacac7; border-radius: 18px; text-align: center; }
.empty-state > span { color: var(--coral); font: 38px Georgia; }
.empty-state h3 { margin: 10px 0 4px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-state button { margin-top: 18px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--ink); color: white; }

.manager-strip { display: grid; gap: 28px; padding: 58px 20px; background: var(--coral); color: white; }
.manager-strip .eyebrow { color: #5e1712; }
.manager-strip button, .primary-button { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 17px; border: 0; border-radius: 14px; background: var(--graphite); color: white; font-size: 11px; font-weight: 800; }
.calculator form, .lead-dialog form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calculator .calculator-price, .calculator .primary-button { grid-column: 1 / -1; }
.car-detail__actions { display: grid; gap: 8px; }
.ghost-button { min-height: 46px; padding: 0 17px; border: 1px solid #17191d26; border-radius: 14px; background: transparent; color: var(--graphite); font-size: 11px; font-weight: 800; }
.channel-button { width: 100%; margin-top: 10px; min-height: 52px; border: 0; border-radius: 14px; background: var(--coral); color: white; font-size: 11px; font-weight: 800; }
.calculator-mode { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; }
.calculator-mode legend { margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.calculator-mode > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; border-radius: 14px; background: #e7e6e3; }
.calculator-mode label { position: relative; cursor: pointer; }
.calculator-mode input { position: absolute; width: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.calculator-mode label span { display: grid; min-height: 40px; margin: 0; padding: 7px 10px; place-items: center; border-radius: 10px; color: var(--muted); font-size: 10px; line-height: 1.25; text-align: center; text-transform: none; }
.calculator-mode input:checked + span { background: white; color: var(--ink); box-shadow: 0 3px 12px #2525250c; }
.calculator-mode input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.calculator-price small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.calculator-order-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; margin-top: 9px; padding: 0 17px; border: 0; border-radius: 14px; background: var(--coral); color: white; font-size: 11px; font-weight: 800; }
.calculation-result { margin-top: 18px; padding: 18px; border-radius: 16px; background: white; }
.calculation-result h3 { margin: 0 0 13px; color: var(--coral-dark); font-size: 26px; }
.calculation-result dl { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin: 0; font-size: 11px; }
.calculation-result dd { margin: 0; font-weight: 700; }
.calculation-result p { margin: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.info { background: var(--graphite-2); color: white; }
.info-grid { display: grid; gap: 8px; margin-top: 28px; }
.info details, .info-grid button { padding: 18px; border: 1px solid #ffffff17; border-radius: 14px; background: #ffffff08; color: white; }
.info summary { font-size: 12px; font-weight: 700; cursor: pointer; }
.info details p { color: #b2b5ba; font-size: 10px; line-height: 1.55; }
.info-grid button { display: flex; justify-content: space-between; text-align: left; font-size: 12px; font-weight: 700; }
.link-grid { display: grid; gap: 8px; margin-top: 8px; }
.link-card { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 15px 18px; border: 1px solid #ffffff17; border-radius: 14px; background: #ffffff08; color: white; text-align: left; }
.link-card:hover { border-color: #ffffff3d; }
.link-card__icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: #ffffff10; color: var(--coral); font-size: 12px; }
.link-card b, .link-card small { display: block; }
.link-card b { font-size: 12px; }
.link-card small { margin-top: 3px; color: #9fa2a8; font-size: 8px; }
.link-card i { color: var(--coral); font-style: normal; }
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 26px 18px; background: var(--graphite); color: #9fa2a8; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer b { color: white; letter-spacing: .04em; }

dialog { width: min(100% - 20px, 720px); max-height: calc(100dvh - 20px); padding: 0; overflow: auto; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #08090bcc; backdrop-filter: blur(5px); }
.dialog-close { position: sticky; z-index: 10; top: 10px; float: right; display: grid; width: 38px; height: 38px; margin: 10px 10px -48px; place-items: center; border: 0; border-radius: 12px; background: #17191ddb; color: white; font-size: 24px; }
.car-gallery { position: relative; height: min(58vw, 390px); min-height: 260px; overflow: hidden; background: #d8d8d5; }
.car-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; right: 13px; bottom: 13px; display: flex; gap: 6px; }
.gallery-nav button { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #17191ddd; color: white; }
.gallery-count { position: absolute; bottom: 15px; left: 15px; padding: 7px 10px; border-radius: 99px; background: #17191ddd; color: white; font-size: 9px; }
.car-detail { padding: 24px 18px 27px; }
.car-detail__top { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.car-detail__top .favorite-button { position: static; flex: 0 0 auto; background: white; box-shadow: 0 4px 15px #0001; }
.car-detail__top .favorite-button.is-active { background: var(--coral); }
.car-detail h2 { font-size: clamp(35px, 9vw, 55px); }
.car-detail__price { margin: 18px 0; color: var(--coral-dark); font-size: 24px; font-weight: 800; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.detail-specs div { padding: 12px; background: white; }
.detail-specs dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.detail-specs dd { margin: 4px 0 0; font-size: 11px; font-weight: 700; }
.car-detail__description { color: var(--muted); font-size: 12px; line-height: 1.65; }
.lead-dialog { padding: 30px 18px; }
.lead-dialog header { padding-right: 35px; margin-bottom: 23px; }
.lead-dialog header > p:last-child { color: var(--muted); font-size: 11px; line-height: 1.5; }
.lead-dialog textarea { min-height: 95px; padding-top: 11px; resize: vertical; }
.lead-dialog .wide { grid-column: 1 / -1; }
.favorites-dialog { padding: 28px 17px 18px; }
.favorites-dialog__head { padding-right: 45px; margin-bottom: 20px; }
.favorites-dialog__head h2 { font-size: clamp(38px, 10vw, 58px); }
.favorites-dialog__head > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.favorites-list { display: grid; gap: 9px; }
.favorite-row { display: grid; grid-template-columns: 88px 1fr 35px; gap: 11px; align-items: center; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.favorite-row > img { width: 88px; height: 72px; border-radius: 10px; background: #ddd; object-fit: cover; }
.favorite-row__content { min-width: 0; padding: 5px 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.favorite-row__content b, .favorite-row__content span, .favorite-row__content strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-row__content b { font-size: 13px; }
.favorite-row__content span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.favorite-row__content strong { margin-top: 8px; font-size: 12px; }
.favorite-row__remove { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 10px; background: #f0efec; color: var(--muted); font-size: 18px; }
.favorites-empty { padding: 52px 20px; border: 1px dashed #cacac7; border-radius: 16px; text-align: center; }
.favorites-empty > span { color: var(--coral); font-size: 38px; }
.favorites-empty h3 { margin: 9px 0 5px; }
.favorites-empty p { max-width: 330px; margin: auto; color: var(--muted); font-size: 11px; line-height: 1.5; }
.favorites-back { width: 100%; min-height: 48px; margin-top: 15px; border: 0; border-radius: 13px; background: var(--graphite); color: white; font-size: 11px; font-weight: 800; }
.toast { position: fixed; z-index: 100; right: 14px; bottom: max(18px, env(safe-area-inset-bottom)); left: 14px; max-width: 500px; margin: auto; padding: 13px 16px; border-radius: 12px; background: var(--graphite); color: white; font-size: 11px; text-align: center; transform: translateY(130%); transition: transform .22s ease; box-shadow: 0 12px 30px #0005; }
.toast.is-visible { transform: translateY(0); }

@media (min-width: 650px) {
  .hero { min-height: 760px; padding-right: 34px; padding-left: 34px; }
  .hero-car { top: 270px; right: -4%; width: 80%; }
  .location-cards { right: 34px; left: 34px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .location-cards__order { grid-column: auto; }
  .catalog, .calculator, .info { padding-right: 34px; padding-left: 34px; }
  .car-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .car-list.is-list { grid-template-columns: 1fr 1fr; }
  .manager-strip { grid-template-columns: 1fr 230px; align-items: end; padding-right: 34px; padding-left: 34px; }
}

@media (max-width: 390px) {
  .hero { min-height: 760px; }
  .hero__copy { margin-top: 55px; }
  .hero__copy h1 { font-size: 43px; }
  .hero-car { top: 295px; }
  .location-cards button { grid-template-columns: 1fr auto; }
  .location-cards__icon { display: none; }
  .car-card__media { height: 145px; }
  .favorite-row { grid-template-columns: 76px 1fr 32px; }
  .favorite-row > img { width: 76px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.recent-strip { margin: 0 0 14px; padding: 14px; border-radius: 16px; background: white; box-shadow: 0 10px 30px #1617190b; }
.recent-strip__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.recent-strip__head button { border: 0; background: none; color: var(--coral-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.recent-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; }
.recent-card { flex: 0 0 116px; padding: 0; border: 0; background: none; text-align: left; }
.recent-card img { width: 100%; height: 66px; margin-bottom: 7px; border-radius: 11px; object-fit: cover; background: #dededa; }
.recent-card b { display: block; overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.recent-card span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }

.compare-bar { position: fixed; z-index: 90; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 812px; margin: 0 auto; padding: 11px 11px 11px 17px; border-radius: 16px; background: var(--graphite); color: white; font-size: 11px; font-weight: 700; box-shadow: 0 16px 40px #0000004d; }
.compare-bar div { display: flex; gap: 7px; }
.compare-bar button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: #ffffff1a; color: white; font-size: 11px; font-weight: 800; }
.compare-bar #compare-open { background: var(--coral); }
.compare-dialog { width: min(100% - 20px, 720px); max-height: calc(100vh - 32px); padding: 24px; overflow: auto; border: 0; border-radius: 20px; background: var(--paper); }
.compare-dialog::backdrop { background: #10121598; }
.compare-table { overflow-x: auto; margin-top: 18px; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.compare-table th, .compare-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { color: var(--ink); font-size: 12px; }
.compare-table tbody th { width: 96px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
