@charset "utf-8";

.footer {
  position: relative;
  background: #EBEBEB;
  width: 100%;
  height: 100%;
}
@media screen and (min-width: 1024px) {
  .footer {
    padding-top: 238px;
  }
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  position: relative;
  width: 100%;
}
@media screen and (min-width: 1024px) {
  .footer__top {
    position: absolute;
    top: -138px;
    left: 50%;
    transform: translateX(-50%);
    grid-template-columns: repeat(2, 1fr);
    max-width: 1077px;
  }
}

.footer__top-item {
  padding: 46px 0 69px;
  background: #B22517;
}
.footer__top-item:nth-of-type(2) {
  background: #DB2F1E;
}

.footer__top-btn {
  height: 60px;
  margin-inline: auto !important;
  background: #fff;
  border: 1px solid #fff;
  color: #B22517;
  white-space: nowrap;
}
.footer__top-btn:hover {
  opacity: 0.8;
}

.footer__top-item:nth-of-type(1) .footer__top-btn {
  padding: 21px 30px 21px 30px;
  position: relative;
}
.footer__top-item:nth-of-type(1) .footer__top-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 31px;
  background: url('../images/icon-mail-red.svg') center / contain no-repeat;
  width: 25px;
  height: 21px;
  flex-shrink: 0;
}
.footer__top-item:nth-of-type(1) .footer__top-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 30px;
  background: url('../images/button-arrow-contact.svg') center / contain no-repeat;
  width: 11px;
  height: 11px;
}

.footer__top-item:nth-of-type(2) .footer__top-btn {
  padding: 4px 37px 2px 31px;
  display: flex;
  align-items: center;
  gap: 30px;
    color: #DB2F1E;
}
.footer__top-item:nth-of-type(2) .footer__top-btn::before {
  content: "";
  background: url('../images/icon-tel.svg') center / contain no-repeat;
  width: 11px;
  height: 29px;
    flex-shrink: 0;
}

.footer__bottom {
  margin-top: 80px;
  display: flex;
  gap: 40px;
  flex-direction: column-reverse;
}
@media screen and (min-width: 1024px) {
  .footer__bottom {
    margin-top: 0;
    flex-direction: row;
    align-items: start;
    gap: 42px;
    justify-content: space-between;
  }
}
@media screen and (min-width: 1366px) {
  .footer__bottom {
    max-width: 1366px;
    margin-inline: auto;
  }
}

.footer__logo {
  margin-top: 15px;
  aspect-ratio: 271/39;
  width: 271px;
  height: auto;
  flex-shrink: 0;
}
.footer__logo:hover {
  opacity: 0.7;
}

.footer__bottom-links {
  padding: 40px 6px 40px 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 10px;
  background: #F5F5F5;
  border-radius: 10px;
  max-width: 400px;
  white-space: nowrap;
}
@media screen and (min-width: 768px) {
  .footer__bottom-links {
    grid-template-columns: repeat(3, 1fr);
    max-width: 807px;
    padding: 50px 28px 50px 45px;
    gap: 40px 65px;
  }
}
@media screen and (min-width: 1366px) {
.footer__bottom-links {
    grid-template-columns: repeat(4, 1fr);
    padding: 53px 55px 75px 80px;
    gap: 54px 82px;
  }
}

.footer__bottom-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer__bottom-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #B22517;
  flex-shrink: 0;
}
.footer__bottom-link p {
  width: fit-content;
  color: #484B4E;
  position: relative;
  display: inline-block;
}
.footer__bottom-link p::after {
  background-color: #484B4E;
  bottom: 0px;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  transition: all .3s;
  width: 100%;
}
.footer__bottom-link p:hover::after {
  bottom: -4px;
  opacity: 1;
}

.c3838 {
  display: none !important;
}

.footer__copyright {
  margin-top: 88px;
  padding: 10px 0 16px;
  font-size: 12px;
  line-height: calc(17 / 12);
  letter-spacing: 0.08em;
  color: #3F4D41;
  text-align: center;
  border-top: 1px solid rgba(63, 77, 65, 0.2);
}
@media screen and (min-width: 768px) {
  .footer__copyright {
    margin-top: 128px;
  }
}