:root {
  --green-900: #063d21;
  --green-800: #07562b;
  --green-700: #0b7138;
  --green-600: #159447;
  --green-100: #e6f4e9;
  --green-50: #f2f9f3;
  --cream: #f7f3e9;
  --paper: #fffdf7;
  --ink: #163126;
  --muted: #64736b;
  --line: #d8e3d9;
  --orange: #f2a33b;
  --shadow: 0 20px 50px rgba(6, 61, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
aside[id] {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(21, 148, 71, 0.13), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.support-strip {
  width: min(305px, 100%);
  margin: 0;
  padding: 2px 3px 2px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--green-900);
}

.support-progress {
  min-width: 0;
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: auto minmax(60px, 92px) auto;
  align-items: center;
  gap: 4px;
}

.support-progress > span {
  color: rgba(7, 86, 43, 0.72);
  font-size: 0.59rem;
  font-weight: 750;
  white-space: nowrap;
}

.support-progress > strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-700);
  font-size: 0.72rem;
}

.support-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 81, 47, 0.11);
}

.support-progress-track span {
  width: max(1%, 7px);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), #7fc892);
}

.support-button {
  min-height: 25px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 195, 111, 0.62);
  color: var(--green-900);
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.support-button:hover {
  background: rgba(242, 195, 111, 0.86);
  transform: translateY(-1px);
}

.support-button:focus-visible {
  outline: 3px solid rgba(242, 195, 111, 0.3);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--content);
  margin: 5px auto 0;
  padding: 5px 4px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.header-right {
  min-width: min(100%, 520px);
  display: grid;
  justify-items: end;
  gap: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 62px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: white;
}

.brand-logo-motion {
  position: relative;
  width: 62px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  isolation: auto;
  transform: translateZ(0);
}

.brand-logo-motion .brand-logo,
.brand-logo-video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.brand-logo-video {
  position: static;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
  filter: saturate(1.04) contrast(1.02);
  opacity: 1;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: auto;
}

