/* ==========================================================================
   ref-theme.css — единая тема в стилистике helpexcel.pro
   Источник палитры: https://www.helpexcel.pro/razrabotka-google-tablits/
   Основной цвет кнопок: #817af9, градиент #817af9 → #5b48f5.
   Файл подключается последним (в конце <body>), поэтому перекрывает
   встроенные стили Tilda без правки HTML-блоков.
   ========================================================================== */

:root {
  --hx-primary: #817af9;
  --hx-primary-strong: #5b48f5;
  --hx-primary-hover: #6b5ef7;
  --hx-primary-soft: #eef2ff;
  --hx-accent: #5171f7;
  --hx-ink: #1d2233;
  --hx-ink-soft: #363f55;
  --hx-border: #e2e8f8;
  --hx-radius-btn: 10px;
  --hx-radius-cart: 8px;
  --hx-btn-gradient: linear-gradient(135deg, #817af9 0%, #5b48f5 100%);
  --hx-btn-gradient-hover: linear-gradient(135deg, #8f89fb 0%, #6a5af6 100%);
  --hx-btn-shadow: 0 10px 24px -12px rgba(91, 72, 245, 0.65);
  --hx-btn-shadow-hover: 0 16px 30px -12px rgba(91, 72, 245, 0.85);
}

/* ── Кнопки ────────────────────────────────────────────────────────────── */

#allrecords [id^="rec"] .t-btnflex_type_submit,
#allrecords [id^="rec"] .t-btnflex_type_button:not(.t886__btn):not(.t-inputpromocode__btn),
#allrecords [id^="rec"] .t-submit:not(.t-submit_sending),
#allrecords [id^="rec"] .t-inputpromocode__btn.t-btn,
#allrecords [id^="rec"] .t706 .t-submit {
  background-color: var(--hx-primary) !important;
  background-image: var(--hx-btn-gradient) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--hx-radius-btn) !important;
  box-shadow: var(--hx-btn-shadow) !important;
  text-shadow: none !important;
}

#allrecords [id^="rec"] .t-btnflex_type_submit .t-btnflex__text,
#allrecords
  [id^="rec"]
  .t-btnflex_type_button:not(.t886__btn):not(.t-inputpromocode__btn)
  .t-btnflex__text,
#allrecords [id^="rec"] .t-submit .t-submit__text {
  color: #fff !important;
}

#allrecords [id^="rec"] .t-btnflex_type_submit:hover,
#allrecords [id^="rec"] .t-btnflex_type_submit:focus-visible,
#allrecords [id^="rec"] .t-btnflex_type_button:not(.t886__btn):not(.t-inputpromocode__btn):hover,
#allrecords
  [id^="rec"]
  .t-btnflex_type_button:not(.t886__btn):not(.t-inputpromocode__btn):focus-visible,
#allrecords [id^="rec"] .t-submit:not(.t-submit_sending):hover,
#allrecords [id^="rec"] .t-inputpromocode__btn.t-btn:hover {
  background-color: var(--hx-primary-hover) !important;
  background-image: var(--hx-btn-gradient-hover) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: var(--hx-btn-shadow-hover) !important;
  transform: translateY(-1px) !important;
}

/* Кнопки внутри zero-блоков Tilda (T396) */
#allrecords [id^="rec"] .tn-elem[data-elem-type="button"] .tn-atom {
  background-color: var(--hx-primary) !important;
  background-image: var(--hx-btn-gradient) !important;
  border-color: transparent !important;
  border-radius: var(--hx-radius-btn) !important;
  color: #fff !important;
  box-shadow: var(--hx-btn-shadow) !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease !important;
}

#allrecords [id^="rec"] .tn-elem[data-elem-type="button"] .tn-atom .tn-atom__button-text {
  color: #fff !important;
}

