:root {
  --hgl-ink: #1e2534;
  --hgl-muted: #62697a;
  --hgl-paper: #fff9f6;
  --hgl-panel: #ffffff;
  --hgl-pink: #f7dce8;
  --hgl-peach: #ffd9c8;
  --hgl-lilac: #ddd4ff;
  --hgl-mint: #cfeee5;
  --hgl-line: #e9e2e4;
  --hgl-accent: #7d5ce7;
  --hgl-accent-dark: #6240cf;
  --hgl-shadow: 0 12px 34px rgba(63, 49, 82, .09);
  --hgl-radius: 22px;
  --hgl-max: 1180px;
  color: var(--hgl-ink);
  background: var(--hgl-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hgl-paper); color: var(--hgl-ink); line-height: 1.55; }
main { display: flex; flex-direction: column; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

.hgl-skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 12px;
  background: var(--hgl-ink);
  color: #fff;
}
.hgl-skip:focus { transform: none; }

.hgl-header {
  width: min(calc(100% - 32px), var(--hgl-max));
  min-height: 70px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.hgl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}
.hgl-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #cabfe5;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hgl-lilac), var(--hgl-peach));
  color: #4d3b7a;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(91, 64, 148, .12);
}
.hgl-brand > span:last-child { display: grid; line-height: 1.08; }
.hgl-brand b { font-size: .98rem; }
.hgl-brand small { margin-top: 4px; color: var(--hgl-muted); font-size: .7rem; }
.hgl-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.hgl-nav a { font-size: .88rem; font-weight: 750; text-decoration: none; }
.hgl-nav a:hover,
.hgl-nav a:focus-visible { color: var(--hgl-accent-dark); text-decoration: underline; text-underline-offset: 5px; }

.hgl-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--hgl-accent);
  border-radius: 999px;
  background: var(--hgl-accent);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(98, 64, 207, .2);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.hgl-button:hover,
