/* Shared footer — keep this file loaded after page-specific styles. */
.footer {
  background: #0e1116;
  padding: 56px 0 0;
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) minmax(250px, 1.25fr);
  gap: 44px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: auto;
  min-width: 0;
}

/* The source PNG contains transparent padding. A width-based size keeps the
   visible mark compact and preserves its proportions. */
.footer-logo-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: -14px 0 -12px -15px;
  object-fit: contain;
}

.footer-tagline {
  max-width: 300px;
  margin: 0;
  color: #b3bbc8;
  font-size: 15px;
  line-height: 1.6;
}

.footer-brand .footer-social,
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #72a7ff;
  transition: color 180ms ease;
}

.social-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.social-icon svg path { fill: currentColor; }
.social-icon[aria-disabled="true"] {
  opacity: 1;
  cursor: default;
}

.footer-social .social-icon:hover {
  background: transparent;
  border: 0;
}

@media (hover: hover) {
  .social-icon:not([aria-disabled="true"]):hover {
    color: #fff;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.footer-col__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a,
.footer-contact-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  color: #abb4c2;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.footer-contact-link { gap: 10px; }
.footer-contact-link svg { flex: 0 0 auto; width: 17px; height: 17px; }
.footer-contact-link svg path,
.footer-contact-link svg polyline,
.footer-contact-link svg circle { stroke: #4c8dff; }

.footer-col a:hover,
a.footer-contact-link:hover { color: #fff; }

.footer-col a:focus-visible,
.social-icon:focus-visible {
  outline: 2px solid #72a7ff;
  outline-offset: 3px;
  border-radius: 6px;
}

.footer-divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: #242a35;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 22px;
  color: #8f98a8;
  font-size: 13px;
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-legal a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: #aeb7c5;
  text-decoration: none;
}

.footer-legal a:hover { color: #fff; }

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer { padding-top: 40px; }

  .footer .categories-inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
    padding-bottom: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    gap: 13px;
  }

  .footer-logo-img {
    width: 188px;
    margin: -13px 0 -11px -13px;
  }

  .footer-tagline {
    max-width: 310px;
    font-size: 15px;
    line-height: 1.55;
  }

  .footer-social { gap: 12px; }

  .social-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .social-icon svg {
    width: 22px;
    height: 22px;
  }

  .footer-col { gap: 0; }

  .footer-col__title {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .footer-col a,
  .footer-contact-link {
    min-height: 44px;
    font-size: 15px;
    line-height: 1.4;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    gap: 2px;
  }

  .footer-contact-link { gap: 12px; }
  .footer-contact-link svg { width: 18px; height: 18px; }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 12px;
  }

  .footer-legal { justify-content: center; }
}

@media (max-width: 350px) {
  .footer .categories-inner { padding-inline: 16px; }
  .footer-main { gap-inline: 18px; }
  .footer-col a,
  .footer-contact-link { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .social-icon,
  .footer-col a,
  .footer-contact-link { transition: none; }
}


.footer-disclaimer {
  max-width: 960px;
  margin: 24px 0 0;
  color: #aeb7c5;
  font-size: 12px;
  line-height: 1.6;
}
.footer-cookie-settings {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb7c5;
  font: inherit;
  cursor: pointer;
}
.footer-cookie-settings:hover { color: #fff; }
.footer-cookie-settings:focus-visible { outline: 2px solid #72a7ff; outline-offset: 3px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  z-index: 150;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 44px rgba(10, 24, 44, .22);
  color: #142033;
}
.cookie-banner__text strong { display: block; margin-bottom: 5px; font-size: 16px; }
.cookie-banner__text p { margin: 0; font-size: 13px; line-height: 1.5; }
.cookie-banner__text p + p { margin-top: 7px; }
.cookie-banner__text a { color: #005bf4; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-shrink: 0; gap: 8px; }
.cookie-banner__button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #005bf4;
  border-radius: 10px;
  background: #fff;
  color: #005bf4;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-banner__button--accept { background: #005bf4; color: #fff; }
.cookie-banner__button:focus-visible { outline: 3px solid #72a7ff; outline-offset: 2px; }
.lead-consent--marketing { margin-top: 8px; }
.privacy-row--marketing { margin-top: -4px; }
@media (max-width: 650px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__button { flex: 1; }
}