#allrecords [id^="rec"] .tn-elem[data-elem-type="button"] .tn-atom:hover,
#allrecords [id^="rec"] .tn-elem[data-elem-type="button"] .tn-atom:focus-visible {
  background-color: var(--hx-primary-hover) !important;
  background-image: var(--hx-btn-gradient-hover) !important;
  border-color: transparent !important;
  box-shadow: var(--hx-btn-shadow-hover) !important;
  transform: translateY(-1px) !important;
}

#allrecords [id^="rec"] .tn-elem[data-elem-type="button"] .tn-atom:hover .tn-atom__button-text,
#allrecords
  [id^="rec"]
  .tn-elem[data-elem-type="button"]
  .tn-atom:focus-visible
  .tn-atom__button-text {
  color: #fff !important;
}

/* ── Radio / Checkbox ──────────────────────────────────────────────────── */

#allrecords .t-checkbox__indicator {
  border-color: #c7c7c7 !important;
  border-radius: 5px !important;
  opacity: 1 !important;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

#allrecords .t-checkbox__control:hover .t-checkbox__indicator {
  border-color: var(--hx-primary) !important;
}

#allrecords .t-checkbox__control .t-checkbox:checked ~ .t-checkbox__indicator {
  background-color: var(--hx-primary) !important;
  border-color: var(--hx-primary) !important;
}

#allrecords .t-checkbox__control .t-checkbox:checked ~ .t-checkbox__indicator::after {
  border-color: #fff !important;
}

#allrecords .t-radio__indicator {
  border-color: #c7c7c7 !important;
  opacity: 1 !important;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

#allrecords .t-radio__control:hover .t-radio__indicator {
  border-color: var(--hx-primary) !important;
}

#allrecords .t-radio__control .t-radio:checked ~ .t-radio__indicator {
  border-color: var(--hx-primary) !important;
}

#allrecords .t-radio__control .t-radio:checked ~ .t-radio__indicator::after {
  background-color: var(--hx-primary) !important;
}

#allrecords .t-checkbox:focus-visible ~ .t-checkbox__indicator,
#allrecords .t-radio:focus-visible ~ .t-radio__indicator {
  box-shadow: 0 0 0 3px rgba(129, 122, 249, 0.35) !important;
}

/* ── Корзина: иконка, счётчик, количества ──────────────────────────────── */

/* Кнопка корзины: компактная, без «круглости» */
#allrecords .t706__carticon-imgwrap {
  width: 64px !important;
  height: 64px !important;
  border-radius: var(--hx-radius-cart) !important;
  background-color: #fff !important;
  border: 1px solid var(--hx-primary) !important;
  box-shadow: 0 10px 26px -12px rgba(91, 72, 245, 0.6) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease !important;
}

#allrecords .t706__carticon-imgwrap:hover {
  transform: translateY(-2px) !important;
  border-color: var(--hx-primary-strong) !important;
  box-shadow: 0 16px 30px -12px rgba(91, 72, 245, 0.8) !important;
}

#allrecords .t706__carticon-img {
  width: 29px !important;
  height: 29px !important;
  padding: 17px !important;
  stroke: var(--hx-primary) !important;
}

#allrecords .t706__carticon-imgwrap:hover .t706__carticon-img {
  stroke: var(--hx-primary-strong) !important;
}

/* Счётчик на иконке корзины и в меню */
#allrecords .t706__carticon-counter,
#allrecords .t-menuwidgeticons__cart .t-menuwidgeticons__icon-counter {
  background-color: var(--hx-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 10px -2px rgba(91, 72, 245, 0.55) !important;
}

#allrecords .t706__carticon-counter {
  height: 22px !important;
  min-width: 22px !important;
  line-height: 22px !important;
  padding: 0 5px !important;
  bottom: -6px !important;
  right: -6px !important;
  font-size: 12px !important;
}

/* Количество товара и итоговые суммы в корзине */
#allrecords .t706__product-quantity {
  color: var(--hx-primary) !important;
  font-weight: 600 !important;
}

