.contact-page {
  --contact-width: 1080px;
  background: #f8f9fc;
}

.contact-wrap {
  width: min(100% - 48px, var(--contact-width));
  margin-inline: auto;
}

.contact-hero {
  padding: clamp(34px, 6vw, 60px) 0 clamp(38px, 6vw, 64px);
  background:
    radial-gradient(ellipse at 82% 0, rgba(106, 69, 227, .07), transparent 36%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.contact-breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: clamp(28px, 5vw, 48px);
  color: var(--muted);
  font-size: .8125rem;
}

.contact-breadcrumb a:hover {
  color: var(--purple);
}

.contact-hero .service-kicker,
.contact-kicker {
  color: var(--purple);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.contact-hero h1 {
  max-width: 780px;
  margin: 12px 0 16px;
  color: var(--navy-d);
  font-size: clamp(2.3rem, 5.8vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.contact-hero p {
  max-width: 660px;
  color: var(--muted-2);
  font-size: clamp(1rem, 1.45vw, 1.125rem);
  line-height: 1.75;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(38px, 6vw, 68px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.contact-sidebar {
  display: grid;
  gap: 16px;
}

.contact-sidebar__intro {
  margin-bottom: 7px;
}

.contact-sidebar__intro h2,
.contact-form-card__head h2,
.contact-success h2 {
  margin: 10px 0;
  color: var(--navy-d);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -.035em;
}

.contact-sidebar__intro p,
.contact-form-card__head p {
  color: var(--muted-2);
  font-size: .95rem;
  line-height: 1.7;
}

.contact-method {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .025);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  border-color: #d4cafa;
  box-shadow: 0 9px 24px rgba(15, 23, 42, .07);
}

.contact-method__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #f1edff;
  color: var(--purple);
}

.contact-method__icon svg {
  width: 22px;
  height: 22px;
}

.contact-method__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.contact-method__copy strong {
  color: var(--ink);
  font-size: .96rem;
}

.contact-method__copy > span:not(.contact-method__link) {
  color: var(--muted-2);
  font-size: .82rem;
  line-height: 1.5;
}

.contact-method__link {
  margin-top: 5px;
  color: var(--purple);
  font-size: .8125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-method__arrow {
  color: #8993a5;
  font-size: 1rem;
}

.contact-response {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 11px;
  padding: 14px 2px;
  color: var(--muted-2);
  font-size: .84rem;
  line-height: 1.7;
}

.contact-response strong {
  color: var(--ink);
}

.contact-response__mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #eaf5ef;
  color: #167347;
  font-size: .8rem;
  font-weight: 800;
}

.contact-purchase {
  padding: 19px;
  border: 1px solid #e5e0f7;
  border-radius: 14px;
  background: #f4f1ff;
}

.contact-purchase p {
  margin: 8px 0 12px;
  color: #45516a;
  font-size: .88rem;
  line-height: 1.6;
}

.contact-purchase a,
.contact-success__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 800;
}

.contact-purchase a:hover,
.contact-success__home:hover {
  color: var(--purple);
}

.contact-form-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid #e7eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(15, 23, 42, .055);
}

.contact-form-card__head {
  margin-bottom: 24px;
}

.contact-form-card__head h2 {
  margin-bottom: 7px;
}

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

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.form-field label {
  color: #263248;
  font-size: .84rem;
  font-weight: 700;
}

.form-field label > span:first-child:not(.form-field__optional) {
  color: var(--purple);
}

.form-field__optional {
  color: #7b8798;
  font-size: .75rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #dce1ea;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 400 .9rem/1.5 var(--font);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--purple);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(106, 69, 227, .13);
}

.form-field [aria-invalid="true"] {
  border-color: #b42318;
  background: #fffdfd;
}

.form-field__hint,
.form-field__error {
  font-size: .76rem;
  line-height: 1.5;
}

.form-field__hint {
  color: var(--muted);
}

.form-field__error {
  color: #b42318;
  font-weight: 600;
}

.contact-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form__trap label,
.contact-form__trap input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form__privacy {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}

.contact-form__privacy a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-submit {
  width: 100%;
  min-height: 50px;
  gap: 10px;
  font: 700 .95rem/1 var(--font);
}

.contact-submit .ico {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.contact-submit:hover .ico {
  transform: translateX(3px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: none;
}

.contact-submit__loading {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin .7s linear infinite;
}

.contact-submit.is-loading .contact-submit__loading {
  display: inline-block;
}

.contact-submit.is-loading .ico {
  display: none;
}

.contact-form__status {
  padding: 12px 14px;
  border: 1px solid #f1c2be;
  border-radius: 9px;
  background: #fff5f4;
  color: #8c1d18;
  font-size: .85rem;
  line-height: 1.6;
}

.contact-success {
  padding: clamp(20px, 4vw, 42px) 0;
  animation: contact-enter .28s ease-out both;
}

.contact-success__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: #eaf5ef;
  color: #167347;
}

.contact-success__icon svg {
  width: 28px;
  height: 28px;
}

.contact-success h2 {
  max-width: 460px;
  margin-top: 10px;
}

.contact-success p {
  max-width: 500px;
  color: var(--muted-2);
  line-height: 1.75;
}

.contact-success__home {
  margin-top: 18px;
}

.contact-page .service-footer {
  background: #fff;
}

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

@keyframes contact-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-sidebar {
    gap: 12px;
  }

  .contact-method {
    padding: 15px;
  }

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

  .contact-purchase .contact-kicker,
  .contact-purchase p {
    grid-column: 1;
  }

  .contact-purchase p {
    margin-bottom: 0;
  }

  .contact-purchase a {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 520px) {
  .contact-wrap {
    width: min(100% - 36px, var(--contact-width));
  }

  .contact-hero {
    padding-top: 28px;
  }

  .contact-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    overflow-wrap: anywhere;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-form-card {
    padding: 22px 18px;
  }

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

  .contact-purchase a {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-method,
  .form-field input,
  .form-field select,
  .form-field textarea,
  .contact-submit .ico {
    transition: none;
  }

  .contact-submit.is-loading .contact-submit__loading {
    display: none;
    animation: none;
  }

  .contact-success {
    animation: none;
  }
}
