/* Свои блоки поверх страниц Тильды: предзаказ и текстовые страницы (политика, согласие).
   Цвета взяты с сайта: чёрный текст, жёлтый #fbde69 как у книги, оранжевый #ff6000 у ссылок. */
:root {
  --lp-ink: #000;
  --lp-yellow: #fbde69;
  --lp-orange: #cc4a00;   /* темнее тильдовского #ff6000: белый текст на нём 4,6:1 */
  --lp-orange-hover: #b34200;
  --lp-link: #c24800;     /* ссылки в тексте Тильды: было #ff7300, 2,7:1 */
  --lp-muted: #4a4a4a;
  --lp-line: #d8d8d8;
  --lp-error: #b3261e;
}

.lp-anchor, .lp-rec { scroll-margin-top: 56px; }
.lp-rec { font-family: 'CirceRounded', Arial, sans-serif; color: var(--lp-ink); }
.lp-rec *, .lp-rec *::before, .lp-rec *::after { box-sizing: border-box; }

/* предзаказ */
.lp-pre { background: var(--lp-yellow); padding: 90px 20px; }
.lp-pre__wrap {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 40px 80px; align-items: start;
}
.lp-pre__title { margin: 0 0 24px; font-size: 42px; line-height: 1.15; font-weight: 600; max-width: 14em; text-wrap: balance; }
.lp-pre__lead { margin: 0 0 14px; font-size: 20px; line-height: 1.5; max-width: 32em; }

.lp-pre__form, .lp-pre__done { background: #fff; border-radius: 8px; padding: 32px; scroll-margin-top: 90px; }
.lp-pre__field input, .lp-pre__consent input { scroll-margin-top: 120px; }
.lp-pre__field { margin-bottom: 18px; }
.lp-pre__field label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.lp-pre__opt { font-weight: 400; color: var(--lp-muted); }
.lp-pre__field input {
  box-sizing: border-box; width: 100%; height: 52px; padding: 0 14px;
  font: inherit; font-size: 18px; color: var(--lp-ink);
  background: #fff; border: 1px solid #8a8a8a; border-radius: 6px;
}
.lp-pre__field input:focus-visible,
.lp-pre__consent input:focus-visible,
.lp-pre__btn:focus-visible { outline: 3px solid var(--lp-ink); outline-offset: 2px; }
.lp-pre__field input[aria-invalid="true"] { border-color: var(--lp-error); box-shadow: 0 0 0 1px var(--lp-error); }

.lp-pre__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lp-pre__consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.lp-pre__consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--lp-ink); }
/* #allrecords: у Тильды правило #allrecords a красит все ссылки в оранжевый (контраст 2,7:1) */
#allrecords .lp-pre__consent a, #allrecords .lp-doc a, .lp-pre__consent a, .lp-doc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lp-pre__consent.is-error span { color: var(--lp-error); }

.lp-pre__btn {
  width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: 6px;
  font: inherit; font-size: 19px; font-weight: 600; color: #fff; background: var(--lp-orange); cursor: pointer;
}
.lp-pre__btn:hover { background: var(--lp-orange-hover); }
.lp-pre__btn[disabled] { opacity: .6; cursor: progress; }
.lp-pre__note { margin: 14px 0 0; font-size: 14px; line-height: 1.4; color: var(--lp-muted); }
.lp-pre__msg { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--lp-error); }
.lp-pre__msg:empty { display: none; }

.lp-pre__done-title { margin: 0 0 10px; font-size: 30px; font-weight: 600; }
.lp-pre__done-text { margin: 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 959px) {
  .lp-pre { padding: 60px 20px; }
  .lp-pre__wrap { grid-template-columns: 1fr; gap: 28px; }
  .lp-pre__title { font-size: 32px; }
  .lp-pre__lead { font-size: 18px; }
}
@media (max-width: 479px) {
  .lp-pre { padding: 48px 16px; }
  .lp-pre__title { font-size: 27px; }
  .lp-pre__form, .lp-pre__done { padding: 22px 18px; }
}

