/* =============================================================
   АРТ-КВАДРАТ — редизайн
   Язык дизайна: галерейный супрематизм / конструктивистская вёрстка
   Палитра: бумага + чернила + фирменный вермильон #FF3300
   ============================================================= */

/* ------------------------------ Tokens ------------------------------ */
:root {
  --ink:        #0E0D0B;
  --ink-soft:   #211E19;
  --ink-70:     rgba(14, 13, 11, .70);
  --ink-45:     rgba(14, 13, 11, .45);
  --paper:      #F4F0E6;
  --paper-2:    #ECE6D6;
  --paper-3:    #E2DAC5;
  --red:        #FF3300;
  --red-2:      #DC2A00;
  --blue:       #1B36C9;
  --yellow:     #F4B301;
  --green:      #14785C;
  --line:       rgba(14, 13, 11, .16);
  --line-soft:  rgba(14, 13, 11, .09);
  --muted:      #6E695C;

  --font-display: "Oswald", "PT Sans Narrow", "Arial Narrow", sans-serif;
  --font-body:    "Golos Text", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1440px;
  --pad: clamp(20px, 5vw, 80px);
  --header-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);

  --sq: 10px; /* базовый квадрат-модуль */
}

/* ------------------------------ Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1, "cv01" 1;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

/* ------------------------- Grain / texture -------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------ Layout ------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(64px, 9vw, 150px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }

/* Section header chrome */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; background: var(--red);
  display: inline-block; transform: rotate(0deg);
}
.eyebrow--ink { color: var(--ink); }
.eyebrow--ink::before { background: var(--ink); }
.eyebrow--paper { color: var(--paper); }
.eyebrow--paper::before { background: var(--red); }

.snum {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--ink-45);
}

.sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  margin-bottom: clamp(32px, 4vw, 60px);
}
.sec-head__title { display: flex; flex-direction: column; gap: 18px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.h-xl { font-size: clamp(44px, 8.5vw, 128px); font-weight: 700; line-height: .9; letter-spacing: -.02em; }
.h-lg { font-size: clamp(34px, 5.2vw, 76px); }
.h-md { font-size: clamp(26px, 3vw, 44px); }
.h-sm { font-size: clamp(20px, 2vw, 28px); }
.lead { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.42; font-weight: 400; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ------------------------------ Buttons ----------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: 16px 26px; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  border: 1px solid var(--bg); transition: color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn .btn__arw { transition: transform .45s var(--ease); }
.btn:hover .btn__arw { transform: translate(4px, -4px); }
.btn--red { --bg: var(--red); --fg: #fff; border-color: var(--red); }
.btn--red::before { background: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--lg { padding: 20px 32px; font-size: 14px; }
.btn--block { width: 100%; justify-content: space-between; }

.link-underline {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------ Header ------------------------------ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header::after { /* accent tick line */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--scrollw, 0%);
  background: var(--red); transition: width .1s linear;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header__inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px;
}
.logo__mark i { background: var(--ink); display: block; transition: background .4s var(--ease), transform .5s var(--ease); }
.logo__mark i:nth-child(2) { background: var(--red); }
.logo:hover .logo__mark i:nth-child(1) { transform: translate(-2px, -2px); }
.logo:hover .logo__mark i:nth-child(4) { transform: translate(2px, 2px); }
.logo__word {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1;
}
.logo__word b { color: var(--red); font-weight: 700; }

/* Desktop nav */
.nav { display: flex; justify-content: center; }
.nav__list { display: flex; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-70); transition: color .3s var(--ease);
}
.nav__link:hover, .nav__item:hover .nav__link, .nav__item:focus-within .nav__link { color: var(--ink); }
.nav__link .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .35s var(--ease); }
.nav__item:hover .caret { transform: rotate(225deg) translateY(-1px); }

/* Dropdown mega panel */
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px; background: var(--ink); color: var(--paper);
  padding: 14px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.nav__panel::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav__item:hover .nav__panel, .nav__item:focus-within .nav__panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 11px 14px; font-size: 14px; color: color-mix(in srgb, var(--paper) 78%, transparent);
  transition: background .25s var(--ease), color .25s var(--ease), padding .25s var(--ease);
}
.nav__panel a .idx { font-family: var(--font-mono); font-size: 11px; color: var(--red); }
.nav__panel a:hover { background: rgba(255,255,255,.06); color: #fff; padding-left: 20px; }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__lang { font-family: var(--font-mono); font-size: 12px; color: var(--ink-45); letter-spacing: .1em; }

/* Burger */
.burger { display: none; width: 46px; height: 46px; position: relative; z-index: 1200; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 30px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------- Mobile overlay -------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 20px) var(--pad) 40px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-in-out);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu__group { border-top: 1px solid rgba(255,255,255,.14); }
.mobile-menu__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-family: var(--font-display); font-size: clamp(28px, 8vw, 44px); text-transform: uppercase; font-weight: 600;
  color: var(--paper); text-align: left;
}
.mobile-menu__head .plus { position: relative; width: 22px; height: 22px; flex: none; }
.mobile-menu__head .plus::before, .mobile-menu__head .plus::after { content: ""; position: absolute; background: var(--red); transition: transform .4s var(--ease); }
.mobile-menu__head .plus::before { top: 10px; left: 0; width: 22px; height: 2px; }
.mobile-menu__head .plus::after { left: 10px; top: 0; width: 2px; height: 22px; }
.mobile-menu__group.is-open .plus::after { transform: rotate(90deg); }
.mobile-menu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.mobile-menu__sub > div { overflow: hidden; }
.mobile-menu__group.is-open .mobile-menu__sub { grid-template-rows: 1fr; }
.mobile-menu__sub a { display: block; padding: 11px 0 11px 18px; font-size: 16px; color: rgba(244,240,230,.7); border-left: 2px solid var(--red); margin-bottom: 4px; }
.mobile-menu__sub a:last-child { margin-bottom: 18px; }
.mobile-menu__foot { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }

