@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:
    linear-gradient(90deg, rgba(11, 26, 39, 0.94) 0%, rgba(11, 26, 39, 0.76) 48%, rgba(11, 26, 39, 0.24) 100%),
    url("assets/uni-s-gallery.webp") 62% center / cover no-repeat;
  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;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0;
}

.messenger {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.messenger__header {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
}

.brand img {
  width: 150px;
  filter: brightness(0) invert(1);
}

.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: #fff;
}

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

.manager strong {
  color: #fff;
  font-weight: 700;
}

.manager > div > span {
  color: rgba(255, 255, 255, 0.72);
  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(255, 255, 255, 0.72);
  font-size: 13px;
  text-transform: uppercase;
}

.phone {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: none;
}

.messenger__body {
  display: block;
  min-height: 0;
  overflow: hidden auto;
  padding: 34px 24px;
  background: transparent;
}

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

.chat-time {
  justify-self: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  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.92);
  box-shadow: 0 16px 38px rgba(3, 12, 20, 0.2);
  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;
  max-width: 760px;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mini-card {
  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 {
  width: 100%;
  height: 92px;
  object-fit: contain;
  margin-bottom: 8px;
}

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

.mini-card strong,
.mini-card span {
  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 {
  display: grid;
  gap: 12px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 22px;
  border-top: 0;
  background: transparent;
  justify-items: center;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  justify-content: center;
}

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

.suggestions button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  line-height: 1.15;
  font-weight: 700;
}

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

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

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

.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: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(11, 26, 39, 0.94), rgba(11, 26, 39, 0.78)),
      url("assets/uni-s-gallery.webp") 58% center / cover no-repeat;
  }

  .chat-page {
    padding: 0;
  }

  .messenger {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .messenger__header {
    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 {
    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 {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px;
  }

  .mini-card img {
    grid-row: 1 / span 2;
    height: 58px;
    margin-bottom: 0;
  }

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

  .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 {
    width: calc(100% - 32px);
    gap: 8px;
    padding: 0 0 10px;
  }

  .suggestions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .suggestions button {
    width: 100%;
    padding: 10px 13px;
  }

  .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;
}
