.groups-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
}

.groups-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-brand);
  background: rgba(255, 255, 255, .96);
}

.groups-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.groups-header-label {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--brand-blue);
  background: var(--brand-yellow);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.groups-main {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: clamp(42px, 7vh, 78px) 0;
  background: linear-gradient(115deg, var(--brand-yellow) 0 42%, var(--surface-soft) 42% 100%);
}

.groups-pattern {
  position: absolute;
  top: -80px;
  left: -40px;
  width: 360px;
  height: 360px;
  opacity: .25;
  background: repeating-linear-gradient(90deg, var(--brand-cyan) 0 58px, transparent 58px 116px), repeating-linear-gradient(0deg, var(--brand-blue) 0 58px, transparent 58px 116px);
  transform: rotate(-9deg);
}

.groups-shell {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(46px, 7vw, 86px);
  align-items: center;
}

.groups-intro-top {
  max-width: 390px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.groups-portrait {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 5px solid var(--brand-white);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 10px 10px 0 var(--brand-cyan);
}

.groups-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.groups-intro h1 {
  margin: 20px 0 18px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 6.4vw, 5.7rem);
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: .98;
}

.groups-intro > p {
  max-width: 390px;
  margin: 0;
  color: var(--brand-blue-deep);
  font-weight: 550;
  font-size: 1.12rem;
  line-height: 1.55;
}

.groups-slogan {
  width: min(330px, 100%);
  height: auto;
  margin-top: 24px;
  object-fit: contain;
  object-position: left;
}

.groups-card {
  width: 100%;
  min-height: 440px;
  padding: clamp(28px, 4vw, 42px);
  border: 2px solid var(--brand-blue);
  border-top: 10px solid var(--brand-yellow);
  border-radius: 30px;
  background: var(--brand-white);
  box-shadow: 0 24px 70px rgba(23, 61, 125, .13);
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.form-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 2px solid var(--brand-blue);
  background: var(--brand-yellow);
  color: var(--brand-blue);
  font-size: .78rem;
  font-weight: 800;
}

.form-heading h2,
.form-heading p {
  margin: 0;
}

.form-heading h2 {
  color: var(--navy);
  font-family: var(--font-primary);
  font-weight: 780;
  font-size: 1.55rem;
  line-height: 1.2;
}

.form-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .86rem;
}

.field-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-weight: 700;
}

.combobox-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  width: 23px;
  height: 23px;
  fill: var(--brand-blue);
  pointer-events: none;
}

.combobox-wrap input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 49px;
  border: 2px solid rgba(41, 87, 164, .26);
  border-radius: 15px;
  outline: 0;
  color: var(--brand-blue-deep);
  background: var(--brand-white);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.combobox-wrap input::placeholder {
  color: var(--text-muted);
}

.combobox-wrap input:focus {
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 175, 239, .18);
}

.combobox-wrap input:invalid:not(:focus) {
  border-color: var(--status-error);
}

.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.location-privacy-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--brand-cyan);
  border-radius: 0 10px 10px 0;
  color: var(--text-body);
  background: rgba(0, 175, 239, .07);
  font-size: .8rem;
  line-height: 1.45;
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: min(230px, 34vh);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border-brand);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(23, 61, 125, .17);
}

.suggestions[hidden] {
  display: none;
}

.suggestions [role="option"] {
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--brand-blue);
  cursor: pointer;
  font-size: .93rem;
  font-weight: 600;
}

.suggestions [role="option"]:hover,
.suggestions [role="option"][aria-selected="true"] {
  color: var(--brand-blue-deep);
  background: var(--brand-yellow-soft);
}

.neighborhood-step {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .24s, transform .24s;
}

.neighborhood-step[hidden] {
  display: none;
}

.neighborhood-step.is-visible {
  opacity: 1;
  transform: none;
}

.step-divider {
  height: 25px;
  display: flex;
  align-items: center;
  margin: 5px 0;
  padding-left: 21px;
}

.step-divider span {
  width: 1px;
  height: 100%;
  background: var(--brand-cyan);
}

.find-button {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--brand-blue);
  box-shadow: 0 13px 28px rgba(41, 87, 164, .2);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.find-button:hover {
  transform: translateY(-2px);
  background: var(--brand-blue-deep);
}

.field-error {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid rgba(168, 68, 54, .2);
  border-radius: 12px;
  color: var(--status-error);
  background: var(--status-error-surface);
  font-size: .84rem;
}

.field-error[hidden] {
  display: none;
}

.field-error strong,
.field-error span {
  display: block;
}

.field-error button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.group-result {
  min-height: 354px;
  text-align: center;
  outline: 0;
}

.group-result[hidden] {
  display: none;
}

.group-result:focus-visible {
  border-radius: 16px;
  box-shadow: 0 0 0 4px rgba(0, 175, 239, .18);
}

