.ir-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  direction: rtl;
  min-height: 710px;
  color: #fff;
  background: #0754d6;
  font-family: var(--font-main, 'IRANSansX', Tahoma, Arial, sans-serif);
}

.ir-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(0 48 160 / .48), rgb(0 101 230 / .42)),
    url('/assets/images/brand/footer-business-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.ir-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(0 51 153 / .22), rgb(0 102 230 / .20));
  pointer-events: none;
}

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

.ir-footer-shell {
  width: min(1400px, calc(100% - 56px));
  margin-inline: auto;
}

.ir-footer-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px 185px 250px 200px 365px;
  gap: 42px;
  align-items: start;
  padding: 64px 0 76px;
}

.ir-footer-copy {
  display: grid;
  gap: 28px;
  align-content: start;
  justify-items: end;
  padding-top: 2px;
  color: #fff;
  text-align: right;
}

.ir-footer-logo {
  display: block;
  width: 245px;
}

.ir-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ir-footer-slogan {
  max-width: 320px;
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.9;
  text-shadow: 0 1px 7px rgb(0 0 0 / .16);
}

.ir-footer-col {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 168px;
}

.ir-footer-col > strong {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 950;
  text-shadow: 0 1px 7px rgb(0 0 0 / .14);
}

.ir-footer-col a {
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 850;
  text-shadow: 0 1px 7px rgb(0 0 0 / .14);
  transition: opacity .2s ease, transform .2s ease;
}

.ir-footer-col a:hover {
  opacity: .78;
  transform: translateX(-3px);
}

.ir-footer-brand {
  display: grid;
  gap: 108px;
  justify-items: start;
  padding-top: 6px;
}

.ir-footer-contact {
  display: grid;
  gap: 12px;
  justify-items: start;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 850;
  text-align: left;
  direction: ltr;
  text-shadow: 0 1px 8px rgb(0 0 0 / .15);
}

.ir-footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ir-footer-contact a::before {
  content: "●";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #05316f;
  background: #30f1da;
  font-size: 10px;
}

.ir-footer-certificates {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.ir-footer-certificate,
.ir-footer-ssl {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgb(0 35 100 / .23);
}

.ir-footer-certificate {
  width: 82px;
  height: 82px;
  border-radius: 11px;
}

.ir-footer-certificate img {
  display: block;
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
}

.ir-footer-ssl {
  width: 110px;
  height: 42px;
  border-radius: 8px;
}

.ir-footer-ssl img {
  display: block;
  max-width: 104px;
  max-height: 36px;
  object-fit: contain;
}

.ir-footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 19px;
  font-size: 12px;
  font-weight: 850;
  text-shadow: 0 1px 7px rgb(0 0 0 / .14);
}

.ir-footer-social a {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.ir-footer-bottom {
  position: relative;
  z-index: 3;
  min-height: 50px;
  display: grid;
  align-items: center;
  color: #fff;
  background: #354650;
  font-size: 12px;
  font-weight: 800;
}

.ir-footer-bottom__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  padding: 11px 60px;
}

.ir-scroll-top {
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  color: #083344 !important;
  background: #31ead0;
  box-shadow: 0 12px 32px rgb(0 0 0 / .22);
  font-size: 23px;
  font-weight: 900;
  transform: translateY(-50%);
}

@media (max-width: 1280px) {
  .ir-footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px;
  }

  .ir-footer-copy,
  .ir-footer-brand,
  .ir-footer-col {
    padding-top: 0;
  }

  .ir-footer-brand {
    gap: 42px;
  }
}

@media (max-width: 860px) {
  .ir-footer {
    min-height: 0;
  }

  .ir-footer-shell {
    width: min(100% - 28px, 720px);
  }

  .ir-footer-main {
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

  .ir-footer-copy,
  .ir-footer-brand,
  .ir-footer-col {
    justify-items: center;
    text-align: center;
  }

  .ir-footer-contact,
  .ir-footer-certificates,
  .ir-footer-social {
    justify-content: center;
    justify-items: center;
    text-align: center;
  }

  .ir-footer-col {
    gap: 13px;
  }

  .ir-footer-col > strong {
    margin-bottom: 8px;
  }

  .ir-footer-bottom__inner {
    padding: 14px 0 70px;
    gap: 10px 18px;
  }

  .ir-scroll-top {
    left: 50%;
    top: auto;
    bottom: 10px;
    transform: translateX(-50%);
  }
}
