/* UltraBot для магазинов. Направление: «ценник на витрине».
   Палитра — бренд-кит Struktor (drafts/instagram/brand/palette.md), акцент продукта — лес. */
:root {
  --paper: #f4f7f3;      /* бумага, фон страницы */
  --celadon: #dfe8e2;    /* второй светлый */
  --white: #ffffff;
  --ink: #0f231e;        /* текст */
  --moss: #4a6359;       /* вторичный текст */
  --mist: #a9bdb3;
  --pine: #12352f;       /* бренд-якорь, тёмные блоки */
  --forest: #1f5f52;     /* акцент продукта UltraBot */
  --forest-hover: #184d42;
  --saffron: #f4b63f;    /* ценник, цифры */
  --coral: #c8412d;      /* штемпель, только мелко */
  --line: rgba(15, 35, 30, .12);
  --line-2: rgba(15, 35, 30, .2);

  --display: "Piazzolla", Georgia, serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 60; padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: 6px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.h2 { font: 800 clamp(30px, 3.8vw, 48px)/1.1 var(--display); letter-spacing: 0; word-spacing: .1em; max-width: 24ch; }
.lead { margin-top: 18px; font-size: 19px; color: var(--moss); max-width: 60ch; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 6px;
  font: 600 17px/1 var(--body); color: var(--white); background: var(--forest); text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, transform 120ms var(--ease);
}
.btn .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--forest-hover); } .btn:hover .arr { transform: translate(2px, -2px); } }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--ink { background: var(--ink); width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn--ink:hover { background: #1d3a33; } }

/* ---------- навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); background: rgba(244, 247, 243, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav__brand { display: inline-flex; align-items: baseline; gap: 8px; font: 800 22px/1 var(--display); text-decoration: none; }
.nav__brand span { font: 500 13px var(--body); color: var(--moss); }
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--moss); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }

/* ---------- hero ---------- */
.hero {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px) var(--gutter); overflow: hidden;
}
.hero__for { font-size: 15px; color: var(--moss); max-width: 40ch; }
.hero__title { margin-top: 16px; font: 800 clamp(36px, 4vw, 56px)/1.08 var(--display); word-spacing: .1em; }
.hero__title em { display: block; margin-top: .12em; font-style: italic; font-weight: 500; color: var(--forest); font-size: .74em; }
.hero__sub { margin-top: 22px; font-size: 18.5px; color: var(--moss); max-width: 46ch; }
.hero__cta { margin-top: 30px; display: grid; gap: 12px; justify-items: start; }
.hero__note { font-size: 14px; color: var(--moss); max-width: 42ch; }

.hero__stage { position: relative; min-height: 520px; min-width: 0; }
.shot { margin: 0; border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: 0 1px 2px rgba(15, 35, 30, .06), 0 12px 32px -12px rgba(15, 35, 30, .22); outline: 1px solid var(--line); }
.shot--hero { width: 920px; max-width: none; transform: translateX(0); }
.shot--hero img { width: 100%; }

/* signature: демо-сцена */
.demo {
  position: absolute; left: -36px; bottom: -28px; z-index: 2; width: 340px;
  background: var(--white); border-radius: 12px; outline: 1px solid var(--line-2);
  box-shadow: 0 2px 4px rgba(15, 35, 30, .08), 0 18px 40px -16px rgba(15, 35, 30, .35);
  padding: 14px; display: grid; gap: 10px;
}
.demo__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.demo__who { font-weight: 600; }
.demo__state { font: 500 12px var(--mono); padding: 3px 7px; border-radius: 4px; background: #e8f1ee; color: var(--forest); white-space: nowrap; }
.demo__state.is-quiet { background: #fdf0d4; color: #8a5a00; }
.demo__feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.m { padding: 8px 10px; border-radius: 8px; max-width: 92%; }
.m time { display: block; font: 400 11.5px var(--mono); color: var(--moss); margin-bottom: 2px; }
.m--in { background: #eef2ef; justify-self: start; }
.m--bot { background: #f1f1f1; justify-self: end; }
.m--mgr { background: #e8f1ee; outline: 1px solid #b9d3cb; justify-self: end; }
.m--sys { justify-self: center; max-width: none; padding: 2px 0; font-size: 12.5px; color: var(--moss); text-align: center; }
.m--new { animation: msg-in 260ms var(--ease); }
@keyframes msg-in { from { transform: translateY(6px); } }
.demo__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border: 1.5px solid var(--ink); border-radius: 6px; background: var(--white); color: var(--ink);
  font: 600 15px var(--body); cursor: pointer; transition: background-color 150ms ease, transform 120ms var(--ease);
}
.demo__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .demo__btn:hover { background: #eef2ef; } }
.demo__btn:active { transform: scale(.98); }

/* ---------- боли ---------- */
.pains { padding: 72px 0 88px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pains__grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pain__tag { display: inline-block; font: 500 13px var(--mono); padding: 4px 8px; border-radius: 4px; background: var(--saffron); color: var(--ink); }
.pain h3 { margin: 14px 0 8px; font: 600 21px/1.25 var(--display); }
.pain p:last-child { color: var(--moss); font-size: 16px; }
.pain sup a { color: var(--coral); text-decoration: none; font-weight: 600; padding: 0 2px; }

/* ---------- роли ---------- */
.how { padding: 96px 0; }
.role { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.role--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.role--flip .role__text { order: 2; }
.role__who { font: 500 13px var(--mono); color: var(--forest); text-transform: lowercase; }
.role h3 { margin: 8px 0 16px; font: 800 clamp(24px, 2.6vw, 32px)/1.15 var(--display); word-spacing: .08em; max-width: 22ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--moss); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg); }
.shot--phone { width: min(320px, 100%); justify-self: center; border-radius: 22px; }
.how__note { margin-top: 40px; font-size: 14px; color: var(--moss); }

/* ---------- сравнение ---------- */
.cmp { padding: 88px 0; background: var(--celadon); }
.table-scroll { margin-top: 36px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; }
.tbl thead th { font: 600 14px var(--body); color: var(--moss); padding-bottom: 10px; }
.tbl thead th:last-child { color: var(--forest); }
.tbl tbody tr { border-top: 1.5px solid var(--line-2); }
.tbl tbody th { font: 600 17px/1.3 var(--display); width: 26%; }
.tbl td { color: var(--moss); }
.tbl td:last-child { color: var(--ink); font-weight: 600; }

/* ---------- доказательства ---------- */
.proof { padding: 96px 0; }
.cases { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { padding: 28px; background: var(--white); border-radius: 10px; outline: 1px solid var(--line); }
.case__num { font-size: 17px; color: var(--moss); }
.case__num b { font: 800 52px/1 var(--display); color: var(--ink); margin-right: 8px; }
.case h3 { margin: 14px 0 8px; font: 600 20px/1.3 var(--display); }
.case p:last-child { color: var(--moss); }
.fn { margin: 32px 0 0; padding-left: 1.2em; font-size: 13.5px; color: var(--moss); max-width: 80ch; }

/* ---------- цена: ценник ---------- */
.price { padding: 96px 0; background: var(--pine); color: var(--paper); }
.price .h2 { color: var(--paper); }
.price__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 6vw, 88px); align-items: center; }
.price .ticks { margin-top: 28px; }
.price .ticks li { color: #d3e0d8; }
.price .ticks li::before { border-color: var(--saffron); }
.price__extra { margin-top: 24px; font-size: 15px; color: var(--mist); max-width: 56ch; }
.tag {
  position: relative; padding: 44px 32px 32px; background: var(--saffron); color: var(--ink);
  border-radius: 10px; transform: rotate(-2.5deg);
  /* срезанный угол ценника */
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
  display: grid; gap: 2px;
}
.tag__hole { position: absolute; right: 22px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--pine); }
.tag__from { font: 500 18px var(--display); font-style: italic; }
.tag__sum { font: 800 clamp(52px, 6vw, 72px)/1 var(--display); letter-spacing: 0; white-space: nowrap; }
.tag__per { font: 500 16px var(--body); margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; }
.faq .h2 { margin-bottom: 28px; }
.faq details { border-top: 1.5px solid var(--line-2); }
.faq details:last-of-type { border-bottom: 1.5px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 22px; gap: 16px; align-items: center; padding: 20px 0; font: 600 20px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 16px; height: 16px; justify-self: center; background: linear-gradient(var(--forest), var(--forest)) center/16px 2.5px no-repeat, linear-gradient(var(--forest), var(--forest)) center/2.5px 16px no-repeat; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--moss); max-width: 66ch; }

/* ---------- финал ---------- */
.final { padding: 96px 0 0; background: var(--celadon); }
.final__inner { text-align: center; display: grid; justify-items: center; gap: 20px; }
.final__title { font: 800 clamp(30px, 3.8vw, 48px)/1.1 var(--display); word-spacing: .1em; max-width: 26ch; }
.final__inner > p { color: var(--moss); max-width: 52ch; }
.final__hours { font: 400 14px var(--mono); color: var(--moss) !important; }
.foot { margin-top: 80px; padding: 24px var(--gutter); border-top: 1px solid var(--line-2); text-align: center; font-size: 14px; color: var(--moss); }
.wa-sticky { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-right: var(--gutter); }
  .hero__stage { min-height: 0; }
  .shot--hero { width: 100%; }
  .demo { left: auto; right: 16px; bottom: -32px; }
  .pains__grid { grid-template-columns: 1fr 1fr; }
  .price__wrap { grid-template-columns: 1fr; }
  .tag { max-width: 380px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 28px; }
  .hero__cta .btn { width: 100%; }
  .hero__stage { margin-right: calc(-1 * var(--gutter)); overflow: hidden; padding-bottom: 4px; }
  .nav .lg { display: none; }
  .shot--hero { width: 640px; }
  .demo { position: relative; right: auto; bottom: auto; left: 0; width: calc(100% - var(--gutter)); margin-top: -64px; }
  .hero__title { font-size: clamp(32px, 9vw, 40px); }
  .pains__grid { grid-template-columns: 1fr; gap: 28px; }
  .role, .role--flip { grid-template-columns: 1fr; margin-top: 52px; }
  .role--flip .role__text { order: 0; }
  .cases { grid-template-columns: 1fr; }
  .table-scroll { overflow: visible; }
  .tbl { min-width: 0; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: auto; }
  .tbl tbody tr { padding: 16px 0; }
  .tbl th, .tbl td { padding: 0; }
  .tbl tbody th { width: auto; margin-bottom: 8px; }
  .tbl td { margin-top: 6px; }
  .tbl td::before { content: attr(data-l); display: block; font: 500 12px var(--mono); color: var(--moss); }
  .tbl td:last-child::before { color: var(--forest); }
  .tag { transform: rotate(-1.5deg); }
  .wa-sticky {
    display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; left: 12px; right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45; min-height: 52px; border-radius: 8px;
    font: 600 16px var(--body); color: var(--white); background: var(--forest); text-decoration: none;
    box-shadow: 0 2px 10px rgba(15, 35, 30, .28);
  }
  .wa-sticky .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .final { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .m--new { animation: none; } * { transition-duration: .01ms !important; } }