/* Stagger anim for mobile groups */
.mobile-menu__group, .mobile-menu__foot > * { opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
body.menu-open .mobile-menu__group, body.menu-open .mobile-menu__foot > * { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .07s); }

/* ------------------------------ Hero -------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(20px, 5vw, 60px)); padding-bottom: 0; overflow: hidden; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(24px, 4vw, 60px); align-items: end; }
.hero__kicker { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px, 3vw, 34px); }
.hero__kicker .rule { height: 1px; flex: 1; background: var(--line); }
.hero__title { position: relative; }
.hero__title .row { display: block; overflow: hidden; }
.hero__title .row > span { display: block; }
.hero__title .accent { color: var(--red); }
.hero__title .outline {
  -webkit-text-stroke: 2px var(--ink); color: transparent; -webkit-text-fill-color: transparent;
}
.hero__sub { margin-top: clamp(22px, 3vw, 34px); max-width: 46ch; }
.hero__actions { margin-top: clamp(26px, 3vw, 38px); display: flex; flex-wrap: wrap; gap: 14px; }

.hero__aside { display: flex; flex-direction: column; gap: 22px; padding-bottom: 8px; }
.hero__stat { border-top: 1px solid var(--ink); padding-top: 14px; }
.hero__stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: .9; letter-spacing: -.02em; }
.hero__stat .num .u { color: var(--red); }
.hero__stat .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Suprematist floating shapes */
.hero__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sh { position: absolute; will-change: transform; }
.sh--sq { background: var(--red); }
.sh--ring { border: 2px solid var(--ink); border-radius: 50%; background: transparent; }
.sh--bar { background: var(--ink); }
.sh--dot { background: var(--blue); border-radius: 50%; }
.sh--tri { width: 0; height: 0; }

