.contact-page {
  color: var(--bv-ink);
  background: #f3f6f8;
}

.contact-hero {
  padding: clamp(34px, 5vw, 62px) 0;
  background: linear-gradient(125deg, #fff 0%, #f4f9fb 72%, #e9f3f7 100%);
  border-bottom: 1px solid var(--bv-line);
}

.contact-hero__inner { width: min(calc(100% - 40px), 1120px); }
.contact-kicker { display: block; margin-bottom: 9px; color: var(--bv-brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.contact-hero h1 { max-width: 760px; margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -.05em; }
.contact-hero p { max-width: 720px; margin: 18px 0 0; color: var(--bv-muted); font-size: 18px; line-height: 1.7; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 24px;
  width: min(calc(100% - 40px), 1120px);
  padding-top: 32px;
  padding-bottom: 80px;
  align-items: start;
}

.contact-form-card,
.contact-info-card {
  background: #fff;
  border: 1px solid #dce6eb;
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(17, 29, 44, .05);
}

.contact-form-card { padding: clamp(26px, 4vw, 44px); }
.contact-form-card__header { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 17px; padding-bottom: 26px; border-bottom: 1px solid var(--bv-line); }
.contact-step { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--bv-brand); border-radius: 10px; font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.contact-form-card h2 { margin: 0; font-size: clamp(28px, 3.5vw, 40px); font-weight: 680; line-height: 1.1; letter-spacing: -.035em; }
.contact-form-card__header p { margin: 8px 0 0; color: var(--bv-muted); font-size: 14px; }

.contact-form { margin-top: 28px; }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-field { margin-bottom: 20px; }
.contact-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 760; }
.contact-field label span { color: #bb4f33; }
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  color: var(--bv-ink);
  background: #fff;
  border: 1px solid #c9d8e0;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-field input,
.contact-field select { min-height: 50px; padding: 0 14px; }
.contact-field textarea { min-height: 180px; padding: 13px 14px; line-height: 1.6; resize: vertical; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus { outline: 0; border-color: var(--bv-brand); box-shadow: 0 0 0 3px rgba(57, 131, 171, .15); }
.contact-field [aria-invalid="true"] { border-color: #b64b3a; }
.contact-field__help,
.contact-field__error { display: block; margin-top: 7px; font-size: 13px; line-height: 1.45; }
.contact-field__help { color: var(--bv-muted); }
.contact-field__error { color: #a53629; font-weight: 650; }

.contact-consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; margin: 4px 0 22px; padding: 15px; background: #f3f7f9; border: 1px solid transparent; border-radius: 10px; }
.contact-consent--error { border-color: #d89b91; }
.contact-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--bv-brand); }
.contact-consent label { color: #435565; font-size: 13px; line-height: 1.55; }

.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 21px; color: #fff; background: var(--bv-brand); border: 0; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.contact-submit:hover { background: var(--bv-brand-dark); }
.contact-submit:focus-visible { outline: 3px solid rgba(57, 131, 171, .3); outline-offset: 3px; }

.contact-notice { margin-top: 24px; padding: 18px 20px; border-radius: 11px; }
.contact-notice strong { display: block; margin-bottom: 4px; }
.contact-notice p { margin: 0; font-size: 14px; line-height: 1.55; }
.contact-notice--success { color: #145d43; background: #e9f7f1; border: 1px solid #bde3d3; }
.contact-notice--error { color: #853225; background: #fff1ee; border: 1px solid #efc4bc; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.contact-sidebar { display: grid; gap: 18px; }
.contact-info-card { padding: 26px; }
.contact-info-card h2 { margin: 0; font-size: 23px; font-weight: 680; line-height: 1.2; letter-spacing: -.025em; }
.contact-info-card p { margin: 12px 0 18px; color: var(--bv-muted); font-size: 15px; line-height: 1.65; }
.contact-info-card a { color: var(--bv-brand-dark); font-size: 14px; font-weight: 750; text-decoration: none; }
.contact-info-card a:hover { color: var(--bv-accent); }
.contact-mail-link { display: block; padding: 13px 14px; background: #eef5f8; border-radius: 9px; overflow-wrap: anywhere; }
.contact-info-card--muted { box-shadow: none; }

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .contact-hero { padding: 28px 0 34px; }
  .contact-hero__inner,
  .contact-layout { width: min(calc(100% - 28px), 1120px); }
  .contact-hero h1 { font-size: 40px; }
  .contact-hero p { font-size: 16px; }
  .contact-layout { padding-top: 14px; padding-bottom: 58px; }
  .contact-form-card { padding: 24px 19px; border-radius: 15px; }
  .contact-form-card__header { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .contact-step { width: 34px; height: 34px; border-radius: 8px; }
  .contact-form-card h2 { font-size: 29px; }
  .contact-form__row,
  .contact-sidebar { grid-template-columns: 1fr; gap: 0; }
  .contact-info-card { margin-top: 14px; padding: 22px; border-radius: 14px; }
  .contact-submit { width: 100%; }
}
