/* A contact-first footer. The extra class scopes it above retained theme rules. */
body .site-footer.footer-quick-contact {
  --focus-ink: #fff;
  padding: 32px var(--page-gutter) 18px;
  background: var(--brand-blue, #1756d1);
  color: #fff;
  scroll-margin-top: var(--header-offset);
}
body .footer-quick-contact .footer-grid { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.8fr); align-items: start; gap: 28px 64px; padding-bottom: 24px; }
body .footer-quick-contact .footer-grid > * { min-width: 0; }
body .footer-quick-contact .footer-intro { max-width: 47ch; }
body .footer-quick-contact .footer-brand { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; color: #fff; font-size: 23px; font-weight: 600; line-height: 1.3; text-decoration: none; }
body .footer-quick-contact .footer-mark { flex: 0 0 46px; width: 46px; height: 46px; background: transparent; }
body .footer-quick-contact .footer-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
body .footer-quick-contact .footer-intro p { margin: 16px 0 0; color: #edf3ff; font-size: 16px; line-height: 1.65; }
body .footer-quick-contact .footer-author { width: 100%; max-width: 360px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #ffffff40; }
body .footer-quick-contact .footer-author-link { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px; margin: -6px; border-radius: 8px; color: #fff; text-decoration: none; }
body .footer-quick-contact .footer-author-portrait { flex: 0 0 46px; width: 46px; height: 46px; overflow: hidden; border: 1px solid #ffffff70; border-radius: 50%; }
body .footer-quick-contact .footer-author-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
body .footer-quick-contact .footer-author-copy { display: grid; gap: 3px; min-width: 0; }
body .footer-quick-contact .footer-author-caption { color: #e2ebff; font-size: 12px; line-height: 1.4; }
body .footer-quick-contact .footer-author-name { color: #fff; font-size: 15px; font-weight: 550; line-height: 1.5; }
body .footer-quick-contact .footer-author-arrow { flex-shrink: 0; margin-left: auto; }
body .footer-quick-contact .footer-author-link:hover { background: #ffffff12; }
body .footer-quick-contact .footer-author-link:hover .footer-author-name { text-decoration: underline; text-underline-offset: 4px; }
body .footer-quick-contact .footer-contact-area > h2 { margin: 4px 0 16px; color: #fff; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; }
body .footer-quick-contact .footer-direct-contacts { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 16px; }
body .footer-quick-contact .footer-contact-card { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; min-width: 0; min-height: 132px; padding: 14px 20px 16px 0; border-bottom: 1px solid #ffffff3d; border-radius: 0; color: #fff; text-decoration: none; transition: background-color .18s ease; }
body .footer-quick-contact .footer-contact-art { display: block; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; color: #e2ebff; }
body .footer-quick-contact .footer-contact-art svg { display: block; width: 20px; height: 20px; }
body .footer-quick-contact .footer-contact-copy { display: grid; gap: 5px; min-width: 0; }
body .footer-quick-contact .footer-contact-label { color: #e2ebff; font-size: 13px; line-height: 1.5; }
body .footer-quick-contact .footer-contact-value { color: #fff; font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
body .footer-quick-contact .footer-postcode { display: block; margin-top: 3px; color: #e2ebff; font-size: 12px; font-weight: 400; }
body .footer-quick-contact .footer-contact-arrow { position: absolute; top: 16px; right: 0; width: 14px; height: 14px; color: #d6e4ff; }
body .footer-quick-contact .footer-contact-card:hover { background: #ffffff0f; color: #fff; }
body .footer-quick-contact .footer-contact-card:hover .footer-contact-value { text-decoration: underline; text-underline-offset: 4px; }
body .footer-quick-contact .footer-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
body .footer-quick-contact .footer-platform { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 66px; padding: 10px 12px; border: 1px solid #ffffff30; border-radius: 6px; color: #fff; text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
body .footer-quick-contact .footer-platform > svg { flex-shrink: 0; width: 15px; height: 15px; margin-left: auto; color: #d6e4ff; }
body .footer-quick-contact .footer-platform-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
body .footer-quick-contact .footer-facebook-mark { width: 24px; height: 24px; background: transparent; color: #e2ebff; }
body .footer-quick-contact .footer-facebook-mark svg { width: 24px; height: 24px; }
body .footer-quick-contact .footer-linkedin-mark { width: 24px; height: 24px; background: transparent; color: #e2ebff; font: 700 22px/1 Arial, sans-serif; letter-spacing: -1px; }
body .footer-quick-contact .footer-platform-nauka { flex-wrap: wrap; gap: 5px 10px; }
body .footer-quick-contact .footer-nauka-mark { width: 68px; height: 18px; padding: 0; background: transparent; }
body .footer-quick-contact .footer-platform-nauka .footer-platform-copy { order: 3; flex-basis: 100%; }
body .footer-quick-contact .footer-nauka-mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: invert(1); opacity: .88; }
body .footer-quick-contact .footer-platform-copy { display: grid; gap: 3px; min-width: 0; }
body .footer-quick-contact .footer-platform-name { color: #fff; font-size: 15px; font-weight: 500; line-height: 1.35; }
body .footer-quick-contact .footer-platform-nauka .footer-platform-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body .footer-quick-contact .footer-platform-caption { color: #e2ebff; font-size: 12px; line-height: 1.4; }
body .footer-quick-contact .footer-platform:hover { background: #ffffff12; border-color: #fff; }
body .site-footer.footer-quick-contact .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 16px; border-top: 1px solid #ffffff40; color: #edf3ff; font-size: 13px; line-height: 1.5; }
body .footer-quick-contact .back-to-top { min-height: 44px; padding: 8px 12px; border-color: #ffffff70; background: transparent; color: #fff; font-size: 14px; text-decoration: none; }
body .footer-quick-contact .back-to-top:hover { background: #ffffff16; }
body .footer-quick-contact a:focus-visible, body .footer-quick-contact button:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
@media (max-width: 1150px) {
  body .footer-quick-contact .footer-grid { grid-template-columns: minmax(240px, .85fr) minmax(0, 1.65fr); gap: 32px; }
  body .footer-quick-contact .footer-direct-contacts { gap: 8px; }
  body .footer-quick-contact .footer-contact-card { padding-inline: 0 18px; }
  body .footer-quick-contact .footer-contact-value { font-size: 15px; }
  body .footer-quick-contact .footer-platform { padding: 12px; gap: 10px; }
  body .footer-quick-contact .footer-nauka-mark { width: 64px; }
  body .footer-quick-contact .footer-platform { gap: 8px; }
  body .footer-quick-contact .footer-platform-caption { font-size: 12px; }
}
@media (max-width: 950px) {
  body .footer-quick-contact .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  body .footer-quick-contact .footer-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 14px 32px; max-width: none; }
  body .footer-quick-contact .footer-intro p { grid-row: span 2; margin: 0; }
  body .footer-quick-contact .footer-author { margin-top: 0; }
  body .footer-quick-contact .footer-contact-value { font-size: 16px; }
}
@media (max-width: 760px) {
  body .footer-quick-contact .footer-direct-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .footer-quick-contact .footer-contact-card { min-height: 84px; }
  body .footer-quick-contact .footer-contact-map { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body .site-footer.footer-quick-contact { padding-top: 28px; }
  body .footer-quick-contact .footer-grid { gap: 30px; padding-bottom: 24px; }
  body .footer-quick-contact .footer-intro { display: block; }
  body .footer-quick-contact .footer-brand { font-size: 21px; }
  body .footer-quick-contact .footer-intro p { margin-top: 12px; font-size: 15px; }
  body .footer-quick-contact .footer-author { margin-top: 20px; padding-top: 14px; }
  body .footer-quick-contact .footer-contact-area > h2 { margin: 0 0 10px; font-size: 18px; }
  body .footer-quick-contact .footer-direct-contacts { grid-template-columns: 1fr; gap: 0; }
  body .footer-quick-contact .footer-contact-map { grid-column: auto; }
  body .footer-quick-contact .footer-contact-card { align-items: start; gap: 12px; min-height: 84px; padding: 14px 22px 14px 0; }
  body .footer-quick-contact .footer-contact-arrow { top: 18px; }
  body .footer-quick-contact .footer-contact-value { font-size: 16px; }
  body .footer-quick-contact .footer-platforms { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  body .footer-quick-contact .footer-platform { min-height: 60px; padding: 10px 12px; gap: 12px; }
  body .footer-quick-contact .footer-nauka-mark { width: 68px; height: 18px; }
  body .footer-quick-contact .footer-platform-nauka { flex-wrap: nowrap; }
  body .footer-quick-contact .footer-platform-nauka .footer-platform-copy { order: initial; flex-basis: auto; }
  body .site-footer.footer-quick-contact .footer-bottom { align-items: center; flex-direction: row; }
  body .footer-quick-contact .footer-bottom > span { max-width: 23ch; }
}
@media (prefers-reduced-motion: reduce) { body .footer-quick-contact :is(.footer-contact-card, .footer-platform) { transition: none; } }
