.kidotel-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kidotel-main {
  flex: 1 0 auto;
  width: 100%;
}

.footer {
  margin-top: auto;
  padding-block: 96px 48px;
  font-family: "Manrope", system-ui, sans-serif;
  --footer-gutter: clamp(20px, 5vw, 120px);
}

.footer .container {
  width: min(1200px, calc(100% - (var(--footer-gutter) * 2)));
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, auto);
  gap: clamp(32px, 6vw, 97px);
  align-items: start;
}

.footer p,
.footer a {
  font-size: 12px;
  line-height: 1.5;
  color: #504d4a;
  text-decoration: none;
}

.footer h3 {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: #504d4a;
}

.footer ul {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

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

.footer-brand p {
  max-width: 210px;
}

.socials {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  align-items: center;
}

.socials a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: #2b2a27;
}

.socials svg {
  width: 24px;
  height: 24px;
  display: block;
}

.footer-newsletter {
  border-block: 1px solid #d4cfc7;
  margin-block: 40px;
  padding-block: 20px;
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: 32px;
  align-items: center;
}

.footer-newsletter h3 {
  margin: 0 0 6px;
}

.footer-form {
  display: flex;
  justify-content: end;
  gap: 16px;
}

.footer-form input {
  width: min(360px, 100%);
  height: 40px;
  padding: 6px 16px;
  border: 1px solid #d4cfc7;
  border-radius: 8px;
  outline: none;
}

.footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 24px;
  width: 149px;
  min-height: 40px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}

.footer .btn svg {
  flex: 0 0 auto;
}

.footer .btn-dark {
  background: #2b2a27;
  color: #ffffff;
}

.footer-form .btn {
  border-radius: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .footer {
    --footer-gutter: clamp(20px, 6vw, 56px);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-newsletter {
    grid-template-columns: 1fr;
  }

  .footer-form {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .footer {
    padding-block: 64px 32px;
  }

  .footer .container {
    width: min(100% - 40px, 1200px);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-form {
    display: grid;
  }

  .footer-form input,
  .footer-form .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
