/* Shared public frame corrections. Keep this file loaded after page-local styles. */
:root {
  --p2p-frame-black: #000000;
  --p2p-frame-dark: #404040;
  --p2p-frame-mid: #808080;
  --p2p-frame-light: #d9d9d9;
  --p2p-frame-white: #ffffff;
  --p2p-frame-red: #d00000;
  --color-red: #d00000;
  --red: #d00000;
}

main {
  display: block;
}

.site-footer {
  box-sizing: border-box;
  margin: 0;
  padding: 56px 24px 32px;
  background: var(--p2p-frame-dark);
  color: var(--p2p-frame-light);
  font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer__inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #555555;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand__logo-mark {
  display: flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  background: var(--p2p-frame-white);
}

.footer-brand__logo-mark svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--p2p-frame-black);
  stroke-width: 2;
}

.footer-brand__name {
  color: var(--p2p-frame-white);
  font-size: 1rem;
  font-weight: 700;
}

.footer-brand__desc {
  max-width: 280px;
  margin: 0;
  color: #c4c4c4;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-col__title {
  margin: 0 0 16px;
  color: var(--p2p-frame-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer-col ul li {
  margin: 0;
  padding: 0;
}

.footer-col ul li a,
.footer-contact-item a {
  color: #c4c4c4;
  text-decoration: none;
  transition: color 0.12s;
}

.footer-col ul li a {
  font-size: 0.82rem;
}

.footer-col ul li a:hover,
.footer-contact-item a:hover {
  color: var(--p2p-frame-white);
}

.footer-contact-item {
  display: flex;
  margin-bottom: 10px;
  align-items: flex-start;
  gap: 10px;
  color: #c4c4c4;
  font-size: 0.82rem;
  line-height: 1.4;
}

.footer-contact-item svg {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex: 0 0 14px;
  fill: none;
  stroke: var(--p2p-frame-mid);
  stroke-width: 2;
}

.site-footer__bottom {
  display: flex;
  margin: 0;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #bdbdbd;
  font-size: 0.75rem;
}

.site-footer__bottom a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.12s;
}

.site-footer__bottom a:hover {
  color: var(--p2p-frame-light);
}

main .tech-note,
main .quality-reports h3,
main h3[style*="font-size: 0.8rem"],
main h3[style*="font-size:0.8rem"] {
  color: #606060 !important;
}

.hero .hero__eyebrow,
.final-cta .section-label {
  color: #ff6666 !important;
}

.seo-crosslinks .section-label,
.seo-crosslinks > div > span {
  color: #d00000 !important;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 600px) {
  .site-header__logo-text {
    display: none !important;
  }

  .site-header .lang-switcher {
    display: flex !important;
    min-width: 0;
    margin-left: auto;
    padding: 2px !important;
    gap: 1px !important;
  }

  .site-header .lang-switcher__item {
    min-width: 28px;
    min-height: 28px;
    padding: 4px !important;
    justify-content: center;
    gap: 0 !important;
  }

  .site-header .lang-switcher__item svg {
    display: block !important;
    width: 16px !important;
    height: 11px !important;
  }

  .site-header .lang-switcher__item .lang-code,
  .site-header .lang-switcher__sep {
    display: none !important;
  }

  .site-header .nav-toggle,
  .site-header .menu-toggle {
    margin-left: 0 !important;
  }
}

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

  .footer-brand {
    grid-column: auto;
  }
}
