.tk-footer {
  font-family: "Inter", Arial, sans-serif;
  color: #000;
  background: #fff;
  letter-spacing: 0;
}

.tk-footer *,
.tk-footer *::before,
.tk-footer *::after {
  box-sizing: border-box;
}

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

.tk-footer__inner {
  width: min(100%, 1565px);
  min-height: 456px;
  margin: 0 auto;
  padding: 31px 33px 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr auto;
  column-gap: clamp(56px, 8vw, 150px);
}

.tk-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tk-footer__logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 0 23px;
}

.tk-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tk-footer__nav-link {
  font-size: 16.54px;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity .18s ease;
}

.tk-footer__nav-link:hover,
.tk-footer__legal-link:hover,
.tk-footer__store-contact:hover {
  opacity: .62;
}

.tk-footer__nav-link--strong {
  font-size: 20px;
  font-weight: 800;
}

.tk-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 15px;
  margin-top: 36px;
}

.tk-footer__social-link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  transition: transform .18s ease, opacity .18s ease;
}

.tk-footer__social-link:hover {
  transform: translateY(-1px);
  opacity: .82;
}

.tk-footer__social-link img,
.tk-footer__rating img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tk-footer__stores {
  min-width: 0;
}

.tk-footer__title {
  margin: 0 0 61px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.tk-footer__store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 46px clamp(54px, 8vw, 120px);
}

.tk-footer__store {
  display: grid;
  grid-template-columns: 39px minmax(132px, max-content) 150px;
  grid-template-areas:
    "pin text rating"
    "pin links rating";
  align-items: start;
  column-gap: 6px;
}

.tk-footer__pin-link {
  grid-area: pin;
  display: inline-flex;
  width: 39px;
  height: 39px;
  color: #000;
  margin-top: 5px;
  transition: opacity .18s ease;
}

.tk-footer__pin-link:hover {
  opacity: .62;
}

.tk-footer__pin {
  width: 100%;
  height: 100%;
  color: inherit;
}

.tk-footer__store-text {
  grid-area: text;
  min-width: 0;
}

.tk-footer__store-name,
.tk-footer__store-phone {
  margin: 0;
  font-size: 16.54px;
  font-weight: 600;
  line-height: 1.5;
}

.tk-footer__store-phone a {
  color: inherit;
  text-decoration: none;
}

.tk-footer__store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  margin-bottom: 5px;
  padding: 4px 15px;
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 15.4px;
  font-weight: 500;
  line-height: 1.1;
}

.tk-footer__rating {
  grid-area: rating;
  width: 150px;
  height: 52px;
  margin-left: 12px;
}

.tk-footer__store-links {
  grid-area: links;
  display: flex;
  gap: 13px;
  margin-top: 7px;
  padding-left: 2px;
}

.tk-footer__store-contact {
  display: inline-flex;
  width: 31px;
  height: 31px;
}

.tk-footer__store-contact img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tk-footer__bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 44px;
  font-size: 14.26px;
  font-weight: 400;
  line-height: 1.5;
}

.tk-footer__copyright {
  justify-self: start;
}

.tk-footer__legal {
  justify-self: center;
  display: flex;
  gap: 52px;
}

@media (max-width: 1180px) {
  .tk-footer__inner {
    grid-template-columns: 220px 1fr;
    column-gap: 40px;
  }

  .tk-footer__store-grid {
    gap: 38px 28px;
  }

  .tk-footer__store {
    grid-template-columns: 39px minmax(132px, 1fr);
    grid-template-areas:
      "pin text"
      "pin rating"
      "pin links";
  }

  .tk-footer__rating {
    margin: 8px 0 0;
  }
}

@media (max-width: 768px) {
  .tk-footer__inner {
    width: 100%;
    min-height: 1033px;
    padding: 47px 21px 29px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .tk-footer__brand {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 20px;
    align-items: start;
  }

  .tk-footer__logo-link {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .tk-footer__logo {
    width: 283px;
    margin: 0 0 36px;
  }

  .tk-footer__nav {
    gap: 3px;
  }

  .tk-footer__social {
    width: 125px;
    display: grid;
    grid-template-columns: repeat(2, 55px);
    gap: 28px 16px;
    margin: 6px 2px 0 0;
  }

  .tk-footer__social-link {
    width: 55px;
    height: 55px;
  }

  .tk-footer__stores {
    margin-top: 58px;
  }

  .tk-footer__title {
    margin: 0 0 44px;
  }

  .tk-footer__store-grid {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .tk-footer__store {
    min-height: 87px;
    grid-template-columns: 39px minmax(140px, 1fr) minmax(118px, 150px);
    grid-template-areas:
      "pin text rating"
      "pin links rating";
    column-gap: 6px;
  }

  .tk-footer__store-name,
  .tk-footer__store-phone {
    font-size: 16.54px;
    white-space: nowrap;
  }

  .tk-footer__store-badge {
    min-height: 24px;
    padding: 3px 12px;
    font-size: 12.06px;
  }

  .tk-footer__rating {
    width: min(150px, 37vw);
    height: 50px;
    margin: 0;
    align-self: start;
  }

  .tk-footer__store-links {
    margin-top: 6px;
  }

  .tk-footer__bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column-reverse;
    gap: 26px;
    text-align: center;
  }

  .tk-footer__legal {
    gap: 43px;
  }
}

@media (max-width: 390px) {
  .tk-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tk-footer__logo {
    width: min(283px, 86vw);
  }

  .tk-footer__brand {
    column-gap: 12px;
  }

  .tk-footer__social {
    width: 112px;
    grid-template-columns: repeat(2, 48px);
    gap: 26px 14px;
  }

  .tk-footer__social-link {
    width: 48px;
    height: 48px;
  }

  .tk-footer__store {
    grid-template-columns: 39px 1fr;
    grid-template-areas:
      "pin text"
      "pin rating"
      "pin links";
  }

  .tk-footer__rating {
    width: 150px;
    margin-top: 8px;
  }
}
