/* Shared footer (home-footer) */
footer.home-footer {
  background: var(--color-footer-bg) !important;
  color: #efefef;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
}

.home-footer {
  padding: var(--footer-pad-y-top) var(--footer-inner-pad-x) var(--footer-pad-y-bottom);
  margin: 0 var(--footer-margin) var(--wrapper-pad);
  border-radius: var(--radius-card);
  position: relative;
  z-index: 110;
}

/* Isolate from page-level .wrapper overrides */
.page-shell > .home-footer .wrapper,
.home-footer .wrapper {
  width: min(var(--wrapper-max), 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}

.home-footer__top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  padding: var(--footer-nav-pad-y-top) 0 var(--footer-nav-pad-y-bottom);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.home-footer__top-nav a {
  color: #efefef;
  font-size: 20px;
  text-decoration: none;
}

.home-footer__top-nav a:hover {
  text-decoration: underline;
}

.home-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 0;
  align-items: start;
}

.home-footer__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.home-footer__qr-link,
.home-footer__ncsp-link {
  display: inline-flex;
  line-height: 0;
}

.home-footer__qr {
  width: 86px;
  height: auto;
}

.home-footer__ncsp {
  height: 87px;
  width: auto;
}

.yar-logo {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.yar-logo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Figma footer: logo height 85px, aspect 147.31 × 170 (same geometry as header combined SVG) */
.yar-logo--footer {
  --yar-logo-footer-height: 85px;
  height: var(--yar-logo-footer-height);
  width: calc(var(--yar-logo-footer-height) * 147.309 / 170);
  overflow: visible;
}

.home-footer__map {
  max-width: 296px;
  overflow: hidden;
  border-radius: var(--radius-card);
  line-height: 0;
}

.home-footer__map iframe {
  display: block;
  width: 100%;
  height: 161px;
  border: none;
  border-radius: var(--radius-card);
}

.home-footer__col--contacts {
  text-align: left;
}

.home-footer__col--contacts p {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 12px;
  text-align: left;
}

.home-footer__col--contacts strong {
  font-weight: 500;
}

.home-footer__feedback-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.home-footer__feedback-form input,
.home-footer__feedback-form textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius-card);
  background: #efefef;
  color: var(--color-text);
  font-size: 15px;
  padding: 11px 20px;
  font-family: inherit;
  box-sizing: border-box;
}

.home-footer__feedback-form textarea {
  min-height: 40px;
  resize: vertical;
}

.home-footer__feedback-form button {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: var(--radius-card);
  background: var(--color-primary);
  color: #efefef;
  font-size: 20px;
  cursor: pointer;
}

.home-footer__form-note {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  color: #efefef;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-footer__form-note a {
  color: #efefef;
  text-decoration: underline;
}

.home-footer__col--contacts .home-footer__copyright {
  font-size: 12px;
  line-height: 1.5;
  color: #efefef;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-top: 8px;
  padding-bottom: 4px;
  text-align: left;
}

.home-footer__col--contacts .home-footer__copyright a {
  color: #efefef;
  text-decoration: underline;
}

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

/* Mobile — same breakpoints/tokens as catalog (layout/site) */
@media (max-width: 767px) {
  .home-footer {
    margin-inline: var(--footer-margin);
    padding: var(--footer-pad-y-top) var(--footer-inner-pad-x) var(--footer-pad-y-bottom);
    margin-bottom: var(--wrapper-pad);
  }

  /*
   * Site pages pad the body on mobile for the header chrome.
   * Cancel that side padding for the footer so inset comes only from
   * --footer-margin (same visual as catalog desktop / home).
   */
  body:has(.site-header):not(.home-page) .page-shell > .home-footer {
    margin-left: 0;
    margin-right: 0;
  }

  .home-footer__top-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: var(--footer-nav-pad-y-top) 0 var(--footer-nav-pad-y-bottom);
    margin-bottom: 20px;
  }

  .home-footer__top-nav a {
    font-size: 12px;
  }

  .home-footer__grid {
    gap: 20px;
    margin-bottom: 20px;
  }

  .home-footer__logos {
    gap: 12px;
    margin-bottom: 12px;
  }

  .home-footer__qr {
    width: 52px;
  }

  .home-footer__ncsp {
    height: 52px;
  }

  .yar-logo--footer {
    --yar-logo-footer-height: 52px;
  }

  .home-footer__map {
    max-width: 100%;
  }

  .home-footer__map iframe {
    height: 90px;
  }

  .home-footer__col--contacts p {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .home-footer__feedback-form input,
  .home-footer__feedback-form textarea {
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 20px;
    min-height: 40px;
  }

  .home-footer__feedback-form button {
    height: 30px;
    font-size: 15px;
    border-radius: 30px;
  }

  .home-footer__form-note {
    font-size: 10px;
  }

  .home-footer__col--contacts .home-footer__copyright {
    font-size: 8px;
    line-height: 1.4;
  }
}

.form-honeypot {
  position: absolute;
  left: -5000px;
}

.feedback-message {
  font-size: 14px;
  margin: 0;
}

