/* Shared footer layout */
.footer {
  margin-top: 96px;
  padding: 0 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-panel) 100%);
  border-top: 1px solid var(--blue-border);
  text-align: left;
}

.footer__topline {
  height: 4px;
  width: min(220px, 44vw);
  margin-bottom: 34px;
  background: linear-gradient(90deg, var(--blue-ink), var(--terracotta), var(--gold));
  border-radius: 0 0 8px 8px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr 1fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.footer__brand-block {
  display: grid;
  gap: 14px;
}

.footer__brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  color: var(--blue-ink);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.1;
}

.footer__brand img {
  display: block;
  width: min(210px, 58vw);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.footer__claim {
  max-width: 360px;
  margin: 0;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.65;
}

.footer__title {
  margin-bottom: 13px;
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__contact {
  display: grid;
  gap: 9px;
  color: #475569;
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.55;
}

.footer__links {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.footer__links a,
.footer__contact a {
  color: #475569;
  text-decoration: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--terracotta);
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--blue-border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom small {
  color: #64748b;
  font-size: 0.86rem;
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.footer__bottom-links a {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
}

.footer__bottom-links a:hover {
  color: var(--terracotta);
}

@media (max-width: 980px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer {
    margin-top: 64px;
    padding-bottom: 28px;
  }

  .footer__topline {
    margin-bottom: 26px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom,
  .footer__bottom-links {
    display: grid;
    justify-content: start;
  }
}
