:root {
  --bg: hsl(220 20% 98.5%);
  --fg: hsl(240 10% 12%);
  --card-bg: #fff;
  --border: hsl(240 6% 88%);
  --border-soft: hsl(240 6% 91%);
  --muted: hsl(240 4% 46%);
  --muted-soft: hsl(240 5% 62%);
  --primary: hsl(250 85% 60%);
  --primary-soft: hsl(250 85% 60% / 0.08);
  --success: hsl(150 55% 34%);
  --danger: hsl(5 55% 46%);
  --shadow: hsl(250 35% 28% / 0.11);
  --shell-bg: hsla(243, 26%, 87%, 0.96);
  --shell-border: hsl(250 18% 78% / 0.95);
}

[data-theme="dark"] {
  --bg: hsl(240 10% 7%);
  --fg: hsl(240 5% 96%);
  --card-bg: hsl(240 8% 10%);
  --border: hsl(240 4% 18%);
  --border-soft: hsl(240 5% 16%);
  --muted: hsl(240 5% 64%);
  --muted-soft: hsl(240 5% 48%);
  --primary: hsl(250 90% 72%);
  --primary-soft: hsl(250 90% 72% / 0.11);
  --success: hsl(150 56% 62%);
  --danger: hsl(5 78% 70%);
  --shadow: hsl(240 35% 2% / 0.46);
  --shell-bg: hsla(240, 8%, 10%, 0.96);
  --shell-border: hsl(240 8% 20% / 0.95);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 3rem;
}

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

button {
  cursor: pointer;
}

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

