/* Hub De Vors — web pública estándar, datos primero */
:root {
  color-scheme: dark;
  --bg: #0c0c14;
  --surface: #141927;
  --surface-2: #1b2130;
  --surface-3: #232c3d;
  --text: #eef2ff;
  --muted: #b8c0e0;
  --subtle: #8b93b5;
  --line: #2a3246;
  --accent: #20f08a;
  --accent-hover: #5af6a6;
  --success: #20f08a;
  --warning: #f9ab00;
  --danger: #ef5350;
  --info: #22d3ee;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
body::before { position: fixed; z-index: -1; inset: 0; pointer-events: none; content: ""; background: radial-gradient(circle at 12% 0, rgba(32, 240, 138, .06), transparent 28rem), linear-gradient(180deg, #050508 0, var(--bg) 50%, #0c0c14 100%); }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; }
img { max-width: 100%; }

.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 9px 12px; transform: translateY(-150%); border-radius: 6px; background: var(--text); color: var(--bg); font-weight: 800; transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-wrap { display: flex; align-items: center; gap: 22px; width: min(calc(100% - 32px), var(--max)); min-height: 68px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: 6px; background: var(--surface-2); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; gap: 0; line-height: 1.05; }
.brand-copy strong { font-size: .92rem; letter-spacing: .01em; }
.brand-copy small { color: var(--subtle); font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 6px; color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--surface); color: var(--text); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.nav-link--external::after { margin-left: 5px; color: var(--subtle); content: "↗"; font-size: .72rem; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle::before, .nav-toggle::after, .nav-toggle span { display: block; width: 17px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; content: ""; }

.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.page { overflow: hidden; }
.section { padding: 56px 0; }
.section--border { border-top: 1px solid var(--line); }
.section--compact { padding: 30px 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent-hover); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.15; }
h1 { max-width: 750px; margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.045em; }
h2 { margin-bottom: 10px; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.03em; }
h3 { margin-bottom: 6px; font-size: 1.08rem; }
.lede { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.03rem; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: .78rem; }
.serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; font-size: .8rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.button--primary { background: var(--accent); color: #04130b; }
.button--primary:hover { background: var(--accent-hover); }
.button--secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button--secondary:hover { border-color: var(--subtle); background: var(--surface-2); }
.button--link { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--info); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 40px; align-items: center; min-height: 500px; padding: 68px 0; }
.hero__copy { max-width: 650px; }
.hero__copy h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
.hero__media { position: relative; min-height: 340px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(140deg, rgba(32, 240, 138, .2), transparent 55%), url("/assets/hubdevors-hero.png") center / cover; box-shadow: var(--shadow); }
.hero__media::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 18, 20, .82), transparent 52%); content: ""; }
.hero__media-content { position: absolute; z-index: 1; right: 22px; bottom: 20px; left: 22px; }
.hero__media-content strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.hero__media-content p { max-width: 420px; margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.hero__media--live { min-height: 420px; background: #050508; }
.hero__media--live .video-frame { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
.hero__media--live .video-frame iframe { min-height: 100%; }
.hero__media--live .video-fallback { min-height: 100%; }
.hero__media--live .hero__media-content { z-index: 2; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 20px; color: var(--muted); font-size: .75rem; }
.status-line strong { color: var(--text); }
.live-status { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading__copy > p:last-child { max-width: 620px; color: var(--muted); font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; flex: none; gap: 5px; color: var(--info); font-size: .8rem; font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--text); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat__value { display: block; margin-bottom: 3px; color: var(--info); font-size: 1.5rem; font-weight: 850; letter-spacing: -.04em; }
.stat__label { color: var(--muted); font-size: .72rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card--padded { padding: 20px; }
.card--link { display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; padding: 18px; color: inherit; text-decoration: none; }
.card--link:hover { border-color: var(--subtle); background: var(--surface-2); }
.card__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent-hover); font-size: .72rem; font-weight: 850; }
.card__footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; color: var(--subtle); font-size: .72rem; }
.card__footer a { color: var(--accent-hover); font-weight: 800; text-decoration: none; }

.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 16px; align-items: start; }
.video-frame { position: relative; min-height: 320px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); background: #050508; }
.video-frame iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.video-fallback { display: grid; place-items: center; height: 100%; min-height: 320px; padding: 28px; background: linear-gradient(135deg, rgba(32, 240, 138, .16), transparent 60%), url("/assets/hubdevors-hero.png") center / cover; text-align: center; }
.video-fallback p { max-width: 340px; margin: 0; color: var(--muted); font-size: .82rem; }
.info-stack { display: grid; gap: 12px; }
.info-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.info-row:last-child { border-bottom: 0; }
.info-row span:first-child { color: var(--muted); }
.info-row strong { text-align: right; }

.event-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.event-item { display: grid; grid-template-columns: 126px minmax(0, 1fr) auto; gap: 17px; align-items: start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.event-item:last-child { border-bottom: 0; }
.event-item__date { color: var(--subtle); font-size: .72rem; }
.event-item__kind { color: var(--info); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.event-item h3 { margin: 0; font-size: .93rem; }
.event-item p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.event-item__action { color: var(--accent-hover); font-size: .75rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .84rem; }

.directory-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; }
.field { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.field:focus { border-color: var(--accent); outline: 0; }
.directory-toolbar .field--search { flex: 1 1 230px; }
.filter-button { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: .76rem; font-weight: 800; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { border-color: var(--accent); color: var(--text); }

.person-grid, .city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.person-card, .city-card { display: flex; min-height: 245px; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.person-card:hover, .city-card:hover { border-color: var(--subtle); background: var(--surface-2); }
.person-card__image { display: grid; place-items: end center; height: 145px; margin-bottom: 13px; overflow: hidden; border-radius: 7px; background: var(--surface-2); }
.person-card__image img { height: 150px; max-width: 90%; object-fit: contain; image-rendering: pixelated; }
.person-card__top, .city-card__top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.person-card strong, .city-card strong { overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.person-card small, .city-card small { color: var(--muted); font-size: .74rem; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 7px; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: .61rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.badge--success { background: rgba(32, 240, 138, .12); color: var(--success); }
.badge--accent { background: rgba(32, 240, 138, .12); color: var(--accent-hover); }
.person-card__meta, .city-card__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; padding-top: 13px; color: var(--subtle); font-size: .7rem; }
.city-card__sigil { display: grid; place-items: center; width: 42px; height: 42px; margin: 19px 0 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--warning); font-family: Georgia, serif; font-size: 1.2rem; }
.city-card h3 { overflow: hidden; margin-bottom: 3px; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.city-card p { min-height: 38px; margin-bottom: 0; color: var(--muted); font-size: .76rem; }
.city-card__governance { display: grid; gap: 3px; margin-top: 12px; color: var(--muted); font-size: .7rem; }
.city-card__governance strong { color: var(--text); font-weight: 750; }
.city-card__roster { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.city-card__roster .member-chip { flex: 1 1 44%; min-width: 0; }
.member-chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); text-decoration: none; }
.member-chip:hover { border-color: var(--subtle); background: var(--surface-2); }
.member-chip__avatar { display: grid; place-items: end center; flex: none; width: 25px; height: 28px; overflow: hidden; border-radius: 4px; background: var(--surface-2); color: var(--accent-hover); font-size: .72rem; font-weight: 850; }
.member-chip__avatar img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.member-chip strong, .member-chip small { display: block; overflow: hidden; max-width: 95px; text-overflow: ellipsis; white-space: nowrap; }
.member-chip strong { font-size: .69rem; }
.member-chip small { margin-top: 2px; color: var(--muted); font-size: .59rem; }
.member-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.roster-title { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

.ranking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ranking-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ranking-panel__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ranking-panel__head h3 { margin-bottom: 0; }
.ranking-tabs { display: flex; gap: 6px; margin: 0 -2px 14px; overflow-x: auto; padding: 2px; }
.ranking-tabs .filter-button { flex: none; min-height: 32px; padding-inline: 8px; font-size: .64rem; }
.ranking-list { display: grid; gap: 2px; }
.ranking-row { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 54px; padding: 7px 5px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ranking-row:last-child { border-bottom: 0; }
.ranking-row:hover { background: var(--surface-2); }
.ranking-rank { color: var(--subtle); font-size: .72rem; font-weight: 850; text-align: center; }
.ranking-avatar { display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--accent-hover); font-size: .8rem; font-weight: 850; }
.ranking-avatar--skin { align-items: end; border-radius: 6px; }
.ranking-avatar img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.ranking-row__main { min-width: 0; }
.ranking-row__main strong, .ranking-row__main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row__main strong { font-size: .78rem; }
.ranking-row__main small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.ranking-value { color: var(--info); font-size: .72rem; font-weight: 850; white-space: nowrap; }
.ranking-panel > .text-link { margin-top: 14px; }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.offer-card { display: flex; min-height: 245px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.offer-card > img { width: 100%; height: 142px; object-fit: cover; background: var(--surface-2); }
.offer-card__body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.offer-card__top, .offer-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-card h3 { margin: 14px 0 6px; }
.offer-card p { margin-bottom: 14px; color: var(--muted); font-size: .77rem; }
.offer-card__discount { color: var(--warning); font-size: .72rem; font-weight: 850; }
.offer-card__footer { margin-top: auto; color: var(--subtle); font-size: .68rem; }
.offer-card__footer .button { min-height: 32px; padding-inline: 9px; font-size: .67rem; }
.club-toolbar { margin-bottom: 17px; }

.map-board { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.map-visual { position: relative; min-height: 390px; background: radial-gradient(circle at 50% 45%, rgba(32, 240, 138, .12), transparent 19rem), linear-gradient(135deg, #141927, #0c0c14); }
.map-visual::before, .map-visual::after { position: absolute; content: ""; border: 1px solid rgba(170, 178, 174, .12); border-radius: 50%; }
.map-visual::before { width: 65%; height: 65%; top: 18%; left: 18%; }
.map-visual::after { width: 39%; height: 39%; top: 31%; left: 31%; }
.map-visual__label { position: absolute; top: 18px; left: 18px; color: var(--muted); font-size: .72rem; }
.map-visual__center { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(32, 240, 138, .14); }
.map-side { padding: 18px; border-left: 1px solid var(--line); }
.map-side h3 { margin-bottom: 5px; }
.map-side p { color: var(--muted); font-size: .76rem; }
.map-side__list { display: grid; gap: 9px; margin-top: 18px; }
.map-side__item { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: .75rem; }
.map-side__item span:last-child { color: var(--info); }

.page-intro { padding: 60px 0 34px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(2.15rem, 5vw, 3.8rem); }
.page-intro .lede { max-width: 680px; }
.detail-panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-panel__aside { padding-left: 18px; border-left: 1px solid var(--line); }
.detail-panel__aside h3 { margin-bottom: 14px; }

.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 16px; }
.join-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.address-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.address-box code { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: .7rem; font-weight: 800; cursor: pointer; }
.copy-button:hover { border-color: var(--subtle); color: var(--text); }
.steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--muted); font-size: .84rem; counter-increment: steps; }
.steps li::before { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-hover); content: counter(steps); font-size: .7rem; font-weight: 850; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature h3 { margin-bottom: 5px; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: .78rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 5px 7px; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: .66rem; }

.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: #050508; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; padding: 38px 0 30px; }
.footer-grid p { max-width: 300px; color: var(--muted); font-size: .78rem; }
.footer-title { margin-bottom: 10px; color: var(--subtle); font-size: .65rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { width: fit-content; color: var(--muted); font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding: 15px 0 20px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .7rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); text-decoration: none; }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr .85fr; gap: 24px; }
  .person-grid, .city-grid { grid-template-columns: repeat(3, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-wrap { width: min(calc(100% - 24px), var(--max)); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions { display: none; }
  .site-nav { position: absolute; top: 100%; right: 12px; left: 12px; display: none; flex-direction: column; align-items: stretch; padding: 7px; border: 1px solid var(--line); border-top: 0; background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-link { min-height: 43px; padding-inline: 11px; }
  .container { width: min(calc(100% - 24px), var(--max)); }
  .section { padding: 42px 0; }
  .hero { display: flex; min-height: auto; flex-direction: column; align-items: stretch; padding: 47px 0; }
  .hero__media { min-height: 270px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .feature-list { grid-template-columns: 1fr; }
  .split, .join-grid, .detail-panel { grid-template-columns: 1fr; }
  .ranking-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-panel__aside { padding-top: 17px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .map-board { grid-template-columns: 1fr; }
  .map-side { border-top: 1px solid var(--line); border-left: 0; }
  .person-grid, .city-grid { grid-template-columns: repeat(2, 1fr); }
  .event-item { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .event-item__date { grid-column: 1; }
  .event-item__kind { grid-column: 2; grid-row: 1; text-align: right; }
  .event-item__action { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: start; flex-direction: column; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.25rem; }
  .person-grid, .city-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .member-list { grid-template-columns: 1fr; }
  .stat { padding: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

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