@font-face {
  font-family: "ChangAnunitype";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/ChangAnunitype-Regular.otf") format("opentype");
}

@font-face {
  font-family: "ChangAnunitype";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/ChangAnunitype-Bold.otf") format("opentype");
}

:root {
  --blue: #0066b5;
  --blue-deep: #0a477f;
  --ink: #303033;
  --muted: #878a91;
  --line: #dfe3e8;
  --soft: #f3f6f9;
  --dark: #132330;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(14, 29, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 102, 181, 0.18), transparent 32%),
    linear-gradient(135deg, #f7f9fc 0%, #edf3f8 48%, #dfe9f1 100%);
  color: var(--ink);
  font-family: "ChangAnunitype", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.chat-page {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  padding: 24px 0;
}

.selection-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  height: min(820px, calc(100vh - 48px));
  height: min(820px, calc(100dvh - 48px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 102, 181, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 64px rgba(24, 35, 46, 0.12);
  backdrop-filter: blur(18px);
}

.selection-panel__label {
  width: fit-content;
  border: 1px solid rgba(0, 102, 181, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.selection-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.02;
}

.selection-panel p {
  margin: 0;
  color: rgba(48, 48, 51, 0.72);
  font-size: 15px;
}

.selection-panel__photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #d9e2ea;
}

.selection-panel__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selection-panel__photo span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.selection-steps {
  display: grid;
  gap: 8px;
}

.selection-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(0, 102, 181, 0.12);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.selection-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 102, 181, 0.1);
  color: var(--blue);
  font-size: 12px;
}

.messenger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: min(820px, calc(100vh - 48px));
  height: min(820px, calc(100dvh - 48px));
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 102, 181, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 64px rgba(24, 35, 46, 0.14);
  backdrop-filter: none;
}

.messenger__header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 102, 181, 0.18);
  background: transparent;
}

.brand img {
  width: 150px;
}

.manager {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.manager__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.manager {
  color: var(--ink);
}

.manager strong,
.manager > div > span,
.phone {
  display: block;
}

.manager strong {
  color: var(--ink);
  font-weight: 700;
}

.manager > div > span {
  color: rgba(48, 48, 51, 0.68);
  font-size: 13px;
}

.manager > div > span i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #31cf73;
}

.header-actions {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: rgba(48, 48, 51, 0.68);
  font-size: 13px;
  text-transform: uppercase;
}

.phone {
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: none;
}

.messenger__body {
  display: block;
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow: hidden auto;
  padding: 22px;
  background: transparent;
}

.chat-stream {
  display: grid;
  gap: 12px;
  align-content: start;
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  overflow: visible;
}

.chat-time {
  justify-self: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 102, 181, 0.1);
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.bubble {
  width: fit-content;
  max-width: min(680px, 86%);
  overflow-wrap: anywhere;
  animation: messageIn 0.26s ease both;
}

.bubble p {
  margin: 0;
}

.bubble--manager {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px 8px 8px 2px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(24, 35, 46, 0.12);
  backdrop-filter: blur(14px);
}

.bubble--user {
  justify-self: end;
  border-radius: 8px 8px 2px 8px;
  padding: 14px 16px;
  background: #0066b5;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 62, 109, 0.28);
}

.bubble--typing {
  min-width: 76px;
}

.typing {
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8acb3;
  animation: typing 0.9s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.12s;
}

.typing i:nth-child(3) {
  animation-delay: 0.24s;
}

.bubble--media {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 620px;
  padding: 10px;
}

.bubble--media img {
  width: 180px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 58% center;
}

.bubble--media strong,
.bubble--media span {
  display: block;
}

.bubble--media strong {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.05;
}

.bubble--media span {
  color: var(--muted);
  font-size: 14px;
}

.bubble--cards {
  display: grid;
  gap: 10px;
  width: min(100%, 650px);
  max-width: 100%;
}

.mini-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mini-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  border-color: rgba(0, 102, 181, 0.5);
  box-shadow: 0 12px 26px rgba(0, 102, 181, 0.1);
  transform: translateY(-2px);
}

.mini-card img {
  grid-row: 1 / span 2;
  width: 100%;
  height: 82px;
  object-fit: contain;
  margin-bottom: 0;
}

.mini-card--wide img {
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.mini-card strong,
.mini-card span {
  grid-column: 2;
  display: block;
}

.mini-card span {
  color: var(--muted);
  font-size: 13px;
}

.lead-form {
  display: grid;
  gap: 12px;
  width: min(440px, 100%);
  margin-top: 12px;
  border: 1px solid rgba(0, 102, 181, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(24, 35, 46, 0.12);
}

.bubble--form {
  max-width: min(440px, 92%);
}

.lead-form h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.lead-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #676b72;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.lead-form input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(0, 102, 181, 0.14);
}

.send-button {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  padding: 0 20px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
}

.send-button:hover {
  background: var(--blue-deep);
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 9px !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

.consent input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.messenger__footer {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: stretch;
  width: 100%;
  margin: 0;
  padding: 22px;
  border-left: 1px solid rgba(0, 102, 181, 0.12);
  border-top: 0;
  background: rgba(255, 255, 255, 0.46);
}

.suggestions {
  display: grid;
  gap: 10px;
  max-width: none;
  justify-content: stretch;
}

.suggestions.has-cards {
  align-content: start;
  max-height: 100%;
  overflow: hidden auto;
  padding-right: 2px;
}

.suggestions__title {
  margin: 0 0 2px;
  color: rgba(48, 48, 51, 0.72);
  font-size: 13px;
  line-height: 1.25;
}

.suggestions.is-empty {
  display: none;
}

.suggestions button {
  border: 1px solid rgba(0, 102, 181, 0.2);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  line-height: 1.15;
  font-weight: 700;
  text-align: left;
}

.suggestions button:hover {
  border-color: #fff;
  background: #fff;
}

.suggestions .mini-cards {
  gap: 8px;
}

.suggestions .mini-card {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  min-height: 78px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  text-align: left;
}

.suggestions .mini-card img {
  height: 52px;
}

.suggestions .mini-card strong {
  font-size: 14px;
  line-height: 1.05;
}

.suggestions .mini-card span {
  font-size: 11px;
  line-height: 1.2;
}

.suggestions__manual {
  margin-top: 2px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  color: rgba(48, 48, 51, 0.62);
  font-size: 12px;
}

.legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .messenger__header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    padding: 14px 16px;
  }

  .brand {
    grid-column: 1;
  }

  .manager {
    grid-column: 2;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-items: start;
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .header-actions .phone,
  .header-actions span {
    white-space: normal;
  }

  .messenger__footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

.utility-main {
  min-height: calc(100vh - 74px);
  background: #f7f8fa;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header__inner,
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 74px;
}

.dealer {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 14px;
}

.dealer strong {
  color: var(--ink);
}

.utility-page {
  padding: 58px 0 78px;
}

.utility-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 35, 46, 0.12);
}

