.hf-contact-page {
  --hf-navy: #071a39;
  --hf-ink: #10233f;
  --hf-muted: #5e708b;
  --hf-green: #21664e;
  --hf-green-dark: #154c3b;
  --hf-sage: #eaf1eb;
  --hf-cream: #f8f5ee;
  --hf-line: #d8e0dc;
  background: var(--hf-cream);
  color: var(--hf-ink);
  overflow: hidden;
}

.hf-contact-page,
.hf-contact-page * { box-sizing: border-box; }

.hf-contact-page a { color: inherit; }

.hf-contact-hero,
.hf-contact-details,
.hf-team,
.hf-contact-cta {
  width: min(100% - 48px, 1380px);
  margin-inline: auto;
}

.hf-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .78fr);
  gap: clamp(42px, 7vw, 132px);
  align-items: center;
  min-height: min(720px, calc(100vh - 132px));
  padding: clamp(70px, 8vw, 126px) 0;
}

.hf-eyebrow,
.hf-card-kicker,
.hf-team-card__role {
  margin: 0;
  color: var(--hf-green);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hf-contact-hero h1,
.hf-contact-details h2,
.hf-team h2,
.hf-contact-cta h2,
.hf-contact-hero__card h2 {
  margin: 0;
  color: var(--hf-navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

.hf-contact-hero h1 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(54px, 6.3vw, 96px);
  line-height: .96;
}

.hf-contact-hero__lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: #526885;
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.55;
}

.hf-contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hf-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.hf-button:hover { transform: translateY(-2px); }
.hf-button--primary { background: var(--hf-green); box-shadow: 0 12px 24px rgba(33, 102, 78, .2); color: #fff !important; }
.hf-button--primary:hover { background: var(--hf-green-dark); box-shadow: 0 16px 30px rgba(33, 102, 78, .24); }
.hf-button--quiet { border-color: #c9d6ce; background: rgba(255,255,255,.62); color: var(--hf-green) !important; }
.hf-button--light { background: #f8f5ee; color: var(--hf-navy) !important; }
.hf-button--light:hover { background: #fff; }

.hf-contact-note { margin: 18px 0 0; color: var(--hf-muted); font-size: 13px; }
.hf-contact-note span { color: var(--hf-green); font-size: 9px; vertical-align: 2px; }

.hf-contact-hero__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: linear-gradient(145deg, #123c43 0%, #164e43 100%);
  padding: clamp(32px, 4vw, 58px);
  box-shadow: 0 28px 56px rgba(7, 26, 57, .17);
  color: #eef6ee;
}

.hf-contact-hero__card::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(232, 202, 134, .45);
  border-radius: 50%;
  content: '';
}

.hf-contact-hero__card h2 { position: relative; z-index: 1; max-width: 460px; margin-top: 18px; color: #fff; font-size: clamp(34px, 3vw, 52px); line-height: .98; }
.hf-contact-hero__card > p:not(.hf-card-kicker) { position: relative; z-index: 1; max-width: 480px; margin: 24px 0 0; color: #d3e2dc; font-size: 16px; line-height: 1.65; }
.hf-card-kicker { color: #f1d18e; }

.hf-check-list { position: relative; z-index: 1; display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; color: #f2f6f0; font-size: 14px; line-height: 1.4; }
.hf-check-list li { display: flex; align-items: flex-start; gap: 11px; }
.hf-check-list li span { display: inline-grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #eff4e8; color: var(--hf-green); font-weight: 800; }

.hf-contact-details { padding: clamp(72px, 8vw, 124px) 0 clamp(60px, 7vw, 102px); }
.hf-section-heading--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .52fr); gap: 60px; align-items: end; }
.hf-section-heading h2 { margin-top: 16px; font-size: clamp(38px, 4.5vw, 68px); line-height: .98; }
.hf-section-heading--split > p { max-width: 430px; margin: 0 0 4px auto; color: var(--hf-muted); font-size: 16px; line-height: 1.6; }

.hf-contact-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.hf-info-card { display: flex; min-height: 164px; gap: 14px; border: 1px solid var(--hf-line); border-radius: 16px; background: rgba(255,255,255,.67); padding: 22px; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.hf-info-card:hover { border-color: var(--hf-green); box-shadow: 0 12px 26px rgba(16,35,63,.08); transform: translateY(-3px); }
.hf-info-card--static:hover { transform: none; box-shadow: none; }
.hf-info-card__icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--hf-sage); color: var(--hf-green); font-size: 19px; }
.hf-info-card strong { display: block; color: var(--hf-navy); font-size: 15px; line-height: 1.3; }
.hf-info-card small { display: block; margin-top: 10px; color: var(--hf-muted); font-size: 13px; line-height: 1.5; }
.hf-branches { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; border-top: 1px solid var(--hf-line); margin-top: 24px; padding-top: 18px; color: var(--hf-muted); font-size: 13px; }
.hf-branches strong { color: var(--hf-ink); font-size: 13px; font-weight: 650; }

.hf-team { padding: clamp(72px, 8vw, 126px) 0; }
.hf-section-heading--center { max-width: 820px; margin-inline: auto; text-align: center; }
.hf-section-heading--center h2 { max-width: 760px; margin-inline: auto; }
.hf-section-heading--center > p:last-child { max-width: 670px; margin: 24px auto 0; color: var(--hf-muted); font-size: 16px; line-height: 1.65; }
.hf-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px; }
.hf-team-card { overflow: hidden; border: 1px solid var(--hf-line); border-radius: 18px; background: rgba(255,255,255,.72); transition: transform .25s ease, box-shadow .25s ease; }
.hf-team-card:hover { transform: translateY(-5px); box-shadow: 0 20px 36px rgba(16,35,63,.1); }
.hf-team-card__photo { position: relative; height: 300px; overflow: hidden; background: var(--hf-sage); }
.hf-team-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hf-team-card__photo span { position: absolute; right: 14px; bottom: 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(26, 115, 82, .94); padding: 5px 10px; color: #fff; font-size: 11px; font-weight: 750; }
.hf-team-card__body { padding: 22px 22px 20px; }
.hf-team-card__role { color: var(--hf-green); font-size: 10px; letter-spacing: .16em; }
.hf-team-card h3 { margin: 9px 0 0; color: var(--hf-navy); font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 400; letter-spacing: -.03em; }
.hf-team-card__body > p:not(.hf-team-card__role) { min-height: 126px; margin: 14px 0 18px; color: var(--hf-muted); font-size: 14px; line-height: 1.58; }
.hf-team-card__footer { display: flex; gap: 9px; border-top: 1px solid var(--hf-line); padding-top: 16px; color: var(--hf-ink); font-size: 12px; font-weight: 650; line-height: 1.45; }
.hf-team-card__footer span { display: inline-grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d9efe3; color: var(--hf-green); font-size: 12px; }

.hf-contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-radius: 24px; background: var(--hf-navy); margin-bottom: clamp(60px, 8vw, 120px); padding: clamp(36px, 5vw, 66px); }
.hf-contact-cta .hf-eyebrow { color: #d9bf7d; }
.hf-contact-cta h2 { max-width: 720px; margin-top: 15px; color: #fff; font-size: clamp(35px, 4vw, 60px); line-height: .99; }
.hf-contact-cta p:last-child { max-width: 640px; margin: 18px 0 0; color: #b8c6d5; font-size: 16px; line-height: 1.5; }

@media (max-width: 1120px) {
  .hf-contact-hero { gap: 48px; }
  .hf-contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-team-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-team-card__photo { height: 360px; }
}

@media (max-width: 720px) {
  .hf-contact-hero,
  .hf-contact-details,
  .hf-team,
  .hf-contact-cta { width: min(100% - 28px, 640px); }
  .hf-contact-hero { display: block; min-height: 0; padding: 54px 0 38px; }
  .hf-contact-hero h1 { margin-top: 16px; font-size: clamp(46px, 14vw, 70px); }
  .hf-contact-hero__lead { margin-top: 22px; font-size: 16px; }
  .hf-contact-hero__actions { display: grid; grid-template-columns: 1fr; margin-top: 24px; }
  .hf-button { width: 100%; }
  .hf-contact-hero__card { margin-top: 34px; padding: 28px; }
  .hf-contact-hero__card h2 { font-size: 38px; }
  .hf-contact-details { padding: 54px 0 42px; }
  .hf-section-heading--split { display: block; }
  .hf-section-heading h2 { font-size: 43px; }
  .hf-section-heading--split > p { margin: 18px 0 0; font-size: 15px; }
  .hf-contact-info-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .hf-info-card { min-height: 0; padding: 18px; }
  .hf-branches { display: grid; gap: 8px; }
  .hf-team { padding: 54px 0; }
  .hf-team-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .hf-team-card__photo { height: 360px; }
  .hf-team-card__body > p:not(.hf-team-card__role) { min-height: 0; }
  .hf-contact-cta { display: block; margin-bottom: 50px; padding: 30px 24px; }
  .hf-contact-cta h2 { font-size: 42px; }
  .hf-contact-cta .hf-button { margin-top: 26px; }
}


/* 404 page */
body.hf-404-active .hf-lang {
  display: none !important;
}

.hf-404-page {
  min-height: 68vh;
  padding: clamp(70px, 9vw, 132px) 0 clamp(76px, 10vw, 140px);
  background: #f7f5ef;
}

.hf-404-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}

.hf-404-hero__copy {
  max-width: 710px;
}

.hf-404-code {
  margin: 20px 0 8px;
  color: #d9ae63;
  font: 600 clamp(58px, 8vw, 108px)/.82 Georgia, 'Times New Roman', serif;
  letter-spacing: -.06em;
}

.hf-404-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #071631;
  font: 500 clamp(42px, 5.2vw, 76px)/.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
}

.hf-404-lead {
  max-width: 610px;
  margin: 26px 0 0;
  color: #526784;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.hf-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hf-404-card {
  position: relative;
  min-height: 300px;
  padding: 44px 42px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, #102a43 0%, #174e48 100%);
  box-shadow: 0 26px 55px rgba(7, 22, 49, .16);
}

.hf-404-card::before,
.hf-404-card::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
}

.hf-404-card::before { width: 270px; height: 270px; right: -120px; top: -90px; }
.hf-404-card::after { width: 210px; height: 210px; left: -105px; bottom: -100px; }

.hf-404-card h2 {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 16px 0 18px;
  font: 500 clamp(30px, 3vw, 46px)/1.04 Georgia, 'Times New Roman', serif;
  letter-spacing: -.035em;
}

.hf-404-card > p:not(.hf-card-kicker) {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.hf-404-card__mark {
  position: absolute;
  right: 36px;
  bottom: 32px;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #102a43;
  background: #e9c580;
  font-size: 28px;
}

@media (max-width: 760px) {
  .hf-404-page { padding: 58px 0 76px; }
  .hf-404-hero { width: min(100% - 32px, 560px); grid-template-columns: 1fr; gap: 34px; }
  .hf-404-hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .hf-404-card { min-height: 250px; padding: 32px 28px; }
  .hf-404-actions { display: grid; grid-template-columns: 1fr; }
  .hf-404-actions .hf-button { width: 100%; }
}
