/* AnyParts website — one stylesheet for every page in ka/, en/ and ru/.
   Store-style layout: top bar, logo + search + app button, menu bar, banner, category strip, cards, footer. */

:root {
  --brand: #D32F2F;
  --brand-dark: #B71C1C;
  --brand-light: #EF5350;
  --brand-soft: #fdecea;
  --brand-text: #D32F2F;
  --accent: #ff6f00;
  --accent-dark: #c43c00;
  --accent-soft: #fff1e6;
  --neutral: #424242;
  --neutral-soft: #f1f1f1;
  --text: #1c1c1c;
  --muted: #5f5f5f;
  --bg: #ffffff;
  --bg-page: #ffffff;
  --bg-soft: #f5f5f5;
  --border: #e4e4e4;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 12px 36px rgba(0, 0, 0, 0.18);
  --warn-bg: #fff4d6;
  --warn-border: #f0c75e;
  --placeholder-bg: #fff176;
  --placeholder-text: #3e2f00;
  --bar-bg: #141414;
  --footer-bg: #111111;
  --footer-text: #b5b5b5;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* backgrounds under white text stay dark enough for contrast; red text on dark uses --brand-text */
    --brand: #D32F2F;
    --brand-dark: #B71C1C;
    --brand-light: #ef5350;
    --brand-soft: #2a1414;
    --brand-text: #ff8a80;
    --accent: #ff9e40;
    --accent-dark: #ffab66;
    --accent-soft: #33200f;
    --neutral: #9e9e9e;
    --neutral-soft: #222222;
    --text: #ececec;
    --muted: #a8a8a8;
    --bg: #1b1b1b;
    --bg-page: #121212;
    --bg-soft: #202020;
    --border: #333333;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 12px 36px rgba(0, 0, 0, 0.6);
    --warn-bg: #3a2f12;
    --warn-border: #8a6d1f;
    --placeholder-bg: #6b5d00;
    --placeholder-text: #fff8c4;
    --bar-bg: #0a0a0a;
    --footer-bg: #0a0a0a;
    --footer-text: #9a9a9a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* in-page jumps (e.g. index.html#app) stop below the sticky menu: 54px desktop, 79px on phones */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Georgian", "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
table {
  max-width: 100%;
}

a {
  color: var(--brand-text);
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0.5em 0 0.4em;
}

h2 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.5em;
}

h3 {
  font-size: 1.1rem;
  margin: 1.2em 0 0.4em;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar: contacts left, languages right */

.topbar {
  background: var(--bar-bg);
  color: #fff;
  font-size: 0.85rem;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.topbar-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar svg,
.site-footer p svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.lang {
  display: flex;
  gap: 2px;
}

.lang a {
  padding: 1px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: none;
}

.lang a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
}

.lang a:hover {
  color: #fff;
}

.lang a[aria-current="true"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header: logo, search, app button; menu bar under it */

.site-header {
  background: var(--bg);
}

.header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--accent) 100%);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo-text small {
  color: var(--brand-text);
  font-size: 0.78rem;
  font-weight: 600;
}

