/* Mobile-first safety fixes for exported Tilda pages */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent media from breaking layout on small screens */
img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

/* Keep long words/links from causing horizontal scroll */
.t-container,
.t-col,
.t-text,
.t-descr,
.t-title {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Improve readability and touch spacing on mobile only */
@media (max-width: 640px) {
  .t-container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .t-btn,
  .t-submit {
    min-height: 44px;
    line-height: 1.2;
    white-space: normal;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Better mobile form UX without visual redesign */
  .t-input,
  .t-textarea,
  .t-select {
    font-size: 16px;
    line-height: 1.3;
  }

  .t-form__submit .t-submit {
    width: 100%;
  }

  /* Avoid accidental horizontal shifts in some Tilda blocks */
  .t396__artboard,
  .t-rec,
  .t-records {
    max-width: 100%;
    overflow-x: hidden;
  }
}

.t-text { /* Nasalization font */
  font-family: nasalization, sans-serif;
  font-style: normal;
  font-weight: 400;
}

/* Keep site font consistent for major text nodes */
.t-title,
.t-descr,
.t-uptitle,
.t-btn {
  font-family: nasalization, sans-serif;
}