/* Круг 12 (10.11.2026), поток notary (Excel H197-H206): герой «Справка о семейном положении» (singlestatus) и «Заверенные копии»
   (truecopies), en/ru/uk/fr/es. Источник: tools/owner_review_2026_11/r12_assets/owner-r12-notary.css, на staging не править руками.
   Квадратики героя - ul.lsx-tiles.r12t (на EN класс добавлен к прежнему списку, на ru/uk/fr/es список собран из текстов Тильды языка
   вместо строки ссылок .chipnav). */

/* H194 (uk-notaryservices, «и на исп версии тоже»): между «Зв’яжіться зі мною для отримання точного розрахунку…» и кнопкой
   «Отримати точну вартість» стоял пустой текстовый элемент Тильды (data-elem-id 1784283220647000001, без текста, высота 180/170 px
   задана в стилях записи) - на ширине от 960 px он оказывался между абзацем и кнопкой (разрыв 236-246 px). Пустой элемент убран;
   промежуток ужимает owner-r11-notary.js как остальные (не больше 40 px). Только пока элемент действительно пуст. */
html body main.pg-notary .t396__elem[data-elem-id="1784283220647000001"]:has(> .tn-atom:empty) { display: none !important; }

/* H197: «текст еле влезает в рамку» - квадратики одной ширины по сетке, высота по самому длинному тексту, отступ текста от рамки
   одинаковый у всех; на 1920/1536/1440/1366: пять в ряд по ширине вводного текста (687 px) */
html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t {
  display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; grid-auto-rows: 1fr !important;
  gap: 12px !important; width: min(687px, 100%) !important; max-width: 100% !important; margin: 28px 0 0 !important; padding: 0 !important;
  list-style: none !important; justify-content: stretch !important; flex-wrap: nowrap !important; box-sizing: border-box !important;
}
html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t > li {
  flex: none !important; width: auto !important; min-width: 0 !important; max-width: none !important; height: auto !important; min-height: 110px !important;
  margin: 0 !important; padding: 12px 10px !important; box-sizing: border-box !important; border: 2px solid #374aa8 !important; border-radius: 20px !important;
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  font-family: 'TildaSans', Arial, sans-serif !important; font-size: 15px !important; line-height: 21px !important; font-weight: 500 !important;
  color: #000 !important; text-align: center !important; background: transparent !important; overflow-wrap: normal !important; hyphens: manual !important;
}
/* место квадратиков - сразу под вводным текстом, как на EN (на ru/uk/fr/es общий стиль героя поднимал список ul над заголовком) */
/* (общий стиль задаёт заголовку order 1, вводному тексту 2, кнопкам 3 или 4; при равном 3 список идёт раньше кнопок по разметке) */
html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t { order: 3 !important; }
html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t > li p { margin: 0 !important; padding: 0 !important; font: inherit !important; color: inherit !important; }
html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t > li::before,
html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t > li::marker { content: none !important; display: none !important; }

/* 960-1199 (1024x768, 1180x820, 1024x1366): колонка текста ~490-590 px - три в ряд, второй ряд слева */
@media (min-width: 960px) and (max-width: 1199.98px) {
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; width: min(520px, calc(56vw - 80px)) !important;
  }
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t > li { min-height: 92px !important; }
}

/* 640-959 (768x1024, 820x1180, телефоны горизонтально): квадратики, кнопки и текст оплаты налезали на фото и печать (H197, H203).
   Фото с печатью ставится в поток ПОД текст героя, справа - ничего не перекрывается; текст героя во всю ширину. */
@media (min-width: 640px) and (max-width: 959.98px) {
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t { width: min(684px, calc(100vw - 84px)) !important; max-width: none !important; }
  /* ru/uk/fr/es: колонка текста героя была ~400 px (справа стояло фото) - теперь фото ниже, текст во всю ширину, как на EN */
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol:not(.lsx-h) { max-width: min(684px, calc(100vw - 84px)) !important; width: min(684px, calc(100vw - 84px)) !important; }
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) > .figure {
    position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    width: min(600px, 78vw) !important; height: auto !important; margin: -80px 0 0 auto !important;
  }
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) { min-height: 0 !important; }
}
@media (min-width: 640px) and (max-width: 759.98px) {
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
/* бэклог п.343 (13.11.2026, решение владельца «а»): EN на планшете вертикально (768x1024, 820x1180) - кнопки были 574 px при ряде квадратиков 684, а текст оплаты
   стоял справа под кнопками (margin-left 428 из вёрстки Тильды). Кнопки - во всю ширину ряда квадратиков, текст оплаты - слева под кнопками.
   Только .hcol.lsx-h с рядом квадратиков (EN truecopies/singlestatus) и только вертикально: на ru/uk/fr/es кнопки и так во всю ширину, горизонтальный вид телефонов не меняется. */
@media (min-width: 640px) and (max-width: 959.98px) and (orientation: portrait) {
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol.lsx-h:has(> ul.lsx-tiles.r12t) .actions .btn { width: min(684px, calc(100vw - 84px)) !important; max-width: none !important; box-sizing: border-box !important; }
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol.lsx-h:has(> ul.lsx-tiles.r12t) .actions .pay { margin: 12px 0 0 !important; width: auto !important; max-width: 36ch !important; flex: 0 0 100% !important; }
}

/* телефоны: три в ряд, второй ряд по центру (как было на EN), кегль 14 */
@media (max-width: 639.98px) {
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t {
    display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 10px !important;
    width: min(360px, 100%) !important; margin: 18px auto 0 !important;
  }
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t > li {
    flex: 0 0 calc((100% - 20px) / 3) !important; min-height: 96px !important; padding: 10px 6px !important; font-size: 14px !important; line-height: 19px !important;
  }
}
/* Android 360 px (бэклог п.342): ru-truecopies, пятый квадратик «Для документов, удостоверяющих личность» - слово «удостоверяющих»
   в 14 px стояло в ~2 px от рамки (на 375/390 чисто); на узких телефонах кегль 12 (слово 89 px вместо 97; 13 px давал ту же ширину слова), поля те же */
@media (max-width: 379.98px) {
  html body main.lsx-page section.hero:not(#_hs):not(#_r12) .hcol ul.lsx-tiles.r12t > li {
    font-size: 12px !important; line-height: 17px !important;
  }
}