#allrecords .t706__product-minus,
#allrecords .t706__product-plus {
  opacity: 1 !important;
  filter: invert(52%) sepia(55%) saturate(2400%) hue-rotate(229deg) brightness(101%) contrast(96%);
}

#allrecords .t706__cartwin-prodamount-price,
#allrecords .t706__cartwin-totalamount-info_value {
  color: var(--hx-primary) !important;
}

/* ── Поля ввода: акцент при фокусе ────────────────────────────────────── */

#allrecords .t-input:focus,
#allrecords .t-input:focus-visible,
#allrecords .t-input.t-input_bbonly:focus {
  border-color: var(--hx-primary) !important;
  box-shadow: 0 0 0 3px rgba(129, 122, 249, 0.12) !important;
}

/* ── Шапка: тёмная тема, центрирование меню ───────────────────────────── */

/* Десктопное меню T228 */
#allrecords [id^="rec"] .t228 {
  background-color: #111111 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#allrecords [id^="rec"] .t228 .t-menu__link-item,
#allrecords [id^="rec"] .t228__list_item a,
#allrecords [id^="rec"] .t228__right_langs_lang a,
#allrecords [id^="rec"] .t228__right_descr,
#allrecords [id^="rec"] .t228__logo {
  color: #ffffff !important;
}

/* Центрируем основные разделы */
#allrecords [id^="rec"] .t228 .t228__centerside {
  text-align: center !important;
}

#allrecords [id^="rec"] .t228__list {
  display: inline-block;
}

#allrecords [id^="rec"] .t-menu__link-item.t-active:not(.t978__menu-link) {
  color: #ffffff !important;
}

#allrecords [id^="rec"] .t-menu__link-item.t-active::after {
  border-bottom-color: var(--hx-primary) !important;
  box-shadow: inset 0 -1px 0 0 var(--hx-primary) !important;
}

#allrecords [id^="rec"] .t-menu__link-item:not(.t-active)::after {
  border-bottom-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.6) !important;
}

/* Мобильная шапка-«бургер» (T228 на 641–980px) */
#allrecords [id^="rec"] .tmenu-mobile {
  background-color: #111111 !important;
}

#allrecords [id^="rec"] .tmenu-mobile__text,
#allrecords [id^="rec"] .tmenu-mobile__burgerlogo,
#allrecords [id^="rec"] .tmenu-mobile__burgerlogo a,
#allrecords [id^="rec"] .tmenu-mobile__burgerlogo__title {
  color: #ffffff !important;
}

/* Нижнее мобильное меню T975 */
#allrecords [id^="rec"] .t975 {
  background-color: #111111 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

#allrecords [id^="rec"] .t975__menu-text {
  color: #ffffff !important;
}

#allrecords [id^="rec"] .t975__menu-icon {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

#allrecords [id^="rec"] .t975__icon-wrapper {
  opacity: 0.9;
}

#allrecords [id^="rec"] .t975__list-item.t-active .t975__menu-text,
#allrecords [id^="rec"] .t975__menu-link.t-active .t975__menu-text {
  color: var(--hx-primary) !important;
}

/* ── Мелочи ────────────────────────────────────────────────────────────── */

::selection {
  background: rgba(129, 122, 249, 0.25);
  color: var(--hx-ink);
}

#rec300343536 .t-cover__filter {
  background-image: linear-gradient(to bottom, rgba(14, 18, 22, 0.67), rgba(16, 20, 24, 0.46));
}

#rec300343536 .t182__descr {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* На десктопе кадр занимает видимую область под фиксированным меню. */
@media screen and (min-width: 981px) {
  #rec300343536 .t-cover {
    --header-height: 50px;
    margin-top: var(--header-height);
    height: auto !important;
  }

  #rec300343536 .t-cover__carrier,
  #rec300343536 .t-cover__filter {
    position: absolute;
    inset: 0;
    height: 100% !important;
  }

  #rec300343536 .t-container {
    position: relative;
  }

  #rec300343536 .t-cover__wrapper {
    height: calc(100vh - var(--header-height)) !important;
  }

  #rec300343536 .t182__wrapper {
    padding-block: 66px 28px;
  }
}

