/* Site footer (Figma node 1:687) and floating support button (1:749). */

.dn-footer {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: var(--background-secondary);
  color: var(--typography-secondary);
}

.dn-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  height: 208px;
}

.dn-footer__left, .dn-footer__right { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.dn-footer__right { align-items: flex-end; }

.dn-footer__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-footer-title);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.dn-newsletter { width: 370px; display: flex; flex-direction: column; gap: 12px; }
.dn-newsletter__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--control-height);
  padding: 16px;
  border: var(--border-width) solid var(--elements-primary);
  border-radius: var(--radius);
}
.dn-newsletter__input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  color: var(--typography-tertiary);
  font-size: 16px; line-height: 1.2;
}
.dn-newsletter__input::placeholder { color: var(--typography-tertiary); opacity: 0.7; }
.dn-newsletter__submit { display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--typography-tertiary); }
.dn-newsletter__submit .dn-icon { width: 18px; height: 18px; stroke-width: 1.5; }
.dn-newsletter__field:focus-within { outline: 2px solid var(--typography-tertiary); outline-offset: 3px; }

.dn-footer__legal { display: flex; align-items: flex-end; gap: 24px; }
.dn-footer__badge { width: 89px; height: 50px; }
.dn-footer__legal-text { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.2; color: var(--typography-quarternary); }
.dn-footer__legal-text a { text-decoration: underline; }

.dn-footer__friends { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.dn-social { display: flex; gap: 13.7px; }

.dn-footer__contact { display: flex; gap: 24px; font-size: 16px; line-height: 1.2; color: var(--typography-tertiary); }

/* Decorative ghost shape (Figma node 1:728): centre at (742, 209) from the footer top-left, rotated -45° */
.dn-footer__ghost {
  position: absolute;
  z-index: 0;
  left: calc(50% - 960px + 742px - 381.465px);
  top: calc(209px - 135.255px);
  width: 762.93px;
  height: 270.51px;
  max-width: none;
  transform: rotate(-45deg);
  pointer-events: none;
}

/* Floating support button */
.dn-support {
  position: fixed;
  z-index: 50;
  right: 60px;
  bottom: 93px;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.dn-support img { width: 100%; height: 100%; }