/* Marquee */
.marquee { position: relative; z-index: 2; margin-top: clamp(40px, 6vw, 90px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; background: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marq 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  font-size: clamp(22px, 3vw, 40px); color: var(--paper); padding: 16px 0; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.marquee__track span::after { content: ""; width: 12px; height: 12px; background: var(--red); margin: 0 clamp(22px, 3vw, 44px); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ------------------------------ About ------------------------------- */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.about__lead { font-size: clamp(22px, 2.6vw, 38px); font-family: var(--font-display); font-weight: 300; line-height: 1.14; text-transform: uppercase; letter-spacing: -.01em; }
.about__lead b { color: var(--red); font-weight: 600; }
.about__body { display: flex; flex-direction: column; gap: 20px; color: var(--ink-70); max-width: 54ch; }
.about__body p { font-size: clamp(15px, 1.15vw, 17px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 5vw, 70px); }
.stat { background: var(--paper); padding: clamp(22px, 2.6vw, 34px); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 4.4vw, 64px); line-height: .9; letter-spacing: -.02em; }
.stat .num .u { color: var(--red); }
.stat .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* --------------------------- Residents ------------------------------ */
.res__list { border-top: 1px solid var(--ink); }
.res__row {
  display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding .5s var(--ease);
}
.res__row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: 0; }
.res__row:hover::before { transform: scaleY(1); }
.res__row > * { position: relative; z-index: 1; transition: color .4s var(--ease); }
.res__row:hover { padding-inline: clamp(14px, 2vw, 30px); }
.res__row:hover, .res__row:hover .res__meta { color: var(--paper); }
.res__idx { font-family: var(--font-mono); font-size: 13px; color: var(--red); }
.res__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(24px, 3.4vw, 52px); line-height: 1; }
.res__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.res__meta .arw { transition: transform .4s var(--ease); }
.res__row:hover .arw { transform: translate(5px, -5px); }

/* ---------------------------- Art gallery --------------------------- */
.art { background: var(--ink); color: var(--paper); }
.art .eyebrow { color: var(--red); }
.art .snum { color: rgba(244,240,230,.45); }
.art__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid rgba(244,240,230,.24); color: rgba(244,240,230,.7);
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--paper); color: var(--paper); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.art__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 18px);
}
.art-card {
  position: relative; grid-column: span 3; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--ink-soft); border: 1px solid rgba(244,240,230,.12);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease), border-color .4s var(--ease);
}
.art-card.big { grid-column: span 6; aspect-ratio: 3 / 4; }
.art-card.wide { grid-column: span 6; aspect-ratio: 16 / 10; }
.art-card__viz { position: absolute; inset: 0; z-index: 0; transition: transform .8s var(--ease); }
.art-card__viz svg { width: 100%; height: 100%; }
.art-card:hover { border-color: var(--red); }
.art-card:hover .art-card__viz { transform: scale(1.06); }
.art-card__grad { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,9,8,.9) 0%, rgba(10,9,8,.15) 55%, transparent 100%); opacity: .85; transition: opacity .4s; }
.art-card__body { position: relative; z-index: 2; padding: clamp(14px, 1.4vw, 22px); }
.art-card__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.art-card__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 500; font-size: clamp(15px, 1.35vw, 21px); line-height: 1.02; letter-spacing: .01em; }
.art-card__no { position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--font-mono); font-size: 11px; color: rgba(244,240,230,.6); }
.art-card__plus { position: absolute; top: 14px; right: 14px; z-index: 3; width: 26px; height: 26px; opacity: 0; transform: scale(.6) rotate(-30deg); transition: all .45s var(--ease); }
.art-card__plus::before, .art-card__plus::after { content: ""; position: absolute; background: var(--red); }
.art-card__plus::before { top: 12px; left: 3px; right: 3px; height: 2px; }
.art-card__plus::after { left: 12px; top: 3px; bottom: 3px; width: 2px; }
.art-card:hover .art-card__plus { opacity: 1; transform: scale(1) rotate(0); }