/* Мобильная версия первого экрана */

@media screen and (max-width: 639px) {
  /* Первый экран чуть ниже */
  #rec300343536 .t-cover,
  #rec300343536 .t-cover__carrier,
  #rec300343536 .t-cover__filter,
  #rec300343536 .t-cover__wrapper {
    height: 96vh !important;
    min-height: 560px !important;
  }

  /* Первые шрифты чуть крупнее */
  #rec300343536 .t182__title {
    font-size: 34px !important;
    line-height: 40px !important;
  }

  /* Снимаем унаследованный line-height:72px, из-за которого строки
     заголовка слишком разъезжались на мобильных */
  #rec300343536 .t182__title > div {
    line-height: 40px !important;
  }

  #rec300343536 .t182__descr {
    font-size: 16px !important;
    line-height: 22px !important;
  }
}

/* ── Блок преимуществ (T899) ───────────────────────────────────────────── */

/* Заголовок секции */
#rec316736890 .hx-features-title {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
  color: #000000;
}

/* Чуть меньше отступ у самой секции */
#rec316736890 {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* Убираем номера */
#rec316736890 .t899__symbol {
  display: none !important;
}

/* Заголовки каждого пункта — в акцентном цвете */
#rec316736890 .t899__title,
#rec316736890 .t899__title > div {
  color: var(--hx-primary) !important;
}

/* Почти невидимая синяя линия между пунктами */
#rec316736890 .t899__itemwrapper {
  border-bottom: 1px solid rgba(129, 122, 249, 0.15);
  padding: 14px 0;
}

#rec316736890 .t899__col:last-child .t899__itemwrapper {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Десктоп: по два пункта в ряд, сетка центрирована */
/* Убираем clearfix-псевдоэлементы, чтобы они не занимали ячейку сетки */
#rec316736890 .t899__container::before,
#rec316736890 .t899__container::after {
  content: none !important;
  display: none !important;
}

@media screen and (min-width: 641px) {
  #rec316736890 .t899__container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 0;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #rec316736890 .t899__col {
    display: flex !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box;
  }

  #rec316736890 .t899__itemwrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }
}

@media screen and (max-width: 960px) {
  #rec316736890 .hx-features-title {
    font-size: 30px;
  }
}

@media screen and (max-width: 639px) {
  #rec316736890 {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  #rec316736890 .hx-features-title {
    font-size: 28px !important;
    margin-bottom: 18px;
  }

  #rec316736890 .t899__itemwrapper {
    padding: 12px 0;
  }

  #rec316736890 .t899__title > div {
    font-size: 27px !important;
  }

  #rec316736890 .t899__descr {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
}

@media screen and (max-width: 480px) {
  #rec316736890 .hx-features-title {
    font-size: 26px !important;
  }
}

@media screen and (max-width: 320px) {
  #rec316736890 .hx-features-title {
    font-size: 25px !important;
  }
}

/* ── Кнопки в карточках шаблонов ───────────────────────────────────────── */

.catalog-card {
  --hx-btn-gradient: linear-gradient(135deg, #6f60de, #563fe6);
  --hx-btn-gradient-hover: linear-gradient(135deg, #6755d7, #5036dc);
}

#allrecords .catalog-card :is(.tn-atom__button-text, .tn-atom__form .t-submit, .t-submit__text) {
  font-size: clamp(1rem, 1.7vw, 1.125rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  text-wrap: balance;
}

#allrecords .catalog-card :is(.tn-atom__form .t-submit, [data-elem-type="button"] .tn-atom) {
  box-sizing: border-box;
  padding-inline: 8px !important;
  min-height: 48px;
}

@media (min-width: 480px) {
  /* Обе кнопки в экспорте Tilda имеют ширину 150px и отдельные координаты. */
  .catalog-card {
    --catalog-button-width: clamp(196px, 20vw, 212px);
  }
  #allrecords .catalog-card :is(.tn-atom__form .t-submit, .tn-elem[data-elem-type="button"]) {
    width: var(--catalog-button-width) !important;
  }
  .catalog-card .tn-elem[data-elem-type="button"] {
    margin-inline-start: calc(var(--catalog-button-width) - 150px);
  }
}