.brand.is-logo-animating .brand-logo-video {
  opacity: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--green-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-action {
  min-height: 36px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(8, 81, 47, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--green-900);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.header-action:hover {
  border-color: rgba(8, 81, 47, 0.28);
  background: var(--green-100);
  color: var(--green-800);
  transform: translateY(-1px);
}

.header-action:focus-visible {
  outline: 3px solid rgba(40, 160, 91, 0.28);
  outline-offset: 2px;
}

.header-action-primary {
  border-color: var(--green-700);
  background: var(--green-700);
  color: white;
}

.header-action-primary:hover {
  border-color: var(--green-800);
  background: var(--green-800);
  color: white;
}

.hero,
.section,
.about-section,
.project-intro,
.progress-section,
footer {
  width: var(--content);
  margin-inline: auto;
}

.hero {
  min-height: 720px;
  padding: 24px 0 76px;
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(500px, 1.18fr);
  gap: 30px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-conversation > .eyebrow {
  margin-left: 16px;
  margin-bottom: 14px;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-900);
  font-weight: 650;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.3rem, 8vw, 7.2rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  letter-spacing: -0.035em;
}

.conversation-preview {
  height: 635px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(8, 81, 47, 0.13);
  border-radius: var(--radius-lg);
  background: #dfeee6;
  box-shadow: var(--shadow);
}

.conversation-header {
  min-height: 72px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.conversation-avatar {
  width: 44px;
  height: 44px;
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.conversation-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.conversation-avatar img.general-chat-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.conversation-header strong,
.conversation-header span {
  display: block;
}

.conversation-header strong {
  color: var(--green-900);
  font-size: 0.98rem;
}

.conversation-header span {
  color: var(--muted);
  font-size: 0.76rem;
}

.conversation-header i {
  width: 7px;
  height: 7px;
  margin-right: 4px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green-600);
}

.conversation-header .conversation-more {
  color: var(--green-800);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.conversation-thread {
  min-height: 0;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 81, 47, 0.2) transparent;
  background:
    linear-gradient(rgba(242, 249, 243, 0.9), rgba(242, 249, 243, 0.9)),
    radial-gradient(circle at 16px 16px, rgba(8, 81, 47, 0.1) 2px, transparent 2px);
  background-size: auto, 32px 32px;
}

.preview-message {
  max-width: 92%;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.preview-message-own {
  margin-left: auto;
  flex-direction: row-reverse;
}

.preview-message-short {
  max-width: 72%;
}

.preview-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-avatar-mint {
  background: #bde7c9;
}

.preview-avatar-gold {
  background: #f8dba5;
}

.preview-avatar-lilac {
  background: #ded2f2;
}

.preview-bubble {
  padding: 8px 9px 9px;
  overflow: hidden;
  border-radius: 15px 15px 15px 5px;
  background: white;
  box-shadow: 0 5px 18px rgba(6, 61, 33, 0.08);
}

.preview-message-own .preview-bubble {
  border-radius: 15px 15px 5px 15px;
  background: #dcf5df;
}

.preview-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.preview-meta strong {
  color: var(--green-700);
  font-size: 0.71rem;
}

.preview-meta time {
  color: #829188;
  font-size: 0.66rem;
}

.preview-reply {
  margin: 0 0 7px;
  padding: 6px 8px;
  display: grid;
  gap: 1px;
  border-left: 3px solid var(--green-600);
  border-radius: 4px 8px 8px 4px;
  background: rgba(255, 255, 255, 0.58);
}

.preview-reply strong,
.preview-reply span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-reply strong {
  color: var(--green-700);
  font-size: 0.69rem;
}

.preview-reply span {
  max-width: 245px;
  color: #557064;
  font-size: 0.67rem;
}

.preview-bubble p {
  margin: 3px 0 0;
  color: #263c31;
  font-size: 0.81rem;
  line-height: 1.38;
}

.shared-pet-photo {
  width: min(100%, 180px);
  aspect-ratio: 1;
  margin-top: 9px;
  border-radius: 10px;
  background-image: url("/dogs-chat-photos.webp");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  box-shadow: inset 0 0 0 1px rgba(6, 61, 33, 0.06);
}

.shared-pet-photo-dalmatian {
  background-position: left center;
}

.shared-pet-photo-retriever {
  margin-left: auto;
  background-position: right center;
}

.typing-indicator {
  width: 52px;
  min-height: 30px;
  margin: -4px 0 0 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 18px rgba(6, 61, 33, 0.07);
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93a69b;
  animation: typing 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 120ms;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.preview-message.demo-hidden,
.typing-indicator.demo-hidden {
  display: none;
}

.preview-message.demo-arriving {
  animation: demo-message-arrival 420ms cubic-bezier(0.22, 0.78, 0.24, 1) both;
}

@keyframes demo-message-arrival {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-invite {
  margin-top: 33px;
  min-height: 635px;
  padding: 28px;
  position: static;
  overflow: visible;
  box-sizing: border-box;
  border: 1px solid rgba(8, 81, 47, 0.12);
  border-radius: var(--radius-lg);
  background: var(--green-900);
  box-shadow: var(--shadow);
  color: white;
}

.hero-invite-label {
  margin: 0 0 14px;
  color: #a9dcb5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-invite-copy {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.16;
}

.hero-auth-panel {
  overflow: hidden;
  border-radius: 20px;
  background: white;
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.hero-auth-panel .auth-view {
  max-width: none;
  padding: 24px;
}

.hero-auth-panel .chat-view {
  min-height: 560px;
}

.chat-launcher {
  min-height: 360px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 13px;
  background:
    radial-gradient(circle at 88% 12%, rgba(21, 148, 71, 0.13), transparent 13rem),
    var(--paper);
}

.chat-launcher > img {
  width: 86px;
  height: 56px;
  object-fit: contain;
}

.chat-launcher .eyebrow,
.chat-launcher h2,
.chat-launcher p {
  margin: 0;
}

.chat-launcher h2 {
  color: var(--green-900);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.chat-launcher p:not(.eyebrow) {
  max-width: 410px;
  color: var(--muted);
}

.chat-launcher .button {
  margin-top: 7px;
  text-decoration: none;
}

.chat-launcher .owner-cabinet-link {
  margin-left: 8px;
  border: 1px solid rgba(7, 86, 43, 0.18);
  color: var(--green-800);
  background: var(--green-100);
  text-decoration: none;
}

.forgot-password-button {
  justify-self: center;
  margin-top: -4px;
  padding: 4px 8px;
  border: 0;
  color: var(--green-700);
  background: transparent;
  cursor: default;
  font-size: 0.76rem;
  font-weight: 700;
}

.forgot-password-placeholder { opacity: 0.82; }

.password-reset-dialog label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 800;
}

.password-reset-dialog input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  outline: 0;
}

.password-reset-dialog input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.13);
}

.hero-start-button {
  width: 100%;
  margin-top: 28px;
  background: white;
  color: var(--green-900);
}

.hero-start-button:hover {
  background: var(--green-100);
}

.hero-invite-note {
  margin: 12px 0 0;
  color: #bcd8c4;
  font-size: 0.78rem;
  text-align: center;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #43564c;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green-700);
  color: white;
}

.button-primary:hover {
  background: var(--green-800);
}

.button-secondary {
  background: var(--green-100);
  color: var(--green-900);
}

.hero-facts {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-facts strong {
  color: white;
  font-size: 1rem;
}

.hero-facts span {
  color: #bcd8c4;
  font-size: 0.78rem;
  text-align: right;
}

.hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-900);
  box-shadow: var(--shadow);
  color: white;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -120px;
  border-radius: 50%;
  background: var(--green-600);
  opacity: 0.55;
}

.hero-card-label {
  margin: 0 0 10px;
  color: #a9dcb5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card-item {
  padding: 22px 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-card-item:last-child {
  border-bottom: 0;
}

.feature-number {
  color: #9bd6a8;
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.hero-card-item strong {
  font-size: 1.03rem;
}

.hero-card-item p {
  margin: 5px 0 0;
  color: #bdd7c4;
  font-size: 0.9rem;
}

.section {
  padding: 76px 0;
}

.section-heading {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: end;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.map-shell {
  width: 100%;
  height: clamp(460px, 66vw, 650px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--green-50);
  box-shadow: var(--shadow);
}

.map-shell > *,
.map-shell iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.chat-section {
  padding-top: 90px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: 24px;
}

.chat-intro,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.chat-intro {
  padding: 30px;
  background: var(--green-50);
}

.chat-intro > p {
  color: var(--muted);
}

.chat-intro > p:first-of-type {
  margin-top: 10px;
  color: var(--green-900);
}

.status-dot {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 7px rgba(21, 148, 71, 0.13);
}

.chat-rule {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.chat-rule p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-panel {
  min-height: 570px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.auth-view {
  max-width: 590px;
  margin: 0 auto;
  padding: 48px 34px;
}

.auth-tabs {
  margin-bottom: 30px;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px;
  background: var(--green-50);
}

.auth-tab {
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.auth-tab.active {
  background: white;
  color: var(--green-900);
  box-shadow: 0 5px 16px rgba(6, 61, 33, 0.09);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-form .consent-check {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--green-700);
}

.consent-check a,
.footer-legal-links a {
  color: var(--green-700);
  text-underline-offset: 2px;
}

.consent-check a:hover,
.footer-legal-links a:hover {
  color: var(--green-900);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  outline: 0;
}

input,
select {
  min-height: 50px;
  padding: 12px 14px;
}

select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green-700) 50%),
    linear-gradient(135deg, var(--green-700) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 58px;
  padding: 13px 15px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(21, 148, 71, 0.12);
}

.form-message {
  min-height: 24px;
  margin: 15px 0 0;
  color: #ad3a32;
  font-size: 0.88rem;
}

.hidden {
  display: none !important;
}

.chat-view {
  min-height: 570px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.chat-toolbar {
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--green-50);
}

.chat-toolbar span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.text-button {
  padding: 7px;
  border: 0;
  background: transparent;
  color: var(--green-700);
  cursor: pointer;
  font-weight: 750;
}

.message-list {
  height: 390px;
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(rgba(242, 249, 243, 0.82), rgba(242, 249, 243, 0.82)),
    radial-gradient(circle at 20% 30%, var(--green-100), transparent 24rem);
}

.message {
  max-width: min(76%, 540px);
  padding: 11px 14px;
  align-self: flex-start;
  border-radius: 6px 18px 18px 18px;
  background: white;
  box-shadow: 0 5px 16px rgba(6, 61, 33, 0.08);
}

.message.mine {
  align-self: flex-end;
  border-radius: 18px 6px 18px 18px;
  background: #dff3e3;
}

.message.system {
  max-width: 90%;
  align-self: center;
  border-radius: 14px;
  background: var(--cream);
}

.message-meta {
  margin-bottom: 3px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.message-author {
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 800;
}

.message-time {
  color: var(--muted);
  font-size: 0.68rem;
}

.message-text {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-attachment {
  margin: 7px -4px 8px;
  overflow: hidden;
  border-radius: 13px;
  background: #e2ebe4;
}

.message-attachment img,
.message-attachment video {
  width: 100%;
  max-width: 380px;
  max-height: 340px;
  display: block;
  object-fit: contain;
  background: #102218;
}

.message-form {
  padding: 14px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.message-compose-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 9px;
}

.attachment-button {
  min-width: 48px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--green-50);
  color: var(--green-800);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.attachment-button:hover {
  border-color: rgba(11, 113, 56, 0.35);
  background: var(--green-100);
}

.attachment-button:focus-within {
  outline: 3px solid rgba(21, 148, 71, 0.18);
  outline-offset: 2px;
}

.attachment-preview {
  padding: 8px 10px 8px 8px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--green-50);
}

.attachment-preview-media {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 9px;
  background: #dbe8de;
}

.attachment-preview-object {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.attachment-preview-copy {
  min-width: 0;
}

.attachment-preview-copy strong,
.attachment-preview-copy span {
  display: block;
}

.attachment-preview-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.attachment-preview-copy span,
.attachment-hint {
  color: var(--muted);
  font-size: 0.7rem;
}

.attachment-remove {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--green-900);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.attachment-hint {
  padding-left: 2px;
}

.send-button {
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--green-700);
  color: white;
  cursor: pointer;
  font-weight: 750;
}

.send-button:disabled,
.attachment-button:has(input:disabled) {
  cursor: wait;
  opacity: 0.58;
}

.chat-view > .form-message {
  margin: 0;
  padding: 0 18px 10px;
}

.project-intro {
  margin-top: 64px;
  padding: 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 20%, rgba(157, 218, 174, 0.17), transparent 18rem),
    var(--green-900);
  color: white;
}

.project-intro h2 {
  color: white;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.project-intro-copy {
  max-width: 930px;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.project-intro-copy p {
  margin: 0;
  color: #c6dfcc;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.project-intro-copy .project-intro-finale {
  margin-top: 8px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.progress-section {
  padding: 46px 0 52px;
}

.progress-heading {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 30px;
}

.progress-heading .eyebrow {
  grid-column: 1 / -1;
}

.progress-heading > p:last-child {
  max-width: 420px;
  margin: 0 0 8px;
  color: var(--muted);
}

.roadmap {
  padding: 10px 16px;
  position: relative;
}

.roadmap-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.roadmap-card {
  min-height: 128px;
  padding: 10px 11px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 188, 96, 0.46);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 10%, rgba(157, 218, 174, 0.12), transparent 8rem),
    linear-gradient(155deg, #073c23, #052d1b);
  box-shadow: 0 14px 34px rgba(6, 61, 33, 0.2);
  color: white;
}

.roadmap-card::after {
  content: "";
  width: 78px;
  height: 78px;
  position: absolute;
  right: -34px;
  bottom: -36px;
  border: 15px solid rgba(144, 206, 160, 0.06);
  border-radius: 50%;
}

.roadmap-card-active {
  border-color: #b9e6c3;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.14), transparent 9rem),
    linear-gradient(155deg, #138148, #07562b);
}

.roadmap-card:not(.roadmap-card-active) {
  border-color: rgba(241, 188, 96, 0.26);
}

.roadmap-card:not(.roadmap-card-active) .roadmap-illustration {
  opacity: 0.58;
  filter: grayscale(0.42);
}

.roadmap-card:not(.roadmap-card-active) .roadmap-card-label {
  color: rgba(183, 223, 192, 0.52);
}

.roadmap-card:not(.roadmap-card-active) .roadmap-items,
.roadmap-card:not(.roadmap-card-active) .roadmap-placeholder {
  color: rgba(208, 227, 212, 0.58);
}

.roadmap-card:not(.roadmap-card-active) .roadmap-items li::before {
  color: rgba(242, 195, 111, 0.5);
}

.roadmap-illustration {
  width: 32px;
  height: 32px;
  display: block;
  border: 1px solid rgba(242, 195, 111, 0.2);
  border-radius: 50%;
  background-image: url("/dogsmsk-roadmap-story.webp");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  box-shadow: 0 4px 12px rgba(4, 43, 25, 0.22);
}

.roadmap-stage-1 {
  background-position: 0 0;
}

.roadmap-stage-2 {
  background-position: 33.333% 0;
}

.roadmap-stage-3 {
  background-position: 66.667% 0;
}

.roadmap-stage-4 {
  background-position: 100% 0;
}

.roadmap-stage-5 {
  background-position: 0 100%;
}

.roadmap-stage-6 {
  background-position: 33.333% 100%;
}

.roadmap-stage-7 {
  background-position: 66.667% 100%;
}

.roadmap-stage-8 {
  background-position: 100% 100%;
}

.roadmap-card-label {
  margin: 5px 0 5px;
  color: #b7dfc0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap-card ol,
.roadmap-items {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 2px;
  font-weight: 720;
  font-size: 0.71rem;
  line-height: 1.2;
}

.roadmap-items {
  padding-left: 0;
  list-style: none;
}

.roadmap-items li {
  padding-left: 11px;
  position: relative;
}

.roadmap-items li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f2c36f;
  font-size: 1.15em;
}

.roadmap-placeholder {
  max-width: 190px;
  margin: 0;
  color: #d0e3d4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.2;
}

.roadmap-line {
  height: 2px;
  position: absolute;
  left: -18px;
  right: -18px;
  z-index: 1;
  background: linear-gradient(90deg, #d8a449, #83c493, #d8a449);
}

.roadmap-line-top {
  top: 25%;
}

.roadmap-line-bottom {
  top: 75%;
}

.roadmap-badge {
  width: 40px;
  height: 40px;
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 2px solid #efbd65;
  border-radius: 50%;
  background: var(--green-900);
  box-shadow:
    0 0 0 3px var(--paper),
    0 8px 22px rgba(6, 61, 33, 0.22);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.roadmap-badge:not(.badge-1) {
  border-color: #b5bbb7;
  background: #69716c;
  box-shadow:
    0 0 0 3px var(--paper),
    0 7px 18px rgba(80, 88, 83, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.badge-1 {
  top: 25%;
  left: -20px;
  transform: translateY(-50%);
}

.badge-25 {
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.badge-50 {
  top: 25%;
  right: -20px;
  transform: translateY(-50%);
}

.badge-75 {
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.badge-100 {
  top: 75%;
  right: -20px;
  transform: translateY(-50%);
}

.support-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 34px;
  position: fixed;
  border: 1px solid rgba(8, 81, 47, 0.16);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(6, 61, 33, 0.3);
  color: var(--ink);
}

.support-dialog::backdrop {
  background: rgba(4, 36, 20, 0.66);
  backdrop-filter: blur(4px);
}

.support-dialog form {
  margin: 0;
}

.support-dialog-close {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.support-dialog h2 {
  max-width: 420px;
  padding-right: 20px;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.support-dialog-text {
  margin: 22px 0 10px;
  color: var(--muted);
}

.support-card-number {
  padding: 16px;
  border: 1px dashed rgba(8, 81, 47, 0.35);
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-900);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.support-copy-button {
  width: 100%;
  margin-top: 14px;
}

.support-copy-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--green-700);
  font-size: 0.84rem;
  text-align: center;
}

.support-dialog-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

footer {
  padding: 30px 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-brand .brand-logo {
  width: 58px;
  height: 37px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-legal-block {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  font-size: 0.72rem;
}

.social-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #d4d9dd;
  color: white;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.social-link:hover {
  background: var(--green-600);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 3px solid rgba(21, 148, 71, 0.2);
  outline-offset: 2px;
}

.social-link-telegram span {
  width: 19px;
  height: 19px;
  display: block;
  background: currentColor;
  transform: translate(-1px, 1px);
  clip-path: polygon(
    4% 44%,
    96% 5%,
    68% 95%,
    49% 67%,
    34% 82%,
    36% 58%
  );
}

.social-link-vk span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 24px;
  }

  .hero-invite {
    margin-top: 0;
    height: auto;
    min-height: 0;
    position: static;
  }

  .conversation-preview {
    height: 590px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 20px;
  }

  .progress-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .progress-heading > p:last-child {
    margin: 0;
  }

  .roadmap {
    padding: 8px 0 56px;
  }

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

  .roadmap-line-top {
    display: none;
  }

  .roadmap-line-bottom {
    top: auto;
    bottom: 27px;
    left: 20px;
    right: 20px;
  }

  .roadmap-badge {
    width: 38px;
    height: 38px;
    top: auto;
    right: auto;
    bottom: 2px;
    transform: translateX(-50%);
  }

  .badge-1 {
    left: 3%;
  }

  .badge-25 {
    left: 27%;
  }

  .badge-50 {
    left: 50%;
  }

  .badge-75 {
    left: 73%;
  }

  .badge-100 {
    left: 97%;
  }
}

@media (max-width: 640px) {
  :root {
    --content: min(100% - 20px, 1180px);
    --radius-lg: 22px;
  }

  .support-strip {
    width: 100%;
    margin: 0;
    padding: 2px 3px 2px 7px;
    grid-column: 1 / -1;
    gap: 5px;
    border-radius: 8px;
  }

  .support-progress {
    flex: 1;
    grid-template-columns: auto minmax(55px, 1fr) auto;
    gap: 4px;
  }

  .support-progress > span {
    grid-column: auto;
    font-size: 0.56rem;
  }

  .support-progress-track {
    grid-column: auto;
  }

  .support-progress > strong {
    grid-column: auto;
    font-size: 0.7rem;
  }

  .support-button {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.64rem;
  }

  .site-header {
    margin-top: 4px;
    padding: 4px 2px 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border-radius: 10px;
  }

  section[id],
  aside[id] {
    scroll-margin-top: 98px;
  }

  .header-right {
    display: contents;
  }

  .site-header .brand {
    align-self: auto;
    grid-column: 1;
  }

  .site-header .brand-logo {
    width: 50px;
    height: 32px;
  }

  .site-header .brand-logo-motion {
    width: 50px;
    height: 32px;
  }

  .brand > span:not(.brand-logo-motion) {
    display: none;
  }

  .header-actions {
    min-width: 0;
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .header-action {
    min-width: 0;
    min-height: 34px;
    padding: 7px 3px;
    font-size: 0.68rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 16px 0 42px;
    gap: 20px;
  }

  .hero-conversation > .eyebrow {
    margin-left: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .conversation-header {
    min-height: 66px;
    padding: 10px 12px;
    gap: 9px;
  }

  .conversation-avatar {
    width: 40px;
    height: 40px;
  }

  .conversation-header strong {
    font-size: 0.88rem;
  }

  .conversation-header span {
    font-size: 0.68rem;
  }

  .conversation-header .conversation-more {
    font-size: 0.95rem;
  }

  .conversation-thread {
    min-height: 420px;
    padding: 15px 12px;
  }

  .preview-message {
    max-width: 91%;
  }

  .preview-message-short {
    max-width: 88%;
  }

  .preview-avatar {
    width: 28px;
    height: 28px;
  }

  .typing-indicator {
    margin-left: 37px;
  }

  .hero-invite {
    padding: 18px;
  }

  .hero-invite-copy {
    font-size: 1.45rem;
  }

  .hero-auth-panel .auth-view {
    padding: 16px;
  }

  .auth-form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .map-shell {
    height: 430px;
  }

  .chat-view {
    min-height: 540px;
  }

  .message-list {
    height: 350px;
    padding: 14px;
  }

  .message {
    max-width: 88%;
  }

  .message-form {
    grid-template-columns: 1fr;
  }

  .message-compose-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .attachment-button {
    min-width: 46px;
    padding-inline: 10px;
  }

  .attachment-button-label {
    display: none;
  }

  .send-button {
    min-height: 46px;
    grid-column: 1 / -1;
  }

  .project-intro {
    margin-top: 44px;
    padding: 30px 24px;
  }

  .progress-section {
    padding: 34px 0 40px;
  }

  .progress-heading {
    margin-bottom: 16px;
  }

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

  .roadmap-card {
    min-height: 108px;
  }

  .roadmap-badge {
    width: 34px;
    height: 34px;
    font-size: 0.66rem;
  }

  .support-dialog {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .support-dialog h2 {
    font-size: 1.85rem;
  }

  .support-card-number {
    padding-inline: 10px;
    font-size: 1.08rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal-block {
    justify-items: start;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }
}

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

}

@media (max-width: 380px) {
  .header-action {
    font-size: 0.69rem;
  }

  .conversation-header .conversation-more {
    display: none;
  }

  .conversation-header {
    grid-template-columns: auto 1fr;
  }

  .preview-message,
  .preview-message-short {
    max-width: 96%;
  }

  .hero-invite {
    padding: 15px;
  }

  .hero-auth-panel .auth-view {
    padding: 14px;
  }

  .auth-tab {
    padding-inline: 8px;
    font-size: 0.82rem;
  }
}