/* ---------------------------- Venues -------------------------------- */
.venues__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.venue {
  position: relative; border: 1px solid var(--line); background: var(--paper-2);
  padding: clamp(22px, 2vw, 30px); min-height: 260px; display: flex; flex-direction: column;
  overflow: hidden; transition: background .5s var(--ease), transform .5s var(--ease);
}
.venue::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border: 1px solid var(--line); transform: rotate(45deg); transition: transform .6s var(--ease), border-color .5s; }
.venue:hover { background: var(--ink); transform: translateY(-4px); }
.venue:hover::after { transform: rotate(135deg) scale(1.1); border-color: rgba(255,255,255,.2); }
.venue:hover .venue__name, .venue:hover .venue__desc, .venue:hover .venue__tag { color: var(--paper); }
.venue:hover .venue__tag { border-color: rgba(255,255,255,.3); }
.venue__no { font-family: var(--font-mono); font-size: 12px; color: var(--red); margin-bottom: auto; }
.venue__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(22px, 2.2vw, 34px); line-height: .98; margin-top: 20px; transition: color .4s var(--ease); }
.venue__desc { color: var(--muted); font-size: 14px; margin-top: 10px; transition: color .4s var(--ease); }
.venue__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.venue__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 5px 9px; transition: color .4s, border-color .4s; }

/* ---------------------------- Heritage ------------------------------ */
.heritage { background: var(--paper-2); }
.heritage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(30px, 5vw, 80px); }
.heritage__list { border-top: 1px solid var(--ink); }
.her-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: color .35s var(--ease); }
.her-row:hover { color: var(--red); }
.her-row__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 500; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.02; }
.her-row__addr { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.heritage__note { align-self: start; position: sticky; top: 110px; }
.heritage__note .qmark { font-family: var(--font-display); font-size: clamp(80px, 12vw, 160px); color: var(--red); line-height: .7; }

/* ----------------------------- History ------------------------------ */
.history { background: var(--ink); color: var(--paper); overflow: hidden; }
.history .eyebrow { color: var(--red); }
.history__grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 4vw, 50px); }
.history__quote { font-family: var(--font-display); text-transform: uppercase; font-weight: 300; line-height: 1.06; font-size: clamp(28px, 4.4vw, 68px); letter-spacing: -.01em; max-width: 20ch; }
.history__quote b { color: var(--red); font-weight: 600; }
.history__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 50px); }
.history__cols p { color: rgba(244,240,230,.72); font-size: clamp(15px, 1.1vw, 17px); max-width: 52ch; }
.history__names { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 8px; }
.history__names span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: rgba(244,240,230,.5); display: inline-flex; align-items: center; gap: 8px; }
.history__names span::before { content: ""; width: 6px; height: 6px; background: var(--red); }

/* ---------------------------- Location ------------------------------ */
.loc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.loc__body { display: flex; flex-direction: column; gap: 22px; }
.loc__body p { color: var(--ink-70); max-width: 52ch; }
.loc__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.loc__fact { background: var(--paper); padding: 18px 20px; }
.loc__fact .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.loc__fact .v { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(16px, 1.5vw, 22px); font-weight: 500; margin-top: 6px; }

