/* Единый стиль кнопок (только русская версия) — по кнопкам главного экрана.
   Raleway 800, 14px, прописные, без скругления, высота 50px.
   Цвета только со страницы: бордовый #6B151D, бежевый #BB9775, светло-бежевый #ECE5DB, белый, чёрный.
   Наведение — плавная смена цвета: бордовый ↔ бежевый. */

:root {
  --hh-btn-red: #6b151d;
  --hh-btn-beige: #bb9775;
  --hh-btn-light: #ece5db;
}

/* ---------- Общая форма ---------- */
/* Zero-блоки: размеры задаёт макет, меняем только шрифт и цвета */
#allrecords #rec1653110371 .tn-elem[data-elem-id="1764658778168000001"] .tn-atom,
#allrecords #rec1653111801 .tn-elem[data-elem-id="1764658778168000001"] .tn-atom,
#allrecords #rec1653110371 .tn-elem[data-elem-id="1756109023072"] .tn-atom,
#allrecords #rec1653111801 .tn-elem[data-elem-id="1756109023072"] .tn-atom,
#allrecords #rec1218439711 .tn-elem[data-elem-id="1645206025370"] .tn-atom,
/* стандартные блоки и форма внизу */
#allrecords #rec1240219136 .t-btn.t-btnflex,
#allrecords #rec1230593211 .t-btn.t-btnflex,
#allrecords #rec1245437231 .t-btn.t-btnflex,
#allrecords #rec1653114411 .t-submit,
#allrecords #rec1218447946 .t-submit {
  font-family: 'Raleway', Arial, sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: normal !important;
  border-radius: 0 !important;
  border-width: 1px !important;
  border-style: solid !important;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
  cursor: pointer;
}
#allrecords #rec1653110371 .tn-elem[data-elem-type="button"] .tn-atom,
#allrecords #rec1653111801 .tn-elem[data-elem-type="button"] .tn-atom,
#allrecords #rec1218439711 .tn-elem[data-elem-id="1645206025370"] .tn-atom {
  font-size: 14px !important;
}
/* Стандартные блоки не масштабируются сами — берём тот же масштаб сетки, что у Zero-блоков (--hh-s из grid.js) */
#allrecords #rec1240219136 .t-btn.t-btnflex,
#allrecords #rec1230593211 .t-btn.t-btnflex,
#allrecords #rec1245437231 .t-btn.t-btnflex,
#allrecords #rec1653114411 .t-submit,
#allrecords #rec1218447946 .t-submit {
  font-size: calc(14px * var(--hh-s, 1)) !important;
  height: calc(50px * var(--hh-s, 1)) !important;
  min-height: 0 !important;
  padding: 0 calc(30px * var(--hh-s, 1)) !important;
}
/* высота по кнопкам главного экрана: 56px в макете планшета, 53px в макете телефона */
@media (max-width: 959px) {
  #allrecords #rec1240219136 .t-btn.t-btnflex,
  #allrecords #rec1230593211 .t-btn.t-btnflex,
  #allrecords #rec1245437231 .t-btn.t-btnflex,
  #allrecords #rec1653114411 .t-submit { height: calc(56px * var(--hh-s, 1)) !important; }
}
@media (max-width: 639px) {
  #allrecords #rec1240219136 .t-btn.t-btnflex,
  #allrecords #rec1230593211 .t-btn.t-btnflex,
  #allrecords #rec1245437231 .t-btn.t-btnflex,
  #allrecords #rec1653114411 .t-submit { height: calc(53px * var(--hh-s, 1)) !important; }
}
/* форма внизу стоит внутри Zero-блока — блок уже масштабирует её сам */
#allrecords #rec1218447946 .t-submit {
  font-size: 14px !important;
  height: 50px !important;
  padding: 0 30px !important;
}
@media (max-width: 959px) { #allrecords #rec1218447946 .t-submit { height: 56px !important; } }
@media (max-width: 639px) { #allrecords #rec1218447946 .t-submit { height: 53px !important; } }
#allrecords #rec1240219136 .t-btn.t-btnflex *,
#allrecords #rec1230593211 .t-btn.t-btnflex *,
#allrecords #rec1245437231 .t-btn.t-btnflex *,
#allrecords #rec1653114411 .t-submit *,
#allrecords #rec1218447946 .t-submit * {
  font: inherit !important;
  text-transform: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
}

/* ---------- Основная: бордовая → бежевая при наведении ---------- */
#allrecords #rec1653110371 .tn-elem[data-elem-id="1764658778168000001"] .tn-atom,
#allrecords #rec1653111801 .tn-elem[data-elem-id="1764658778168000001"] .tn-atom,
#allrecords #rec1240219136 .t-btn.t-btnflex,
#allrecords #rec1230593211 .t-btn.t-btnflex,
#allrecords #rec1245437231 .t-btn.t-btnflex,
#allrecords #rec1218447946 .t-submit {
  background-color: var(--hh-btn-red) !important;
  border-color: var(--hh-btn-red) !important;
  color: #fff !important;
}
#allrecords #rec1653110371 .tn-elem[data-elem-id="1764658778168000001"] .tn-atom:hover,
#allrecords #rec1653111801 .tn-elem[data-elem-id="1764658778168000001"] .tn-atom:hover,
#allrecords #rec1240219136 .t-btn.t-btnflex:hover,
#allrecords #rec1230593211 .t-btn.t-btnflex:hover,
#allrecords #rec1245437231 .t-btn.t-btnflex:hover,
#allrecords #rec1218447946 .t-submit:hover {
  background-color: var(--hh-btn-beige) !important;
  border-color: var(--hh-btn-beige) !important;
  color: #fff !important;
}