.search {
  position: relative;
  display: flex;
  flex: 1 1 320px;
  max-width: 560px;
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.search input:focus {
  outline: 2px solid var(--brand-light);
  outline-offset: -1px;
}

.search button {
  display: grid;
  place-items: center;
  width: 52px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.search button:hover {
  background: var(--brand-dark);
}

.search button svg {
  width: 20px;
  height: 20px;
}

.search-note {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.search.show-note .search-note {
  display: block;
}

.header-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.header-app:hover {
  border-color: var(--brand);
  color: var(--brand-text);
}

.header-app svg {
  width: 24px;
  height: 24px;
  color: var(--brand-text);
}

.header-app span {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

.header-app small {
  color: var(--brand-text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bar-bg);
  border-bottom: 3px solid var(--brand);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.main-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  padding: 13px 18px 11px;
  border-bottom: 3px solid transparent;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.main-nav a[aria-current="page"] {
  border-bottom-color: var(--brand);
  background: var(--brand);
}

@media (max-width: 700px) {
  .header-main {
    gap: 12px;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .main-nav .wrap {
    justify-content: flex-start;
    padding: 0;
  }

  .main-nav a {
    padding: 9px 12px 7px;
    border-bottom: 0;
    font-size: 0.85rem;
  }
}

/* Home: full-width banner. The photo fills the right part and fades into the dark red background. */

.banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 78% 55%, rgba(211, 47, 47, 0.45) 0, rgba(211, 47, 47, 0) 55%),
    linear-gradient(110deg, #0d0d0d 0%, #160909 45%, #3a0d0d 100%);
}

.banner .wrap {
  display: flex;
  align-items: center;
  min-height: 500px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.banner-text {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.banner h1 {
  margin-top: 0;
  font-size: 2.6rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.banner .lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.banner-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}

.banner-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(1.08) contrast(1.05);
}

.banner-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(58, 13, 13, 0.55) 0%, rgba(58, 13, 13, 0) 55%);
  mix-blend-mode: multiply;
}

@media (max-width: 800px) {
  .banner .wrap {
    min-height: 0;
    padding-top: 220px;
    padding-bottom: 36px;
  }

  .banner h1 {
    font-size: 1.85rem;
  }

  .banner-photo {
    width: 100%;
    bottom: auto;
    height: 340px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
  }

  .banner-photo img {
    object-position: center 20%;
  }
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  line-height: 1.3;
  cursor: default;
}

.store-button small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ff8a80;
}

.store-button strong {
  font-size: 1.05rem;
}

/* Home: category strip under the banner */

.category-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 22px;
  padding-bottom: 22px;
  list-style: none;
}

@media (min-width: 760px) {
  .categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.categories li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.category-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
  transition: transform 0.15s, background 0.15s;
}

.categories li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 759px) {
  .categories li {
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    text-align: center;
  }
}

.categories li:hover .category-icon {
  transform: scale(1.08);
  background: var(--bar-bg);
}

.category-icon svg {
  width: 28px;
  height: 28px;
}

/* Home: section blocks with centred titles */

.block {
  padding-top: 8px;
  padding-bottom: 8px;
}

.block-title {
  margin: 1.8em 0 0.9em;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
}

.block-title::before,
.block-title::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 14px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: middle;
}

/* Home: car makes. No frames; logos float with a 3D shadow and tilt on hover. */

.makes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 26px 14px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  perspective: 600px;
}

.makes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-align: center;
  transition: color 0.15s;
}

.makes li:hover {
  color: var(--brand-text);
}

.make-logo {
  width: 72px;
  height: 72px;
  filter:
    drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.9))
    drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.22))
    drop-shadow(0 10px 10px rgba(0, 0, 0, 0.22));
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s;
}

.makes li:hover .make-logo {
  transform: rotateY(22deg) rotateX(8deg) translateY(-6px) scale(1.1);
  filter:
    drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.9))
    drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.25))
    drop-shadow(0 18px 14px rgba(0, 0, 0, 0.28));
}

@media (prefers-color-scheme: dark) {
  /* some brand colours are near-black, so the makes sit on a light band in dark mode */
  .makes {
    padding: 22px 16px;
    border-radius: 16px;
    background: #f2f2f2;
    color: #1c1c1c;
  }

  /* the band is light, so the hover colour is the dark red, not the light text red */
  .makes li:hover {
    color: var(--brand-dark);
  }
}

.makes-note {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Home: part cards (photo, name, "price in the app") */

.part-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.part-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  text-align: center;
  transition: box-shadow 0.15s;
}

.part-card:hover {
  box-shadow: var(--shadow-strong);
}

