/* Header/footer overrides to keep the fundraising module visually continuous with pamyatpokoleniy.ru. */

.foundation-header {
  border-top: 6px solid #202020;
  border-bottom: 0;
  background: #fff;
}

/* The real site header spans the full viewport. Keep only adaptive side paddings,
   do not constrain it to the content column used by the body/footer. */
.foundation-header__inner,
.module-bar__inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(28px, 4vw, 72px);
}

.foundation-footer__inner,
.foundation-footer__bottom {
  width: min(1180px, calc(100% - 72px));
  margin-inline: auto;
}

.foundation-header__inner {
  min-height: 96px;
  padding-top: 14px;
  padding-bottom: 13px;
  gap: 36px;
}

.foundation-brand {
  flex: 0 0 auto;
}

.foundation-brand__logo {
  display: block;
  width: 218px;
  height: auto;
}

.foundation-header__actions {
  margin-left: auto;
  gap: 24px;
}

.foundation-header__utility,
.foundation-header__primary {
  display: flex;
  align-items: center;
}

.foundation-header__utility {
  gap: 24px;
}

.foundation-header__primary {
  gap: 18px;
}

.foundation-header__utility a {
  color: #171717;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.header-help-button {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: #cf252c;
  font-size: 15px;
  font-weight: 800;
}

.header-help-button:hover {
  background: #b71e25;
}

.foundation-menu summary {
  padding: 12px 0;
  color: #183f2f;
  font-size: 15px;
  font-weight: 800;
}

.foundation-menu summary::after {
  content: "  ☰";
  color: #cf252c;
  font-size: 17px;
}

.foundation-menu__panel {
  top: calc(100% + 12px);
  width: 380px;
  border-radius: 0;
  border: 1px solid #e7e7e3;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
}

.module-bar {
  border-top: 1px solid #efefec;
  border-bottom: 1px solid #dedfdc;
  background: #fff;
}

.module-bar__inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.module-bar__title {
  padding-left: 0;
  color: #173f2f;
  font-size: 15px;
  font-weight: 800;
}

.module-bar__title::before {
  display: none;
}

.module-bar nav {
  gap: 24px;
}

.module-bar nav a {
  color: #173f2f;
  font-size: 14px;
  font-weight: 700;
}

.module-bar nav a:hover {
  color: #cf252c;
  text-decoration: none;
}

.foundation-footer {
  margin-top: 88px;
  border-top: 1px solid #e3e3df;
  background: #fff;
  color: #1a1a1a;
}

.foundation-footer__inner {
  grid-template-columns: 1.3fr 1fr 1fr .85fr;
  gap: 54px;
  padding: 52px 0 34px;
}

.foundation-footer .foundation-brand,
.foundation-footer .foundation-brand:hover {
  color: inherit;
}

.foundation-brand__logo--footer {
  width: 190px;
}

.foundation-footer__copyright {
  margin: 28px 0 0;
  color: #747474;
  font-size: 13px;
  line-height: 1.55;
}

.foundation-footer h2 {
  margin: 0 0 20px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: none;
}

.foundation-footer nav {
  gap: 10px;
}

.foundation-footer nav a,
.foundation-footer a {
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.35;
}

.foundation-footer nav a:hover,
.foundation-footer a:hover {
  color: #cf252c;
  text-decoration: none;
}

.foundation-footer address {
  gap: 9px;
  font-size: 14px;
}

.foundation-footer__bottom {
  min-height: 52px;
  padding: 15px 0 20px;
  border-top: 1px solid #ecece8;
  color: #737373;
}

.foundation-footer__bottom nav {
  margin-left: auto;
}

.foundation-footer__bottom a {
  color: #737373;
  font-size: 13px;
}

@media (max-width: 980px) {
  .foundation-header__inner,
  .module-bar__inner {
    padding-inline: 28px;
  }

  .foundation-footer__inner,
  .foundation-footer__bottom {
    width: min(100% - 40px, 1180px);
  }

  .foundation-header__utility {
    display: none;
  }

  .foundation-brand__logo {
    width: 198px;
  }

  .foundation-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .foundation-header {
    border-top-width: 4px;
  }

  .foundation-header__inner,
  .module-bar__inner {
    padding-inline: 16px;
  }

  .foundation-footer__inner,
  .foundation-footer__bottom {
    width: min(100% - 28px, 1180px);
  }

  .foundation-header__inner {
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .foundation-brand__logo {
    width: 158px;
  }

  .header-help-button {
    display: none;
  }

  .module-bar__inner {
    min-height: 48px;
  }

  .module-bar nav {
    gap: 16px;
  }

  .foundation-footer {
    margin-top: 60px;
  }

  .foundation-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .foundation-footer__bottom {
    display: block;
  }

  .foundation-footer__bottom nav {
    margin-top: 10px;
  }
}
