/* Footer R2 — three balanced groups, no strokes or heavy effects */
.mobile-contact-link { display: none; }

/* The final blue CTA belongs to the same visual rhythm as the footer. */
.cta-section { padding-block: 76px; }
.cta-content > div { max-width: 720px; }
.cta-content h2 { font-size: clamp(38px, 4.05vw, 58px); }

.footer-inner {
  row-gap: 36px;
  padding-block: 72px 30px;
}
.footer-inner.footer-with-contacts {
  grid-template-columns: minmax(230px, 1.12fr) minmax(265px, 1.12fr) minmax(220px, .88fr);
  column-gap: clamp(35px, 4.8vw, 78px);
}
.footer-brand-lockup { display: inline-flex; align-items: center; gap: 13px; }
.footer-brand-lockup .brand-word { font-size: 23px; }
.footer-brand-lockup .brand-word small { font-size: 8px; margin-top: 7px; }
.footer-brand p { max-width: 300px; margin: 25px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.footer-nav-group, .footer-contacts { min-width: 0; padding-top: 6px; }
.footer-section-title, .footer-contacts-title {
  display: block;
  margin: 0 0 26px;
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-links, .footer-with-contacts .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  gap: 20px 24px;
  padding-top: 0;
}
.footer-links a {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }

.footer-contacts-list { display: grid; gap: 15px; }
.footer-contact-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  column-gap: 14px;
  row-gap: 5px;
  min-width: 0;
  width: 100%;
  text-decoration: none;
}
.footer-contact-link > span:first-child { grid-column: 1; color: var(--subtle); font-size: 11px; }
.footer-contact-link strong {
  grid-column: 1;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color .16s ease;
}
.footer-contact-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 15px;
  height: 15px;
  color: var(--accent-light);
  opacity: .75;
}
.footer-contact-link:hover strong { color: var(--accent-light); }
.footer-contact-link:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 6px; }
.footer-bottom { padding-top: 2px; }
.copyright { font-size: 12px; letter-spacing: .025em; }

@media (max-width: 950px) {
  .header-nav .mobile-contact-link { display: inline-flex; margin-top: 9px; color: #fff; background: #3267ed; }
  .header-nav .mobile-contact-link:hover { background: #477bff; }
}
@media (max-width: 950px) and (min-width: 701px) {
  .footer-inner.footer-with-contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 54px; }
  .footer-with-contacts .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-with-contacts .footer-nav-group { grid-column: 2; grid-row: 1; }
  .footer-with-contacts .footer-contacts { grid-column: 1 / -1; grid-row: 2; }
  .footer-contacts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 700px) {
  .cta-section { padding-block: 66px; }
  .cta-content h2 { font-size: clamp(36px, 8vw, 53px); }
  .footer-inner, .footer-inner.footer-with-contacts { grid-template-columns: minmax(0, 1fr); gap: 39px; padding-block: 58px 30px; }
  .footer-brand, .footer-nav-group, .footer-contacts { grid-column: auto; grid-row: auto; }
  .footer-section-title, .footer-contacts-title { margin-bottom: 19px; }
  .footer-links { gap: 18px 30px; }
  .footer-contacts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .footer-bottom { padding-top: 0; }
}
@media (max-width: 450px) {
  .footer-brand-lockup .brand-word { font-size: 21px; }
  .footer-links { gap: 18px; }
  .footer-contacts-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-contact-link strong { transition: none; }
}
