/* Contact page. Scoped to main.ct-page. */

body:has(> main.ct-page) {
  background: #f5f7fb;
  color: #142033;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  overflow-x: clip;
}
[data-theme="dark"] body:has(> main.ct-page) {
  background: #070d18;
  color: #f4f7fb;
}

main.ct-page {
  --ct-bg: #f5f7fb;
  --ct-text: #142033;
  --ct-muted: #3c4b63;
  --ct-link: var(--wf-accent-text, #2459E0);
  --ct-line: rgba(16, 36, 72, 0.12);
  --ct-btn-line: rgba(16, 36, 72, 0.28);
  --ct-card: #ffffff;
  --ct-input: #ffffff;
  --ct-shadow: 0 10px 28px rgba(16, 36, 72, 0.06);
  --ct-navy: #071422;
  --ct-surface: var(--wf-accent-surface, #EDF2FF);
  --ct-error: #b42318;
  display: block;
  background: var(--ct-bg);
  color: var(--ct-text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: normal;
  overflow-x: clip;
}
[data-theme="dark"] main.ct-page {
  --ct-bg: #070d18;
  --ct-text: #f4f7fb;
  --ct-muted: #b7c4d8;
  --ct-line: rgba(232, 240, 255, 0.14);
  --ct-btn-line: rgba(232, 240, 255, 0.38);
  --ct-card: #101a2c;
  --ct-input: #0c1524;
  --ct-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  --ct-surface: rgba(124, 159, 255, 0.12);
  --ct-error: #ffb4ab;
}

main.ct-page a { color: inherit; text-decoration: none; }
main.ct-page a:hover,
main.ct-page a:hover * { text-decoration: none; }
main.ct-page :focus-visible {
  outline: 2px solid var(--wf-focus, #2459E0);
  outline-offset: 3px;
}
.ct-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.ct-section { padding: 28px 0 56px; }
.ct-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-link);
}
main.ct-page h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ct-text);
}
main.ct-page h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ct-text);
}
main.ct-page h3 { margin: 0 0 6px; font-size: 18px; }
.ct-lead, .ct-hero-lead { margin: 0; max-width: 62ch; color: var(--ct-muted); }
.ct-hero-lead { margin-bottom: 0; font-size: 18px; }
.ct-lead { margin-bottom: 12px; }

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
main.ct-page .ct-btn-primary,
main.ct-page .ct-btn-primary:hover {
  background: var(--wf-primary, #2459E0);
  color: #fff;
}
main.ct-page .ct-btn-primary:hover { background: var(--wf-primary-hover, #1D47B8); }
main.ct-page .ct-btn-ghost {
  background: transparent;
  color: var(--ct-text);
  border-color: var(--ct-btn-line);
}
main.ct-page .ct-btn-ghost:hover {
  border-color: var(--ct-link);
  color: var(--ct-link);
}
.ct-btn:disabled { opacity: 0.72; cursor: progress; }

.ct-hero { padding: 28px 0 8px; }
.ct-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.8fr);
  gap: 20px 32px;
  align-items: center;
}
.ct-hero-art img {
  display: block;
  width: min(100%, 460px);
  height: auto;
  margin-left: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  background: transparent;
}

.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}
.ct-panel, .ct-card, .ct-company-panel, .ct-next a {
  border: 1px solid var(--ct-line);
  border-radius: 16px;
  background: var(--ct-card);
  box-shadow: var(--ct-shadow);
}
.ct-panel { padding: 28px; }
.ct-tech { margin: 8px 0 18px; color: var(--ct-muted); font-size: 14px; }
.ct-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
main.ct-page .ct-tech a,
main.ct-page .ct-note a,
main.ct-page .ct-mails a,
main.ct-page .ct-company-panel a {
  color: var(--ct-link);
  font-weight: 700;
}
.ct-form { display: grid; gap: 14px; }
.ct-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: grid; gap: 6px; }
.ct-field-wide { grid-column: 1 / -1; }
.ct-field label, .ct-check { font-weight: 700; font-size: 14px; }
.ct-optional { color: var(--ct-muted); font-weight: 600; }
.ct-form input,
.ct-form select,
.ct-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--ct-btn-line);
  border-radius: 12px;
  background: var(--ct-input);
  color: var(--ct-text);
  font: inherit;
  box-shadow: none;
}
.ct-form textarea { min-height: 140px; resize: vertical; }
.ct-form input[aria-invalid="true"],
.ct-form select[aria-invalid="true"],
.ct-form textarea[aria-invalid="true"] { border-color: var(--ct-error); }
.ct-error { margin: 0; color: var(--ct-error); font-size: 14px; font-weight: 650; }
.ct-error[hidden] { display: none; }
.ct-note, .ct-quiet { margin: 0; color: var(--ct-muted); font-size: 14px; }
.ct-check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.ct-check input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--wf-primary, #2459E0); }
.ct-form .ct-btn { width: 100%; }
.ct-status { margin: 0; font-weight: 650; }
.ct-status[hidden] { display: none; }
.ct-status.is-error { color: var(--ct-error); }
.ct-status.is-ok { color: #067647; }
[data-theme="dark"] .ct-status.is-ok { color: #8ee0b2; }
#ct-form-view[hidden],
.ct-success[hidden] { display: none; }
#ct-success { scroll-margin-top: 96px; }
.ct-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 420px;
  padding: 56px 28px;
}
.ct-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #e5f6ee;
  color: #067647;
}
[data-theme="dark"] .ct-success-icon {
  background: rgba(142, 224, 178, 0.14);
  color: #8ee0b2;
}
main.ct-page .ct-success h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}
main.ct-page .ct-success h2:focus { outline: none; }
main.ct-page .ct-success h2:focus-visible {
  outline: 2px solid var(--wf-focus);
  outline-offset: 4px;
}
.ct-success-copy {
  max-width: 46ch;
  margin: 0;
  color: var(--ct-muted);
  font-size: 16px;
  line-height: 1.6;
}
.ct-success-email {
  margin: 0;
  color: var(--ct-text);
  font-weight: 750;
  word-break: break-word;
}
.ct-success .ct-btn { width: auto; min-width: 240px; margin-top: 12px; }
main.ct-page .ct-success-link {
  color: var(--ct-link);
  font-weight: 700;
}
main.ct-page .ct-success-link:hover { color: var(--ct-link); }
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ct-side { display: grid; gap: 16px; }
.ct-side > h2 { margin-bottom: 0; }
.ct-card { padding: 18px; }
.ct-card p { margin: 0 0 12px; color: var(--ct-muted); }
.ct-mails { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ct-mails li, .ct-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ct-mails li { align-items: center; }
.ct-label, .ct-name { display: block; font-weight: 750; color: var(--ct-text); }
.ct-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--ct-surface);
  color: var(--ct-link);
}
.ct-icon svg { width: 18px; height: 18px; }
.ct-card-head h3 { margin-top: 2px; }
.ct-card .ct-card-head p { margin: 0; }
.ct-customer { display: grid; gap: 14px; }
.ct-customer .ct-btn { width: 100%; margin: 0; }
.ct-rows { display: grid; gap: 2px; }
.ct-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ct-text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
main.ct-page .ct-row { color: var(--ct-text); font-weight: 700; }
main.ct-page .ct-row:hover { color: var(--ct-link); }
.ct-row .ct-icon { width: 32px; height: 32px; }