/* Stylised map */
.loc__map { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.loc__map svg { width: 100%; height: 100%; }
.loc__pin { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 2; text-align: center; }
.loc__pin .dot { width: 16px; height: 16px; background: var(--red); margin: 0 auto 10px; position: relative; }
.loc__pin .dot::after { content: ""; position: absolute; inset: -8px; border: 1px solid var(--red); animation: ping 2.4s ease-out infinite; }
.loc__pin .lab { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--paper); padding: 5px 9px; display: inline-block; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* ------------------------------ CTA / forms ------------------------- */
.cta { background: var(--red); color: #fff; }
.cta .eyebrow { color: #fff; }
.cta .eyebrow::before { background: #fff; }
.cta .snum { color: rgba(255,255,255,.7); }
.cta__head .h-lg { color: #fff; }
.cta__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.32); border: 1px solid rgba(255,255,255,.32); margin-bottom: clamp(30px, 4vw, 54px); }
.cta-card {
  background: var(--red); color: #fff; padding: clamp(24px, 2.4vw, 38px); text-align: left;
  display: flex; flex-direction: column; gap: 16px; min-height: 240px; position: relative; overflow: hidden;
  transition: background .4s var(--ease); cursor: pointer;
}
.cta-card::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(100%); transition: transform .5s var(--ease); z-index: 0; }
.cta-card:hover::before { transform: translateY(0); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card__no { font-family: var(--font-mono); font-size: 12px; opacity: .8; }
.cta-card__t { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(21px, 2vw, 30px); line-height: 1.02; margin-top: auto; }
.cta-card__arw { align-self: flex-start; width: 30px; height: 30px; }
.cta-card__arw svg { width: 100%; height: 100%; }

/* Form */
.form-wrap { background: var(--paper); color: var(--ink); border: 1px solid rgba(0,0,0,.1); }
.form-wrap__grid { display: grid; grid-template-columns: .8fr 1.2fr; }
.form-wrap__aside { background: var(--ink); color: var(--paper); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.form-wrap__aside .h-md { color: var(--paper); }
.form-wrap__aside p { color: rgba(244,240,230,.68); font-size: 15px; }
.form-wrap__aside .tag { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.form { padding: clamp(26px, 3vw, 46px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.field input, .field select, .field textarea {
  background: transparent; border: none; border-bottom: 1.5px solid var(--line);
  padding: 12px 2px; font-size: 16px; transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); }
.field textarea { resize: vertical; min-height: 70px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__consent { font-size: 12px; color: var(--muted); max-width: 40ch; }
.form__consent a { color: var(--red); }
.form__ok { grid-column: 1/-1; display: none; align-items: center; gap: 12px; padding: 16px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.form.is-sent .form__ok { display: flex; }

/* ------------------------------ Footer ------------------------------ */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(60px, 8vw, 110px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; padding-bottom: clamp(40px, 5vw, 70px); border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__big { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: clamp(48px, 12vw, 190px); line-height: .82; letter-spacing: -.02em; }
.footer__big .r { color: var(--red); }
.footer__addr { display: flex; flex-direction: column; gap: 8px; }
.footer__addr .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.footer__addr .v { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }

.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); padding-block: clamp(40px, 5vw, 64px); }
.footer__col h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(244,240,230,.5); margin-bottom: 18px; font-weight: 500; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col li { line-height: 1.35; }
.footer__col .role { font-family: var(--font-mono); font-size: 11px; color: var(--red); text-transform: uppercase; letter-spacing: .03em; display: block; margin-bottom: 3px; }
.footer__col a, .footer__col span.val { color: rgba(244,240,230,.82); font-size: 15px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; justify-content: space-between; padding-block: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: rgba(244,240,230,.55); }
.footer__legal a:hover { color: var(--red); }
.footer__copy { font-family: var(--font-mono); font-size: 11.5px; color: rgba(244,240,230,.55); letter-spacing: .04em; }
.to-top { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.to-top .box { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.to-top:hover .box { background: var(--red); border-color: var(--red); }

/* --------------------------- Custom cursor -------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; will-change: transform; }
.cursor__dot { position: fixed; width: 7px; height: 7px; background: #fff; transform: translate(-50%, -50%); }
.cursor__ring { position: fixed; width: 34px; height: 34px; border: 1px solid #fff; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s; }
body.cursor-hover .cursor__ring { width: 54px; height: 54px; background: rgba(255,255,255,.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------- Reveal system -------------------------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="clip"] { opacity: 1; clip-path: inset(0 100% 0 0); transform: none; transition: clip-path .9s var(--ease-in-out); }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

.line-mask { display: block; overflow: hidden; }
.line-mask > * { display: block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: var(--d, 0s); }
.is-in .line-mask > *, .line-mask.is-in > * { transform: none; }

/* ------------------------------ Reduced motion ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .line-mask > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
  .cursor { display: none; }
}

/* =============================== Responsive ========================= */
@media (max-width: 1180px) {
  .art-card { grid-column: span 4; }
  .art-card.big, .art-card.wide { grid-column: span 6; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .nav, .header__lang { display: none; }
  .burger { display: block; }
  .header__cta .btn { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__aside { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .hero__stat { flex: 1 1 40%; }
  .about__grid, .loc__grid, .heritage__grid, .form-wrap__grid, .footer__top { grid-template-columns: 1fr; }
  .history__cols { grid-template-columns: 1fr; }
  .venues__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .heritage__note { position: static; margin-top: 30px; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .art__grid { grid-template-columns: repeat(2, 1fr); display: grid; gap: 10px; }
  .art-card, .art-card.big, .art-card.wide { grid-column: auto; aspect-ratio: 3/4; }
  .venues__grid { grid-template-columns: 1fr; }
  .cta__cards { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .loc__facts { grid-template-columns: 1fr; }
  .res__row { grid-template-columns: 44px 1fr; }
  .res__meta { display: none; }
  .hero__stat { flex: 1 1 100%; }
  .footer__cols { grid-template-columns: 1fr; }
  .heritage__grid { gap: 0; }
  .her-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .her-row__addr { white-space: normal; }
}
@media (max-width: 420px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   DETAIL PAGES (арт-объекты, площадки, культнаследие, резиденты)
   ===================================================================== */
.page { padding-top: var(--header-h); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: clamp(24px, 3vw, 40px); }
.crumbs a, .crumbs span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { color: var(--line); }
.crumbs .cur { color: var(--ink); }

/* Detail hero */
.dhero { padding-block: clamp(30px, 4vw, 60px) clamp(20px, 3vw, 40px); position: relative; overflow: hidden; }
.dhero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.dhero__eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(16px, 2vw, 26px); }
.dhero__eyebrow .rule { height: 1px; width: clamp(30px, 6vw, 80px); background: var(--line); }
.dhero__title { margin-bottom: clamp(18px, 2vw, 26px); }
.dhero__lead { font-size: clamp(18px, 1.8vw, 25px); line-height: 1.38; color: var(--ink-70); max-width: 42ch; }
.dhero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 2.4vw, 30px); }
.dhero__tags .t { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 13px; border: 1px solid var(--line); color: var(--ink-70); }
.dhero__tags .t b { color: var(--red); font-weight: 500; }

.dhero__viz { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--ink); overflow: hidden; background: var(--ink); }
.dhero__viz svg { width: 100%; height: 100%; display: block; }
.dhero__viz .frame-no { position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--font-mono); font-size: 12px; color: rgba(244,240,230,.65); }
.dhero__viz .frame-cap { position: absolute; bottom: 14px; left: 16px; right: 16px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: rgba(244,240,230,.55); }

/* Prose + aside */
.dbody { padding-block: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); }
.dbody__grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(34px, 5vw, 80px); align-items: start; }
.prose > * + * { margin-top: 1.2em; }
.prose p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.62; color: var(--ink-soft); }
.prose h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); line-height: 1; margin-top: 1.6em; }
.prose h2 + p { margin-top: .7em; }
.prose .drop::first-letter { font-family: var(--font-display); font-weight: 700; float: left; font-size: 4.1em; line-height: .72; padding: 6px 14px 0 0; color: var(--red); }
.prose strong { font-weight: 600; }
.prose .pull { font-family: var(--font-display); text-transform: uppercase; font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; color: var(--ink); border-left: 3px solid var(--red); padding-left: 22px; margin-block: 1.4em; }

.daside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dfact { background: var(--paper); padding: 18px 20px; }
.dfact .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.dfact .v { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(16px, 1.5vw, 21px); font-weight: 500; margin-top: 6px; line-height: 1.05; }
.dfact .v.sm { font-family: var(--font-body); text-transform: none; font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.daside__cta { background: var(--ink); color: var(--paper); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.daside__cta .h-sm { color: var(--paper); }
.daside__cta p { color: rgba(244,240,230,.7); font-size: 14px; }

/* Related strip */
.dmore { padding-block: clamp(44px, 5vw, 80px); background: var(--ink); color: var(--paper); }
.dmore .eyebrow { color: var(--red); }
.dmore__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.dmore .art-card { grid-column: auto; }

.dnav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: clamp(30px, 4vw, 46px); margin-top: clamp(30px, 4vw, 46px); border-top: 1px solid rgba(244,240,230,.16); }
.dnav a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--paper); }
.dnav a:hover { color: var(--red); }
.dnav a.prev .a { transition: transform .4s var(--ease); }
.dnav a.prev:hover .a { transform: translateX(-5px); }
.dnav a.next:hover .a { transform: translateX(5px); }

/* Listing pages */
.listing { padding-top: clamp(20px, 3vw, 40px); }
.listing__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }

/* Make plain art-card links behave */
a.art-card { color: inherit; }

/* Stretched card link (makes whole card clickable) */
.card-link { position: absolute; inset: 0; z-index: 6; }
.her-row { position: relative; }
.res__row .card-link { z-index: 6; }

/* ===================== Реальные фото (Tilda) ===================== */
.art-card__viz img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dhero__viz img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dhero__viz:hover img { transform: scale(1.04); }

/* Photo gallery on detail pages */
.pgallery { border-top: 1px solid var(--line); }
.pgallery__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 36px); }
.pgallery__grid { columns: 3 clamp(220px, 24vw, 320px); column-gap: clamp(10px, 1.2vw, 16px); }
.pgallery__grid figure { break-inside: avoid; margin: 0 0 clamp(10px, 1.2vw, 16px); position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.pgallery__grid img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.pgallery__grid figure:hover img { transform: scale(1.05); }
.pgallery__grid figure::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--red); transition: border-width .3s var(--ease); pointer-events: none; }
.pgallery__grid figure:hover::after { border-width: 3px; }

