defining footprints for sockets and pins of a connection set

The first question:
-tell me how to describe elements of electronic circuits when it is necessary to use stackable sockets&headers (female&male at the same time) - for example, to install arduino shields (when there is a main board, plus an expansion board and an arduino module directly) as shown in my diagram.
I can’t describe something like this using hierarchical sheets). Any ideas?
the second question: when forming a PBC footprint, how to describe the socket’s counterpart for elements connected peripherally to the board and the corresponding cables for the BOM

IMO, others will have different opinions, I only define/specify what is directly soldered to the PCB as connected items in the schematic. So anything that requires a pad . . .

Anything else, e.g. a battery going into a holder, a label being stuck on I put a symbol on the schematic in one corner of a sheet so I capture it in the BOM, but these things are not connected to the circuit.

In my opinion, which is similar to Raptors:
The male pins are usually attached to the arduino module, so they are part of the arduino PCB, so you don’t include these in the schematic. You only include the arduino module as a symbol that has a “do not populate” attribute you will find in the symbol properties.
Appropriate connectors for the module can be found in the Connector library, or use some connectors to create a symbol of female sockets to suit your module.

For the PCB, you need pads to which you solder female connectors. There are some in the “Module” footprint library.
A hint: find the right footprint modules first and then create the appropriate symbol.

Would you show an example of the circuit implementation with the properties of these connection elements? your answer seemed confusing and unclear to me…
thank you.

The use of stackable connectors implies a “sandwich” of three boards one above the other:

  • main board
  • expansion board (included Uq7_2…Uq7_13 with a stackable socket-pin through)
  • arduino board

according to these principles of connecting the boards to each other, I have to describe the connection elements in the electrical diagram in such a way as to place 3 different connecting elements on separate PCB pads (starting from the main board):

isnt it?
I don’t understand the hierarchy of binding these elements, so I would like to limit the connections in the horizontal plane for each board separately. So that the destination bus lines do not stretch between them

Kicad is limited to one PCB per project. You need two PCBs so you need two projects.

Hierarchical doesn’t really apply here.

Pardon,… Why is that so?
but not as is:

IMO the only parts that should be shown as connected in your Schematic are the parts physically soldered to the PCB, so the sockets not the Arduino.

Otherwise you will have connections that cannot be routed as they don’t actually exist. You are not routing tracks to the Arduino you are routing tracks to the header sockets.

I am using RFID antenna made as separate PCB with coil on it and electrical shield connected to GND so antenna is mounted at PCB by 3 pin pin-header.
At schematic I have pin-header connected to circuit and next to it antenna symbol not connected to anything. I have footprint for my antena just showing its dimensions and positions of its THT pads, but these all are only graphic info helping to position pin-header (antenna footprint contains no pads at all).

you have explained the principle of connecting peripheral equipment/elements perfectly.
BUT the essence of my question is in connecting extension board using stackable socket-in&pin-out onnectors. That is, those elements of the ext.circuit that I actually design, and everything else (peripherial units/elements) = have to be prepared for the BOM DIY-listing.