.c1-footer,
.c1-footer * {
  box-sizing: border-box;
}

.c1-footer {
  position: relative;
  min-height: 520px;
  padding: 82px 24px 64px;
  overflow: hidden;
  background: #06040c;
  color: #fff;
}

.c1-footer::before {
  content: "";
  position: absolute;
  top: -270px;
  left: -470px;
  width: 1220px;
  height: 700px;
  background: url('/assets/images/source/faq-lines.webp') center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}

.c1-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1203px;
  margin: 0 auto;
}

.c1-footer__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 72px;
}

.c1-footer__top::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: -22px;
  height: 43px;
  background: url('/assets/images/source/footer-line.webp') center / 100% 43px no-repeat;
  pointer-events: none;
}

.c1-footer__logo {
  width: 91px;
  height: 94px;
  flex: 0 0 91px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(345.05deg, #e05a2a -188.05%, #3e054d 75.77%);
  color: #fff;
  text-decoration: none;
}

.c1-footer__logo svg {
  width: 31px;
  height: 36px;
  display: block;
}

.c1-footer__tagline {
  padding-top: 26px;
  color: #fff;
  font: 500 30px/1 Inter, sans-serif;
}

.c1-footer__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.c1-footer__primary,
.c1-footer__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 75px;
}

.c1-footer__contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.c1-footer__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c1-footer__group > span {
  background: linear-gradient(280.92deg, #d76c2c 1.94%, #ab359c 120.21%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font: 400 16px/28px Inter, sans-serif;
  -webkit-text-fill-color: transparent;
}

.c1-footer a,
.c1-footer__secondary > p,
.c1-footer__support p {
  color: #625a62;
  font: 400 16px/28px Inter, sans-serif;
}

.c1-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}

.c1-footer a:hover {
  color: rgba(255, 255, 255, .82);
}

.c1-footer a:focus-visible,
.c1-whatsapp-float:focus-visible,
.c1-footer__to-top:focus-visible {
  outline: 2px solid #f87549;
  outline-offset: 4px;
}

.c1-footer__company nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 0;
}

.c1-footer__social > div {
  display: flex;
  gap: 32px;
}

.c1-footer__social a {
  width: 24px;
  height: 24px;
  display: block;
  line-height: 0;
}

.c1-footer__social img {
  width: 24px;
  height: 24px;
  display: block;
}

.c1-footer__secondary {
  align-items: end;
}

.c1-footer__secondary > p,
.c1-footer__support p {
  margin: 0;
}

.c1-footer__to-top {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  width: 91px;
  height: 94px;
  display: grid;
  place-items: center;
  background: linear-gradient(345.05deg, rgba(224, 90, 42, .5) -188.05%, rgba(62, 5, 77, .5) 75.77%);
  color: #f87549;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}

.c1-whatsapp-float {
  position: fixed;
  z-index: 21;
  right: 42px;
  bottom: 130px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(24, 22, 27, .96);
  color: #25d366;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: border-color .2s ease, background-color .2s ease, opacity .3s ease, transform .3s ease;
}

.c1-whatsapp-float:hover {
  border-color: rgba(37, 211, 102, .6);
  background: rgba(31, 29, 34, .98);
  transform: translateY(-2px);
}

.c1-whatsapp-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.c1-whatsapp-float svg {
  width: 24px;
  height: 24px;
  display: block;
}

.c1-footer__to-top svg {
  width: 18px;
  height: 24px;
  display: block;
}

@media (max-width: 1024px) {
  .c1-footer {
    min-height: 0;
    padding: 76px 24px 58px;
  }

  .c1-footer__inner {
    max-width: 760px;
  }

  .c1-footer__top {
    margin-bottom: 68px;
  }

  .c1-footer__logo {
    width: 68px;
    height: 70px;
    flex-basis: 68px;
  }

  .c1-footer__logo svg {
    width: 25px;
    height: 30px;
  }

  .c1-footer__tagline {
    padding-top: 22px;
    font-size: 23px;
  }

  .c1-footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
  }

  .c1-footer__primary,
  .c1-footer__secondary {
    display: contents;
  }

  .c1-footer__contacts {
    grid-column: 1;
  }

  .c1-footer__company {
    grid-column: 2;
  }

  .c1-footer__social {
    grid-column: 1;
  }

  .c1-footer__support {
    grid-column: 2;
    grid-row: 2;
  }

  .c1-footer__privacy {
    grid-column: 2;
    grid-row: 3;
  }

  .c1-footer__secondary > p {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 768px) {
  .c1-footer {
    padding: 82px 24px 54px;
  }

  .c1-footer::before {
    top: -210px;
    left: -390px;
    opacity: .1;
  }

  .c1-footer__inner {
    max-width: 560px;
  }

  .c1-footer__top {
    gap: 18px;
    margin-bottom: 36px;
  }

  .c1-footer__top::after {
    left: 50%;
    right: auto;
    width: min(400px, 90vw);
    transform: translateX(-50%);
    background-size: 100% auto;
  }

  .c1-footer__logo {
    width: 44px;
    height: 50px;
    flex-basis: 44px;
  }

  .c1-footer__logo svg {
    width: 21px;
    height: 27px;
  }

  .c1-footer__tagline {
    padding-top: 15px;
    font-size: 16px;
  }

  .c1-footer__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px 18px;
  }

  .c1-footer__group {
    gap: 6px;
  }

  .c1-footer__contacts {
    display: contents;
  }

  .c1-footer__contacts .c1-footer__group:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .c1-footer__contacts .c1-footer__group:last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .c1-footer__company {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .c1-footer__company nav {
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
  }

  .c1-footer__social {
    grid-column: 1;
    grid-row: 3;
  }

  .c1-footer__support {
    grid-column: 2;
    grid-row: 3;
  }

  .c1-footer__privacy {
    grid-column: 1 / 3;
    grid-row: 4;
    text-align: center;
  }

  .c1-footer__secondary > p {
    grid-column: 1 / 3;
    grid-row: 5;
    text-align: center;
  }

  .c1-footer__to-top {
    right: 6px;
    top: auto;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 45.45px;
    transform: translateY(20px);
  }

  .c1-whatsapp-float {
    right: 6px;
    top: auto;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    border-color: rgba(255, 255, 255, .2);
    background: linear-gradient(345.05deg, rgba(224, 90, 42, .5) -188.05%, rgba(62, 5, 77, .5) 75.77%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    backdrop-filter: none;
    transform: translateY(20px);
  }

  .c1-whatsapp-float.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .c1-footer {
    padding-inline: 20px;
  }

  .c1-footer__content {
    gap: 24px 16px;
  }

  .c1-footer a,
  .c1-footer__secondary > p,
  .c1-footer__support p,
  .c1-footer__group > span {
    font-size: 15px;
    line-height: 1.5;
  }

  .c1-footer__contacts a {
    overflow-wrap: anywhere;
  }

  .c1-footer__social > div {
    gap: 26px;
  }
}

.c1-footer__to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .c1-footer__to-top.is-visible {
    transform: translateY(0);
  }
}
