/* ШРИФТ ONMARK - РАБОЧИЕ ИСТОЧНИКИ */
@font-face {
  font-family: 'Onmark-Final';
  src: url('https://fonts.cdnfonts.com/s/85509/OnmarkRegular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onmark-Final';
  src: url('https://fonts.cdnfonts.com/s/85509/OnmarkBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* КНОПКА - УПРОЩЕННАЯ ВЕРСИЯ */
.onmark-button {
  /* Неоморфизм */
  border-radius: 77px;
  background: linear-gradient(145deg, #cacaca, #f0f0f0);
  box-shadow: 35px 35px 58px #9b9b9b,
              -35px -35px 58px #ffffff;
  
  /* Размеры ДЕСКТОП */
  padding: 20px 50px;
  min-height: 70px;
  width: 100%;
  box-sizing: border-box;
  
  /* Шрифт ONMARK с приоритетом */
  font-family: 'Onmark-Final', 'Onmark', 'Arial', sans-serif !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000000 !important;
  
  /* Выравнивание */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  
  /* Без рамок */
  border: none;
  outline: none;
  
  /* Переходы */
  transition: all 0.3s ease;
  
  /* Принудительное применение шрифта */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Эффекты */
.onmark-button:hover {
  box-shadow: 25px 25px 48px #9b9b9b,
              -25px -25px 48px #ffffff;
  transform: scale(0.98);
}

.onmark-button:active {
  box-shadow: inset 5px 5px 10px #bebebe,
              inset -5px -5px 10px #ffffff;
  transform: scale(0.96);
}

/* ========== МОБИЛЬНАЯ АДАПТИВНОСТЬ ========== */

/* Планшеты и маленькие ноутбуки */
@media screen and (max-width: 1024px) {
  .onmark-button {
    padding: 18px 45px;
    min-height: 65px;
    font-size: 22px;
    border-radius: 70px;
  }
}

/* Планшеты в портретной ориентации */
@media screen and (max-width: 900px) {
  .onmark-button {
    padding: 16px 40px;
    min-height: 62px;
    font-size: 21px;
    border-radius: 65px;
  }
}

/* Основной мобильный брейкпоинт */
@media screen and (max-width: 768px) {
  .onmark-button {
    padding: 14px 35px !important;
    min-height: 58px !important;
    font-size: 20px !important;
    border-radius: 60px !important;
    letter-spacing: 1.3px !important;
    box-shadow: 25px 25px 45px #9b9b9b,
                -25px -25px 45px #ffffff !important;
  }
  
  .onmark-button:hover {
    box-shadow: 20px 20px 35px #9b9b9b,
                -20px -20px 35px #ffffff !important;
  }
}

/* Большие телефоны в ландшафте */
@media screen and (max-width: 667px) {
  .onmark-button {
    padding: 12px 32px !important;
    min-height: 56px !important;
    font-size: 19px !important;
    border-radius: 58px !important;
  }
}

/* Средние телефоны */
@media screen and (max-width: 576px) {
  .onmark-button {
    padding: 11px 30px !important;
    min-height: 54px !important;
    font-size: 18px !important;
    border-radius: 56px !important;
  }
}

/* Мобильные телефоны */
@media screen and (max-width: 480px) {
  .onmark-button {
    padding: 10px 28px !important;
    min-height: 52px !important;
    font-size: 17px !important;
    border-radius: 54px !important;
    letter-spacing: 1.1px !important;
    box-shadow: 20px 20px 40px #9b9b9b,
                -20px -20px 40px #ffffff !important;
  }
}

/* Маленькие телефоны */
@media screen and (max-width: 425px) {
  .onmark-button {
    padding: 9px 25px !important;
    min-height: 50px !important;
    font-size: 16px !important;
    border-radius: 52px !important;
    letter-spacing: 1px !important;
  }
}

/* iPhone 6/7/8 и подобные */
@media screen and (max-width: 375px) {
  .onmark-button {
    padding: 8px 22px !important;
    min-height: 48px !important;
    font-size: 15px !important;
    border-radius: 50px !important;
    letter-spacing: 0.9px !important;
    box-shadow: 15px 15px 30px #9b9b9b,
                -15px -15px 30px #ffffff !important;
  }
}

/* Маленькие телефоны (iPhone 5/SE) */
@media screen and (max-width: 320px) {
  .onmark-button {
    padding: 7px 20px !important;
    min-height: 45px !important;
    font-size: 14px !important;
    border-radius: 48px !important;
    letter-spacing: 0.8px !important;
  }
}

/* Экстремально маленькие */
@media screen and (max-width: 280px) {
  .onmark-button {
    padding: 6px 18px !important;
    min-height: 42px !important;
    font-size: 13px !important;
    border-radius: 45px !important;
    letter-spacing: 0.7px !important;
    box-shadow: 10px 10px 25px #9b9b9b,
                -10px -10px 25px #ffffff !important;
  }
}

/* Fallback если Onmark не загрузится */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* 1. СНАЧАЛА СБРАСЫВАЕМ СТИЛИ TILDA */
a.onmark-button-final,
a.onmark-button-final:link,
a.onmark-button-final:visited,
a.onmark-button-final:hover,
a.onmark-button-final:active,
a.onmark-button-final:focus {
  all: unset !important;
  color: #000000 !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #000000 !important;
}

/* 2. ПОТОМ ШРИФТ */
@font-face {
  font-family: 'Onmark-Working';
  src: url('https://fonts.cdnfonts.com/s/85509/OnmarkBold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

/* 3. ПОТОМ СТИЛИ КНОПКИ */
.onmark-button-final {
  /* Неоморфизм */
  border-radius: 77px;
  background: linear-gradient(145deg, #cacaca, #f0f0f0);
  box-shadow: 35px 35px 58px #9b9b9b, -35px -35px 58px #ffffff;
  
  /* Размеры */
  padding: 20px 50px;
  min-height: 70px;
  width: 100%;
  box-sizing: border-box;
  
  /* Шрифт - ЧЕРНЫЙ */
  font-family: 'Onmark-Working', 'Arial', sans-serif !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  
  /* Остальное */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
  .onmark-button-final {
    padding: 12px 30px;
    font-size: 18px;
    min-height: 55px;
  }
}

@media (max-width: 480px) {
  .onmark-button-final {
    padding: 10px 25px;
    font-size: 16px;
    min-height: 50px;
  }
}
/* Скрыть ВСЕ блоки, которые могут показываться через фильтры */
.t-rec[data-record-type="self"],
.t-rec[data-tilda-rule="self"],
.t-rec.zero-block,
.t-rec.t-rec_show {
    display: none !important;
}

/* Исключения - показывать только выбранные в ме602в */
.t-rec.t-rec_act {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}