.footer-block {
  margin: 0;
  width: 100%;
  min-height: 150vh;
  height: auto;
  background: linear-gradient(180deg, #dae8eb 0%, #0c1216 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
}

.footer-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%; /* регулируйте высоту по необходимости */
  background: url("../resources/images/suplar_footer.svg") center bottom/cover
    no-repeat;
  z-index: 1;

  padding-top: 12rem;
}

.footer-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  padding-top: 12.5rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-family: "KingRichard-Italic", sans-serif;
  font-size: clamp(2rem, 6vw, 6.4375rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.05;
  color: #2a383e;
  text-transform: uppercase;
  text-align: center;

  opacity: 0;

  will-change: transofrm, opacity;
}

.contact-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e4edef;
  border-radius: 15px;
  padding: 0.3em 0.4375rem;
  width: clamp(260px, 38vw, 525px);
  height: clamp(40px, 5vw, 65px);

  margin: 2rem auto;
  background: none;
  font-family: "Manrope Medium", sans-serif;
  box-sizing: border-box;

  will-change: transofrm, opacity;
}

.contact-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #2a383e;
  color: #e4edef;
  border: none;
  width: clamp(120px, 12vw, 160px);
  height: clamp(36px, 4vw, 53px);
  border-radius: 10px;

  font-size: clamp(0.875rem, 1vw, 1.125rem);
  font-family: inherit;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  padding: 0 1.5em;
  z-index: 1;

  will-change: transofrm, opacity;
}

/* The animated blur curtain */
.contact-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0.1) 100%
  );
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: none;
  z-index: 2;
}

/* Animate curtain on hover */
.contact-btn:hover::after {
  opacity: 0.8; /* Shown only during animation */
  animation: curtain-swipe 0.8s cubic-bezier(0.6, 0.3, 0.3, 1) forwards;
}

@keyframes curtain-swipe {
  0% {
    left: -60%;
    opacity: 0.8;
  }
  70% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

.contact-btn.animating:hover::after {
  animation: curtain-swipe 0.8s cubic-bezier(0.6, 0.3, 0.3, 1) forwards;
}

.contact-btn:active,
.contact-btn:focus {
  background: #2a383e;
}

.contact-mail {
  color: #e4edef;
  font-size: clamp(0.875rem, 1vw, 1.125rem);
  margin-left: auto;
  font-family: "Manrope Medium";
  padding-right: 2.0625rem;
  will-change: transofrm, opacity;
}

.img-footer-container {
  margin: 0;
  padding-top: 10rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-footer-container img {
  width: 100%;
  display: block;
  opacity: 1;
  margin: 0;
  padding: 0;
  max-width: none; /* если было ограничение */
  z-index: 10;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 2;
  padding: 0 2rem 2rem 2rem;
  font-size: clamp(0.9rem, 1vw + 0.6rem, 1rem);
  color: #dae8eb;
}

.footer-content {
  width: 100%;
  position: relative;
  z-index: 2; /* чтобы контент был поверх */
  justify-content: space-between; /* добавить */
  flex-grow: 1; /* добавить */

  display: flex; /* добавить эту строку */
  flex-direction: column; /* добавить эту строку */
}

.copyright-container {
  /* Можно убрать лишние flex-стили, если не нужны */
  font-family: "Manrope Medium";
  font-weight: 500;
  line-height: normal;
  text-align: left;
}
.rights-container {
  font-family: "Manrope Medium";
  font-weight: 500;
  line-height: normal;
  text-align: right;
}

/* small laptops */
@media screen and (min-resolution: 120dpi) and (max-width: 1600px) {

.footer-block {
  min-height: 160vh;
}

.footer-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%; /* регулируйте высоту по необходимости */
  z-index: 1;

  padding-top: 14rem;
}

.footer-top {
  padding-bottom: 50%;
}


}

@media (max-width: 600px) {
  .contact-bar {
    flex-direction: column;
    align-items: stretch;
    width: 98vw;
    padding: 1em;
    gap: 1em;
  }
  .contact-btn {
    margin-right: 0;
    margin-bottom: 0.6em;
    width: 100%;
  }
  .contact-mail {
    margin-left: 0;
    text-align: center;
    word-break: break-all;
  }
}

@media (max-width: 600px) {
  .footer-block {
    min-height: 100dvh;
    padding-bottom: 0;
  }

  .footer-title-container {
    padding-top: 4.875rem;
    margin-bottom: 3.0625rem;
  }

  .footer-title {
    font-size: 3rem;
    line-height: 1;
    color: #22313a;
    opacity: 1 !important;
    padding: 0 0.8rem;
    text-align: center;
    width: 100%;
  }

  .contact-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1rem;
    padding: 0 0.1rem;
    border: 1px solid #e4edef;
    border-radius: 15px;
    width: 20.75rem;
    height: 3.0625rem;

    margin: 0rem auto;
    background: none;
    font-family: "Manrope Medium", sans-serif;
    box-sizing: border-box;

    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .contact-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #2a383e;
    color: #e4edef;
    border: none;
    width: 110px;
    height: 34px;
    border-radius: 10px;

    font-size: 0.75rem;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    z-index: 1;

    margin-top: 0.4rem;
  }

  .contact-mail {
    color: #e4edef;
    font-size: 0.75rem;
    font-family: "Manrope Medium";
    text-align: right;
    padding-right: 1.0625rem;
    white-space: nowrap;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-self: end;
    align-self: center;
    text-overflow: ellipsis;
  }

  .footer-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.7rem 0.6rem 0.7rem;
    font-size: 0.72rem;
    width: 100%;
    gap: 0;
  }
  .copyright-container,
  .rights-container {
    width: auto;
    text-align: left;
    font-size: 0.72rem;
    color: #dae8eb;
    padding: 0;
  }
  .rights-container {
    text-align: right;
  }

  .footer-block::after {
    /* height: 32vw; */
    height: 16vw;
    opacity: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .footer-title-container {
    padding-top: 4.875rem;
    margin-bottom: 3.0625rem;
  }

  .contact-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1rem;
    padding: 0 0.1rem;
    border: 1px solid #e4edef;
    border-radius: 15px;
    width: 20.75rem;
    height: 3.0625rem;

    margin: 0rem auto;
    background: none;
    font-family: "Manrope Medium", sans-serif;
    box-sizing: border-box;

    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .contact-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #2a383e;
    color: #e4edef;
    border: none;
    width: 130px;
    height: 36px;
    border-radius: 10px;

    font-size: 0.75rem;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    z-index: 1;

    margin-top: 0rem;
  }

  .contact-mail {
    color: #e4edef;
    font-size: 0.75rem;
    font-family: "Manrope Medium";
    text-align: right;
    padding-right: 1.0625rem;
    white-space: nowrap;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-self: end;
    align-self: center;
    text-overflow: ellipsis;
  }

  .footer-block::after {
    opacity: 1;
    height: 16vw;
    opacity: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .footer-block::after {
    height: 24vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 1;
  }
}

@media (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: landscape) {
  .footer-block::after {
    height: 18vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 1;
  }
}
