.contact-footer {
  --entrance-height:270px;
  --entrance-fade:clamp(86px,calc(var(--entrance-height) * .28),180px);
  --title-size:16px;
  --title-leading:18px;
  --title-top:24px;
  --column-gap:20px;
  --row-gap:56px;
  --list-leading:16px;
  --list-gap:14px;
  --social-size:24px;
  background:linear-gradient(90deg,#030a09,#0b2e29);
  color:white;
  font:300 13px/var(--list-leading) Jost,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.contact-footer::before {
  content:"";position:absolute;inset:0 0 auto;height:var(--entrance-height);z-index:-1;
  background:linear-gradient(to bottom,#071b18a8,transparent 35%),
    var(--photo-84774aad6cfd,url(media/footer-entrance-mobile.webp?v=b4dc4a52af49)) center 52%/cover no-repeat;
  mask-image:linear-gradient(#000 60%,rgba(0,0,0,.9) 68%,rgba(0,0,0,.45) 82%,transparent);
}
.contact-footer::after {
  content:"";position:absolute;inset:0 0 auto;height:var(--entrance-fade);z-index:-1;pointer-events:none;
  background:linear-gradient(to bottom,var(--contact-seam) 3%,transparent);
  backdrop-filter:blur(6px);
  mask-image:linear-gradient(#000 12%,#000c 42%,#0005 74%,transparent);
}
.footer-inner {width:var(--work-width);margin:auto;padding-bottom:var(--cta-below)}
.footer-hero {min-height:var(--entrance-height);padding-top:var(--title-top)}
.footer-hero h2 {
  position:relative;isolation:isolate;width:fit-content;margin:0;
  font:400 var(--title-size)/var(--title-leading) Forum,serif;
}
.footer-hero h2::before {
  content:"";position:absolute;inset:-.3em -.55em;z-index:-1;
  background:radial-gradient(ellipse at 45% 50%,#071510a8 28%,#07151055 65%,transparent 80%);
  filter:blur(.32em);pointer-events:none;
}
.footer-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--row-gap) var(--column-gap);
  grid-template-areas:"office office" "village life" "homes group" "build build" "social social" "press press";
}
.footer-grid section {min-width:0}
.contact-footer h3 {margin:0;font:400 19px/23px Jost,sans-serif}
.footer-grid ul,.footer-grid li {list-style:none;padding:0}
.footer-grid ul,.footer-channels,.footer-press>div {margin:20px 0 0}
.footer-channels,.footer-press>div {margin-top:32px}
.footer-grid ul {display:grid;gap:var(--list-gap)}
.footer-grid li a,.footer-office address a,.footer-documents a {
  text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:#ffffff75;text-underline-offset:2px;
}
.footer-office {grid-area:office;display:grid;grid-template-columns:1.08fr 1fr;align-items:start;gap:20px var(--column-gap)}
.footer-office h3 {grid-column:1/-1;font-size:20px}
.footer-office address {font:300 14px/19px Jost,sans-serif}
.footer-office address p {margin:0 0 12px}
.footer-office address a,.footer-reach>a:last-child {font-weight:400}
.footer-reach {display:grid;justify-items:start;align-content:start;gap:13px;font-size:14px;line-height:19px}
.footer-reach>a,.footer-reach button {white-space:nowrap;font:inherit;padding:0}
.footer-messengers {display:flex;align-items:center;gap:12px}
.footer-messengers a {display:grid;align-items:center;min-height:20px}
.footer-messengers img {display:block;width:18px;height:18px;object-fit:contain}
.footer-village {grid-area:village}.footer-life {grid-area:life}.footer-homes {grid-area:homes}
.footer-group {grid-area:group}.footer-build {grid-area:build}.footer-social {grid-area:social}.footer-press {grid-area:press}
.footer-build ul {grid-auto-flow:column;grid-template:repeat(2,auto)/repeat(2,minmax(0,1fr));column-gap:var(--column-gap)}
.footer-channels {display:grid;grid-template-columns:repeat(4,max-content);justify-content:space-between;row-gap:27px}
.footer-channels a {display:flex;flex-direction:column;align-items:center;gap:8px;font:400 12px/14px Jost,sans-serif}
.footer-channels img {display:block;width:var(--social-size);height:var(--social-size);object-fit:contain}
.footer-channels a:first-child img {width:calc(var(--social-size)*1.22)}
.footer-channels a:nth-child(6) img {width:calc(var(--social-size)*1.5)}
.footer-press>.footer-mobile {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:14px;
}
.footer-press>.footer-mobile a {width:100%;height:44px;justify-content:center}
.footer-press .footer-mobile img {max-width:104px;max-height:42px;object-fit:contain}
.footer-press a {display:flex;align-items:center;min-width:0}
.footer-press img {display:block;width:100%;height:auto}
.footer-press .footer-mobile a:nth-child(2) img,.footer-press .footer-mobile a:nth-child(3) img {width:90%}
.footer-legal {margin-top:64px;padding-top:36px;border-top:1px solid #ffffff35;display:grid;gap:22px;font:300 12px/15px Jost,sans-serif;color:#ffffffc4}
.footer-brand {color:white;display:flex;align-items:center;gap:14px}
.footer-brand img {width:106px}
.footer-brand p {padding-left:14px;border-left:1px solid #ffffff60;font:400 16px/1 Forum,serif}
.footer-registration,.footer-documents {display:grid;align-content:start;gap:8px}
.contact-footer .footer-desktop {display:none}
@media(hover:hover){
  .contact-footer a:hover,.contact-footer button:hover {text-decoration:underline;text-underline-offset:3px}
}
@media(max-width:374px){
  .contact-footer {--title-size:clamp(22px,7.2vw,26px);--title-leading:1.13}
}
@media(max-width:479px){
  .footer-grid {grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}
}
@media(min-width:375px) and (max-width:639px){
  .contact-footer {--social-size:28px}
}
@media(min-width:375px){
  .contact-footer {--entrance-height:220px;--title-size:23px;--title-leading:26px;--title-top:34px}
  .footer-office address,.footer-office .footer-reach {font-size:15px;line-height:20px}
}
@media(min-width:480px){
  .contact-footer {--entrance-height:290px;--title-size:26px;--title-leading:30px;--title-top:40px;--list-leading:20px;--list-gap:10px;font-size:17px}
  .footer-office address,.footer-office .footer-reach {font-size:17px;line-height:23px}
  .footer-brand img {width:125px}
}
@media(min-width:640px){
  .contact-footer {--entrance-height:316px;--title-top:52px;--row-gap:36px}
  .footer-grid {grid-template-areas:"office office" "village life" "homes group" "build build" "social press"}
  .footer-office {grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:36px}
  .footer-office h3 {grid-column:auto;max-width:170px;font-size:24px;line-height:28px}
  .footer-channels {grid-template-columns:repeat(3,max-content)}
  .footer-legal {grid-template-columns:1fr 1fr;gap:28px 32px}
  .footer-brand {grid-column:1/-1}
}
/* Align the printed edges; the six source SVGs retain their own clear space. */
@media(min-width:375px){
  .footer-press>.footer-mobile a {justify-content:flex-start}
  .footer-press .footer-mobile img {object-position:left center;max-width:100.8px;transform:translateX(var(--ink-offset))}
  .footer-press .footer-mobile a[aria-label="Forbes"] {--ink-offset:-3.5%}
  .footer-press .footer-mobile a[aria-label="Сноб"] {--ink-offset:-2.3%}
  .footer-press .footer-mobile a[aria-label="РБК"] {--ink-offset:-1.5%}
  .footer-press .footer-mobile a[aria-label="ZROBYM architects"] {--ink-offset:-4%}
  .footer-press .footer-mobile a[aria-label="VDT"] {--ink-offset:-2.1%}
  .footer-press .footer-mobile a[aria-label="Коммерсантъ"] {--ink-offset:-1.7%}
}
/* Keep the marks on regular tracks even when the portrait tablet rail widens. */
@media(min-width:640px) and (max-width:979px),
      (min-width:980px) and (max-width:1199px) and (orientation:portrait) and (pointer:coarse){
  .footer-channels,.footer-press>.footer-mobile {margin-top:20px;row-gap:14px}
  .footer-channels {grid-template-columns:repeat(4,minmax(0,1fr));max-width:350px;column-gap:8px}
  .footer-channels a {align-items:flex-start;gap:6px}
  .footer-channels img {object-position:left center}
  .footer-press>.footer-mobile {max-width:350px;grid-auto-rows:44px}
}
@media(min-width:1200px),(min-width:980px) and (orientation:landscape),(min-width:980px) and (pointer:fine){
  .contact-footer {
    --entrance-height:clamp(420px,calc(80svh - 58px),810px);
    --title-size:43px;--title-leading:49px;--title-top:74px;
    --press-column:190px;--press-logo:82px;--social-size:14px;--social-column:108px;
    --list-leading:16px;--list-gap:14px;font-size:13px;font-weight:400;
  }
  .contact-footer::before {
    height:calc(var(--entrance-height) + 58px);
    background:linear-gradient(#081c1799,transparent 26%),var(--photo-1118fa51522d,url(media/footer-entrance-wide.webp?v=fca8470da5c7)) center 52%/cover no-repeat;
    mask-image:linear-gradient(#000 58%,#000c 75%,transparent);
  }
  .contact-footer .footer-mobile {display:none}
  .contact-footer .footer-desktop {display:block}
  .footer-office address .footer-desktop {display:inline}
  .footer-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) var(--press-column);
    grid-template-areas:"office village life press" "homes group build social";
    grid-template-rows:minmax(266px,auto) auto;gap:0;
  }
  .contact-footer .footer-grid h3 {font:500 18px/21px Jost,sans-serif}
  .footer-office {display:block;margin:0}
  .footer-office h3 {max-width:none}
  .footer-office address,.footer-grid ul,.footer-channels,.footer-press>div {margin-top:24px}
  .footer-office address {font-weight:300;font-size:inherit;line-height:1.5}
  .footer-build ul {grid-auto-flow:row;grid-template:none}
  .footer-channels {grid-template:repeat(4,auto)/minmax(0,var(--social-column)) minmax(0,1fr);grid-auto-flow:column;justify-content:start;gap:var(--list-gap) 0}
  .footer-channels a {flex-direction:row;gap:8px;font-weight:400;font-size:inherit;line-height:var(--list-leading)}
  .footer-channels a:nth-child(n) img {width:var(--social-size);height:var(--social-size)}
  .footer-press>.footer-desktop {
    display:grid;grid-template:repeat(3,auto)/repeat(2,minmax(0,var(--press-logo)));
    grid-auto-flow:column;align-items:center;gap:14px 18px;
  }
  .footer-press .footer-desktop a:last-child img {width:110%;max-width:none}
  .footer-legal {
    grid-template-columns:1.12fr 1fr 1.06fr auto;align-items:start;gap:20px;margin-top:62px;
    padding-block:58px 10px;font-size:10px;line-height:12px;
  }
  .footer-brand {grid-column:auto;gap:10px;align-self:center}
  .footer-brand img {width:78px}
  .footer-brand p {font-size:11px;padding-left:10px}
  .footer-legal>:not(.footer-brand) {border-left:1px solid #ffffff30;padding-left:12px}
  .footer-legal>.footer-reach {display:grid;font-size:14px;color:white}
  .footer-legal .footer-messengers {gap:10px}
}
@media(min-width:1200px){
  .contact-footer {--press-column:220px;--press-logo:100px;--social-size:16px;--list-leading:19px;--title-top:94px;font-size:16px}
  .contact-footer .footer-grid h3 {font-size:20px;line-height:23px}
  .footer-channels {--social-column:min(125px,55%)}
  .footer-channels a {gap:12px}
  .footer-legal {grid-template-columns:1fr 1.5fr 1.05fr auto;font-size:11px;line-height:14px;margin-top:90px}
  .footer-legal>.footer-reach {font-size:16px}
}
@media(min-width:1400px){
  .contact-footer {--press-column:260px}
  .footer-press>.footer-desktop {column-gap:32px}
  .footer-brand img {width:93px}
  .footer-brand p {font-size:13px}
  .footer-legal {font-size:12px}
}
@media(min-width:1648px){
  .contact-footer {--press-column:300px;--social-size:14px}
}
