/* Страницы продукта «Доставка 5post для Тильды». Свои стили, без внешних
   шрифтов: системный шрифт, теплая нейтральная палитра в тон виджету. */
:root {
  --bg: #ffffff;
  --bg-soft: #faf8f6;
  --line: #e6e2de;
  --text: #1a1a1a;
  --text-2: #3a3633;
  --muted: #6e6864;
  --accent: #1a1a1a;
  --accent-text: #ffffff;
  --ok: #2f6f4e;
  /* зеленый 5post — только для призыва «Подключить», чтобы он читался на любом фоне */
  --green: #5ab333;
  --green-dark: #499826;
  --green-text: #ffffff;
  --warn: #a45c4c;
  --radius: 12px;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
/* от атрибута hidden зависят корзина демо, ее заглушка и пояснение после
   «Оформить» — никакое правило display не должно его перебить */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft);
  padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.01em;
  text-wrap: balance; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: 19px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.wrap > p { max-width: 720px; }
main > section { padding: 56px 0; border-top: 1px solid var(--line); }
main > section:first-child { border-top: 0; }

.top { position: sticky; top: 0; z-index: 10; background: #ffffff;
  border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.top__nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.top__nav a:hover { color: var(--text); }
.top__nav a.top__nav-cta { background: var(--green); color: var(--green-text); border-radius: 999px; padding: 6px 14px; font-weight: 600; line-height: 1.2; }
.top__nav a.top__nav-cta:hover { background: var(--green-dark); color: var(--green-text); }

.hero { background: var(--bg-soft); }
main > section.hero { padding: 72px 0 56px; }
.eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 12px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent); background: transparent;
  color: var(--accent); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer; }
.btn:hover { background: var(--bg-soft); }
.btn_main { background: var(--accent); color: var(--accent-text); }
.btn_main:hover { background: #333333; }
.btn_5post { background: var(--green); border-color: var(--green); color: var(--green-text); }
.btn_5post:hover { background: var(--green-dark); border-color: var(--green-dark); }
.facts, .ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.facts li, .ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.facts li::before, .ticks li::before { content: ""; position: absolute; left: 4px; top: .5em;
  width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg); }
.note { font-size: 14px; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.steps li { counter-increment: step; padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); }
.steps li::before { content: counter(step); display: inline-flex; align-items: center;
  justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  color: var(--accent-text); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--text-2); margin: 0; }

.demo__cart { max-width: 560px; margin: 24px 0 12px; }
.demo-cart { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  background: var(--bg); box-shadow: 0 10px 30px rgba(26, 26, 26, .06); }
.demo-cart__item { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line); margin-bottom: 16px; font-weight: 600; }
.t-input-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.t-radio__control { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer;
  font-size: 16px; }
.t-radio__control input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.demo-cart__sum { margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-cart__sum > div { display: flex; justify-content: space-between; margin: 6px 0; color: var(--muted); }
.demo-cart__sum .demo-cart__total-row { color: var(--text); font-weight: 700; font-size: 19px; }
.demo-cart .t-submit { width: 100%; }
.demo-cart__done { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--bg-soft);
  border: 1px solid var(--line); font-size: 15px; }
.demo-off { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); margin: 0; }

.case { padding: 20px; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid var(--line); max-width: 760px; }
.case > :last-child { margin-bottom: 0; }

.price { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 48px; }
.price__main { font-size: 44px; font-weight: 800; line-height: 1; margin: 0; }
.price__main span { font-size: 18px; font-weight: 500; color: var(--muted); }
.price .ticks { margin-top: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative;
  padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--text-2); }

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* /connect */
.doc { max-width: 760px; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.doc ol.big { padding-left: 0; list-style: none; counter-reset: s; margin: 0; }
.doc ol.big > li { counter-increment: s; position: relative; padding: 0 0 28px 48px; }
.doc ol.big > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px;
  height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  font-weight: 700; display: flex; align-items: center; justify-content: center; }
.path { display: inline-block; font-size: 14px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin: 4px 0 8px; }
.code { display: block; white-space: pre; overflow-x: auto;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.warn { border-left: 3px solid var(--warn); padding: 4px 0 4px 12px; margin: 10px 0; }

/* /x5 */
.scheme { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; counter-reset: sc; }
.scheme li { counter-increment: sc; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); }
.scheme li b { display: block; }
.scheme li b::before { content: counter(sc) ". "; }
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  margin: 16px 0; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); border-radius: 8px; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
/* не шире колонки текста: на главной .wrap заметно шире, чем .doc на /x5 */
/* высота ролика известна до загрузки метаданных: якоря ниже не промахиваются (Safari) */
.video video { display: block; width: 100%; height: auto; }
.video { max-width: 760px; margin: 16px 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: #000000; }
.print-only { display: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top__nav { gap: 12px; font-size: 14px; }
  .top__nav .top__nav-extra { display: none; }
  main > section { padding: 40px 0; }
  main > section.hero { padding: 48px 0 40px; }
  .actions .btn { width: 100%; }
}

/* 360 px — самая частая ширина телефона: пять пунктов меню при 14px не
   помещаются рядом с брендом и на 4 px вылезали за поля */
@media (max-width: 360px) { .top__nav { gap: 8px; font-size: 13px; } }
/* на 320 px четыре пункта не помещаются даже так; раздел с видео стоит сразу
   под первым экраном — без пункта в меню его не потерять */

@media (max-width: 400px) {
  .demo-cart { padding: 14px; }
}

@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { font-size: 11pt; }
  .top, .no-print, video { display: none !important; }
  .print-only { display: block !important; }
  main > section, main > section.hero { padding: 12px 0; border-top: 0; background: none; }
  .shots { grid-template-columns: 1fr 1fr; }
  h1, h2, h3 { break-after: avoid; }
  .path { break-after: avoid; }
  .path { display: block; width: fit-content; }
  .code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .code, .warn { break-inside: avoid; }
  .card, .case, .steps li, .scheme li, .shots figure, details, .demo-cart, .actions, .price, #contacts,
  .ticks li, .facts li {
    break-inside: avoid; }
  .cols .card { break-inside: auto; }
}

/* личная страница подключения (спека 2026-09-29) */
.bookmark-wrap { margin: 8px 0 20px; }
.bookmark { font-size: 18px; padding: 14px 24px; cursor: grab; }
.values textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 8px; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.values .code { word-break: break-all; }
.copy { margin-top: 8px; }

/* заявка на подключение и политика (спека 2026-09-30) */
.form { max-width: 560px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: 8px;
  font: inherit; background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field_err input, .field_err textarea { border-color: #c62828; }
.field .hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.field .err { margin: 6px 0 0; font-size: 14px; color: #c62828; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; margin: 6px 0 !important; }
.choice input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.field_consent label { font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.policy h2 { margin-top: 28px; }
.policy .ticks li { margin-bottom: 10px; }
.ticks-line { font-size: 17px; }
.doc .err { color: #c62828; }
/* плашка про cookie (site/metrika.js): внизу экрана, поверх содержимого, не
   шире колонки текста; на телефоне кнопка переносится под текст */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 600px; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px; background: var(--bg); color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12); font-size: 14px; line-height: 1.45; }
.cookie-note p { margin: 0; flex: 1 1 260px; }
.cookie-note a { color: inherit; }
.cookie-note .cookie-note__ok { min-height: 40px; padding: 0 18px; font-size: 15px; flex: none; }
@media print { .cookie-note { display: none; } }