.ct-company { padding-top: 0; }
.ct-company-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: 24px 32px;
  align-items: center;
  padding: 22px 24px;
}
.ct-company-brand { display: flex; gap: 14px; align-items: center; }
.ct-company-panel h2 { margin-bottom: 4px; font-size: 22px; }
.ct-company-panel p { margin: 0; color: var(--ct-muted); }
.ct-company-meta p:first-child { color: var(--ct-text); font-weight: 750; }
.ct-company-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; justify-items: start; }

.ct-next-section { padding-top: 8px; }
main.ct-page .ct-next-section h2 { margin-bottom: 40px; text-align: center; }
.ct-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.ct-next a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 100%;
  padding: 18px;
  color: inherit;
}
.ct-next a:hover { border-color: var(--ct-link); }
.ct-desc { display: block; margin-top: 4px; color: var(--ct-muted); font-size: 14px; }
main.ct-page .ct-cta { margin-top: auto; color: var(--ct-link); font-weight: 700; }
main.ct-page + .site-footer { margin-top: 0; }

@media (max-width: 980px) {
  .ct-hero-grid, .ct-layout, .ct-company-panel, .ct-next { grid-template-columns: 1fr; }
  .ct-hero-art { order: 2; }
  .ct-hero-art img { width: min(100%, 280px); margin-inline: auto; }
  .ct-company-panel ul { justify-items: start; }
}
@media (max-width: 699px) {
  .ct-wrap { width: min(1240px, calc(100% - 32px)); }
  .ct-panel { padding: 20px; }
  .ct-fields { grid-template-columns: 1fr; }
  main.ct-page h1 { font-size: 34px; }
  .ct-hero-art img { width: min(100%, 200px); }
  .ct-form .ct-btn, .ct-card .ct-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-btn { transition: none; }
}