.hx-contact-hint {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #454555;
}

#form302536611 input[name="name"]::placeholder,
#form302536611 input[name="contact"]::placeholder {
  color: #646471;
  opacity: 1;
}

/* ── Центрирование последнего пункта преимуществ ───────────────────────── */

#rec316736890 .t899__col:last-child .t899__itemwrapper,
#rec316736890 .t899__col:last-child .t899__title,
#rec316736890 .t899__col:last-child .t899__descr {
  text-align: center !important;
}

@media screen and (min-width: 641px) {
  #rec316736890 .t899__col:last-child {
    grid-column: 1 / -1;
    justify-content: center !important;
  }

  #rec316736890 .t899__col:last-child .t899__itemwrapper {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ── Блок «Обратите внимание» ──────────────────────────────────────────── */

#rec302490825 .hx-notice-title {
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--hx-ink);
  margin: 0 0 12px;
}

@media screen and (max-width: 639px) {
  #rec302490825 .hx-notice-title {
    font-size: 22px;
  }
}

/* ── Заголовки карточек ДДС в акцентном цвете ──────────────────────────── */

#rec358556981 .tn-elem[data-elem-id="1631990976652"] .tn-atom,
#rec358584179 .tn-elem[data-elem-id="1631990976652"] .tn-atom {
  color: var(--hx-primary) !important;
}

/* Кружки в блоке «Как получить шаблон?» */
#rec302624646 .t565__circle {
  background: var(--hx-primary) !important;
}

/* ── Тонкая линия над «Обратите внимание» ──────────────────────────────── */

#rec302490825 .t090__outer {
  border-top-width: 2px !important;
}

/* ── Заголовок карточки с проектами: без некрасивого переноса ──────────── */

@media screen and (min-width: 641px) {
  #rec358584179 .tn-elem[data-elem-id="1631990976652"] {
    width: 480px !important;
    max-width: 480px !important;
  }

  #rec358584179 .tn-elem[data-elem-id="1631990976652"] .tn-atom {
    white-space: nowrap !important;
  }
}

/* ── Блок контактов ────────────────────────────────────────────────────── */

.hx-contacts-section {
  position: relative;
  padding: 90px 20px;
  background-image: url("/assets/img/GettyImages-1355441118-scaled.jpg");
  background-size: cover;
  background-position: center center;
  color: #fff;
}

.hx-contacts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.hx-contacts__container {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
}

.hx-contacts__title {
  margin: 0 0 36px;
  text-align: center;
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;
}

.hx-contacts__card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 34px 38px;
  color: var(--hx-ink);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.65);
}

.hx-contacts__lead {
  margin: 0 0 22px;
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--hx-ink);
}

.hx-contacts__list {
  list-style: none;
  counter-reset: hx-contact;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hx-contacts__list li {
  counter-increment: hx-contact;
  position: relative;
  padding-left: 44px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hx-ink-soft);
}

.hx-contacts__list li::before {
  content: counter(hx-contact);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hx-primary);
  color: #ffffff;
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(91, 72, 245, 0.7);
}

.hx-contacts__list strong {
  color: var(--hx-ink);
  font-weight: 600;
}

.hx-contacts__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.hx-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6);
}

.hx-social:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.06);
}

.hx-social svg {
  width: 26px;
  height: 26px;
  display: block;
}

.hx-social--tg {
  background: #229ed9;
}
.hx-social--vk {
  background: #0077ff;
}
.hx-social--max {
  background: #2b6bff;
}

