.tm-footer {
  position: relative;
  overflow: hidden;
  background: #171b21;
  color: #fff;
}
.tm-footer h3 {
  color: #fff;
  font-size: 72px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -1px;
}
@media (max-width: 768px) {
  .tm-footer h3 {
    font-size: 40px;
  }
}
.tm-footer p {
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.32px;
}
.tm-footer__frame {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.tm-footer__frame::before,
.tm-footer__frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
  pointer-events: none;
}

.tm-footer__frame::before {
  left: 20px;
}

.tm-footer__frame::after {
  right: 20px;
}

.tm-footer__shell {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.tm-footer__cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 350px;
  padding: 80px 20px;
  background:
    linear-gradient(180deg, rgba(23, 27, 33, 0) 0%, #171b21 81.75%),
    linear-gradient(
      270deg,
      rgba(23, 27, 33, 0) 0.23%,
      rgba(23, 27, 33, 0.2) 57.21%
    ),
    linear-gradient(180deg, rgba(23, 27, 33, 0.7) 0%, rgba(23, 27, 33, 0) 100%),
    radial-gradient(
      39.06% 54.87% at 50% 50%,
      rgba(23, 27, 33, 0) 0%,
      rgba(23, 27, 33, 0.6) 100%
    ),
    var(--footer-cta-bg) lightgray -0.099px -50.984px / 100% 156.34% no-repeat;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.tm-container,
.tm-footer__bottom-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.tm-container h3,
p {
  max-width: 724px;
}
.tm-footer__cta-inner {
  max-width: 500px;
}
.tm-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(auto, 1fr));
  gap: 50px;
}
@media (max-width: 668px) {
  .tm-footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.tm-footer__cta p {
  margin-bottom: 60px;
}

.tm-footer__main {
  padding: 72px 20px;
  border-top: 1px solid rgba(248, 248, 248, 0.08);
}

.tm-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 294px;
  width: 100%;
}

.tm-footer__logo {
  display: inline-block;
  margin-bottom: 22px;
}
.tm-footer__brand p {
  margin-top: 20px;
  margin-bottom: 32px;
  color: #c0c0c0;
  font-size: 18px;
  font-weight: 400;
  line-height: 19.88px;
  letter-spacing: 0.32px;
}
.tm-footer__brand a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 19.88px;
  letter-spacing: 0.32px;
  text-decoration: none;
  margin-bottom: 12px;
}
.tm-footer__logo img {
  display: block;
  max-width: 294px;
  height: auto;
}

.tm-footer__desc {
  margin: 0 0 24px;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.tm-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.tm-footer__contact-link {
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
  text-decoration: none;
}

.tm-footer__contact-link:hover {
  opacity: 0.82;
  color: #ffffff;
}

.tm-footer__socials {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
}

.tm-footer__socials a {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.tm-footer__socials a:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.tm-footer__socials svg {
  display: block;
  width: 16px;
  height: 16px;
}

.tm-footer__menus {
  display: grid;
  grid-template-columns: repeat(3, minmax(294px, 1fr));
  gap: 24px 36px;
  padding-top: 21px;
  justify-items: center;
}
@media (max-width: 1390px) {
  .tm-footer__menus {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
.tm-footer__menus ul,
.tm-footer__menus li a {
  list-style: none;
  text-decoration: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

#menu-footer-tvoros li:first-child,
#menu-footer-vartai li:first-child {
  margin-bottom: 20px;
}
.tm-footer__menus li:first-child a,
.tm-footer__menus li:first-child a {
  font-weight: 400;
  color: #ffffff;
  line-height: 24px;
  letter-spacing: 0.32px;
  font-size: 16px;
}
.tm-footer__menus li:nth-child(2) a,
#menu-footer-vartai li:nth-child(2) a,
#menu-footer-tvoros li:first-child a,
#menu-footer-vartai li:first-child a {
  color: #ffffff !important;
}

.tm-footer__menus li a {
  font-size: 14px;
  color: #c0c0c0;
  font-weight: 500;
  line-height: 19.88px;
  letter-spacing: 0.32px;
}
#menu-footer-tvoros > li,
#menu-footer-vartai > li {
  margin-bottom: 12px;
}

.tm-footer__bottom {
  padding: 24px 20px 28px;
  border-top: 1px solid rgba(248, 248, 248, 0.08);
}
.tm-footer__bottom-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
@media (max-width: 668px) {
  .tm-footer__bottom-grid {
    flex-direction: column;
  }
}
.tm-footer__bottom-left {
  justify-self: start;
}

.tm-footer__bottom-center {
  justify-self: center;
}

.tm-footer__bottom-right {
  justify-self: end;
}

.tm-footer__bottom-grid p,
.tm-footer__bottom-grid a {
  margin: 0;
  font-size: 14px;
  line-height: 70px;
  letter-spacing: 0.32px;
  color: #c0c0c0;
  text-decoration: none;
}
