/* ============================================================
   Touch API — Variants theme (light / bold)
   Лёгкая, белая (enterprise) + энергичная (pain→ROI)
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter','Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img,svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1,h2,h3 { letter-spacing: -.028em; line-height: 1.12; margin: 0; font-weight: 800; }
p { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  border-radius: 12px; font-weight: 650; font-size: 15px; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s; white-space: nowrap; }
.btn:active { transform: scale(.975); }
.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }
section { padding: 88px 0; }
.sec-head { max-width: 720px; margin-bottom: 50px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { font-size: 17px; margin-top: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
h2 { font-size: clamp(28px, 3.3vw, 41px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .hero-grid > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }

/* ---------- THEME: LIGHT (enterprise) ---------- */
html[data-theme="light"] {
  --bg: #f6f8fc; --surface: #ffffff; --surface-2: #f1f4fb;
  --text: #0c1220; --muted: #59627a; --muted-2: #8b93a8;
  --border: #e4e8f2; --border-2: #d3dae8;
  --brand: #2f5cff; --brand-2: #6f3cff; --brand-soft: #eaf0ff;
  --ok: #0e9f6e; --warn: #d98410;
  --grad: linear-gradient(135deg,#2f5cff,#6f3cff);
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(20,30,70,.28);
  --shadow-sm: 0 10px 30px -18px rgba(20,30,70,.22);
  background: var(--bg); color: var(--text);
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .muted { color: var(--muted); }
html[data-theme="light"] .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
html[data-theme="light"] .eyebrow { color: var(--brand); }
html[data-theme="light"] .btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -12px rgba(47,92,255,.6); }
html[data-theme="light"] .btn-primary:hover { background: #2148d8; transform: translateY(-1px); }
html[data-theme="light"] .btn-ghost { border: 1px solid var(--border-2); color: var(--text); background: #fff; }
html[data-theme="light"] .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
html[data-theme="light"] header.site { background: rgba(255,255,255,.82); border-bottom: 1px solid var(--border); }
html[data-theme="light"] .chip { background: var(--brand-soft); color: var(--brand); border: 1px solid #d8e2ff; }
html[data-theme="light"] .stat .v { color: var(--brand); }
html[data-theme="light"] .codebox { background: #0e1326; }
html[data-theme="light"] .cmp th { background: var(--surface-2); }
html[data-theme="light"] .cmp th.us { color: var(--brand); }
html[data-theme="light"] .plan.pop { border-color: var(--brand); box-shadow: 0 20px 50px -22px rgba(47,92,255,.5); }
html[data-theme="light"] footer.site { background: #0c1220; color: #c8cfe0; }
html[data-theme="light"] footer.site .foot-col a { color: #98a2b8; }
html[data-theme="light"] footer.site .foot-col a:hover { color: #fff; }

/* ---------- THEME: BOLD (pain→ROI) ---------- */
html[data-theme="bold"] {
  --bg: #0a0a12; --surface: #12121e; --surface-2: #1a1a2b;
  --text: #f5f6fb; --muted: #a2a8bf; --muted-2: #6f7590;
  --border: rgba(255,255,255,.09); --border-2: rgba(255,255,255,.18);
  --brand: #ff6a1a; --brand-2: #ff2d6f; --brand-soft: rgba(255,106,26,.12);
  --danger: #ff3b47; --danger-soft: rgba(255,59,71,.12);
  --ok: #22c55e; --ok-soft: rgba(34,197,94,.12);
  --grad: linear-gradient(135deg,#ff6a1a,#ff2d6f);
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 24px 60px -22px rgba(0,0,0,.75);
  background: var(--bg); color: var(--text);
}
html[data-theme="bold"] body { background: var(--bg); }
html[data-theme="bold"] .muted { color: var(--muted); }
html[data-theme="bold"] .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
html[data-theme="bold"] .eyebrow { color: var(--brand); }
html[data-theme="bold"] .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px rgba(255,45,111,.6); }
html[data-theme="bold"] .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -12px rgba(255,45,111,.8); }
html[data-theme="bold"] .btn-ghost { border: 1px solid var(--border-2); color: var(--text); background: rgba(255,255,255,.03); }
html[data-theme="bold"] .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
html[data-theme="bold"] header.site { background: rgba(10,10,18,.8); border-bottom: 1px solid var(--border); }
html[data-theme="bold"] .chip { background: var(--brand-soft); color: #ffb27a; border: 1px solid rgba(255,106,26,.25); }
html[data-theme="bold"] .codebox { background: #0c0c16; border: 1px solid var(--border-2); }
html[data-theme="bold"] .cmp th { background: var(--surface-2); }
html[data-theme="bold"] .cmp th.us { color: var(--brand); }
html[data-theme="bold"] .plan.pop { border-color: transparent; background: linear-gradient(var(--surface),var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
html[data-theme="bold"] footer.site { background: #07070d; color: #b9bccb; }

/* ---------- Shared components ---------- */
header.site { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.brand .mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.nav .links { display: flex; gap: 24px; margin-left: auto; }
.nav .links a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav .links a:hover { color: var(--text); }
.nav .actions { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; }
.badge .dotlive { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pl 2s infinite; }
@keyframes pl { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.5)} 70%{box-shadow:0 0 0 9px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }

.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
h1 { font-size: clamp(34px, 4.6vw, 56px); }
.lead { font-size: 18px; color: var(--muted); margin-top: 18px; max-width: 560px; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--muted-2); margin-top: 16px; }
.stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.stat .v { font-size: 26px; font-weight: 800; }
.stat .l { font-size: 13px; color: var(--muted-2); }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.card { padding: 26px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--brand); }

.chip { display: inline-flex; padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; }

.numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.bignum { font-size: clamp(38px, 5vw, 58px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.num-red { color: var(--danger); } .num-ok { color: var(--ok); } .num-brand { color: var(--brand); }

.pain { border-left: 3px solid var(--danger); background: var(--danger-soft); padding: 20px 22px; border-radius: 0 14px 14px 0; }
.pain h3 { font-size: 16px; margin-bottom: 6px; }
.pain p { font-size: 14px; color: var(--muted); }
html[data-theme="bold"] .pain p { color: #d7dbe8; }
html[data-theme="bold"] .pain h3 { color: var(--text); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checklist .mk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px; }
.mk-bad { background: var(--danger-soft); color: var(--danger); }
.mk-good { background: var(--ok-soft); color: var(--ok); }

.cmp { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td:first-child { color: var(--muted); }
.cmp .yes { color: var(--ok); font-weight: 600; } .cmp .no { color: var(--muted-2); }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 16px; right: 20px; font-size: 40px; font-weight: 800; opacity: .12; }

.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; background: var(--surface); display: flex; flex-direction: column; position: relative; }
.plan .price { font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 13.5px; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; }

.codebox { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); max-width: 100%; min-width: 0; }
.codebox .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.codebox .bar i { width: 10px; height: 10px; border-radius: 50%; }
.codebox .bar i:nth-child(1){background:#ff5f57}.codebox .bar i:nth-child(2){background:#febc2e}.codebox .bar i:nth-child(3){background:#28c840}
.codebox .bar span { margin-left: 8px; font-family: ui-monospace,Menlo,Consolas,monospace; font-size: 11.5px; color: #7b8399; }
.codebox pre { margin: 0; max-width: 100%; padding: 20px; font-family: ui-monospace,Menlo,Consolas,monospace; font-size: 12.8px; line-height: 1.75; color: #cdd4e8; overflow-x: auto; }
.tok-k{color:#ff7ab2}.tok-s{color:#9ae66e}.tok-n{color:#ffcc66}.tok-c{color:#5b6480}

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.mth { display: flex; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); align-items: flex-start; }
.mth code { font-family: ui-monospace,Menlo,Consolas,monospace; font-size: 12.5px; color: var(--brand); white-space: nowrap; }
.mth span { font-size: 13px; color: var(--muted); }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 19px 22px; text-align: left; font-size: 16px; font-weight: 650; color: var(--text); }
.faq-item .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; transition: transform .3s; }
.faq-item.open .ic { transform: rotate(45deg); background: var(--grad); color: #fff; border-color: transparent; }
.faq-item .a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item .a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

.cta-band { border-radius: 26px; padding: 60px 40px; text-align: center; border: 1px solid var(--border-2); }
html[data-theme="light"] .cta-band { background: linear-gradient(160deg,#eef3ff,#ffffff); }
html[data-theme="bold"] .cta-band { background: radial-gradient(700px 360px at 50% 0%, rgba(255,106,26,.22), transparent 70%), linear-gradient(160deg,#15121e,#0c0c16); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 14px auto 28px; font-size: 17px; }

footer.site { padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; padding: 6px 0; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; }
html[data-theme="light"] footer.site .foot-bottom { border-color: rgba(255,255,255,.1); }

.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

.logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; justify-content: center; opacity: .8; }
.logos span { font-weight: 800; font-size: 18px; color: var(--muted-2); letter-spacing: -.02em; }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.quote { display: flex; gap: 16px; align-items: flex-start; }
.quote p { font-size: 15px; }

.bar-track { height: 10px; border-radius: 100px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.bar-fill { height: 100%; border-radius: 100px; background: var(--grad); }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3, .steps, .numbers { grid-template-columns: 1fr; }
  .hero-grid, .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
}
@media (max-width: 640px) {
  section { padding: 58px 0; }
  .codebox pre { overflow-x: auto; }
  .methods { grid-template-columns: 1fr; }
  .cmp { overflow-x: auto; }
  .grid-2, .grid-3, .grid-4, .steps, .numbers { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr; }
  .stat .v { font-size: 22px; }
  .stats { gap: 20px; }
  .logo-row { gap: 16px; }
}
