/* Публичные страницы облачной версии: главная, вход, документы. Цвета и шрифты — из style.css. */
body.pub { background: var(--bg); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.pub-top { display: flex; align-items: center; gap: 18px; padding: 18px 28px; max-width: 1180px; margin: 0 auto; }
.pub-top .brand { font-size: 17px; }
.pub-top .brand-mark { width: 30px; height: 30px; }
.pub-top nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.pub-top nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.pub-top nav a:hover { color: var(--ink); }
.pub-top nav a.btn { color: var(--accent-ink); }
.btn.big { min-height: 46px; padding: 10px 20px; font-size: 15px; font-weight: 600; border-radius: 10px; }

/* ---------- первый экран: текст и бирка поставки ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 44px; padding-bottom: 64px; }
.hero h1 { font-size: 46px; line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; max-width: 15ch; }
.hero p.big { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 26px; max-width: 54ch; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.label-mock {
  position: relative; margin: 0; padding: 22px 24px 18px; transform: rotate(-1.2deg);
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(16, 24, 32, .28), 0 2px 6px rgba(16, 24, 32, .06);
}
.lm-tape {
  position: absolute; top: -18px; left: 50%; width: 120px; height: 30px; margin-left: -60px; transform: rotate(2.5deg);
  background: var(--tape); opacity: .92; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(16, 24, 32, .15);
}
.lm-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.lm-mp { color: var(--ink); font-weight: 600; }
.lm-dest { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 14px; }
.lm-nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.lm-nums div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-left: 1px solid var(--line); }
.lm-nums div:first-child { border-left: 0; padding-left: 0; }
.lm-nums b { font: 600 32px/1 var(--font-data); }
.lm-nums span { color: var(--muted); font-size: 12.5px; }
.lm-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.lm-rows li { display: grid; grid-template-columns: 1fr auto 52px; gap: 12px; align-items: baseline; padding: 8px 0 8px 12px; border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--st-idle); }
.lm-rows li.red { box-shadow: inset 4px 0 0 var(--st-red); }
.lm-rows li.amber { box-shadow: inset 4px 0 0 var(--st-amber); }
.lm-rows li.green { box-shadow: inset 4px 0 0 var(--st-green); }
.lm-rows b { font: 600 15px var(--font-data); }
.lm-rows em { font: 13px var(--font-data); font-style: normal; color: var(--muted); text-align: right; }
.lm-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--ink-2); font-size: 13px; }
.lm-code {
  flex: none; width: 92px; height: 34px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px,
    var(--ink) 7px 10px, transparent 10px 11px, var(--ink) 11px 12px, transparent 12px 15px);
}

/* ---------- разделы ---------- */
.sec { padding-top: 36px; padding-bottom: 36px; }
.sec h2 { font-size: 30px; letter-spacing: -.025em; font-weight: 800; margin: 0 0 8px; }
.sec .lead { color: var(--ink-2); margin: 0 0 26px; max-width: 70ch; font-size: 15.5px; }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; border-top: 2px solid var(--ink); }
.feat .f { padding: 18px 0 24px; border-bottom: 1px solid var(--line-strong); }
.feat h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.vs-col { padding: 22px 26px 24px; }
.vs-col h3 { margin: 0 0 12px; font-size: 17px; }
.vs-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.vs-col li { position: relative; padding-left: 26px; color: var(--ink-2); }
.vs-col.them { background: var(--surface-2); border-right: 1px solid var(--line); }
.vs-col.them li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 10px; height: 2px; background: var(--muted); }
.vs-col.us { box-shadow: inset 0 4px 0 var(--tape); }
.vs-col.us li { color: var(--ink); }
.vs-col.us li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 14px; border-radius: 4px; background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.5-5' fill='none' stroke='%23ffd23f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.prices-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; justify-content: space-between; margin-bottom: 18px; }
.prices-head .lead { margin: 0; }
.seg .disc { color: var(--st-green); font-family: var(--font-data); margin-left: 4px; }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.price.hit { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--ink); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price h3 { margin: 0; font-size: 18px; }
.price .sum { font: 600 36px/1.05 var(--font-data); letter-spacing: -.01em; }
.price .sum small { font: 400 14px var(--font-ui); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.price .old { color: var(--muted); font-size: 13px; min-height: 18px; }
.price ul { margin: 4px 0 8px; padding-left: 18px; color: var(--ink-2); flex: 1; display: flex; flex-direction: column; gap: 5px; }
.faq details { border-bottom: 1px solid var(--line-strong); padding: 16px 0; }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 20px/1 var(--font-data); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; max-width: 80ch; line-height: 1.55; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 30px; padding-bottom: 44px; color: var(--muted); font-size: 13px; }
.foot .brand { font-size: 14px; margin-right: auto; }
.foot .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.foot a { color: var(--muted); }

/* ---------- вход и регистрация ---------- */
.auth { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 16px 16px 48px; }
.auth form {
  width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 14px; padding: 28px;
  box-shadow: 0 24px 50px -24px rgba(16, 24, 32, .25);
}
.auth h1 { font-size: 24px; letter-spacing: -.02em; margin: 0; }
.auth p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.auth label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.auth .input { width: 100%; min-height: 40px; padding: 8px 12px; }
.auth .input[readonly] { background: var(--surface-2); }
.auth .check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.auth .check input { margin-top: 2px; flex: none; }
.auth .btn.primary { min-height: 44px; font-weight: 600; font-size: 15px; }
.auth .err { color: var(--st-red); font-size: 13px; min-height: 18px; }
.auth .ok { color: var(--st-green); font-size: 13px; }
.auth .links { display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- документы ---------- */
.doc { max-width: 820px; margin: 0 auto 60px; padding: 28px 36px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; line-height: 1.6; }
.doc h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.doc h2 { font-size: 17px; margin-top: 26px; }
.doc .draft { display: flex; gap: 10px; align-items: baseline; background: var(--accent-wash); padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.doc .draft::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--tape); transform: translateY(1px); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 20px; }
  .hero h1 { font-size: 34px; max-width: none; }
  .label-mock { max-width: 480px; }
  .feat { grid-template-columns: 1fr 1fr; }
  .price-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .pub-top { padding-left: 16px; padding-right: 16px; }
  .pub-top { flex-wrap: wrap; gap: 10px; }
  .pub-top nav { gap: 12px; }
  .pub-top nav .hide-m { display: none; }
  .hero h1 { font-size: 30px; }
  .lm-dest { font-size: 32px; }
  .lm-nums b { font-size: 26px; }
  .feat { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .vs-col.them { border-right: 0; border-bottom: 1px solid var(--line); }
  .sec h2 { font-size: 26px; }
  .doc { padding: 22px 18px 30px; border-radius: 0; border-left: 0; border-right: 0; }
}
