/* ===== Footer ===== */
.site-footer {
  --bg: #161f7a;
  --text: #edf2ff;
  --muted: #cbd3ff;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.78);
  --icon-bg: rgba(255, 255, 255, 0.14);
  --icon-bg-hover: rgba(255, 255, 255, 0.22);

  width: 100%;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.site-footer * {
  box-sizing: border-box;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 18px 22px;
}

/* ===== Grid ===== */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  text-align: center;
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 36px;
    text-align: left;
    align-items: start;
  }
}

.footer-block {
  min-width: 0;
}

/* ===== Brand ===== */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.footer-logo--combo {
  width: 320px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(7, 11, 61, 0.16);
}

.footer-text {
  margin: 14px 0 0;
  max-width: 340px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.footer-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.footer-partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 72px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-partner-link:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.footer-partner-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: 34px;
  object-fit: contain;
}

.footer-partner-logo--buderus {
  height: 30px;
}

.footer-partner-logo--panasonic {
  height: 34px;
}

@media (min-width: 900px) {
  .footer-brand {
    align-items: flex-start;
  }

  .footer-text {
    max-width: 360px;
  }

  .footer-partners {
    justify-content: flex-start;
  }
}

/* ===== Titles ===== */
.footer-title {
  margin: 0;
  color: #ffffff;
  display: inline-block;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
  margin: 14px auto 0;
}

@media (min-width: 900px) {
  .footer-title {
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  .footer-title::after {
    width: 42px;
    height: 3px;
    margin: 10px 0 0;
    background: rgba(255, 255, 255, 0.3);
  }
}

/* ===== Nav ===== */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  display: inline-block;
  font-weight: 600;
  line-height: 1.45;
}

.footer-links a.onder {
  font-size: 13px;
  font-weight: 500;
}

.footer-links a:hover {
  transform: translateX(3px);
}

@media (min-width: 900px) {
  .footer-links {
    text-align: left;
    margin-top: 12px;
  }
}

/* ===== Contact mobile exacte flow ===== */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-contact__mobile-flow {
  width: 100%;
  max-width: 340px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-contact__pin,
.footer-contact__mailicon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.footer-contact__pin {
  margin-top: 8px;
}

.contact-address {
  margin-top: 16px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  max-width: 260px;
}

.footer-contact__brandlogo {
  margin-top: 26px;
}

.footer-contact-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 33px;
  color: #ffffff !important;
}

.social-link:hover {
  transform: translateY(-2px);
}

.footer-contact__mailicon {
  margin-top: 18px;
}

.footer-contact__mailicon--mail {
  margin-top: 18px;
}

.footer-contact__mailicon .contact-symbol {
  font-size: 24px;
}

.contact-multi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-multi--phone {
  margin-top: 16px;
}

.contact-multi--mail {
  margin-top: 16px;
}

.contact-phone,
.contact-mail {
  display: inline-block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-mail {
  word-break: break-word;
}

/* ===== Desktop contact ===== */
.footer-contact__desktop {
  display: none;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.contact-item--multi {
  align-items: flex-start;
}

.icon-bubble {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  color: #ffffff;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.icon-bubble i {
  font-size: 18px;
  line-height: 1;
}

.contact-item:hover .icon-bubble {
  background: var(--icon-bg-hover);
  transform: translateY(-1px);
}

.contact-link {
  color: var(--muted);
  line-height: 1.5;
  word-break: break-word;
}

.contact-link-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.socials--desktop {
  justify-content: flex-start;
  margin-top: 18px;
}

.social-link--desktop {
  width: 42px;
  height: 42px;
  font-size: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.social-link--desktop:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ===== Desktop switch ===== */
@media (min-width: 900px) {
  .footer-contact {
    align-items: flex-start;
  }

  .footer-contact__mobile-flow {
    display: none;
  }

  .footer-contact__desktop {
    display: block;
    width: 100%;
  }
}

/* ===== Bottom ===== */
.site-footer__bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-bottom__left,
.footer-bottom__right {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer-bottom__right a {
  font-weight: 600;
}

@media (min-width: 900px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 16px;
  }
}

/* ===== Small screens ===== */
@media (max-width: 480px) {
  .site-footer__inner {
    padding: 40px 16px 18px;
  }

  .site-footer__grid {
    gap: 28px;
  }

  .footer-title {
    font-size: 17px;
    letter-spacing: 0.15em;
  }

  .footer-title::after {
    width: 48px;
    height: 5px;
    margin-top: 12px;
  }

  .contact-address,
  .contact-phone,
  .contact-mail {
    font-size: 14px;
  }

  .footer-contact-logo {
    width: 170px;
  }

  .footer-logo {
    width: 150px;
  }

  .footer-logo--combo {
    width: 260px;
  }

  .social-link {
    width: 42px;
    height: 42px;
    font-size: 31px;
  }

  .contact-symbol {
    font-size: 32px;
  }

  .footer-contact__mailicon .contact-symbol {
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .footer-contact-logo {
    width: 150px;
  }

  .footer-title {
    font-size: 16px;
  }

  .contact-address,
  .contact-phone,
  .contact-mail {
    font-size: 13px;
  }

  .social-link {
    font-size: 28px;
  }
}

/* ===== Accessibility ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.footer-partner-logo--buderus {
  height: 50px;
}

.footer-partner-logo--panasonic {
  height: 34px;
}
