.directory { position: relative; isolation: isolate; overflow: hidden; padding: 22px 0 0; background: #202020; }
.directory__lamp { position: absolute; z-index: -1; top: 85px; left: -170px; width: 480px; height: 480px; opacity: .29; background: url("../bg-scan.png") left center / contain no-repeat; mix-blend-mode: soft-light; }
.directory__inner { width: min(100%, 1600px); margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px); }
.directory__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }

.unit { display: flex; min-width: 0; flex-direction: column; }
.unit__kicker { min-height: 24px; color: var(--color-sitemap-heading, #b3eaff); font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(15px, 1.15vw, 20px); font-weight: 900; font-style: italic; line-height: 1; text-transform: uppercase; }
.unit__name { min-height: 58px; margin-top: 6px; color: #fff; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(15px, 1.1vw, 19px); font-weight: 400; line-height: 1.1; }
.unit__name strong { font-weight: 900; }
.unit__list { min-height: 78px; margin-top: 8px; }
.unit__list li { position: relative; padding-left: 12px; color: #fff; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(11px, .78vw, 14px); font-weight: 400; line-height: 1.3; }
.unit__list li::before { content: "·"; position: absolute; left: 1px; }
.unit__address { min-height: 47px; margin-top: 10px; color: #fff; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(12px, .78vw, 14px); line-height: 1.2; }
.unit__phone { align-self: flex-start; padding: 3px 9px; background: #c5c7cf; color: #1f1f1f; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(12px, .78vw, 14px); font-weight: 900; line-height: 1.2; }
.unit__photo { width: 100%; margin-top: 14px; aspect-ratio: 16 / 8.2; background-position: center; background-size: cover; filter: grayscale(0.85) sepia(0.18) hue-rotate(165deg) saturate(1.6) brightness(0.92) contrast(1.05); }
.unit__photo--lytkino { background-image: url("../b-lytkino.png"); }
.unit__photo--petrovka { background-image: url("../b-ivdpo.png"); }
.unit__photo--ivdpo { background-image: url("../b-petrovka.png"); }
.unit__photo--uzkoe { background-image: url("../b-uzkoe.png"); }
.unit__photo--porechye { background-image: url("../b-porechye.png"); }

.sitemap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; padding: 16px 0 34px; }
.sitemap__column h3 { margin-bottom: 9px; color: var(--color-sitemap-heading, #b3eaff); font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(17px, 1.32vw, 24px); font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.sitemap__column li { position: relative; padding-left: 13px; color: #fff; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(13px, .88vw, 16px); font-weight: 400; line-height: 1.35; }
.sitemap__column li::before { content: "•"; position: absolute; left: 0; }
.sitemap__column a:hover { color: var(--color-cyan, #35e3f1); }

.footer { position: relative; overflow: hidden; background: var(--color-umbra, #1f1f1f); border-top: 1px solid rgba(255,255,255,.5); }
.footer__inner { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 56px; width: min(100%, 1600px); min-height: 375px; margin: 0 auto; padding: 38px clamp(18px, 4vw, 64px) 18px; }
.footer__brand { padding-top: 18px; }
.footer__logo { width: clamp(90px, 8.5vw, 132px); }
.footer__about { max-width: 30ch; margin-top: 20px; color: var(--color-footer-muted, #b6b6b6); font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(14px, 1vw, 18px); font-weight: 500; line-height: 1.25; letter-spacing: .01em; }
.footer__anniversary { position: relative; display: grid; min-height: 325px; overflow: hidden; place-items: center; }
.footer__poster { position: relative; display: grid; width: min(100%, 400px); height: 300px; overflow: hidden; place-items: center; }
.footer__portrait { position: absolute; inset: 0; opacity: .78; background: url("../negovsky.png") center 40% / contain no-repeat; mix-blend-mode: overlay; }
.footer__ninety { position: relative; z-index: 1; width: min(31%, 116px); margin-top: 6px; }
.footer__anniversary-text { position: absolute; z-index: 2; bottom: 13px; display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; }
.footer__anniversary-year { font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(21px, 1.7vw, 27px); font-weight: 900; font-style: italic; line-height: .94; }
.footer__anniversary-title { font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(24px, 2vw, 32px); font-weight: 900; font-style: italic; line-height: .94; text-transform: uppercase; }
.footer__anniversary-description { max-width: 34ch; margin-top: 7px; color: #fff; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(13px, .92vw, 16px); font-weight: 500; line-height: 1.18; }
.footer__contacts { display: flex; padding-top: 12px; flex-direction: column; align-items: flex-end; text-align: right; }
.footer__address { max-width: 30ch; color: #fff; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(14px, .98vw, 18px); font-weight: 300; line-height: 1.25; }
.footer__phone { margin-top: 14px; padding: 5px 11px; background: #b3eaff; color: #1f1f1f; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(17px, 1.2vw, 23px); font-weight: 700; line-height: 1; }
.footer__email { margin-top: 9px; color: #fff; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(14px, .95vw, 17px); font-weight: 600; }
.footer__social { display: flex; gap: 12px; margin-top: 12px; }
.footer__social a { color: #fff; }
.footer__social svg { width: 19px; height: 19px; }
.footer__max { display: flex; margin-top: 15px; flex-direction: column; align-items: flex-end; }
.footer__max-label { color: #dfdfdf; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(14px, 1vw, 18px); font-weight: 400; }
.footer__max-brand { font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(15px, 1.1vw, 20px); font-weight: 900; font-style: italic; line-height: 1; }
.footer__max-brand b:first-child { color: #eb0000; }
.footer__max-brand b:last-child { color: #b3eaff; }
.footer__legal { display: flex; margin-top: 12px; flex-direction: column; gap: 4px; }
.footer__legal a { color: #dfdfdf; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(11px, .68vw, 13px); font-weight: 400; line-height: 1.3; }
.footer__legal a:hover { color: var(--color-cyan, #35e3f1); }
.footer__bottom { min-height: 64px; padding: 14px clamp(18px, 4vw, 64px); border-top: 1px solid rgba(255,255,255,.5); color: #d6d6d6; font-family: var(--font-display, "Aktiv Grotesk Condensed", "Roboto Condensed", Arial Narrow, sans-serif); font-size: clamp(13px, .85vw, 15px); line-height: 1.4; text-align: center; }
.footer__bottom p + p { margin-top: 6px; }
.footer__bottom a:hover { color: var(--color-cyan, #35e3f1); }

@media (max-width: 1280px) {
  .directory__grid, .sitemap { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__anniversary { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 680px) {
  .directory__grid, .sitemap { grid-template-columns: 1fr; gap: 28px; }
  .unit__name, .unit__list, .unit__address { min-height: 0; }
  .unit__photo { width: min(100%, 420px); }
  .footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .footer__anniversary { min-height: 290px; }
  .footer__poster { height: 280px; }
  .footer__contacts, .footer__max { align-items: flex-start; text-align: left; }
  .footer__legal { margin-bottom: 18px; }
  .footer__bottom { font-size: 13px; }
}
