/* ===== Footer (renewed) ===== */
.site-footer {
  width: 100%;
  background: #bdd2e9;
  color: #1f2d3d;
  font-size: 15px;
  line-height: 1.62;
}

.footer-primary {
  padding: 0 clamp(24px, 7vw, 96px) clamp(41px, 5.95vw, 75px);
}

.footer-primary__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 42px;
}

@media (min-width: 761px) {
  .footer-contact {
    margin-top: 80px;
  }

  .footer-logo {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1 / span 5;
    justify-self: flex-start;
    align-self: flex-start;
  }
}

.footer-contact {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(240px, max-content);
  gap: 0px;
  text-align: right;
}

.footer-contact__company-logo {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 10px;
  justify-self: flex-end;
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: #1e3448;
  white-space: nowrap;
}

.footer-contact__address {
  position: relative;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: flex-end;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 18px);
  letter-spacing: 0.03em;
  color: #1e3448;
}

.footer-contact__tel {
  position: relative;
  margin: 16px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: flex-end;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 25px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: #1e3448;
}

.footer-contact__map {
  justify-self: flex-end;
  display: inline-flex;
  margin-top: 4px;
  color: #1e3448;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-contact__map:hover,
.footer-contact__map:focus-visible {
  color: #10365c;
}

.footer-contact__btn {
  justify-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 36.3501px;
  min-height: 36.3501px;
  padding: 0 14px;
  border-radius: 0;
  background: #c71555;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 14px;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-contact__btn:hover,
.footer-contact__btn:focus-visible {
  background: #c71555;
  color: #fff;
}

.footer-nav {
  margin-top: clamp(32px, 5vw, 54px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(20px, 3.4vw, 31px) clamp(28px, 5vw, 48px);
  --footer-accent: #2d4a64;
}

.footer-nav__group {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-nav__title {
  position: relative;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 18px);
  letter-spacing: 0.03em;
  color: #1e3448;
  text-decoration: none;
}

a.footer-nav__title:hover,
a.footer-nav__title:focus-visible {
  color: #10365c;
}



.footer-nav__branch {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 15px;
}

.footer-nav__branch li {
  margin: 0;
  padding: 0;
}

.footer-nav__branch li::before {
  content: none;
}

.footer-nav__branch a {
  color: #1f2d3d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav__branch a:hover,
.footer-nav__branch a:focus-visible {
  color: #10365c;
}

.footer-nav__group--boxes .footer-nav__branch {
  gap: 8px;
}

.footer-bottom {
  margin-top: clamp(41px, 5.25vw, 54px);
  padding: clamp(24px, 4.25vw, 31px) clamp(24px, 7vw, 96px);
  background: linear-gradient(180deg, #c9dbef 0%, #b3c9e2 100%);
  display: grid;
  gap: clamp(15px, 3.4vw, 18px);
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 6vw, 36px);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social img {
  width: 42px;
  height: auto;
  display: block;
}

.footer-copy {
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media (max-width: 1200px) {
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .footer-primary {
    padding-top: 0;
    padding-bottom: 38px;
  }

  .footer-primary__inner {
    justify-content: center;
    text-align: center;
    gap: 24px;
  }

  .footer-contact {
    width: auto;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-logo {
    margin-bottom: 24px;
    margin-top: 30px;
    justify-self: center;
  }

  .footer-contact__company-logo {
    margin-bottom: 6px;
    justify-self: center;
  }

  .footer-contact__address,
  .footer-contact__map,
  .footer-contact__tel {
    justify-self: center;
  }

  .footer-contact__map {
    margin-top: 6px;
  }

  .footer-contact__tel {
    margin: 10px 0;
  }

  .footer-contact__btn {
    justify-self: center;
  }

  .footer-bottom {
    margin-top: 38px;
    padding-top: 25px;
    padding-bottom: 25px;
    gap: 14px;
  }

  .footer-social img {
    width: 39px;
  }

  .footer-copy {
    font-size: 12px;
    line-height: 1.55;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    justify-items: start;
  }

  .footer-nav__title {
    font-size: 15px;
  }

  .footer-nav__branch {
    gap: 8px;
  }

  .footer-nav__group--boxes .footer-nav__branch {
    gap: 10px;
  }
}

/* SP footer: remove the sitemap link collection only. */
@media (max-width: 880px) {
  .site-footer .footer-nav {
    display: none !important;
  }
}

.sp-floating-contact {
  display: none;
}

/* SP floating contact button. */
@media (max-width: 880px) {
  .sp-floating-contact {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #c71555;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    text-decoration: none;
  }

  .sp-floating-contact:focus-visible {
    outline: 3px solid rgba(63, 127, 190, 0.55);
    outline-offset: 3px;
  }

  .sp-floating-contact__icon {
    position: relative;
    width: 29px;
    height: 21px;
    border: 3px solid currentColor;
    border-radius: 3px;
    box-sizing: border-box;
  }

  .sp-floating-contact__icon::before,
  .sp-floating-contact__icon::after {
    content: "";
    position: absolute;
    top: 1px;
    width: 18px;
    height: 3px;
    background: currentColor;
    transform-origin: center;
  }

  .sp-floating-contact__icon::before {
    left: -1px;
    transform: rotate(35deg);
  }

  .sp-floating-contact__icon::after {
    right: -1px;
    transform: rotate(-35deg);
  }
}