.success-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  color: var(--brand-blue);
  background: var(--brand-yellow);
  box-shadow: 0 12px 26px rgba(41, 87, 164, .16);
}

.success-icon svg {
  width: 31px;
  fill: currentColor;
}

.result-kicker {
  margin: 0 0 20px;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--brand-blue);
  background: var(--brand-yellow);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.group-result h2 {
  margin: 0;
}

.group-result h2 span,
.group-result h2 strong {
  display: block;
}

.group-result h2 span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}

.group-result h2 strong {
  margin-top: 4px;
  color: var(--navy);
  font-family: var(--font-primary);
  font-weight: 820;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.12;
}

.result-location {
  margin: 8px 0 15px;
  color: var(--text-muted);
  font-weight: 600;
}

.result-purpose {
  margin: 0 0 18px;
  color: var(--text-body);
  font-size: .9rem;
  line-height: 1.5;
}

.consent-block {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid rgba(41, 87, 164, .28);
  border-radius: 15px;
  color: var(--brand-blue-deep);
  background: var(--brand-yellow-soft);
  text-align: left;
}

.consent-block input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.consent-block label {
  min-height: 44px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.48;
  cursor: pointer;
}

.consent-block:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 175, 239, .18);
}

.consent-block input:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

.consent-support {
  margin: 9px 2px 15px;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.whatsapp-button {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 11px 20px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--brand-blue);
  box-shadow: 0 14px 30px rgba(41, 87, 164, .23);
  font-weight: 700;
  line-height: 1.25;
  transition: transform .2s, background .2s;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  background: var(--brand-blue-deep);
}

.whatsapp-button:disabled {
  color: var(--text-disabled);
  background: var(--surface-disabled);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.whatsapp-button:focus-visible,
.find-button:focus-visible,
.change-location button:focus-visible,
.field-error button:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

.whatsapp-button svg {
  width: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.whatsapp-privacy-note {
  margin: 12px 0 7px;
  color: var(--text-muted);
  font-size: .74rem;
  line-height: 1.45;
}

.result-privacy-link {
  display: inline-block;
  margin-bottom: 17px;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
}

.change-location {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.change-location span {
  margin-right: 4px;
}

.change-location button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.groups-footer {
  padding: 21px 0;
  color: rgba(255, 255, 255, .68);
  background: var(--brand-blue);
  font-size: .76rem;
}

.groups-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.groups-footer-brand { display: flex; align-items: center; gap: 12px; }
.groups-footer-brand img { width: 76px; height: 38px; object-fit: contain; object-position: left; }

.groups-footer p {
  margin: 0;
}

.groups-footer a {
  color: var(--white);
  font-weight: 600;
}

.groups-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.groups-footer a:hover,
.groups-footer a:focus-visible,
.result-privacy-link:hover,
.result-privacy-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .groups-main {
    padding: 38px 0 50px;
    background: linear-gradient(180deg, var(--brand-yellow) 0 33%, var(--surface-soft) 33% 100%);
  }

  .groups-shell {
    width: min(570px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .groups-intro {
    text-align: center;
  }

  .groups-intro .eyebrow {
    justify-content: center;
  }

  .groups-intro-top {
    margin-inline: auto;
    justify-content: center;
  }

  .groups-portrait {
    width: 86px;
    height: 86px;
  }

  .groups-intro h1 {
    margin: 15px 0 12px;
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .groups-intro > p {
    margin-inline: auto;
    font-size: 1rem;
  }

  .groups-slogan {
    width: min(310px, 92%);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .groups-header-inner {
    min-height: 70px;
  }

  .groups-header-label {
    display: none;
  }

  .groups-main {
    padding: 28px 0 38px;
  }

  .groups-shell {
    width: min(100% - 24px, 570px);
    gap: 24px;
  }

  .groups-intro h1 {
    font-size: clamp(2.7rem, 13.5vw, 3.8rem);
  }

  .groups-intro-top {
    gap: 16px;
  }

  .groups-portrait {
    width: 74px;
    height: 74px;
    border-width: 4px;
  }

  .groups-intro > p {
    max-width: 330px;
    line-height: 1.45;
  }

  .groups-card {
    min-height: 408px;
    padding: 25px 20px;
    border-radius: 24px;
  }

  .group-result h2 strong {
    font-size: 2rem;
  }

  .consent-block {
    padding: 14px;
  }

  .form-heading {
    margin-bottom: 24px;
  }

  .form-heading h2 {
    font-size: 1.4rem;
  }

  .combobox-wrap input {
    height: 55px;
    font-size: 16px;
  }

  .suggestions {
    max-height: min(210px, 30vh);
  }

  .groups-footer .container {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .groups-footer-links {
    justify-content: center;
  }

  .groups-footer-brand { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .neighborhood-step {
    opacity: 1;
    transform: none;
  }
}