@media screen and (max-width: 767px) {
  .hx-contacts-section {
    padding: 56px 16px;
  }

  .hx-contacts__title {
    font-size: 32px;
    margin-bottom: 22px;
  }

  .hx-contacts__card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .hx-contacts__lead {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .hx-contacts__list {
    gap: 10px;
  }

  .hx-contacts__list li {
    padding-left: 38px;
    font-size: 13px;
  }

  .hx-contacts__list li::before {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .hx-contacts__socials {
    gap: 14px;
    margin-top: 24px;
  }

  .hx-social {
    width: 48px;
    height: 48px;
  }

  .hx-social svg {
    width: 22px;
    height: 22px;
  }
}

/* ── Мобильные отступы и мелкие правки ─────────────────────────────────── */

#rec302490825 .hx-notice-title {
  margin-bottom: 18px !important;
}

#rec302490825 {
  padding-bottom: 24px !important;
}

#rec302624646 {
  padding-top: 36px !important;
}

@media screen and (max-width: 639px) {
  /* Обычное расстояние между пунктами преимуществ */
  #rec316736890 .t899__col {
    margin-top: 0 !important;
  }

  /* Отступ под заголовком «Шаблоны таблиц» */
  #rec301847735 {
    margin-bottom: 22px !important;
  }

  #rec302490825 .hx-notice-title {
    margin-bottom: 16px !important;
  }
}

/* ── ТАБЕЛЬ: разводим цену и текст на мобильных ────────────────────────── */

/* ── Контакты: единый шрифт со страницей ───────────────────────────────── */

.hx-contacts__card,
.hx-contacts__list,
.hx-contacts__list li {
  font-family: "Gilroy", Arial, sans-serif;
}

/* ── Мобильные отступы: видеоинструкция и заголовок «Шаблоны таблиц» ───── */

@media screen and (max-width: 639px) {
  #rec316736890 .t899__col:last-child .t899__itemwrapper {
    padding-top: 0 !important;
  }

  #rec301847735 {
    margin-top: 28px !important;
    margin-bottom: 22px !important;
  }
}

/* ── Якоря: учитываем фиксированную шапку ──────────────────────────────── */

a[name] {
  scroll-margin-top: 70px;
}

/* ── Модалка успешной заявки ───────────────────────────────────────────── */

.hx-app-success {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000002;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: "Gilroy", Arial, sans-serif;
}

.hx-app-success__dialog {
  width: 100%;
  max-width: 420px;
  padding: 34px 28px 26px;
  background: #ffffff;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
}

.hx-app-success__icon {
  margin-bottom: 14px;
  font-size: 56px;
  line-height: 1;
}

.hx-app-success__dialog h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--hx-ink);
}

.hx-app-success__dialog p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--hx-ink-soft);
}

.hx-app-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 13px 28px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #817af9 0%, #5b48f5 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(91, 72, 245, 0.65);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.hx-app-success__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(91, 72, 245, 0.85);
}

body.hx-app-success-open {
  overflow: hidden;
}

.hx-app-form-error {
  margin-top: 12px;
  color: #d33f33;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .hx-app-success__dialog {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .hx-app-success__dialog h3 {
    font-size: 21px;
  }

  .hx-app-success__icon {
    font-size: 48px;
  }
}

/* Брендовые иконки мессенджеров */
.hx-social {
  border-radius: 16px !important;
  overflow: hidden;
  background: transparent !important;
}

.hx-social--tg {
  border-radius: 50% !important;
}

.hx-social img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Согласие с офертой: текст вместо чекбоксов ────────────────────────── */

.hx-offer-note {
  display: block;
  background: #f4f4f4;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  font-family: "Gilroy", Arial, sans-serif;
  color: #000000;
  text-align: center;
  margin: 12px 0;
}

.hx-offer-note a {
  color: #817af9;
}
