/* ============================================================
   custom-fixes.css — overrides for Tilda layout issues
   ============================================================ */

/* ----------------------------------------------------------
   Global link reset.
   Tilda's CSS scopes the text-decoration reset to
   :where(.t-records) a, but our page content records are
   rendered outside that wrapper. Match Tilda's original
   behaviour: no underline on any link.
   ---------------------------------------------------------- */
:where(a) {
  color: #40a3ff;
  text-decoration: none;
}

/* Card links inherit color from their container (.t939 .t-card__title { color: #fff }, etc.)
   Tilda excludes .t-card__link from all direct color rules — match that behaviour. */
.t-card__link {
  color: inherit;
}

/* ----------------------------------------------------------
   /en page – T396 Zero Block: "Card Integration for Your Platform"
   At ≤960px the heading wraps to 3+ lines and overlaps
   the subtitle below it. Tighten line-height so it fits
   within the allocated height.
   ---------------------------------------------------------- */
@media screen and (max-width: 960px) {
  .tn-elem__11238154361745564916427 .tn-atom {
    line-height: 1.1 !important;
  }
}

/* ----------------------------------------------------------
   /en page footer (#rec1124074831) – T420 layout at ~909px
   At this width col-1 (company info) and col-2 (About us)
   share the first row because both fit within 320px + 320px.
   The user wants: company info takes the full first row,
   then all nav columns (About us, Contacts, Legal) on the
   row below.
   ---------------------------------------------------------- */
@media screen and (max-width: 960px) {
  /* Switch the footer container to flex so we can control
     column wrapping without touching the HTML. */
  #rec1124074831 .t420 .t-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
  }

  /* Company info – take the full first row */
  #rec1124074831 .t420 .t-container > .t420__col.t-col_3:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-bottom: 30px !important;
  }

  /* Remaining nav columns – auto-size, side-by-side */
  #rec1124074831 .t420 .t-container > .t420__col.t-col_3:not(:first-child) {
    flex: 0 0 auto !important;
    float: none !important;
  }

  /* Unwrap the extra <div> that wraps col-3 and col-4 so they
     participate as direct flex children alongside col-2. */
  #rec1124074831 .t420 .t-container > div:not([class]) {
    display: contents !important;
  }

  /* Hide the mid-float-clear – no longer needed with flexbox */
  #rec1124074831 .t420__floatbeaker_lr3 {
    display: none !important;
  }
}
