@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/onest-cyrillic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/inter-cyrillic-latin.woff2") format("woff2");
}

:root {
  --ink: #3e3a39;
  --canvas: #f7f0eb;
  --surface: #ffffff;
  --signal: #c30d23;
  --signal-dark: #970819;
  --line: #c7b9ab;
  --muted: #6d625a;
  --soft: #eee4dc;
  --agent: #f2e9e2;
  --radius: 18px;
  --text: Inter, "Segoe UI", sans-serif;
  --display: Onest, Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: var(--surface);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.showroom { display: flex; min-height: 100svh; flex-direction: column; }
.showroom__intro,
.chat-panel { padding: 22px 20px; }
.showroom__intro { background: var(--ink); color: var(--surface); }

.brandbar {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.28);
}
.dealer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dealer-head__brand {
  display: inline-flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 44px;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.dealer-head__brand img { display: block; width: min(100%, 266px); height: auto; }
.dealer-head__brand span {
  color: var(--muted);
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .071em;
  line-height: 1.6;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.dealer-head__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.dealer-head__phone,
.dealer-head__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.dealer-head__phone { gap: 6px; padding: 0 4px; font-weight: 600; }
.dealer-head__phone-icon { width: 18px; height: 18px; flex: 0 0 18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.dealer-head__cta { padding: 0 15px; color: #fff; background: var(--signal); }
.dealer-head__cta:hover { background: var(--signal-dark); }
.dealer-head__phone-full { display: none; }
.dealer-head--dark .dealer-head__brand img { filter: invert(1); }
.dealer-head--dark .dealer-head__brand span { color: #d9cec5; }
.dealer-head--dark .dealer-head__phone { color: #fff; }

.intro-copy { padding: 42px 0 28px; }
.eyebrow,
.fallback-label,
.actions-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow { color: #ff8292; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3,
.dealer-head__brand,
.consultant-meta strong,
.actions-label,
.quick-reply strong { font-family: var(--display); }
h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(26px, 8vw, 72px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
}
h1 span { display: block; white-space: nowrap; }
.lede { max-width: 560px; margin: 22px 0 0; color: #eee4dc; font-size: 17px; }

.model-overview { min-width: 0; margin: 0 0 26px; }
.model-overview__head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.model-overview__head > p {
  margin: 0;
  color: #d9cec5;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.model-overview__controls { display: none; align-items: center; gap: 7px; }
.app-ready .model-overview__controls { display: flex; }
.model-overview__controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--surface);
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  cursor: pointer;
}
.model-overview__controls button:hover { background: rgba(255,255,255,.08); }
.model-overview__controls button:disabled { cursor: default; opacity: .35; }
.model-overview__controls span { min-width: 39px; color: #d9cec5; font-size: 12px; text-align: center; }
.model-overview__viewport {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.model-overview__viewport::-webkit-scrollbar { display: none; }
.model-overview__track { display: flex; }
.model-overview__slide {
  position: relative;
  min-width: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.model-overview__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #ece8e4;
}
.model-overview__info {
  padding: 12px 16px 14px;
  color: var(--ink);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.model-overview__info > strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.model-overview__info dl {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, .7fr);
  gap: 8px;
  margin: 8px 0 0;
}
.model-overview__info dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.model-overview__info dd {
  margin: 2px 0 0;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.trustline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.trustline div:first-child { grid-column: 1 / -1; }
.trustline div { padding-top: 11px; border-top: 1px solid rgba(255,255,255,.24); }
.trustline dt { color: #d9cec5; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.trustline dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.trustline a { display: inline-flex; min-height: 44px; align-items: center; }

.chat-panel { display: grid; order: -1; align-items: start; }
.mobile-context {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 10px;
}

@media (min-width: 540px) {
  .dealer-head__phone-full { display: inline; }
  .dealer-head__phone-short { display: none; }
}

@media (max-width: 359px) {
  .dealer-head { gap: 6px; }
  .dealer-head__cta { padding-inline: 11px; }
}

.chat,
.static-fallback {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chat { display: grid; grid-template-rows: auto auto auto; }
.chat__head {
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--soft);
}
.consultant-avatar {
  display: block;
  width: 73px;
  height: 73px;
  object-fit: cover;
  object-position: 50% 28%;
  background: var(--soft);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}
.consultant-meta { min-width: 0; }
.consultant-meta strong,
.consultant-meta span { display: block; }
.consultant-meta strong { font-size: 16px; }
.consultant-meta span { color: var(--muted); font-size: 10px; line-height: 1.25; }
.consultant-meta .consultant-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 3px;
  color: #237a45;
  font-size: 12px;
  font-weight: 600;
}
.consultant-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #2eb866;
  border: 2px solid #dff4e7;
  border-radius: 50%;
  box-sizing: content-box;
}
.restart-button {
  min-height: 44px;
  padding: 7px 0 7px 10px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.chat__feed {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 20px 16px 14px;
  background-color: #fbf8f5;
}
.message { display: flex; width: 100%; min-width: 0; margin-bottom: 12px; animation: message-in .2s ease-out both; }
.message--with-options { flex-wrap: wrap; }
.message--user { justify-content: flex-end; }
.message__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 2px 8px 0 0;
}
.message__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.message__online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  background: #2eb866;
  border: 2px solid #fbf8f5;
  border-radius: 50%;
}
.message__bubble {
  max-width: 88%;
  padding: 11px 13px 12px;
  background: var(--agent);
  border: 1px solid #ded1c7;
  border-radius: 5px 15px 15px;
}
.message--user .message__bubble {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 15px 5px 15px 15px;
}
.message__label {
  display: block;
  margin-bottom: 3px;
  color: var(--signal-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}
.message--user .message__label { color: #eadfd6; text-align: right; }
.message__bubble p { margin: 0; font-size: 15px; line-height: 1.42; }
.message__delivery {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 5px;
  color: #d8cdc5;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: right;
}
.message__delivery time { color: inherit; }
.message__delivery-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.message--user[data-delivery="read"] .message__delivery { color: #9ad3f5; }

.message__bubble--promotion { min-width: 0; padding: 0; overflow: hidden; }
.message--promotion .message__bubble--promotion {
  width: 100%;
  flex: 0 0 100%;
}
.promotion-carousel,
.promotion-carousel__viewport { width: 100%; min-width: 0; max-width: 100%; }
.promotion-carousel__viewport { overflow: hidden; }
.promotion-carousel__track {
  width: 100%;
  display: flex;
  align-items: stretch;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1);
}
.promotion-card {
  flex: 0 0 100%;
  min-width: 0;
  min-height: 174px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(to right, var(--soft) 0 50%, var(--surface) 50% 100%);
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.promotion-card__visual {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  align-self: center;
  overflow: hidden;
  background: var(--soft);
  border-right: 1px solid #ded1c7;
}
.promotion-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.promotion-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px 12px;
}
.promotion-card__validity {
  display: block;
  margin-top: 10px;
  color: var(--signal-dark);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.promotion-card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.18; white-space: pre-line; }
.promotion-card__body > p { margin-top: 7px; font-size: 13px; line-height: 1.36; }
.promotion-carousel.is-paused .promotion-card[aria-hidden="false"] { background: #fffafa; }
.promotion-carousel__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid #ded1c7;
}
.promotion-carousel__arrow {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.promotion-carousel__arrow--next { justify-content: flex-end; }
.promotion-carousel__arrow-glyph { flex: 0 0 auto; font-size: 17px; line-height: 1; }
.promotion-carousel__arrow-label {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.promotion-carousel__arrow--previous .promotion-carousel__arrow-label { text-align: left; }
.promotion-carousel__arrow--next .promotion-carousel__arrow-label { text-align: right; }
.promotion-carousel__arrow:disabled { color: var(--line); cursor: default; }
.promotion-carousel__status {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
}
.promotion-carousel__dots { display: flex; gap: 4px; }
.promotion-carousel__dots i { width: 4px; height: 4px; background: var(--line); border-radius: 50%; }
.promotion-carousel__dots i.is-active { width: 12px; background: var(--signal); border-radius: 999px; }

.message--typing .message__bubble { min-width: 112px; }
.typing-dots { display: flex; height: 18px; align-items: center; gap: 4px; }
.typing-dots i {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typing 1s ease-in-out infinite;
}
.typing-dots i:nth-child(2) { animation-delay: .14s; }
.typing-dots i:nth-child(3) { animation-delay: .28s; }

.actions-label {
  flex: 0 0 100%;
  margin: 12px 0 7px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.model-replies {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.message--agent:not(.message--typing) .message__bubble {
  width: calc(100% - 52px);
  min-width: 0;
  flex: 0 0 calc(100% - 52px);
  max-width: none;
}
.message--agent.message--promotion:not(.message--typing) .message__bubble--promotion {
  width: 100%;
  flex-basis: 100%;
}
.entry-replies {
  flex: 0 0 calc(100% - 52px);
  display: grid;
  gap: 8px;
  margin: 12px 0 0 52px;
}
.quick-reply--entry { min-height: 66px; }
.task-choice-panel { flex: 0 0 100%; }
.task-replies { display: grid; gap: 8px; }
.quick-reply {
  min-height: 52px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}
.quick-reply:hover { border-color: var(--signal); background: #fffafa; }
.quick-reply--selected { border-color: var(--signal); background: #fffafa; box-shadow: inset 0 0 0 1px var(--signal); }
.quick-reply:disabled { cursor: default; opacity: .55; }
.quick-reply--selected:disabled { opacity: 1; border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.quick-reply strong,
.quick-reply small { display: block; }
.quick-reply strong { font-size: 14px; font-weight: 600; }
.quick-reply small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.quick-reply--task { min-height: 62px; }
.task-choice-submit { margin-top: 8px; }
.primary:disabled { cursor: default; opacity: .45; }
.quick-reply--model {
  min-height: 0;
  padding: 0 0 8px;
  overflow: hidden;
  background: var(--surface);
}
.quick-reply--model img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: 6px;
  object-fit: cover;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.quick-reply--model strong,
.quick-reply--model small,
.model-payment { padding-inline: 7px; }
.quick-reply--model strong { min-height: 0; font-size: 15px; font-weight: 600; line-height: 19px; }
.quick-reply--model small { min-height: 0; margin-top: 1px; font-size: 13px; font-weight: 400; line-height: 17px; }
.model-payment { display: block; margin-top: 1px; color: var(--signal-dark); font-size: 15px; font-weight: 600; line-height: 19px; }
.quick-reply--image-missing { min-height: 68px; padding-top: 11px; }

.color-choice-panel { flex: 0 0 100%; }
.color-preview {
  margin: 0;
  overflow: hidden;
  background: #dfe1e4;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.color-preview__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
}
.color-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.color-preview__name {
  padding: 9px 11px 2px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
}
.color-preview__availability {
  display: block;
  padding: 2px 11px 10px;
  color: var(--muted);
  font-size: 11px;
}
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 2px;
}
.color-swatch {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.color-swatch__dot {
  width: 26px;
  height: 26px;
  background: var(--swatch-color);
  border: 1px solid rgba(15,19,25,.2);
  border-radius: 50%;
  outline: 2px solid transparent;
  outline-offset: 3px;
}
.color-swatch:hover .color-swatch__dot,
.color-swatch--selected .color-swatch__dot { outline-color: var(--ink); }
.color-swatch:disabled { cursor: default; opacity: .55; }
.color-swatch--selected:disabled { opacity: 1; }
.color-choice-submit { margin-top: 6px; }

.message--with-options .contact-form,
.message--with-options > .primary { flex: 0 0 100%; margin-top: 8px; }

.contact-form label:not(.consent) { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 600; }
input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 18px;
}
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 14px 0; font-size: 13px; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--signal); }
.consent a { display: inline-block; min-height: 44px; padding-block: 11px; margin-block: -11px; }
.form-error { min-height: 22px; margin: 0; color: var(--signal-dark); font-size: 13px; font-weight: 600; }
.prototype-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.primary {
  display: inline-flex;
  min-height: 52px;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--surface);
  background: var(--signal);
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.primary:hover { background: var(--signal-dark); }
.primary--quiet { color: var(--ink); background: var(--soft); }
.primary--quiet:hover { background: #e2d5cb; }

.chat__foot {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  color: var(--muted);
  border-top: 1px solid var(--soft);
  font-size: 10px;
}
.chat__foot a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.chat__foot-links { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.debug { margin: 0 16px 14px; padding-top: 10px; border-top: 1px solid var(--soft); color: var(--muted); font-size: 12px; }
.debug summary { min-height: 44px; cursor: pointer; }
.debug dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.debug dt { font-weight: 600; }
.debug dd { margin: 0; }

.static-fallback { padding: 26px 20px; }
.app-ready .static-fallback { display: none; }
.fallback-label { color: var(--signal-dark); }
.static-fallback h2 { margin: 0; font-size: clamp(28px, 8vw, 43px); line-height: 1.02; letter-spacing: -.045em; }
.static-models { display: grid; gap: 10px; margin: 24px 0; }
.static-models section { padding: 16px; background: var(--canvas); border-radius: 12px; }
.static-models h3, .static-models p { margin: 0; }
.static-models p { margin-top: 5px; color: var(--muted); }
.static-fallback .primary { margin-top: 20px; }
.fallback-form { display: grid; gap: 10px; margin-top: 20px; }
.fallback-form > label:first-child { font-weight: 600; }
.fallback-form > input[type="tel"] { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; }
.fallback-consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.fallback-consent input { width: 22px; height: 22px; margin: 2px 0 0; }
.fallback-consent a, .fallback-phone { display: inline-flex; min-height: 44px; align-items: center; }
.fallback-phone { margin-top: 10px; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.page-foot { display: grid; gap: 18px; padding: 24px 20px 30px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.page-foot__brand { flex: 0 1 auto; align-self: start; max-width: 300px; }
.page-foot__brand span { text-align: left; }
.page-foot__content { display: grid; gap: 12px; }
.page-foot p { margin: 0; }
.credit-disclaimer { max-width: 1100px; line-height: 1.55; }
.credit-law {
  display: grid;
  gap: 7px;
  max-width: 1100px;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.credit-law p { margin: 0; }
.credit-law a { text-decoration: underline; text-underline-offset: 2px; }
.credit-law__cost { font-size: 15px; }
.credit-terms { max-width: 1100px; padding-top: 12px; border-top: 1px solid var(--line); }
.credit-terms h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}
.credit-terms__grid { display: grid; gap: 9px 18px; }
.credit-terms__grid p { line-height: 1.5; }
.credit-terms__grid strong { display: block; color: var(--ink); font-weight: 600; }
.page-foot__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.page-foot__legal a, .page-foot__content a { text-decoration: underline; }
.page-foot__legal a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 760px), (pointer: coarse) {
  .credit-law a,
  .page-foot__content > p a { display: inline-flex; min-height: 44px; align-items: center; }
}
.consent a, .chat__foot-links a { display: inline-flex; min-height: 44px; align-items: center; }
.page-foot__phone { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; font-size: 13px; font-weight: 600; }
.page-foot__developer { color: var(--muted); font-size: 11px; letter-spacing: .04em; }

body.cookie-notice-visible { padding-bottom: var(--cookie-notice-space, 160px); }
body.cookie-notice-visible :focus { scroll-margin-bottom: var(--cookie-notice-space, 160px); }

.cookie-banner {
  position: fixed;
  z-index: 50;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  max-width: 620px;
  margin-inline: auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--surface);
  background: rgba(62, 58, 57, .97);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(31, 25, 22, .25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1; margin: 0; font-size: 12px; line-height: 1.45; }
.cookie-banner a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; }
.cookie-banner button {
  min-width: 92px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

:focus-visible { outline: 3px solid #1670a8; outline-offset: 3px; }
.showroom__intro :focus-visible { outline-color: #ffffff; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes message-in {
  from { transform: translateY(5px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .showroom__intro, .chat-panel { padding: 30px 36px; }
  .intro-copy { padding-top: 58px; }
  .trustline { grid-template-columns: repeat(3, 1fr); }
  .trustline div:first-child { grid-column: auto; }
  .task-replies { grid-template-columns: 1fr 1fr; }
  .static-models { grid-template-columns: 1fr 1fr; }
  .page-foot { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding-inline: 36px; }
  .chat__head, .chat__feed, .chat__foot { padding-inline: 22px; }
  .chat__head { grid-template-columns: 83px minmax(0, 1fr) auto; }
  .consultant-avatar { width: 83px; height: 83px; }
  .consultant-meta strong { font-size: 17px; }
  .consultant-meta span { font-size: 11px; }
  .dealer-head__phone { font-size: 18px; }
  .credit-terms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cookie-banner { align-items: stretch; flex-direction: column; }
  .cookie-banner button { width: 100%; }
}

@media (max-width: 1099px) {
  .chat-panel { min-height: 100svh; align-content: start; }
  .chat, .static-fallback { min-height: 545px; }
  .chat__feed { min-height: 380px; }
}

@media (max-width: 539px) {
  .chat__foot { align-items: flex-start; flex-direction: column; }
  .chat__foot-links { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .dealer-head { flex-wrap: wrap; }
  .dealer-head__brand { flex-basis: 100%; }
  .dealer-head__brand img { width: min(100%, 225px); }
  .dealer-head__brand span { font-size: 9px; letter-spacing: .156em; }
  .dealer-head__actions { width: 100%; justify-content: space-between; }
  .dealer-head__phone-full { display: inline; }
  .dealer-head__phone-short { display: none; }
  .promotion-card {
    max-height: calc(100svh - 100px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, auto);
    background: var(--surface);
  }
  .promotion-card__visual {
    width: 100%;
    max-height: min(44svh, 320px);
    border-right: 0;
    border-bottom: 1px solid #ded1c7;
  }
  .promotion-card__body { padding: 14px 16px 15px; }
}

@media (min-width: 1100px) {
  .showroom { display: flex; flex-direction: column; }
  .chat-panel { min-height: 100svh; order: -1; padding: 34px clamp(32px, 4vw, 64px); place-items: start center; align-content: start; }
  .mobile-context { display: flex; }
  .showroom__intro { min-height: 0; padding: 34px clamp(36px, 5vw, 76px); }
  .intro-copy { padding: clamp(50px, 8vh, 96px) 0 32px; }
  h1 { font-size: clamp(46px, 4.25vw, 68px); }
  .model-overview { max-width: 720px; }
  .chat { position: static; max-width: 680px; }
  .entry-replies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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