.utility-card h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
}

.utility-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.text-button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border-radius: 18px;
  padding: 0 18px;
  font-weight: 700;
}

.button {
  background: var(--blue);
  color: #fff;
}

.text-button {
  border: 1px solid rgba(0, 102, 181, 0.25);
  color: var(--blue);
}

.footer {
  padding: 24px 0 30px;
  background: #101010;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.footer .container {
  display: grid;
  gap: 14px;
}

.footer p {
  max-width: 980px;
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .utility-card {
  max-width: 1120px;
}

.legal-page .legal__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.legal-page .legal__list .legal__list {
  margin-top: 12px;
}

.legal-page .legal__list-item {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.legal-page .legal__heading {
  display: block;
  margin: 20px 0 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-page .legal__text {
  color: var(--ink);
}

.legal-page .legal__note {
  color: var(--muted);
}

.legal-page .link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  body {
    background:
      radial-gradient(circle at 10% 0%, rgba(0, 102, 181, 0.16), transparent 34%),
      linear-gradient(180deg, #f7f9fc, #edf3f8);
  }

  .chat-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
  }

  .selection-panel {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    min-height: 0;
    height: auto;
    overflow: visible;
    margin: 10px 14px 0;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(24, 35, 46, 0.1);
  }

  .selection-panel__label,
  .selection-steps {
    display: none;
  }

  .selection-panel h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.05;
  }

  .selection-panel p {
    font-size: 12px;
    line-height: 1.25;
  }

  .selection-panel__photo {
    grid-row: 1 / span 2;
    width: 86px;
    height: 76px;
    aspect-ratio: auto;
  }

  .selection-panel__photo span {
    display: none;
  }

  .messenger {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .messenger__header {
    grid-column: 1;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    width: calc(100% - 32px);
    padding: 12px 0;
  }

  .brand {
    grid-column: auto;
  }

  .brand img {
    width: 118px;
  }

  .manager {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 9px;
  }

  .manager__avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .phone {
    font-size: 12px;
    text-align: right;
    white-space: normal;
  }

  .header-actions {
    justify-items: end;
    align-self: center;
    min-width: 0;
    font-size: 11px;
  }

  .header-actions span {
    display: none;
  }

  .messenger__body {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    padding: 10px 14px 24px;
  }

  .chat-stream {
    width: 100%;
    margin: 0;
  }

  .bubble {
    max-width: 100%;
  }

  .bubble--manager,
  .bubble--user {
    padding: 12px 14px;
  }

  .bubble--media {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 10px;
  }

  .bubble--media img {
    width: 116px;
    height: 76px;
  }

  .bubble--media strong {
    font-size: 18px;
  }

  .bubble--media span {
    font-size: 12px;
  }

  .mini-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mini-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .mini-card img {
    height: 58px;
    margin-bottom: 0;
  }

  .mini-card strong {
    font-size: 14px;
  }

  .mini-card span {
    font-size: 11px;
  }

  .lead-form {
    width: 100%;
    gap: 9px;
    padding: 14px;
  }

  .bubble--form {
    max-width: 100%;
  }

  .lead-form h2 {
    font-size: 24px;
  }

  .lead-form input,
  .send-button {
    min-height: 46px;
  }

  .consent input {
    width: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  .messenger__footer {
    grid-column: 1;
    grid-row: 3;
    width: calc(100% - 32px);
    margin: 0 auto;
    gap: 8px;
    padding: 0 0 max(18px, env(safe-area-inset-bottom));
    border-left: 0;
    background: transparent;
  }

  .suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .suggestions.has-cards {
    grid-template-columns: 1fr;
    max-height: min(310px, 46dvh);
    overflow: hidden auto;
    border: 1px solid rgba(0, 102, 181, 0.16);
    border-radius: 8px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.82);
  }

  .suggestions.has-cards .mini-cards {
    display: grid;
    gap: 7px;
  }

  .suggestions.has-cards .mini-card {
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 58px;
    padding: 6px;
  }

  .suggestions.has-cards .mini-card img {
    height: 44px;
  }

  .suggestions__title {
    font-size: 11px;
    line-height: 1.2;
  }

  .suggestions button {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 999px;
    text-align: center;
  }

  .legal-links {
    padding-bottom: 2px;
    line-height: 1.4;
  }

  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .utility-card h1 {
    font-size: 34px;
  }
}

/* 2026-08-06: keep utility page buttons vertically centered. */
.utility-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