.hgl-button:focus-visible { transform: translateY(-2px); background: var(--hgl-accent-dark); box-shadow: 0 11px 24px rgba(98, 64, 207, .24); }
.hgl-button--small { min-height: 40px; padding: 0 17px; font-size: .84rem; }
.hgl-button--ghost { background: #fff; color: var(--hgl-ink); border-color: #d9d1df; box-shadow: none; }
.hgl-button--ghost:hover,
.hgl-button--ghost:focus-visible { background: #f8f4ff; color: var(--hgl-accent-dark); }

.hgl-hero {
  width: min(calc(100% - 32px), var(--hgl-max));
  margin: 10px auto 0;
  padding: clamp(48px, 7vw, 78px) 24px;
  border: 1px solid #eadfea;
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 24%, rgba(247, 220, 232, .9), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(207, 238, 229, .9), transparent 28%),
    linear-gradient(135deg, #fff, #faf5ff 48%, #fff4ee);
  text-align: center;
  box-shadow: var(--hgl-shadow);
}
.hgl-hero__copy { max-width: 760px; margin: 0 auto; }
.hgl-eyebrow {
  margin: 0 0 10px;
  color: var(--hgl-accent-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hgl-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.hgl-lead { max-width: 660px; margin: 20px auto 0; color: var(--hgl-muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.hgl-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.hgl-trust {
  width: min(calc(100% - 32px), 980px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hgl-trust div {
  min-height: 82px;
  padding: 16px 18px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--hgl-line);
  border-radius: 18px;
  background: var(--hgl-panel);
  text-align: center;
}
.hgl-trust b { font-family: Georgia, serif; font-size: 1.35rem; line-height: 1; }
.hgl-trust span { color: var(--hgl-muted); font-size: .78rem; line-height: 1.35; }

.hgl-section {
  width: min(calc(100% - 32px), var(--hgl-max));
  margin: 0 auto;
  padding: 70px 0 0;
}
.hgl-section--tint {
  width: min(calc(100% - 32px), var(--hgl-max));
  margin-top: 70px;
  padding: 42px;
  border: 1px solid #e4dcf3;
  border-radius: 28px;
  background: linear-gradient(145deg, #f3efff, #fff8f2);
}
.hgl-section__head {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
  align-items: end;
  gap: 32px;
}
.hgl-section__head h2,
.hgl-guide > h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hgl-section__head > p { margin: 0; color: var(--hgl-muted); font-size: .92rem; }

.hgl-filters { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hgl-filters button {
  padding: 8px 13px;
  border: 1px solid #ddd4e8;
  border-radius: 999px;
  background: #fff;
  color: var(--hgl-muted);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.hgl-filters button:hover,
.hgl-filters button:focus-visible,
.hgl-filters button.is-active { border-color: var(--hgl-accent); background: #eee8ff; color: var(--hgl-accent-dark); }

.hgl-profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hgl-profile {
  min-width: 0;
  border: 1px solid var(--hgl-line);
  border-radius: var(--hgl-radius);
  background: var(--hgl-panel);
  box-shadow: 0 8px 24px rgba(67, 48, 75, .06);
}
.hgl-profile__media { position: relative; display: block; padding: 8px 8px 0; text-decoration: none; }
.hgl-profile__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #f0ebf0; }
.hgl-age {
  position: absolute;
  right: 16px;
  bottom: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(30, 37, 52, .86);
  color: #fff;
  font-size: .68rem;
  font-weight: 850;
}
.hgl-profile__body { padding: 13px 14px 16px; }
.hgl-kicker { margin: 0 0 4px; color: var(--hgl-accent-dark); font-size: .64rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hgl-profile h3 { margin: 0; font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.15; }
.hgl-profile__body > p:not(.hgl-kicker) { min-height: 58px; margin: 8px 0 10px; color: var(--hgl-muted); font-size: .78rem; line-height: 1.45; }
.hgl-text-link { color: var(--hgl-accent-dark); font-size: .78rem; font-weight: 900; text-decoration: none; }
.hgl-text-link:hover,
.hgl-text-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.hgl-source-note { margin: 15px 0 0; color: var(--hgl-muted); font-size: .74rem; }

.hgl-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hgl-feature-grid article {
  padding: 20px;
  border: 1px solid rgba(208, 198, 226, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}
.hgl-feature-grid span { color: var(--hgl-accent); font-size: .68rem; font-weight: 950; letter-spacing: .12em; }
.hgl-feature-grid h3 { margin: 7px 0 6px; font-family: Georgia, serif; font-size: 1.1rem; }
.hgl-feature-grid p { margin: 0; color: var(--hgl-muted); font-size: .82rem; }

.hgl-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hgl-gallery figure { margin: 0; padding: 9px; border: 1px solid var(--hgl-line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(67, 48, 75, .06); }
.hgl-gallery a { display: block; }
.hgl-gallery img { width: 100%; border-radius: 13px; }
.hgl-gallery figcaption { padding: 12px 7px 7px; display: grid; gap: 4px; }
.hgl-gallery figcaption b { font-family: Georgia, serif; font-size: 1rem; }
.hgl-gallery figcaption span { color: var(--hgl-muted); font-size: .78rem; }

.hgl-guide { order: 98; margin-top: 70px; padding: 42px; border: 1px solid #eaded9; border-radius: 28px; background: linear-gradient(135deg, #fff0e8, #fff 46%, #eef9f5); }
.hgl-guide__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hgl-guide__grid article { padding: 20px; border: 1px solid rgba(227, 211, 207, .82); border-radius: 18px; background: rgba(255, 255, 255, .82); }
.hgl-guide__grid h2 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 1.18rem; line-height: 1.15; }
.hgl-guide__grid p,
.hgl-guide__grid li { color: var(--hgl-muted); font-size: .82rem; }
.hgl-guide__grid p { margin: 0 0 10px; }
.hgl-guide__grid p:last-child { margin-bottom: 0; }
.hgl-guide__grid ul { margin: 10px 0 0; padding-left: 18px; }

.hgl-footer {
  width: min(calc(100% - 32px), var(--hgl-max));
  margin: 70px auto 0;
  padding: 26px 0 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--hgl-line);
}
.hgl-brand--footer .hgl-brand__mark { width: 38px; height: 38px; border-radius: 12px; font-size: 1.15rem; }
.hgl-footer nav { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hgl-footer nav a { color: var(--hgl-muted); font-size: .75rem; font-weight: 750; text-decoration: none; }
.hgl-footer nav a:hover,
.hgl-footer nav a:focus-visible { color: var(--hgl-accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.hgl-footer > p { margin: 0; color: var(--hgl-muted); font-size: .72rem; text-align: right; }

.hgl-legal { max-width: 790px; margin: 0 auto; padding: 48px 20px 72px; }
.hgl-legal__back { align-self: flex-start; margin-bottom: 18px; color: var(--hgl-accent-dark); font-weight: 850; text-decoration: none; }
.hgl-legal article { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--hgl-line); border-radius: 26px; background: #fff; box-shadow: var(--hgl-shadow); }
.hgl-legal h1 { margin: 0 0 16px; font-family: Georgia, serif; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1; }
.hgl-legal h2 { margin: 28px 0 8px; font-family: Georgia, serif; font-size: 1.35rem; }
.hgl-legal p { color: var(--hgl-muted); }
.hgl-legal a { color: var(--hgl-accent-dark); }
.hgl-legal-footer { padding: 20px; border-top: 1px solid var(--hgl-line); color: var(--hgl-muted); font-size: .75rem; text-align: center; }

@media (max-width: 900px) {
  .hgl-header { flex-wrap: wrap; gap: 12px 18px; }
  .hgl-nav { order: 3; width: 100%; justify-content: center; padding: 7px 0 2px; border-top: 1px solid var(--hgl-line); }
  .hgl-header > .hgl-button { margin-left: auto; }
  .hgl-section__head { grid-template-columns: 1fr; gap: 10px; }
  .hgl-section--tint,
  .hgl-guide { padding: 30px; }
  .hgl-feature-grid,
  .hgl-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hgl-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hgl-footer nav { justify-self: center; }
  .hgl-footer > p { text-align: center; }
}

@media (max-width: 760px) {
  .hgl-hero { padding: 44px 18px; border-radius: 24px; }
  .hgl-hero h1 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .hgl-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hgl-trust div { min-height: 94px; padding: 12px 8px; }
  .hgl-trust b { font-size: 1.08rem; }
  .hgl-trust span { font-size: .68rem; }
  .hgl-section { padding-top: 54px; }
  .hgl-section--tint,
  .hgl-guide { margin-top: 54px; padding: 24px 16px; }
  .hgl-profiles { grid-template-columns: 1fr; gap: 14px; }
  .hgl-profile { border-radius: 17px; }
  .hgl-profile__media { padding: 6px 6px 0; }
  .hgl-profile__media img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
  .hgl-profile__body { padding: 11px 10px 13px; }
  .hgl-profile h3 { font-size: 1rem; }
  .hgl-profile__body > p:not(.hgl-kicker) { min-height: 66px; font-size: .7rem; }
  .hgl-feature-grid,
  .hgl-guide__grid { grid-template-columns: 1fr; }
  .hgl-gallery { grid-template-columns: 1fr; }
  .hgl-footer { margin-top: 54px; }
}

@media (max-width: 430px) {
  .hgl-header { width: min(calc(100% - 24px), var(--hgl-max)); }
  .hgl-brand small { font-size: .64rem; }
  .hgl-button--small { min-height: 38px; padding: 0 13px; }
  .hgl-nav { gap: 17px; }
  .hgl-actions { display: grid; }
  .hgl-section__head h2 { font-size: 2rem; }
  .hgl-filters { gap: 6px; }
  .hgl-filters button { padding: 7px 10px; font-size: .71rem; }
  .hgl-profile__body > p:not(.hgl-kicker) { min-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* couk-prepare: localization resilience */
:where(body, body *) {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* couk-prepare: botify localized footer */
.hgl-footer .hgl-brand {
  min-width: 0;
  max-width: 100%;
}
.hgl-footer .hgl-brand > span:last-child {
  min-width: 0;
}