.contact-main {
  width: min(42rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-top: 5.72rem;
  padding-bottom: 3rem;
}

.contact-hero {
  text-align: center;
  animation: contactIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.94rem;
}

.contact-brand-icon {
  width: 4.02rem;
  height: 4.02rem;
  filter: drop-shadow(0 7px 16px var(--shadow));
}

.contact-brand-icon .mark-body {
  fill: var(--primary);
}

.contact-brand-icon .mark-diamond {
  fill: var(--bg);
}

.contact-title {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(2.18rem, 6vw, 2.82rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--fg);
  margin: 0 0 0.74rem;
}

.contact-lead {
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 0.96rem;
  line-height: 1.74;
  color: var(--fg);
  opacity: 0.78;
}

.contact-lead strong {
  color: var(--fg);
  font-weight: 650;
  opacity: 1;
}

.contact-editorial {
  margin-top: 1.78rem;
  border-top: 1px solid var(--border-soft);
  animation: contactIn 0.38s 0.09s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-intro {
  padding: 1.48rem 0;
  display: grid;
  grid-template-columns: minmax(0, 9.8rem) minmax(0, 1fr);
  gap: 1.28rem;
  align-items: baseline;
}

.contact-kicker,
.field-label {
  display: block;
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 860;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-intro-text {
  margin: 0;
  color: var(--fg);
  opacity: 0.82;
  font-size: 0.94rem;
  line-height: 1.68;
}

.contact-form {
  border-top: 1px solid var(--border-soft);
  padding: 1.42rem 0 1.48rem;
}

.form-stack {
  display: grid;
  gap: 1.42rem;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 9.8rem) minmax(0, 1fr);
  gap: 1.28rem;
  align-items: start;
}

.field-label {
  padding-top: 0.72rem;
}

.form-row--message .field-label {
  padding-top: 0.3rem;
}

.field-control {
  min-width: 0;
}

.select-wrap {
  position: relative;
}

.contact-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 2.75rem;
  padding: 0 2.25rem 0 0.05rem;
  border: 0;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 0.96rem;
  font-weight: 620;
  outline: none;
  cursor: pointer;
}

.contact-select:focus {
  border-bottom-color: color-mix(in srgb, var(--primary) 70%, transparent);
  box-shadow: 0 3px 0 -1px color-mix(in srgb, var(--primary) 18%, transparent);
}

.select-chevron {
  position: absolute;
  right: 0.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.motive-note {
  margin-top: 0.58rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.52;
}

.contact-textarea,
.contact-input {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  outline: none;
  padding: 0.1rem 0.05rem 0.72rem;
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.contact-textarea {
  min-height: 8.25rem;
  resize: vertical;
  line-height: 1.68;
  font-size: 0.96rem;
}

.contact-input {
  height: 2.55rem;
  font-size: 0.94rem;
}

.contact-textarea:focus,
.contact-input:focus {
  border-bottom-color: color-mix(in srgb, var(--primary) 70%, transparent);
  box-shadow: 0 3px 0 -1px color-mix(in srgb, var(--primary) 18%, transparent);
}

.contact-textarea::placeholder,
.contact-input::placeholder {
  color: var(--muted-soft);
  font-weight: 460;
}

.field-label em {
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 620;
}

.field-help {
  margin-top: 0.52rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.48;
}

.contact-actions {
  margin-top: 1.42rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: minmax(0, 9.8rem) minmax(0, 1fr);
  gap: 1.28rem;
  align-items: center;
}

.contact-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.38rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(250 85% 60%), hsl(272 72% 66%));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 720;
  box-shadow: 0 2px 10px hsl(250 80% 56% / 0.2);
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px hsl(250 80% 56% / 0.28);
}

.contact-submit:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.contact-status {
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
  line-height: 1.42;
}

.contact-status.ok {
  color: var(--success);
  font-weight: 650;
}

.contact-status.error {
  color: var(--danger);
  font-weight: 650;
}

.contact-smallprint {
  padding: 1.3rem 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: minmax(0, 9.8rem) minmax(0, 1fr);
  gap: 1.28rem;
  align-items: start;
}

.contact-smallprint-title {
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 860;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.smallprint-list {
  display: grid;
  gap: 0.56rem;
}

.smallprint-item {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.54rem;
  align-items: start;
  color: var(--fg);
  opacity: 0.82;
  font-size: 0.84rem;
  line-height: 1.54;
}

.smallprint-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 780;
}

.site-footer-std {
  margin-top: 2.12rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.footer-top-std {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.footer-links-std {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 0.6rem;
}

.footer-links-std a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.12s ease;
}

.footer-links-std a:hover {
  color: var(--fg);
}

.footer-legal-std a {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.72;
}

.footer-sep-std {
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.5;
  user-select: none;
}

.footer-copy-std {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
  line-height: 1.4;
}

@keyframes contactIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 640px) {
  .brand-row,
  .contact-main {
    width: min(42rem, calc(100% - 1.2rem));
  }

  .contact-main {
    padding-top: 5.35rem;
    padding-bottom: 2.4rem;
  }

  .contact-hero {
    text-align: center;
  }

  .contact-brand {
    justify-content: center;
    margin-bottom: 0.82rem;
  }

  .contact-brand-icon {
    width: 3.42rem;
    height: 3.42rem;
  }

  .contact-title {
    font-size: 2.12rem;
    margin-bottom: 0.62rem;
  }

  .contact-lead {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .contact-editorial {
    margin-top: 1.42rem;
  }

  .contact-intro,
  .form-row,
  .contact-actions,
  .contact-smallprint {
    grid-template-columns: 1fr;
    gap: 0.58rem;
  }

  .contact-intro {
    padding: 1.14rem 0 1.22rem;
  }

  .contact-form {
    padding: 1.14rem 0 1.28rem;
  }

  .form-stack {
    gap: 1.14rem;
  }

  .field-label,
  .form-row--message .field-label {
    padding-top: 0;
  }

  .contact-textarea {
    min-height: 7.6rem;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .contact-select {
    height: 2.7rem;
    font-size: 0.94rem;
  }

  .contact-actions {
    margin-top: 1.16rem;
    padding-top: 1.08rem;
  }

  .contact-submit {
    width: 100%;
    min-height: 2.56rem;
  }

  .contact-status {
    text-align: left;
    font-size: 0.8rem;
  }

  .contact-smallprint {
    padding: 1.12rem 0 1.18rem;
  }

  .smallprint-item {
    font-size: 0.82rem;
  }
}
