/* Подвал в новом стиле. Ширина — как у контента главной (1588 при 1920). */
.tmf {
  --f-ink: #333;
  --f-muted: #838383;
  --f-line: #e1e1e1;
  --f-accent: #ff7e28;
  margin-top: 40px;
  border-top: 1px solid var(--f-line);
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--f-ink);
}
.tmf *,
.tmf *::before,
.tmf *::after {
  box-sizing: border-box;
}
.tmf a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.tmf a:hover,
.tmf a[aria-current="page"] {
  color: var(--f-accent);
}
.tmf :focus-visible {
  outline: 2px solid var(--f-accent);
  outline-offset: 3px;
}
.tmf__in {
  width: min(1588px, calc(100% - 48px));
  margin: 0 auto;
}
.tmf__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 72px 0 64px;
}
.tmf h3 {
  margin: 0 0 22px;
  font: 600 15px/1.2 "Montserrat", Arial, sans-serif !important;
  letter-spacing: 0;
  color: var(--f-ink) !important;
}
.tmf ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.tmf li {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #555;
}
.tmf li::before {
  display: none !important;
}

.tmf__logo {
  display: block;
  width: 150px;
}
.tmf__logo img {
  display: block;
  width: 100%;
  height: auto;
}
.tmf__brand p {
  margin: 20px 0 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--f-muted);
}
.tmf__sub {
  margin-top: 32px;
  max-width: 380px;
}
.tmf__sub label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--f-muted);
}
.tmf__field {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 6px 0 20px;
  border: 1.5px solid var(--f-line);
  border-radius: 999px;
  transition: border-color 0.2s;
}
.tmf__field:focus-within {
  border-color: var(--f-accent);
}
.tmf__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  outline: none;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font: 400 15px "Montserrat", Arial, sans-serif;
  color: var(--f-ink);
}
.tmf__field button {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--f-accent);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.tmf__field button:hover {
  background: #f26b12;
}
.tmf__sub .form-result {
  padding: 12px 0 !important;
  font-size: 14px !important;
  color: var(--f-ink);
}

.tmf__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tmf__phone {
  font: 600 24px/1.2 "Montserrat", Arial, sans-serif;
  letter-spacing: -0.01em;
  color: var(--f-ink);
}
.tmf__hours {
  margin-top: 6px;
  font-size: 13px;
  color: var(--f-muted);
}
.tmf__mail {
  margin-top: 18px;
  font-size: 15px;
  color: #555;
}
.tmf__addr {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}
.tmf__call {
  margin-top: 24px;
  height: 46px;
  padding: 0 26px;
  border: 1.5px solid var(--f-accent);
  border-radius: 999px;
  background: #fff;
  font: 600 14px/1 "Montserrat", Arial, sans-serif;
  color: var(--f-accent);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.tmf__call:hover {
  background: var(--f-accent);
  color: #fff;
}

.tmf__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--f-line);
  font-size: 13px;
  color: var(--f-muted);
}
.tmf__bottom a {
  margin-left: auto;
}

@media (max-width: 1199px) {
  .tmf__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tmf__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 380px);
    align-items: end;
    gap: 16px 40px;
  }
  .tmf__brand p,
  .tmf__sub {
    margin: 0;
  }
}
@media (max-width: 767px) {
  .tmf__in {
    width: calc(100% - 32px);
  }
  .tmf__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
    padding: 44px 0 40px;
  }
  .tmf__brand {
    display: block;
  }
  .tmf__brand p {
    margin-top: 16px;
  }
  .tmf__sub {
    margin-top: 24px;
  }
  .tmf__contacts {
    grid-column: 1 / -1;
  }
  .tmf__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 96px;
  }
  .tmf__bottom a {
    margin-left: 0;
  }
}

/* тема задаёт .subscribe-form flex — у нас подпись над полем */
.tmf form.tmf__sub {
  display: block !important;
}
.tmf form.tmf__sub label {
  width: auto !important;
  float: none !important;
}
