/* Footer of the pryalka theme */

/* The old theme pinned the footer to the bottom (absolute, with a fixed room of ~300 px under the content);
   the footer is taller now, so it goes in the flow under the content instead */
#container {
  position: static;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-bottom: 0;
}

#container > main {
  flex: 1 0 auto;
}

#content,
#column-left,
#column-right {
  padding-bottom: 24px;
}

footer.ft {
  position: static;
  border: 0;
}

.ft {
  margin-top: 48px;
  padding: 40px 0 24px;
  background: #2f3542;
  color: #c8ccd4;
  font-size: 14px;
}

.ft a {
  color: #e6e8ec;
  text-decoration: none;
}

.ft a:hover {
  color: #fff;
  text-decoration: underline;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.ft-name {
  margin-bottom: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.ft-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
}

.ft-phone i {
  color: var(--ph-brand);
  font-size: 16px;
}

.ft-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.ft-line i {
  width: 16px;
  color: #8a909c;
}

.ft-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ft-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
}

.ft-socials a:hover {
  background: var(--ph-brand);
  text-decoration: none;
}

.ft-title {
  margin-bottom: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.ft-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-col li {
  margin-bottom: 8px;
}

.ft-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8a909c;
  font-size: 12px;
}

.ft-requisites {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  max-width: 820px;
}

/* Scroll to top: after two screens, above the cart bar on a phone */
.ft-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #2b2b2b;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.ft-top.visible {
  opacity: 1;
  visibility: visible;
}

.ft-top:hover {
  background: var(--ph-brand);
  color: #fff;
}

@media (max-width: 991.98px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .ft-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .ft {
    padding-top: 28px;
  }

  .ft-grid {
    gap: 20px 16px;
  }

  .ft-col:last-child {
    grid-column: 1 / -1;
  }

  .ft-top {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  /* The cart bar takes the bottom of the screen */
  body:has(.pc-bar) .ft-top {
    bottom: 76px;
  }
}
