/* Reference links fall below the 44px target when a card title fits on one line; keep the full link target. */
.c-card__title a {
  display: block;
  min-height: var(--tap);
}

/* The consent sentence contains a standalone link that otherwise keeps only its text-line height. */
.c-consent a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: 2px;
}

/* Component rules set display on .c-card / .c-empty, which outranks the UA [hidden] rule:
   without this, catalog filtering only flips the attribute and the cards stay on screen. */
[hidden] {
  display: none !important;
}

/* D2: анкор-блок «Обработка данных» — строка ограничена комфортной мерой (68ch),
   иначе на 1440 текст растягивается на 120+ символов в строке. */
.c-privacy {
  max-width: var(--measure);
}

/* D3: чекбокс согласия остаётся визуально 20×20, но сам контрол получает зону ≥44×44px.
   Компонент задаёт коробку 20×20; здесь квадрат уходит в padding-box (прозрачная рамка 12px
   плюс background-clip), поэтому измеряемая тач-цель — 44×44, а картинка не меняется.
   Отрицательные отступы возвращают квадрат на прежнее место рядом с текстом. */
.c-consent input[type="checkbox"] {
  width: var(--tap);
  height: var(--tap);
  border: 12px solid transparent;
  border-radius: calc(var(--r-1) + 12px);
  background-color: var(--c-surface);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px var(--ui-border-ctrl);
  margin: -11px 0 0 -12px;
}

.c-consent input[type="checkbox"]:checked {
  background-color: var(--c-primary);
  box-shadow: inset 0 0 0 1px var(--c-primary), inset 0 0 0 3px var(--c-surface);
}

.c-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

/* Ловушка для ботов — скрытое поле, а не орган управления: не должна читаться как тач-цель. */
.c-honeypot input {
  width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
}

/* D5: на главной пять тезисов «Что выпускает НСТ» раскладываются как 3+2 (и 2+2+1 на планшете)
   с центрированием последнего ряда — сетка без карточек-одиночек и пустых ячеек. */
@media (min-width: 900px) {
  .c-features--centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .c-features--centered > .c-feature {
    flex: 0 1 calc((100% - 2 * var(--sp-4)) / 3);
  }
}

@media (min-width: 560px) and (max-width: 899px) {
  .c-features--centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .c-features--centered > .c-feature {
    flex: 0 1 calc((100% - var(--sp-4)) / 2);
  }
}

/* D5: секция «Материал и производитель» — два абзаца в две колонки, правая половина не пустует.
   Класс используется только на главной. */
.c-text-cols > p + p {
  margin-top: var(--sp-4);
}

@media (min-width: 900px) {
  .c-text-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(var(--sp-6), 3vw, var(--sp-12));
    align-items: start;
  }
  .c-text-cols > p + p {
    margin-top: 0;
  }
}
