/* Original official-site emblems and links from the commission website. */
.official-links-band { margin:0; padding:28px 0; background:#f3f5f7; border:0; }
.official-links-band .official-links-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin-block:0; padding-block:0; }
.official-links-band .official-link-card { display:flex; align-items:center; justify-content:flex-start; gap:12px; min-width:0; min-height:76px; padding:12px 16px; box-sizing:border-box; border:0; border-radius:4px; background:#fff; color:#164575; text-decoration:none; font:inherit; font-size:14px; font-weight:600; line-height:20px; transition:background-color .15s ease; }
.official-links-band .official-link-card img { display:block; flex:0 0 59px; width:59px; height:46px; max-width:none; object-fit:contain; margin:0; padding:0; border:0; }
.official-links-band .official-link-card span { min-width:0; overflow-wrap:anywhere; }
.official-links-band .official-link-card:hover { background:#fafdff; }
.official-links-band .official-link-card:focus-visible { outline:3px solid #4679ca; outline-offset:3px; }
@media(max-width:959px) { .official-links-band .official-links-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }
@media(max-width:539px) { .official-links-band { padding:24px 0; } .official-links-band .official-links-grid { grid-template-columns:minmax(0,1fr); gap:12px; } }
@media(prefers-reduced-motion:reduce) { .official-links-band .official-link-card { transition:none; } }

/* official-links-footer-bottom-20261127: cards follow the identity/legal row on the blue footer. */
footer[data-official-footer-20261127] { background:#4275c6; color:#fff; }
footer[data-official-footer-20261127] > .footer-content { padding-bottom:28px; color:inherit; }
footer[data-official-footer-20261127] > .footer-content a { color:inherit; }
footer[data-official-footer-20261127] > .official-links-band { width:100%; margin:0; padding:0 0 32px; background:transparent; border:0; color:inherit; }
footer[data-official-footer-20261127] > .official-links-band .official-links-grid { padding-top:24px; border-top:1px solid rgba(255,255,255,.3); }
@media(max-width:767px) {
  footer[data-official-footer-20261127] > .footer-content { padding-bottom:24px; }
  footer[data-official-footer-20261127] > .official-links-band { padding-bottom:24px; }
}

/* official-footer-desktop-20261127: identity/privacy left, four official cards right. */
html body #root footer[data-official-footer-20261127] .footer-desktop-identity { display:none; }
@media(min-width:960px) {
  html body #root footer[data-official-footer-20261127] { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:36px; align-items:start; padding:44px max(24px,calc((100% - 1200px)/2)); }
  html body #root footer[data-official-footer-20261127] > .footer-content { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:18px; width:100%; min-width:0; max-width:none; margin:0; padding:0; }
  html body #root footer[data-official-footer-20261127] .footer-brand { display:flex; align-items:center; gap:16px; min-width:0; max-width:100%; }
  html body #root footer[data-official-footer-20261127] .footer-brand img { width:86px; height:auto; flex:0 0 86px; }
  html body #root footer[data-official-footer-20261127] .footer-brand-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
  html body #root footer[data-official-footer-20261127] .footer-brand-copy > span:first-child { font-size:clamp(20px,1.7vw,24px); line-height:1.15; white-space:normal; }
  html body #root footer[data-official-footer-20261127] .footer-brand-copy > .footer-brand-mandate { font-size:14px; line-height:1.35; white-space:normal; }
  html body #root footer[data-official-footer-20261127] .footer-legal { display:flex; justify-content:flex-start; align-items:flex-start; align-self:flex-start; flex-wrap:wrap; gap:12px; width:auto; margin:0; padding:0; border:0; }
  html body #root footer[data-official-footer-20261127] .footer-legal > a[href="https://duma.gov.ru/"] { display:none; }
  html body #root footer[data-official-footer-20261127] > .official-links-band { min-width:0; width:100%; padding:0; }
  html body #root footer[data-official-footer-20261127] > .official-links-band .official-links-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; min-width:0; max-width:none; margin:0; padding:0; border:0; }
  html body #root footer[data-official-footer-20261127] .footer-desktop-identity { display:flex; flex-direction:column; gap:18px; width:100%; min-width:0; }
  html body #root footer[data-official-footer-20261127] .footer-legacy-copy,
  html body #root footer[data-official-footer-20261127] .footer-legacy-duma-link { display:none; }
}
