/* Публичный сайт. Идея: мир ценников и списка продавцов на карточке товара.
   Смелый элемент один — живой пример демпинга на первом экране; остальное спокойно. */
:root {
  --ink: #0f2a22;
  --forest: #0e5c46;
  --mint: #1fd39a;
  --mist: #e6faf2;
  --sun: #ffc83d;
  --paper: #ffffff;
  --muted: #557069;
  --line: #d5ebe2;
  --danger: #d6453d;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.55; }
a { color: var(--forest); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 64ch; }

/* Типографика */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
p { margin: 0 0 1em; }

/* Шапка */
.s-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.s-head .wrap { display: flex; align-items: center; gap: 14px; height: 68px; max-width: 1340px; }
.s-logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.s-logo i { width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; background: var(--sun); display: grid; place-items: center; font-style: normal; color: var(--ink); }
.s-nav { display: flex; gap: 2px; margin-left: 8px; }
.s-nav a { white-space: nowrap; padding: 8px 11px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.s-nav a:hover { background: var(--mist); }
.s-nav a[aria-current="page"] { color: var(--forest); background: var(--mist); }
.s-head .grow { flex: 1; }
.only-mob { display: none; }
@media (max-width: 1260px) { .s-head.open .only-mob { display: block; } }
.s-lang { position: relative; }
.s-lang summary { list-style: none; cursor: pointer; padding: 7px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); }
.s-lang summary .globe { color: var(--forest); flex: none; }
.s-lang summary::-webkit-details-marker { display: none; }
.s-lang summary::after { content: " ▾"; color: var(--muted); }
.s-lang[open] summary, .s-lang summary:hover { background: var(--mist); }
.s-lang > div { position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 120px;
  box-shadow: 0 16px 30px -18px rgba(15,42,34,.5); display: flex; flex-direction: column; }
.s-lang > div a { padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; }
.s-lang > div a:hover, .s-lang > div a.on { background: var(--mist); }
.s-burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* Кнопки */
.b { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 14px; border: 0;
  font: 700 16px var(--body); text-decoration: none; cursor: pointer; transition: transform .15s; }
.b:active { transform: translateY(1px); }
.b-main { background: var(--forest); color: #fff; box-shadow: 0 6px 0 #0a3f30; }
.b-main:hover { background: #0b4e3b; }
.b-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 #d9a21a; }
.b-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.b-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; box-shadow: none; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; margin-top: 18px; padding: 0; list-style: none; }
.trust li::before { content: "✓ "; color: var(--forest); font-weight: 800; }

/* Первый экран */
.hero { background: var(--mist); padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Живой пример: список продавцов на карточке товара */
.ladder { background: var(--paper); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(14,92,70,.45); position: relative; }
.ladder-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ladder-img { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, #cfeee2, #9fe3c9); display: grid; place-items: center; font-size: 28px; }
.ladder-title { font-weight: 700; line-height: 1.3; }
.ladder-sub { color: var(--muted); font-size: 14px; }
.offers { list-style: none; margin: 0; padding: 0; position: relative; height: calc(4 * 62px); }
.offer { position: absolute; left: 0; right: 0; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  border-radius: 14px; background: #f5faf8; transition: transform .7s cubic-bezier(.2,.8,.2,1), background .3s; }
.offer .pos { width: 26px; font-weight: 800; color: var(--muted); font-family: var(--display); font-size: 14px; }
.offer .who { flex: 1; font-weight: 600; font-size: 15px; }
.offer .price { font-family: var(--display); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.offer.me { background: var(--forest); color: #fff; }
.offer.me .pos { color: var(--sun); }
.offer.me .who::after { content: attr(data-you); margin-left: 8px; font-size: 12px; background: var(--sun); color: var(--ink); padding: 2px 8px; border-radius: 99px; }
.floor { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 10px 14px; border-radius: 12px;
  border: 2px dashed #f0b3ae; color: var(--danger); font-size: 14px; font-weight: 600; }
.floor b { font-family: var(--display); }
.ladder-log { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.ladder-note { position: absolute; top: -12px; right: 18px; background: var(--sun); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { .offer { transition: none; } }

/* Ценники-факты */
.tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -44px 0 8px; position: relative; z-index: 2; }
.tag { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--forest); border-radius: 16px; box-shadow: 0 18px 40px -26px rgba(14, 92, 70, .45); }
.tag b { font-family: var(--display); font-size: 24px; line-height: 1.1; color: var(--ink); }
.tag span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 760px) { .tags { grid-template-columns: 1fr 1fr; margin-top: 20px; } }
@media (max-width: 420px) { .tags { grid-template-columns: 1fr; } }

/* Секции */
.sec { padding: 84px 0; }
.sec-mist { background: var(--mist); }
.sec-ink { background: var(--ink); color: #e9f6f1; }
.sec-ink .lead { color: #a9cfc2; }
.sec-head { margin-bottom: 40px; max-width: 760px; }
.sec-head .lead { margin-top: 14px; }

/* Было / стало */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; }
.vs > div { padding: 30px; }
.vs .was { background: var(--paper); }
.vs .now { background: var(--forest); color: #fff; }
.vs h3 { margin-bottom: 14px; }
.vs ul { margin: 0; padding: 0; list-style: none; }
.vs li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid rgba(15,42,34,.1); }
.vs .now li { border-top-color: rgba(255,255,255,.15); }
.vs .was li::before { content: "✕"; position: absolute; left: 4px; color: var(--danger); font-weight: 800; }
.vs .now li::before { content: "✓"; position: absolute; left: 4px; color: var(--sun); font-weight: 800; }

/* Возможности: чередующиеся строки */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 34px 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat:nth-child(even) .feat-vis { order: -1; }
.feat h3 { font-size: 26px; margin-bottom: 14px; }
.feat ul { padding-left: 20px; margin: 14px 0 0; }
.feat li { margin: 6px 0; }
.feat-vis { background: var(--mist); border-radius: 22px; padding: 26px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; background: var(--paper); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.mini-row b { font-family: var(--display); }
.mini-bar { height: 12px; border-radius: 99px; background: var(--forest); }
.corridor { position: relative; height: 70px; background: var(--paper); border-radius: 14px; }
.corridor .band { position: absolute; left: 18%; right: 22%; top: 24px; height: 22px; background: var(--mint); border-radius: 6px; opacity: .45; }
.corridor .dot { position: absolute; top: 18px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--forest); border: 4px solid #fff; }
.corridor .lbl { position: absolute; bottom: 4px; font-size: 12px; color: var(--muted); }
.shot { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 60px -35px rgba(15,42,34,.5); }
.shot-cap { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Дополнительные возможности списком */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 40px; }
.extras div { border-top: 3px solid var(--ink); padding-top: 14px; }
.extras h3 { font-size: 17px; margin-bottom: 6px; }
.extras p { color: var(--muted); font-size: 15px; margin: 0; }

/* Шаги (реальная последовательность) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--sun);
  color: var(--ink); font: 800 20px var(--display); display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); opacity: .35; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.sec-ink .steps p { color: #a9cfc2; }

/* Тарифы */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.price-card.hot { border-color: var(--forest); box-shadow: 0 24px 50px -30px rgba(14,92,70,.55); }
.price-card .flag { position: absolute; top: -14px; left: 24px; background: var(--sun); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 99px; }
.price-card h3 { font-size: 22px; }
.price-card .sum { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; }
.price-card .sum small { font: 600 15px var(--body); color: var(--muted); }
.price-card .per-day { color: var(--muted); font-size: 14px; margin-top: -6px; }
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--forest); font-weight: 800; }
.price-card .b { margin-top: auto; }
.cmp { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; background: var(--paper); border-radius: 18px; overflow: hidden; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { font-family: var(--display); font-size: 15px; background: var(--mist); }
.cmp .yes { color: var(--forest); font-weight: 800; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 2px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 30px var(--display); color: var(--forest); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Инструменты */
.tool { background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: 30px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select { font: 16px var(--body); padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--forest); outline: none; }
.field small { color: var(--muted); font-size: 13px; }
.result { background: var(--mist); border-radius: 18px; padding: 22px; }
.result .big { font-family: var(--display); font-weight: 800; font-size: 34px; }
.result .row-r { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.result .neg { color: var(--danger); }
.drop-zone { border: 2px dashed var(--forest); border-radius: 18px; padding: 30px; text-align: center; background: var(--mist); }

/* Финальный призыв */
.final { background: var(--sun); padding: 70px 0; }
.final .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.final h2 { max-width: 18ch; }
.final .b-main { box-shadow: 0 6px 0 #0a3f30; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-line { font-size: 20px; font-weight: 700; margin: 6px 0 18px; }
.ok-box { background: var(--mist); border-radius: 16px; padding: 18px; font-weight: 600; margin-bottom: 18px; }
.err-box { background: #fdeceb; color: var(--danger); border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; }

/* Подвал */
.s-foot { background: var(--ink); color: #b9d6cc; padding: 50px 0 30px; font-size: 14px; }
.s-foot a { color: #e9f6f1; text-decoration: none; }
.s-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.s-foot h4 { color: #fff; font: 600 15px var(--display); margin: 0 0 12px; }
.s-foot ul { list-style: none; padding: 0; margin: 0; }
.s-foot li { margin: 7px 0; }
.s-foot .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 13px; color: #8fb3a6; }

/* Липкая кнопка на телефоне */
.sticky-cta { display: none; }

@media (max-width: 1260px) {
  .s-nav, .s-head .b-ghost { display: none; }
  .s-burger { display: block; }
  .s-head.open .s-nav { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); margin: 0; }
}
@media (max-width: 960px) {
  .s-burger { display: block; }
  .s-head.open .s-nav { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .hero { padding: 36px 0 56px; }
  .hero .wrap, .feat, .tool-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .feat:nth-child(even) .feat-vis { order: 0; }
  .vs { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .s-foot .cols { grid-template-columns: 1fr 1fr; }
  .sec { padding: 60px 0; }
  .cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 10px 8px; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
  .sticky-cta .b { width: 100%; }
  body { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .steps { grid-template-columns: 1fr; }
  .s-head .b-sm.b-main { display: none; }
  .offer .who { font-size: 13px; }
  .offer .price { font-size: 15px; }
}

/* Анимации подключения и поддержка на первом экране */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; justify-items: center; }
.hero-support { margin-top: 18px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.hero-support a { font-weight: 700; text-decoration: none; }
@media (max-width: 520px) { .demo-grid { grid-template-columns: 1fr; } }
.hero-support a.alt { font-weight: 500; color: var(--muted); }

/* Логотип SatuPilot (templates/_logo.html) */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 40px; width: auto; display: block; }
.brand-logo .brand-mark { display: none; }
.s-head .brand-logo img { height: 46px; }
@media (max-width: 420px) { .s-head .brand-logo .brand-full, html[data-mode] .brand-logo .brand-full-d { display: none !important; } .s-head .brand-logo .brand-mark { display: block; } }

/* Карточки тарифов: текст кнопки не вылезает за край, цена с ₸ — одной строкой */
.price-card .b { white-space: normal; text-align: center; width: 100%; margin-top: auto; padding: 13px 14px; line-height: 1.25; }
.price-card .sum { font-size: clamp(26px, 2.6vw, 38px); }
.price-card .sum .num { white-space: nowrap; }