/* Venue / heritage thumbnails on home */
.venue__ph { position: absolute; inset: 0; z-index: 0; opacity: .16; }
.venue__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.venue:hover .venue__ph { opacity: .28; }
.venue > * { position: relative; z-index: 1; }

/* Resident preview photos on home */
.res-shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(24px, 3vw, 40px); }
.res-shots a { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.res-shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; filter: grayscale(.3); }
.res-shots a:hover img { transform: scale(1.08); filter: grayscale(0); }
@media (max-width: 720px) { .res-shots { grid-template-columns: repeat(3, 1fr); } .pgallery__grid { columns: 2 140px; } }

/* ===================== Каталог резидентов ===================== */
.rescat { border-top: 1px solid var(--line); }
.rescat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.rescat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rescard { background: var(--paper); padding: clamp(20px, 1.9vw, 30px); min-height: 190px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: background .45s var(--ease); }
.rescard::after { content: ""; position: absolute; right: -26px; bottom: -26px; width: 92px; height: 92px; border: 1px solid var(--line); transform: rotate(45deg); transition: transform .6s var(--ease), border-color .5s; }
.rescard:hover { background: var(--ink); }
.rescard:hover::after { transform: rotate(135deg) scale(1.15); border-color: rgba(255,255,255,.18); }
.rescard__top { display: flex; align-items: center; gap: 12px; }
.rescard__idx { font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.rescard__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; transition: color .4s, border-color .4s; }
.rescard__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.02; margin-bottom: auto; transition: color .4s var(--ease); }
.rescard__meta { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.rescard__hours { font-family: var(--font-mono); font-size: 12px; color: var(--muted); transition: color .4s var(--ease); }
.rescard__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); transition: color .3s var(--ease); }
.rescard__phone::before { content: ""; width: 6px; height: 6px; background: var(--red); }
.rescard:hover .rescard__name { color: var(--paper); }
.rescard:hover .rescard__hours { color: rgba(244,240,230,.6); }
.rescard:hover .rescard__phone { color: var(--paper); }
.rescard:hover .rescard__cat { color: var(--paper); border-color: rgba(255,255,255,.28); }
@media (max-width: 900px) { .rescat__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rescat__grid { grid-template-columns: 1fr; } }

/* Resident counts on home rows */
.res__count { color: var(--red); font-family: var(--font-mono); }

@media (max-width: 1024px) {
  .dhero__grid { grid-template-columns: 1fr; gap: 30px; }
  .dhero__viz { aspect-ratio: 16 / 11; max-height: 60vh; }
  .dhero__lead { max-width: 100%; }
  .dbody__grid { grid-template-columns: 1fr; }
  .daside { position: static; grid-template-columns: repeat(2, 1fr); display: grid; }
  .daside__cta { grid-column: 1 / -1; }
  .dmore__grid, .listing__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .daside { grid-template-columns: 1fr; }
  .dmore__grid, .listing__grid { grid-template-columns: repeat(2, 1fr); }
}
