.m7-page {
  --m7-ivory: #fcfaf1;
  --m7-ivory-deep: #f1ecd8;
  --m7-ink: #101f18;
  --m7-green: #06463d;
  --m7-green-light: #0a5a4e;
  --m7-ember: #ff6a3d;
  --m7-blue: #b7d4e4;
  --m7-line: rgba(16, 31, 24, 0.14);
  --m7-muted: rgba(16, 31, 24, 0.66);
  --m7-shadow: 0 20px 56px rgba(16, 31, 24, 0.12);
  margin: 0;
  background: var(--m7-ivory);
  color: var(--m7-ink);
  font-family: var(--heg-font, "Onest", "Onest Fallback", system-ui, sans-serif);
}

.m7-page *,
.m7-page *::before,
.m7-page *::after {
  box-sizing: border-box;
}

.m7-page a {
  color: inherit;
}

.m7-page a:focus-visible,
.m7-page button:focus-visible,
.m7-page summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.m7-global-header,
.m7-page > .nav-overlay {
  display: none !important;
}

.m7-local-header {
  position: sticky;
  z-index: 90;
  top: 0;
  border-bottom: 1px solid var(--m7-line);
  background: rgba(252, 250, 241, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.m7-local-header__inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.m7-local-header__logo {
  color: var(--m7-ink) !important;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.m7-local-header__logo span {
  color: var(--m7-ember);
}

.m7-local-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.m7-local-nav a {
  color: var(--m7-ink) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.m7-local-nav a:hover {
  color: var(--m7-green) !important;
}

.m7-local-header__cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--m7-green);
  color: var(--m7-ivory) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.m7-page section[id] {
  scroll-margin-top: 84px;
}

.m7-page main > section:not(.m7-hero) {
  margin-bottom: 0;
}

.m7-shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.m7-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  background: var(--m7-green);
  color: var(--m7-ivory) !important;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.m7-button:hover {
  background: var(--m7-green-light);
  color: var(--m7-ivory) !important;
  transform: translateY(-1px);
}

.m7-button--light {
  background: var(--m7-ivory);
  color: var(--m7-ink) !important;
}

.m7-button--light:hover {
  background: var(--m7-ivory-deep);
  color: var(--m7-ink) !important;
}

.m7-button--ghost {
  background: transparent;
  color: var(--m7-ivory) !important;
  box-shadow: inset 0 0 0 1px rgba(252, 250, 241, 0.5);
}

.m7-button--ghost:hover {
  background: rgba(252, 250, 241, 0.12);
}

.m7-photo {
  position: relative;
  overflow: hidden;
  background: var(--m7-ink);
}

.m7-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: var(--heg-film, contrast(0.95) saturate(0.9) brightness(1.04) sepia(0.16));
}

.m7-photo::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(255, 224, 190, 0.06);
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.m7-photo::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background-image: var(--heg-grain);
  content: "";
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
}

.m7-hero {
  position: relative;
  min-height: 690px;
  margin: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--m7-ink);
  isolation: isolate;
}

.m7-hero__photo,
.m7-hero__scrim {
  position: absolute;
  inset: 0;
}

.m7-hero__photo img {
  object-position: center 38%;
}

.m7-hero__scrim {
  z-index: 3;
  background: rgba(16, 31, 24, 0.62);
}

.m7-hero__content {
  position: relative;
  z-index: 5;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  padding-block: clamp(56px, 8vw, 96px);
}