.part-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.part-name {
  padding: 14px 12px 2px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.part-price {
  padding: 0 12px 14px;
  color: var(--brand-text);
  font-weight: 700;
}

/* Home: how it works, why AnyParts */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  --step-color: var(--brand);
  padding: 24px 22px;
  border-top: 4px solid var(--step-color);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.steps li:nth-child(2) {
  --step-color: var(--accent);
}

.steps li:nth-child(3) {
  --step-color: var(--neutral);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--step-color);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.steps h3 {
  margin-top: 0;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0 0 56px;
}

.features div {
  --feature-color: var(--brand-text);
  --feature-soft: var(--brand-soft);
  padding: 22px;
  border-radius: 12px;
  background: var(--feature-soft);
}

.features div:nth-child(2) {
  --feature-color: var(--accent-dark);
  --feature-soft: var(--accent-soft);
}

.features div:nth-child(3) {
  --feature-color: var(--neutral);
  --feature-soft: var(--neutral-soft);
}

.features h3 {
  margin-top: 0;
  color: var(--feature-color);
}

.features p {
  margin: 0;
}

/* Text pages */

.page {
  max-width: 820px;
  margin: 32px auto 56px;
  padding: 8px 40px 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .page {
    margin: 0 0 32px;
    padding: 4px 16px 28px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.page h1 {
  position: relative;
  margin-top: 0.9em;
  padding-bottom: 12px;
  color: var(--text);
}

.page h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.page h2 {
  color: var(--brand-text);
}

.page li::marker {
  color: var(--brand-text);
  font-weight: 700;
}

.draft-notice {
  position: relative;
  margin: 24px 0;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--warn-border);
  border-radius: 12px;
  background: var(--warn-bg);
  font-size: 0.95rem;
}

.draft-notice::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
}

.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  font-weight: 600;
}

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 16px 0;
  padding: 20px;
  border-radius: 14px;
  background: var(--brand-soft);
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
}

@media (max-width: 520px) {
  .details {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .details dd {
    margin-bottom: 10px;
  }
}

.form-sample {
  margin: 16px 0;
  padding: 18px 22px;
  border: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 14px;
  background: var(--bg-soft);
}

.form-sample p {
  margin: 0.5em 0;
}

/* Footer: three columns and a bottom line */

.site-footer {
  margin-top: 24px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.92rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--accent));
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 48px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.footer-columns h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.footer-columns p {
  margin: 0 0 8px;
}

.site-footer p svg {
  margin-right: 8px;
  vertical-align: -3px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-logo .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer nav a {
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-bottom .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Chat: launcher button and a window that slides in from the right, in the banner's black and dark-red tones */

.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 10px 26px rgba(120, 10, 10, 0.45);
  cursor: pointer;
  transition: transform 0.15s;
}

.chat-launcher:hover {
  transform: scale(1.07);
}

.chat-launcher svg {
  width: 28px;
  height: 28px;
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(239, 83, 80, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(211, 47, 47, 0.35) 0, rgba(211, 47, 47, 0) 60%),
    linear-gradient(160deg, #141010 0%, #1c0c0c 55%, #2c0f0f 100%);
  color: #f3eaea;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.25s, transform 0.25s;
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel.chat-open {
  opacity: 1;
  transform: none;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(110deg, #0d0d0d 0%, #3a0d0d 100%);
}

.chat-head .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.chat-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.25;
}

.chat-title small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.chat-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  padding: 16px;
}

.chat-msg {
  max-width: 88%;
  margin: 0;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-line;
  animation: chat-in 0.25s ease-out;
}

.chat-bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.chat-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--brand);
  color: #fff;
  overflow-wrap: anywhere;
}

.chat-warn {
  background: rgba(255, 193, 7, 0.18);
  color: #ffe082;
}

@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-choice {
  padding: 8px 14px;
  border: 1px solid rgba(239, 83, 80, 0.7);
  border-radius: 999px;
  background: transparent;
  color: #ffb3b0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-choice:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chat-link {
  align-self: flex-start;
  color: #ff8a80;
  font-size: 0.85rem;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-form[hidden] {
  display: none;
}

.chat-form input {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
}

.chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.chat-form input:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
}

.chat-form .chat-vin {
  grid-column: 1 / -1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.chat-form button {
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chat-form button:hover {
  background: var(--brand-dark);
}

@media (max-width: 480px) {
  .chat-panel {
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    bottom: 88px;
  }

  .chat-launcher {
    right: 16px;
    bottom: 16px;
  }
}

/* Visitors who ask for less motion get no slide-ins, tilts or hover lifts */

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

  .makes li:hover .make-logo,
  .categories li:hover .category-icon,
  .chat-launcher:hover {
    transform: none;
  }
}
