:root {
  color-scheme: light;
  --cs-ink: #172026;
  --cs-muted: #60707c;
  --cs-line: #d8e3e8;
  --cs-surface: #ffffff;
  --cs-soft: #f4f8fa;
  --cs-accent: #0f8f8f;
  --cs-accent-strong: #0a6868;
  --cs-action: #e27820;
  --cs-error: #a7342d;
}

* {
  box-sizing: border-box;
}

body.cs-public {
  margin: 0;
  min-height: 100vh;
  background: var(--cs-soft);
  color: var(--cs-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs-contact-page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.cs-contact-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  color: var(--cs-muted);
  font-size: 0.92rem;
}

.cs-contact-breadcrumb a {
  color: var(--cs-accent-strong);
  text-decoration: none;
}

.cs-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: stretch;
  margin-top: 20px;
  padding: 28px;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: 8px;
}

.cs-contact-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.cs-contact-kicker {
  margin: 0;
  color: var(--cs-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cs-contact-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.cs-contact-copy p {
  margin: 0;
  max-width: 720px;
  color: var(--cs-muted);
  line-height: 1.6;
}

.cs-contact-links {
  display: grid;
  gap: 10px;
}

.cs-contact-links a {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  background: #fbfdfe;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
}

.cs-contact-links strong {
  color: var(--cs-accent-strong);
}

.cs-contact-links span {
  color: var(--cs-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.cs-contact-workspace,
.cs-contact-relations {
  margin-top: 28px;
}

.cs-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: 8px;
}

.cs-contact-form label {
  display: grid;
  gap: 8px;
  color: var(--cs-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.cs-contact-form-wide,
.cs-contact-actions {
  grid-column: 1 / -1;
}

.cs-contact-form input,
.cs-contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--cs-ink);
  font: inherit;
}

.cs-contact-form input {
  height: 46px;
  padding: 0 13px;
}

.cs-contact-form textarea {
  min-height: 180px;
  resize: vertical;
  padding: 13px;
  line-height: 1.5;
}

.cs-contact-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.cs-contact-actions button {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--cs-action);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cs-contact-actions button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.cs-contact-page.is-busy .cs-contact-form,
.cs-contact-page[aria-busy="true"] .cs-contact-form {
  border-color: rgba(15, 143, 143, 0.34);
}

.cs-contact-page[data-cognitishop-contact-state="submitting"] .cs-contact-form {
  background: #f9fcfc;
}

.cs-contact-page[data-cognitishop-contact-state="sent"] .cs-contact-form {
  border-color: rgba(15, 143, 143, 0.38);
}

.cs-contact-page[data-cognitishop-contact-state="error"] .cs-contact-form {
  border-color: rgba(167, 52, 45, 0.36);
}

.cs-contact-result {
  min-height: 1.35rem;
  margin: 0;
  color: var(--cs-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.cs-contact-result.is-error {
  color: var(--cs-error);
}

.cs-contact-result.is-success {
  color: var(--cs-accent-strong);
}

.cs-contact-toast-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 18, 9, 0.28);
  backdrop-filter: blur(2px);
}

.cs-contact-toast-layer[hidden] {
  display: none;
}

.cs-contact-toast {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  width: min(680px, 100%);
  padding: 20px;
  border: 1px solid #cfe8b4;
  border-radius: 24px;
  background: #ffffff;
  color: var(--cs-ink);
  box-shadow: 0 24px 70px rgba(39, 97, 12, 0.22);
}

.cs-contact-toast.is-error {
  border-color: #f0b5ad;
  box-shadow: 0 24px 70px rgba(167, 52, 45, 0.2);
}

.cs-contact-toast-image {
  align-self: center;
  width: 150px;
  height: 150px;
  border-radius: 22px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #d8efc2;
}

.cs-contact-toast > div {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.cs-contact-toast-kicker {
  color: #2f8200;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cs-contact-toast strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.cs-contact-toast p {
  margin: 0;
  color: var(--cs-muted);
  line-height: 1.45;
}

.cs-contact-toast-help {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: #f4ffe9;
}

.cs-contact-toast-help-intro {
  display: block !important;
  color: #223120 !important;
  font-weight: 800;
}

.cs-contact-toast-help p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #223120;
}

.cs-contact-toast-help strong {
  color: #247300;
  font-size: 0.92rem;
}

.cs-contact-toast-help span {
  color: #223120;
}

.cs-contact-toast-close {
  justify-self: start;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #70b900;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cs-contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

body.cs-public-encros .cs-contact-encros-advice {
  justify-content: flex-start !important;
  gap: 12px !important;
}

body.cs-public-encros .cs-contact-encros-advice img.cs-encros-advice-mascot {
  width: 100% !important;
  height: clamp(176px, 20vw, 235px) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: drop-shadow(0 12px 20px rgba(39, 97, 12, 0.12));
}

@media (max-width: 760px) {
  .cs-contact-page {
    width: min(100% - 20px, 1080px);
    padding-top: 18px;
  }

  .cs-contact-hero,
  .cs-contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .cs-contact-actions {
    grid-template-columns: 1fr;
  }

  .cs-contact-actions button {
    width: 100%;
  }

  .cs-contact-toast {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .cs-contact-toast-image {
    justify-self: center;
    width: 116px;
    height: 116px;
  }
}
