/* Сайт wp5post.ru: плагин «Доставка 5post для WooCommerce». Свои стили, без внешних шрифтов: системный
   шрифт, светлая нейтральная палитра, зеленый иконки плагина — для призыва. Те же классы форм и
   разделов, что строит ядро для формы подключения и личной страницы магазина (web/setup.py). */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --line: #e1e7e4;
  --text: #1a1a1a;
  --text-2: #36403b;
  --muted: #66706b;
  --accent: #1a1a1a;
  --accent-text: #ffffff;
  --ok: #2f6f4e;
  --cta: #17633f;
  --cta-dark: #0f4a2e;
  --cta-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; color: var(--cta); }
.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(--cta); color: var(--cta-text); border-radius: 999px; padding: 6px 14px;
  font-weight: 600; line-height: 1.2; }
.top__nav a.top__nav-cta:hover { background: var(--cta-dark); color: var(--cta-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_cta { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.btn_cta:hover { background: var(--cta-dark); border-color: var(--cta-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(--cta); color: var(--cta-text); font-weight: 700;
  margin-bottom: 12px; }
.steps p { color: var(--text-2); margin: 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 .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); }

/* инструкция, форма подключения, личная страница */
.doc { max-width: 760px; }
.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(--cta); color: var(--cta-text); font-weight: 700; display: flex;
  align-items: center; justify-content: center; }
.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; }
.copy { margin-top: 8px; }

/* ролики (часть E3): видео 1280×800 с постером; .video_soon — обложка на случай, если ролик снят с сайта */
.video { max-width: 760px; margin: 16px 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000000; }
.video video { display: block; width: 100%; height: auto; }
.video_soon { background: var(--bg-soft); }
.video_soon img { width: 100%; height: auto; }
.video_soon figcaption { padding: 12px 16px; color: var(--text-2); font-size: 15px; }

/* формы: заявка, подключение, личная страница */
.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 input[aria-invalid="true"] { 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_suggest { position: relative; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  max-height: 50vh; overflow-y: auto; }
.suggest li { padding: 8px 12px; cursor: pointer; font-size: 15px; }
.suggest li:hover { background: var(--bg-soft); }
.suggest li[aria-selected="true"] { background: var(--line); box-shadow: inset 3px 0 0 var(--accent); }
.field .hint_err { color: #c62828; }
.hours label { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 6px 0; font-weight: 400; }
.hours select, .hours input[type="time"] { padding: 6px 8px; border: 1px solid #d9d9d9; border-radius: 8px;
  font: inherit; }
.form_inline { max-width: none; }
.form_inline .btn { margin-left: 8px; }
details.fix { margin: 16px 0; }
details.fix summary { cursor: pointer; font-weight: 600; }
.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_wc/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 (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%; }
}
@media (max-width: 360px) { .top__nav { gap: 8px; font-size: 13px; } }
@media print {
  .top, .cookie-note, video { display: none !important; }
  main > section, main > section.hero { padding: 12px 0; border-top: 0; background: none; }
}
