/* ИИ-сотрудник для 1С — v3
   Цвета: белый, графит, зелёный (действие), жёлтый маркер (цифры из 1С).
   Шрифт: Onest, один на всё. Главный элемент — живая переписка в телефоне. */

:root {
  --white: #ffffff;
  --tint: #f1f4f2;
  --ink: #15171a;
  --muted: #5d646d;
  --line: #e2e6e4;
  --green: #0b8a4b;
  --green-dark: #077140;
  --marker: #ffd84d;
  --font: "Onest", -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1160px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 var(--font); }
a { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; border-radius: 6px; }
.page { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* шапка */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.wordmark i { font-style: normal; color: var(--muted); font-weight: 500; }
.wordmark .dot { width: 28px; height: 28px; border-radius: 9px; background: var(--green); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.masthead nav { display: flex; align-items: center; gap: 24px; }
.masthead nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.masthead nav a:hover { color: var(--ink); }
.masthead nav a.go { color: #fff; }
@media (max-width: 760px) { .masthead nav a:not(.go) { display: none; } }

/* кнопки */
.btn, .masthead nav a.go, .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: #fff; text-decoration: none;
  font: 600 16px/1 var(--font);
  padding: 16px 22px; border-radius: 12px; border: 0; cursor: pointer;
  transition: background .15s;
}
.btn:hover, .masthead nav a.go:hover, .cta:hover { background: var(--green-dark); }
.masthead nav a.go { padding: 11px 16px; font-size: 15px; }
.btn svg, .cta svg { width: 20px; height: 20px; flex: none; }
.btn.light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.light:hover { background: var(--tint); }

mark { background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%); color: inherit; padding: 0 3px; border-radius: 2px; }

/* первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 22px; }
.hero .sub { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); margin: 0 0 30px; max-width: 32em; }
.hero .act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .fine { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.try { margin-top: 36px; }
.try p { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 15px/1.2 var(--font); color: var(--ink); background: var(--tint); border: 1.5px solid transparent; padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--green); background: var(--white); }
.chip:disabled { opacity: .45; cursor: default; border-color: transparent; background: var(--tint); }
.chip.used { opacity: .45; }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }

/* телефон */
.phone { justify-self: center; width: min(100%, 390px); background: var(--ink); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(21,23,26,.45); }
.screen { background: #e9efea; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; height: 600px; }
.bar { background: var(--white); display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.bar .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.bar b { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.bar span { font-size: 13px; color: var(--green); }
.feed { flex: 1; overflow-y: auto; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.feed .day { align-self: center; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 8px; margin-bottom: 4px; }
.m { max-width: 86%; padding: 9px 13px 8px; border-radius: 16px; font-size: 15.5px; line-height: 1.42; animation: pop .22s ease-out; }
.m.q { align-self: flex-end; background: #d4f1dc; border-bottom-right-radius: 5px; }
.m.a { align-self: flex-start; background: var(--white); border-bottom-left-radius: 5px; }
.m .src { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.m.file { display: flex; gap: 12px; align-items: center; }
.m.file .ic { width: 40px; height: 48px; border-radius: 7px; background: #e5483b; color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; flex: none; }
.m.file b { display: block; font-weight: 600; font-size: 15px; }
.m.file span { font-size: 13px; color: var(--muted); }
.typing { align-self: flex-start; background: var(--white); border-radius: 16px; border-bottom-left-radius: 5px; padding: 12px 14px; display: flex; gap: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #a9b0b6; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .m { animation: none; } .typing i { animation: none; } .feed { scroll-behavior: auto; } }
@media (max-width: 920px) { .screen { height: 520px; } }

/* разделы */
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec.tint { background: var(--tint); }
.sec h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 16px; max-width: 18em; }
.sec .lede { font-size: 19px; color: var(--muted); margin: 0 0 44px; max-width: 34em; }

/* было / стало */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--line); background: var(--white); }
.versus > div { padding: clamp(24px, 3vw, 40px); }
.versus .now { background: var(--white); }
.versus .then { background: var(--ink); color: #fff; }
.versus h3 { font-size: 22px; font-weight: 600; margin: 0 0 20px; letter-spacing: -0.01em; }
.versus ol { margin: 0; padding: 0; list-style: none; counter-reset: v; }
.versus li { counter-increment: v; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.versus .then li { border-color: rgba(255,255,255,.14); }
.versus li::before { content: counter(v); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--tint); color: var(--muted); margin-top: 1px; }
.versus .then li::before { background: var(--green); color: #fff; }
.versus .sum { margin: 20px 0 0; font-weight: 600; }
.versus .now .sum { color: var(--muted); }
.versus .then .sum { color: var(--marker); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

/* что можно спросить */
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); }
.asks h3 { font-size: 21px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.asks ul { list-style: none; margin: 0; padding: 0; }
.asks li { padding: 9px 0 9px 18px; position: relative; color: var(--ink); border-bottom: 1px solid var(--line); }
.asks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pilot { margin-top: 44px; padding: 22px 24px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; }
.pilot b { font-weight: 600; }
.pilot .badge { grid-row: span 2; background: var(--marker); font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: 8px; }
.pilot p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .asks { grid-template-columns: 1fr; } .pilot { grid-template-columns: 1fr; } .pilot .badge { grid-row: auto; justify-self: start; } }

/* безопасность */
.safe { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.safe h2 { position: sticky; top: 32px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; padding-top: 4px; }
.checks svg { width: 28px; height: 28px; color: var(--green); margin-top: 1px; }
.checks b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 3px; }
.checks span { color: var(--muted); }
@media (max-width: 860px) { .safe { grid-template-columns: 1fr; } .safe h2 { position: static; } }

/* шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; 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: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -12px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); }
.money { margin-top: 44px; font-size: 18px; color: var(--muted); max-width: 40em; }
.money b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 8px; } .steps li { padding: 0 0 22px 64px; min-height: 60px; } .steps li::after { left: 21px; top: 52px; bottom: 0; right: auto; width: 2px; height: auto; } }

/* вопросы */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; margin-top: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }

/* финал */
.final { background: var(--green); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; margin: clamp(40px, 6vw, 80px) 0; }
.final h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 14px; }
.final p { margin: 0; font-size: 19px; color: rgba(255,255,255,.85); max-width: 28em; }
.final .act { display: flex; flex-direction: column; gap: 12px; }
.final .btn { background: var(--white); color: var(--ink); }
.final .btn:hover { background: var(--tint); }
.final .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.final .btn.ghost:hover { background: rgba(255,255,255,.1); }
@media (max-width: 820px) { .final { grid-template-columns: 1fr; } }

/* подвал */
.colophon { border-top: 1px solid var(--line); padding: 26px 0 40px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted); }
.colophon a { color: var(--muted); }
.colophon a:hover { color: var(--ink); }

/* липкая кнопка на телефоне */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; }
  .dock .btn { width: 100%; box-shadow: 0 10px 30px -10px rgba(11,138,75,.6); }
  body { padding-bottom: 84px; }
}

/* статьи и политика */
.essay { max-width: 720px; padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 88px); }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.essay h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 14px; }
.essay .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.essay .short { font-size: 19px; line-height: 1.5; background: var(--tint); border-radius: 16px; padding: 20px 22px; margin: 0 0 40px; }
.essay h2 { font-size: 27px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 48px 0 12px; }
.essay p, .essay li { color: #2e3338; }
.essay ul { padding-left: 1.2em; }
.essay li { margin-bottom: 8px; }
.essay table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
.essay th { text-align: left; font-weight: 600; padding: 0 14px 10px 0; border-bottom: 2px solid var(--ink); }
.essay td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 560px) { .essay table, .essay tbody, .essay tr, .essay td { display: block; } .essay thead { display: none; } .essay td { border: 0; padding: 3px 0; } .essay td:first-child { font-weight: 600; } .essay tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li { border-top: 1px solid var(--line); }
.index-list a { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; text-decoration: none; color: var(--ink); align-items: baseline; }
.index-list .t { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.index-list a:hover .t { color: var(--green-dark); }
.index-list .d { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* скрины переписки */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.shot { margin: 0; }
.shot:nth-child(2) { margin-top: 48px; }
.shot:nth-child(3) { margin-top: 16px; }
.shot .screen { height: auto; border-radius: 26px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(21,23,26,.35); }
.shot .bar { padding: 14px 16px 12px; }
.shot .bar .ava { width: 34px; height: 34px; font-size: 12.5px; }
.shot .bar b { font-size: 15px; }
.shot .feed { overflow: visible; padding: 14px 12px 16px; }
.shot .m { animation: none; font-size: 14.5px; }
.shot figcaption { margin-top: 14px; font-size: 16px; font-weight: 600; }
.shot figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.rows { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; margin: 6px 0 2px; font-size: 14px; }
.rows span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.rows .tot { font-weight: 600; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
@media (max-width: 900px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); }
  .shot { scroll-snap-align: center; }
  .shot:nth-child(n) { margin-top: 0; }
}

/* блок «Напишите мне» */
.final .hours { margin-top: 14px; font-size: 16px; color: rgba(255,255,255,.7); }
.final .act .btn { justify-content: flex-start; padding-left: 20px; }
.maxic { width: 20px; height: 20px; border-radius: 6px; background: currentColor; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.maxic { color: inherit; }
.final .btn.ghost .maxic { background: #fff; color: var(--green); }
.follow { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 15px; padding: 6px 2px; opacity: .85; }
.follow:hover { opacity: 1; text-decoration: underline; }
.follow svg { width: 20px; height: 20px; flex: none; }

/* общие правки */
[hidden] { display: none !important; }
.essay .index-list { padding-left: 0; }
.ic { display: inline-flex; }
.ic svg { width: 20px; height: 20px; }
[data-net="wa"] .ic:not(.ic-wa), [data-net="tg"] .ic:not(.ic-tg), [data-net="max"] .ic:not(.ic-max) { display: none; }
.cta .maxic, .btn .ic .maxic { background: #fff; color: var(--green); }
