.site-footer {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--card-border);
  background: var(--paper);
  padding: 0;
  color: var(--paper-ink);
  /* ровно один экран под липким меню: при переходе на «Контакты» копирайт виден без скролла;
     если содержимое выше экрана — футер растягивается по содержимому */
  min-height: calc(100vh - var(--menu-h, 60px));
  min-height: calc(100dvh - var(--menu-h, 60px));
}

.contacts-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: var(--paper-ink);
  padding: 64px 0 24px;
}

/* слева контакты, справа карта на всю доступную высоту */
.contacts-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 48px;
  align-items: stretch;
}

.contacts-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contacts-title {
  display: inline-block;
  font-size: clamp(29px, 2.4vw, 72px);
  font-weight: 400;
  border-bottom: 2px solid rgba(var(--hot-rgb), 1);
  margin-bottom: 14px;
  color: var(--paper-ink);
}

.contacts-row {
  display: flex;
  column-gap: 16px;
  align-items: center;
  width: 100%;
  padding: 16px 0;
}

.contacts-row + .contacts-row {
  border-top: 1px solid var(--paper-line);
}

.contacts-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--hot-rgb), 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contacts-icon svg {
  width: 20px;
  height: 20px;
  fill: rgba(var(--hot-rgb), 1);
  stroke: none;
}

.contacts-text {
  font-size: 15px;
  line-height: 1.55;
}

.contacts-text p {
  margin: 0;
  text-wrap: balance;
}

.contacts-text p + p {
  color: var(--paper-muted);
}

.contacts-text a {
  color: var(--paper-ink);
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  transition: color 0.2s ease;
}

.contacts-text a + a {
  margin-top: 4px;
}

.contacts-text a:hover {
  color: var(--hot);
}

.contacts-text a[href^="tel:"] {
  font-size: 19px !important;
  letter-spacing: 0.01em;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contacts-right {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ece6de;
  box-shadow: 0 0 0 1px var(--paper-line), 0 24px 44px -28px rgba(26, 21, 19, 0.45);
}

.contacts-right iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .contacts-text {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .contacts-card {
    padding: 52px 0 22px;
  }

  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contacts-right {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .contacts-text {
    font-size: 19px;
  }

  .contacts-right {
    min-height: 300px;
  }

  .contacts-actions .btn {
    flex: 1 1 auto;
  }
}

/* ---------- Логотип и копирайт ---------- */
.footer-copy {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-copy p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 14px !important;
}

.footer-copy p span {
  font-size: inherit !important;
}

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

@media (max-width: 768px) {
  .footer-copy {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Плавающая кнопка звонка (телефон) ---------- */
.call-fab {
  display: none;
}

@media (max-width: 768px) {
  .call-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--hot);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  /* в блоке контактов телефоны уже на виду — кнопку убираем, чтобы не закрывала копирайт */
  .call-fab.is-away {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
  }

  .call-fab svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }
}