/* текстовые страницы */
.lp-doc { padding: 140px 20px 90px; background: #fff; }
.lp-doc__inner { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.6; }
.lp-doc h1 { margin: 0 0 8px; font-size: 38px; line-height: 1.2; font-weight: 600; }
.lp-doc .lp-doc__date { margin: 0 0 36px; color: var(--lp-muted); }
.lp-doc h2 { margin: 36px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.lp-doc p, .lp-doc li { margin: 0 0 10px; }
.lp-doc ul { padding-left: 1.2em; margin: 0 0 12px; }
@media (max-width: 639px) {
  .lp-doc { padding: 110px 16px 60px; }
  .lp-doc h1 { font-size: 28px; }
  .lp-doc__inner { font-size: 16px; }
}

/* кнопки предзаказа: на первом экране и плавающая */
.lp-cta, .lp-float {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'CirceRounded', Arial, sans-serif; font-weight: 600; text-decoration: none !important;
  color: #fff !important; background: var(--lp-orange); border-radius: 6px;
}
.lp-cta { margin-top: 28px; min-height: 56px; padding: 0 28px; font-size: 19px; }
.lp-cta:hover, .lp-float:hover { background: var(--lp-orange-hover); }
.lp-cta:focus-visible, .lp-float:focus-visible { outline: 3px solid var(--lp-ink); outline-offset: 2px; }
.lp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 9990; min-height: 52px; padding: 0 24px;
  font-size: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.lp-float[hidden] { display: none; }
@media (max-width: 479px) {
  .lp-cta { margin-top: 20px; min-height: 52px; padding: 0 22px; font-size: 17px; }
  .lp-float { right: 16px; bottom: 16px; left: 16px; }
}

/* полосы с кнопкой между разделами */
.lp-strip { background: var(--lp-yellow); padding: 36px 20px; }
.lp-strip__wrap { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.lp-strip__text { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 600; max-width: 30em; }
.lp-cta_strip { margin-top: 0; flex: none; }
@media (max-width: 639px) {
  .lp-strip { padding: 28px 16px; }
  .lp-strip__text { font-size: 19px; }
  .lp-cta_strip { width: 100%; }
}

/* «Предзаказ» в меню: кнопка */
.t229 .t-menu__link-item.lp-menu-btn {
  display: inline-block; padding: 6px 16px; border-radius: 6px;
  background: var(--lp-orange); color: #fff !important; font-weight: 600;
}
.t229 .t-menu__link-item.lp-menu-btn:hover { background: var(--lp-orange-hover); }

/* h2 вместо h1 у бывших заголовков страниц: без браузерных отступов, вид задаёт Тильда */
h2.tn-atom { margin: 0; }

/* на телефоне плавающая кнопка не должна закрывать подвал */
@media (max-width: 479px) {
  body.lp-has-float { padding-bottom: 84px; }
}

/* «уменьшить движение» в системе: без появлений и параллакса Тильды */
@media (prefers-reduced-motion: reduce) {
  .t-animate, .t396__elem, .t396__elem .tn-atom { animation: none !important; transition: none !important; }
  .t-animate { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto !important; }
}

.lp-pre__trial { margin-top: 22px; }

/* цвета Тильды под норму контраста (проверка Impeccable 09.10.2026) */
#allrecords .tn-atom a:not(.lp-cta), #allrecords .t-text a, #allrecords .t-descr a { color: var(--lp-link) !important; border-bottom-color: var(--lp-link) !important; }
#rec36133297 .t-menu__link-item.t-active:not(.lp-menu-btn), .t229 .t-menu__link-item.t-active:not(.lp-menu-btn) { color: var(--lp-link) !important; }
#rec30259880 .t396__artboard, #rec30259880 .t396__carrier, #rec30259880 .t396__filter { background-color: #4f8fab !important; }

/* бургер на телефонах и планшетах: у T229 своего нет */
.lp-burger { display: none; }
@media (max-width: 980px) {
  body.lp-burger-on { padding-top: 56px; }
  body.lp-burger-on .t229 { position: fixed !important; top: 0; left: 0; right: 0; z-index: 9991; background: #fff !important; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
  body.lp-burger-on .t229__maincontainer { display: flex !important; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 4px; box-sizing: border-box; }
  body.lp-burger-on .t229__centerside { display: block; width: auto; padding: 0 !important; }
  body.lp-burger-on .t229:not(.lp-open) .t229__list_item:not(:has(.lp-menu-btn)) { display: none !important; }
  body.lp-burger-on .t229 .t229__list_item:has(.lp-menu-btn) { padding: 0 !important; }
  body.lp-burger-on .t229 .lp-menu-btn { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 16px !important; }
  body.lp-burger-on .t229.lp-open .t229__centerside { position: absolute; top: 56px; left: 0; right: 0; background: #fff; padding: 8px 0 16px !important; box-shadow: 0 8px 16px rgba(0,0,0,.12); max-height: calc(100vh - 56px); overflow-y: auto; }
  body.lp-burger-on .t229.lp-open .t229__list_item { display: block !important; padding: 0 !important; }
  body.lp-burger-on .t229.lp-open .t229__list_item a:not(.lp-menu-btn) { display: block; padding: 12px 20px; font-size: 18px !important; }
  body.lp-burger-on .t229.lp-open .t229__list_item:has(.lp-menu-btn) { padding: 8px 20px 0 !important; }
  .lp-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--lp-ink); cursor: pointer; }
  .lp-burger:focus-visible { outline: 3px solid var(--lp-ink); outline-offset: 0; }
  .lp-anchor, .lp-rec { scroll-margin-top: 64px; }
}
