
.ib-footer {
  --ib-footer-bg: #FFF5F8;
  --ib-footer-pink: #F2AEC7;
  --ib-footer-hover: #EA98B7;
  --ib-footer-border: #EED6DF;
  --ib-footer-heading: #333333;
  --ib-footer-text: #626262;

  background: var(--ib-footer-bg);
  color: var(--ib-footer-text);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

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

.ib-footer a {
  color: inherit;
  text-decoration: none;
}

.ib-footer-wrap {
  width: 84%;
  max-width: 1600px;
  margin-inline: auto;
}

.ib-footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1fr;
  gap: 45px;
  padding-block: 80px 75px;
}

.ib-footer-brand {
  display: inline-block;
  color: var(--ib-footer-heading) !important;
  font-size: clamp(27px, 2.3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}

.ib-footer-brand span {
  display: block;
  margin-top: 10px;
  color: var(--ib-footer-text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ib-footer-description {
  max-width: 480px;
  margin: 25px 0 26px;
}

.ib-footer .ib-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--ib-footer-pink);
  color: var(--ib-footer-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  transition: background-color 180ms ease;
}

.ib-footer .ib-footer-button:hover {
  background: var(--ib-footer-hover);
}

.ib-footer-heading {
  margin: 0 0 20px;
  color: var(--ib-footer-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.ib-footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ib-footer-links li {
  margin: 0;
  padding: 0;
}

.ib-footer-links a {
  display: inline-block;
  padding-block: 8px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.ib-footer-links a:hover {
  color: var(--ib-footer-heading);
  text-decoration-color: var(--ib-footer-heading);
}

.ib-footer a:focus-visible {
  outline: 2px solid var(--ib-footer-heading);
  outline-offset: 4px;
  border-radius: 4px;
}

.ib-footer-bottom {
  padding-block: 22px;
  border-top: 1px solid var(--ib-footer-border);
  text-align: center;
}

.ib-footer-bottom p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .ib-footer-wrap {
    width: 90%;
  }

  .ib-footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
    padding-block: 60px;
  }

  .ib-footer-intro {
    grid-column: 1 / -1;
  }

  .ib-footer-description {
    max-width: 650px;
  }
}

@media (max-width: 650px) {
  .ib-footer-wrap {
    width: calc(100% - 36px);
  }

  .ib-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 44px 40px;
    text-align: center;
  }

  .ib-footer-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 1 / -1;
    text-align: center;
  }

  .ib-footer-brand {
    display: block;
    font-size: clamp(26px, 7vw, 34px);
    text-align: center;
  }

  .ib-footer-brand span {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 1.6px;
  }

  .ib-footer-description {
    max-width: 100%;
    margin: 20px 0 22px;
    text-align: center;
  }

  .ib-footer .ib-footer-button {
    width: 100%;
    max-width: 360px;
    min-height: 54px;
    padding: 14px 20px;
    font-size: 15px;
  }

  .ib-footer-main > nav {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    text-align: center;
  }

  .ib-footer-heading {
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: .06em;
    text-align: center;
  }

  .ib-footer-links {
    align-items: center;
    gap: 4px;
  }

  .ib-footer-links a {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14.5px;
    line-height: 1.55;
    text-align: center;
    border-radius: 8px;
    transition: background-color 180ms ease, color 180ms ease;
  }

  .ib-footer-links a:hover,
  .ib-footer-links a:focus-visible {
    background: #fff;
    color: var(--ib-footer-heading);
    text-decoration-color: transparent;
  }

  .ib-footer-bottom {
    padding-block: 18px;
  }

  .ib-footer-bottom p {
    font-size: 12.5px;
    line-height: 1.6;
    padding-inline: 12px;
  }
}

@media (hover: none) {
  .ib-footer-links a:hover {
    background: transparent;
    color: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ib-footer a {
    transition: none;
  }
}