/* ---------- Контурная: рамка бордовая → заливка бордовым при наведении ---------- */
#allrecords #rec1653110371 .tn-elem[data-elem-id="1756109023072"] .tn-atom,
#allrecords #rec1653111801 .tn-elem[data-elem-id="1756109023072"] .tn-atom,
#allrecords #rec1218439711 .tn-elem[data-elem-id="1645206025370"] .tn-atom {
  background-color: transparent !important;
  border-color: var(--hh-btn-red) !important;
  color: #000 !important;
}
#allrecords #rec1653110371 .tn-elem[data-elem-id="1756109023072"] .tn-atom:hover,
#allrecords #rec1653111801 .tn-elem[data-elem-id="1756109023072"] .tn-atom:hover,
#allrecords #rec1218439711 .tn-elem[data-elem-id="1645206025370"] .tn-atom:hover {
  background-color: var(--hh-btn-red) !important;
  border-color: var(--hh-btn-red) !important;
  color: #fff !important;
}

/* ---------- На бордовом фоне: бежевая → светло-бежевая с бордовым текстом при наведении ---------- */
#allrecords #rec1653114411 .t-submit {
  background-color: var(--hh-btn-beige) !important;
  border-color: var(--hh-btn-beige) !important;
  color: #fff !important;
}
#allrecords #rec1653114411 .t-submit:hover {
  background-color: var(--hh-btn-light) !important;
  border-color: var(--hh-btn-light) !important;
  color: var(--hh-btn-red) !important;
}

/* ---------- Иконки соцсетей в шапке: бордовые → бежевые при наведении ---------- */
#allrecords #rec2414768161 .t-sociallinks__item a svg path {
  transition: fill .3s ease;
}
#allrecords #rec2414768161 .t-sociallinks__item a:hover svg path {
  fill: var(--hh-btn-beige) !important;
}

/* ---------- Форма «Получите консультацию»: поля 50px, кнопка той же высоты и вровень с полями ---------- */
#allrecords #rec1653114411 .t-form .t-input,
#allrecords #rec1653114411 .t-form .t-select,
#allrecords #rec1653114411 .t-form .t-select__wrapper {
  height: 50px !important;
}
#allrecords #rec1653114411 .t-form .t-input-phonemask {
  height: 48px !important;
}
#allrecords #rec1653114411 .t-form .t-submit {
  height: 50px !important;
  margin-top: 0 !important;
}

/* Форма в одну строку (от 960px): зазор между полями 4px, освободившиеся 3×16px отданы кнопке — поля прежней ширины */
@media (min-width: 960px) {
  #allrecords #rec1653114411 .t-form__inputsbox_horizontal .t-input-block {
    padding-right: 4px !important;
  }
  #allrecords #rec1653114411 .t-form__inputsbox_horizontal .t-form__submit .t-submit {
    padding-left: calc(30px * var(--hh-s, 1) + 24px) !important;
    padding-right: calc(30px * var(--hh-s, 1) + 24px) !important;
  }
}