.m7-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--m7-ember);
  color: var(--m7-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.m7-hero h1 {
  max-width: 830px;
  margin: 24px 0 24px;
  color: var(--m7-ivory);
  font-size: clamp(44px, 6.4vw, 82px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.m7-hero__lead {
  max-width: 670px;
  margin: 0;
  color: rgba(252, 250, 241, 0.82);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  text-wrap: pretty;
}

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

.m7-event-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: clamp(26px, 3vw, 36px);
  background: rgba(252, 250, 241, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 26px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(30px) saturate(125%);
  -webkit-backdrop-filter: blur(30px) saturate(125%);
  color: var(--m7-ink);
}

.m7-event-card__year {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 700;
}

.m7-event-card__date {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(16, 31, 24, 0.2);
}

.m7-event-card__date strong {
  font-size: clamp(68px, 8vw, 94px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.m7-event-card__date span {
  padding-bottom: 2px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1;
}

.m7-event-card__facts {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
}

.m7-event-card__facts div {
  display: grid;
  gap: 4px;
}

.m7-event-card__facts dt {
  color: rgba(16, 31, 24, 0.58);
  font-size: 14px;
  font-weight: 600;
}

.m7-event-card__facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.m7-section {
  padding-block: clamp(44px, 5vw, 64px);
}

.m7-section--tight {
  padding-top: 0;
}

.m7-section + .m7-section {
  padding-top: 0;
}

.m7-heading {
  max-width: 820px;
  margin: 0;
  color: var(--m7-ink);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.m7-heading--light {
  color: var(--m7-ivory);
}

.m7-intro {
  max-width: 730px;
  margin: 22px 0 0;
  color: var(--m7-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.m7-intro--light {
  color: rgba(252, 250, 241, 0.72);
}

.m7-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--m7-green);
  font-family: var(--heg-mono, "IBM Plex Mono", monospace);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.m7-kicker--light {
  color: var(--m7-blue);
}

.m7-birthday {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 24px;
  align-items: start;
}

.m7-birthday__panel {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  padding: clamp(24px, 2.5vw, 30px);
  background: var(--m7-ink);
  color: var(--m7-ivory);
  box-shadow: var(--m7-shadow);
}

.m7-birthday__panel h2 {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0;
  color: var(--m7-ivory);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.m7-birthday__panel p {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 14px 0 0;
  color: rgba(252, 250, 241, 0.72);
  font-size: 16px;
  line-height: 1.5;
}

.m7-years {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
}

.m7-years strong {
  font-size: clamp(42px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.m7-years span {
  max-width: 180px;
  padding-bottom: 7px;
  color: rgba(252, 250, 241, 0.62);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.m7-birthday__photo {
  min-height: 0;
  align-self: start;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  box-shadow: var(--m7-shadow);
}

.m7-birthday__photo img {
  object-position: center 42%;
}

.m7-brackets::before,
.m7-brackets::after {
  position: absolute;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-color: var(--m7-ember);
  content: "";
  pointer-events: none;
}

.m7-brackets::before {
  top: 18px;
  left: 18px;
  border-top: 3px solid var(--m7-ember);
  border-left: 3px solid var(--m7-ember);
}

.m7-brackets::after {
  right: 18px;
  bottom: 18px;
  border-right: 3px solid var(--m7-ember);
  border-bottom: 3px solid var(--m7-ember);
}

.m7-community-section {
  background: var(--m7-ivory);
}

.m7-community__head {
  max-width: 930px;
}

.m7-community__head .m7-intro {
  max-width: 900px;
  margin-top: 24px;
  font-size: clamp(18px, 1.7vw, 21px);
}

.m7-community__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin-top: 28px;
}

.m7-community__stats article {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 72px;
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--m7-ivory-deep);
}

.m7-community__stats article:nth-child(2) {
  background: var(--m7-blue);
}

.m7-community__stats article:nth-child(3) {
  background: #000;
  color: var(--m7-ivory);
}

.m7-community__stats strong {
  font-family: var(--heg-mono, "IBM Plex Mono", monospace);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.m7-community__stats span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.m7-community__roles {
  max-width: 980px;
  margin-top: 28px;
  border-top: 1px solid var(--m7-line);
  border-bottom: 1px solid var(--m7-line);
  padding-block: 24px;
}

.m7-community__roles h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.m7-community__roles p {
  max-width: 900px;
  margin: 10px 0 0;
  color: var(--m7-muted);
  font-size: 17px;
  line-height: 1.6;
}

.m7-community__story {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.m7-community__story article {
  border-left: 2px solid var(--m7-ember);
  padding-left: 18px;
}

.m7-community__story article:nth-child(2) {
  border-color: var(--m7-blue);
}

.m7-community__story article:nth-child(3) {
  border-color: #000;
}

.m7-community__story article:nth-child(4) {
  border-color: var(--m7-green);
}

.m7-community__story span {
  color: var(--m7-muted);
  font-family: var(--heg-mono, "IBM Plex Mono", monospace);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.m7-community__story h3 {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.m7-community__story p {
  margin: 12px 0 0;
  color: var(--m7-muted);
  font-size: 16px;
  line-height: 1.55;
}

.m7-experience {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: stretch;
  gap: 24px;
  margin-top: 30px;
}

.m7-experience__photo {
  order: 2;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 16px;
}

.m7-experience__photo img {
  object-position: center 48%;
  transform: scale(1.08);
  transform-origin: center;
}

.m7-experience__content {
  order: 1;
  display: grid;
  gap: 18px;
}

.m7-feature {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  border-radius: 16px;
  padding: 28px;
  background: var(--m7-ivory-deep);
}

.m7-feature:nth-child(2) {
  background: var(--m7-blue);
}

.m7-feature:nth-child(3) {
  background: var(--m7-green);
  color: var(--m7-ivory);
}

.m7-feature__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.m7-feature h3 {
  margin: 0;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.m7-feature:nth-child(3) h3 {
  color: var(--m7-ivory);
}

.m7-feature p {
  margin: 12px 0 0;
  color: rgba(16, 31, 24, 0.7);
  font-size: 16px;
  line-height: 1.55;
}

.m7-feature:nth-child(3) p {
  color: rgba(252, 250, 241, 0.76);
}

.m7-attendees-section {
  overflow: hidden;
  padding-bottom: 16px;
}

.m7-attendees__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.m7-attendees__controls {
  display: flex;
  gap: 10px;
}

.m7-attendees__controls button {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--m7-line);
  border-radius: 12px;
  background: var(--m7-ivory);
  color: var(--m7-ink);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.m7-attendees__controls button:last-child {
  border-color: var(--m7-green);
  background: var(--m7-green);
  color: var(--m7-ivory);
}

.m7-attendees__controls button:disabled {
  border-color: var(--m7-line);
  background: var(--m7-ivory-deep);
  color: var(--m7-muted);
  cursor: default;
  opacity: 0.55;
}

.m7-attendees__note {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--m7-muted);
  font-size: 16px;
  line-height: 1.55;
}

.m7-attendees__rail {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  margin-inline: -32px;
  padding: 12px 32px 56px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--m7-green) transparent;
}

.m7-attendee-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: 16px;
  padding: 14px;
  background: var(--m7-ivory);
  color: var(--m7-ink);
  box-shadow: var(--m7-shadow);
}

.m7-attendee-card__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
}

.m7-attendee-card__photo img {
  object-position: center 22%;
}

.m7-attendee-card__content {
  padding: 18px 5px 8px;
}

.m7-attendee-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.m7-attendee-card p {
  margin: 12px 0 0;
  color: var(--m7-muted);
  font-size: 14px;
  line-height: 1.55;
}

.m7-program {
  margin-top: 30px;
  border-top: 1px solid var(--m7-line);
}

.m7-program__item {
  display: grid;
  grid-template-columns: minmax(100px, 0.22fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  border-bottom: 1px solid var(--m7-line);
  padding: 20px 0;
}

.m7-program__item time {
  color: var(--m7-green);
  font-size: 15px;
  font-weight: 700;
}

.m7-program__item h3 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.m7-program__item p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--m7-muted);
  font-size: 16px;
  line-height: 1.55;
}

.m7-tickets-wrap {
  padding: clamp(52px, 6vw, 68px) 24px;
  background: var(--m7-ink);
  color: var(--m7-ivory);
}

.m7-tickets-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.m7-tickets-note {
  max-width: 300px;
  margin: 0;
  color: rgba(252, 250, 241, 0.68);
  font-size: 15px;
  line-height: 1.5;
  text-align: right;
}

.m7-tickets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.m7-ticket {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  padding: 30px;
  background: var(--m7-ivory);
  color: var(--m7-ink);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.m7-ticket::before,
.m7-ticket::after {
  position: absolute;
  top: 26px;
  width: 16px;
  height: 5px;
  border-radius: 2px;
  content: "";
}

.m7-ticket::before {
  right: 96px;
  background: var(--m7-blue);
  transform: rotate(28deg);
}

.m7-ticket::after {
  right: 70px;
  background: var(--m7-ember);
  transform: rotate(-36deg);
}

.m7-ticket__anniversary {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--m7-ember);
  font-family: var(--heg-mono, "IBM Plex Mono", monospace);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(3deg);
}

.m7-ticket__type {
  max-width: calc(100% - 90px);
  margin: 0;
  color: var(--m7-green);
  font-size: 14px;
  font-weight: 700;
}

.m7-ticket h3 {
  margin: 20px 0 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.m7-ticket__copy {
  margin: 14px 0 0;
  color: var(--m7-muted);
  font-size: 15px;
  line-height: 1.55;
}

.m7-ticket__price {
  margin: auto 0 24px;
  padding-top: 34px;
  font-size: clamp(42px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.m7-ticket__price span {
  display: block;
  margin-top: 10px;
  color: var(--m7-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.m7-ticket .m7-button {
  width: 100%;
}

.m7-button:disabled {
  cursor: wait;
  opacity: 0.5;
  transform: none;
}

.m7-payment-note {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(252, 250, 241, 0.7);
  font-size: 15px;
  line-height: 1.55;
}

.m7-payment-note a {
  color: var(--m7-ivory);
  font-weight: 700;
  text-underline-offset: 3px;
}

.m7-payment-note[data-error="true"] {
  color: #ffb59e;
}

.m7-location {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: stretch;
}

.m7-location__gallery {
  height: clamp(390px, 32vw, 450px);
  min-height: 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.m7-location__photo {
  min-height: 0;
  margin: 0;
  border-radius: 16px;
}

.m7-location__photo--main {
  grid-row: 1 / -1;
}

.m7-location__photo img {
  object-position: center;
}

.m7-location__card {
  min-height: 0;
  height: clamp(390px, 32vw, 450px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: clamp(26px, 2.8vw, 34px);
  background: var(--m7-blue);
  color: var(--m7-green);
}

.m7-location__card h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.m7-location__address {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.m7-location__caption {
  margin: 10px 0 0;
  color: rgba(6, 70, 61, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.m7-location__card .m7-button {
  width: fit-content;
  margin-top: auto;
}

.m7-faq {
  max-width: 900px;
  margin-top: 38px;
}

.m7-faq details {
  border-bottom: 1px solid var(--m7-line);
}

.m7-faq details:first-child {
  border-top: 1px solid var(--m7-line);
}

.m7-faq summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.m7-faq summary::-webkit-details-marker {
  display: none;
}

.m7-faq summary::after {
  flex: none;
  color: var(--m7-green);
  content: "+";
  font-size: 26px;
  font-weight: 500;
}

.m7-faq details[open] summary::after {
  content: "−";
}

.m7-faq details p {
  max-width: 760px;
  margin: -4px 0 24px;
  color: var(--m7-muted);
  font-size: 16px;
  line-height: 1.65;
}

.m7-reviews {
  counter-reset: m7-review;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.m7-quote {
  counter-increment: m7-review;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  border: 1px solid rgba(16, 31, 24, 0.08);
  border-radius: 16px;
  padding: 20px;
  background: var(--m7-ivory-deep);
}

.m7-quote:nth-child(n + 5) {
  grid-column: span 4;
}

.m7-quote:nth-child(4n + 2) {
  background: var(--m7-blue);
}

.m7-quote::before {
  display: block;
  margin-bottom: 14px;
  color: var(--m7-green);
  content: counter(m7-review, decimal-leading-zero);
  font-family: var(--heg-mono, "IBM Plex Mono", monospace);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.m7-quote blockquote {
  margin: 0;
  font-family: var(--heg-quote, "Source Serif 4", Georgia, serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
  text-wrap: pretty;
}

.m7-quote__person {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.m7-quote__person img {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(16, 31, 24, 0.1);
  border-radius: 12px;
  background: rgba(252, 250, 241, 0.6);
  object-fit: cover;
}

.m7-quote__person cite {
  color: var(--m7-green);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.m7-final {
  padding-bottom: 16px;
}

.m7-final__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-radius: 16px;
  padding: clamp(38px, 6vw, 72px);
  background: var(--m7-green);
  color: var(--m7-ivory);
}

.m7-final__card h2 {
  max-width: 700px;
  margin: 0;
  color: var(--m7-ivory);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.m7-final__card p {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(252, 250, 241, 0.72);
  font-size: 17px;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .m7-location {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .m7-location__card {
    width: min(100%, 720px);
    height: auto;
  }

  .m7-location__gallery {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 980px) {
  .m7-local-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .m7-local-header__cta {
    display: none;
  }

  .m7-local-nav {
    justify-content: flex-end;
    gap: 18px;
  }

  .m7-hero__content,
  .m7-birthday,
  .m7-experience,
  .m7-location {
    grid-template-columns: 1fr;
  }

  .m7-birthday__photo,
  .m7-experience__photo {
    width: min(100%, 720px);
    aspect-ratio: 3 / 2;
  }

  .m7-event-card {
    max-width: 560px;
  }

  .m7-community__story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m7-tickets {
    grid-template-columns: 1fr;
  }

  .m7-reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .m7-quote,
  .m7-quote:nth-child(n + 5) {
    grid-column: auto;
  }

  .m7-ticket {
    min-height: 340px;
  }

}

@media (max-width: 640px) {
  .m7-local-header__inner {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 16px 0;
  }

  .m7-local-header__logo {
    font-size: 22px;
  }

  .m7-local-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    padding-block: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .m7-local-nav::-webkit-scrollbar {
    display: none;
  }

  .m7-page section[id] {
    scroll-margin-top: 102px;
  }

  .m7-shell {
    width: min(100% - 32px, 1200px);
  }

  .m7-hero {
    min-height: auto;
    margin: 8px;
  }

  .m7-hero__content {
    min-height: auto;
    gap: 40px;
    padding: 52px 0;
  }

  .m7-section {
    padding-block: 44px;
  }

  .m7-hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .m7-hero__actions {
    display: grid;
  }

  .m7-hero__actions .m7-button {
    width: 100%;
  }

  .m7-event-card__date strong {
    font-size: 72px;
  }

  .m7-years {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    padding-top: 38px;
  }

  .m7-years strong:last-child {
    text-align: right;
  }

  .m7-years span {
    max-width: none;
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 0;
    text-align: left;
  }

  .m7-feature {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .m7-community__stats,
  .m7-community__story {
    grid-template-columns: 1fr;
  }

  .m7-community__stats article {
    min-height: 64px;
  }

  .m7-community__story {
    gap: 24px;
  }

  .m7-attendees__head {
    align-items: flex-start;
  }

  .m7-attendee-card {
    flex-basis: min(82vw, 300px);
  }

  .m7-attendees__rail {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .m7-attendees__controls {
    padding-top: 4px;
  }

  .m7-attendees__controls button {
    width: 40px;
    height: 40px;
  }

  .m7-program__item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding-block: 17px;
  }

  .m7-reviews {
    grid-template-columns: 1fr;
  }

  .m7-quote {
    padding: 18px;
  }

  .m7-quote blockquote {
    font-size: 16px;
  }

  .m7-tickets-wrap {
    padding-inline: 0;
  }

  .m7-tickets-head {
    display: grid;
  }

  .m7-tickets-note {
    text-align: left;
  }

  .m7-location__card {
    min-height: 0;
  }

  .m7-location__gallery {
    min-height: 0;
    aspect-ratio: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(220px, 62vw) minmax(140px, 38vw);
  }

  .m7-location__photo--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .m7-final__card {
    display: grid;
  }

  .m7-final__card .m7-button {
    width: 100%;
  }

}

@media (max-width: 360px) {
  .m7-attendees__head {
    display: grid;
  }

  .m7-attendees__controls {
    padding-top: 0;
  }
}

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

/* Галерея прошлого дня рождения */
.m7-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
  margin: 32px 0 0;
}

.m7-gallery__item {
  margin: 0;
  border-radius: 14px;
}

.m7-gallery__item--1 { grid-column: span 2; grid-row: span 2; }
.m7-gallery__item--2,
.m7-gallery__item--5,
.m7-gallery__item--7 { grid-row: span 2; }
.m7-gallery__item--6,
.m7-gallery__item--8 { grid-column: span 2; }

.m7-gallery__item--2 img,
.m7-gallery__item--5 img { object-position: center 30%; }

@media (max-width: 640px) {
  .m7-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
    margin-top: 24px;
  }

  .m7-gallery__item--1 { grid-column: span 2; grid-row: span 2; }
  .m7-gallery__item--7 { grid-row: span 1; }
  .m7-gallery__item--6 { grid-column: span 1; }
  .m7-gallery__item--8 { grid-column: span 2; }
}
