/* ─────────────────────────────────────────────────────────────────────────────
   The footer is one component shown on all eight pages, so its styles live in
   this one file instead of being copied into each page's stylesheet — that is
   what keeps /services, /portfolio and the three policy pages looking the way
   the homepage does. It is linked after the page's own CSS so it wins over any
   local footer rules (portfolio.css, for instance, ships a three-column grid of
   its own and no map).

   `:root` repeats the palette the other stylesheets already declare, identical
   values on every page. It is here for the three policy pages, which carry no
   stylesheet of their own beyond Google Fonts and would otherwise resolve
   var(--black) / var(--green-light) to nothing and paint a footer with no
   background and no icon colour.

   `.footer .container` is scoped rather than plain `.container` because those
   same policy pages do not define `.container` at all — scoping gives the
   footer its 1320px measure there without touching the layout of their article
   wrappers, and on the pages that do define it the values match anyway.
   ─────────────────────────────────────────────────────────────────────────── */

:root{--green-dark:#1d2822;--green-ink:#7d3d24;--green-mid:#7d3d24;--green-light:#c98f74;--green-pale:#f2eee5;--cream:#f2eee5;--white:#fff;--black:#1a1a1a;--gray:#6b6b6b;--gray-light:#b0b0b0;--transition:0.3s ease}

.footer{background:var(--green-dark);color:rgba(255,255,255,0.7);padding:80px 0 40px;position:relative;line-height:1.6}
/* The footer stops at the page boundary, not the other way round: b2b.css sets
   no body line-height at all and the policy pages use 1.7 against the
   homepage's 1.6, so both would have set their own rhythm inside what is meant
   to be one shared block. Same for the margins — those pages declare
   p,li{margin:12px 0}, which would push the navigation list apart. */
.footer p,.footer li{margin:0}
.footer .container{max-width:1320px;margin:0 auto;padding:0 24px;position:relative;z-index:2}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 4fr 2fr;gap:36px;padding-bottom:60px;border-bottom:1px solid rgba(255,255,255,0.1)}
.footer-brand h3{font-size:1.5rem;color:var(--white);margin-bottom:16px}
.footer-brand p{font-size:0.9rem;line-height:1.7;max-width:300px}
.footer h4{font-family:'Inter',sans-serif;font-size:0.75rem;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--white);margin-bottom:20px}
.footer ul{list-style:none;display:flex;flex-direction:column;gap:12px}
.footer ul a{font-size:0.9rem;transition:var(--transition)}
.footer ul a:hover{color:var(--green-light)}
.footer-contact-item{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;font-size:0.9rem}
.footer-contact-item svg{width:16px;height:16px;stroke:var(--green-light);fill:none;flex-shrink:0;margin-top:3px}
.footer-contact-item a{color:inherit;transition:var(--transition);text-decoration:none}
.footer-contact-item a:hover{color:var(--green-light)}
.footer-map-wrap{border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,0.1);margin-top:4px}
.footer-map-wrap iframe{display:block}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:32px;font-size:0.8rem}
.footer-socials{display:flex;gap:16px}
.footer-socials a{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,0.2);display:flex;align-items:center;justify-content:center;transition:var(--transition)}
.footer-socials a:hover{border-color:rgba(255,255,255,0.4)}
.footer-socials svg{width:14px;height:14px;fill:rgba(255,255,255,0.7)}
.footer-socials img{height:16px;object-fit:contain}
.footer-socials a[href*="profi.ru"]{width:auto;padding:0 14px;border-radius:18px}
.footer-socials a[href*="profi.ru"] img{width:68px;height:13px;object-fit:contain}
.footer-socials a:hover img{opacity:0.8}

@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-map{grid-column:span 2}
}
@media(max-width:768px){
  .footer-grid{grid-template-columns:1fr;gap:24px}
  .footer-map{grid-column:span 1}
  .footer-bottom{flex-direction:column;gap:16px}
}
@media(max-width:680px){
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:12px}
  .footer-links{margin-left:0}
}
