/* БАЙТ·65 — лендинг ИИ-ассистента для бизнеса. Собственный дизайн, без внешних зависимостей. */

:root {
  --ink: #0b1b26;
  --ink-2: #24384a;
  --muted: #5f7787;
  --line: #e1eaef;
  --bg: #ffffff;
  --tint: #f3f8f8;
  --tint-2: #e9f4f2;
  --teal: #0e6e77;
  --teal-dark: #0a565e;
  --mint: #d9efec;
  --flame: #f2683c;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 38, .06), 0 8px 24px -12px rgba(11, 27, 38, .14);
  --shadow-lg: 0 2px 6px rgba(11, 27, 38, .05), 0 30px 60px -30px rgba(11, 27, 38, .35);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.12; font-weight: 800; }
h1 { font-size: clamp(32px, 4.6vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---------- шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 27, 38, .5); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-txt { white-space: nowrap; }
.logo svg { display: block; }
.logo b { color: var(--teal); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--teal); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; font: inherit; font-weight: 650; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; transition: transform .15s, background .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(14, 110, 119, .8); }
.btn-primary:hover { background: var(--teal-dark); text-decoration: none; }
.btn-ghost { background: var(--tint); color: var(--ink); }
.btn-ghost:hover { background: var(--tint-2); text-decoration: none; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-flame { background: var(--flame); color: #fff; box-shadow: 0 10px 24px -12px rgba(242, 104, 60, .8); }
.btn-flame:hover { background: #dd5527; text-decoration: none; }

.head-cta { margin-left: 8px; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(217, 239, 236, .85), transparent 70%),
    radial-gradient(600px 380px at 0% 100%, rgba(243, 248, 248, .9), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-text { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); background: var(--mint); padding: 7px 12px; border-radius: 999px;
}
.hero h1 { margin: 22px 0 20px; }
.hero h1 .accent { color: var(--teal); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.hero-facts svg { flex: none; color: var(--teal); }

.price-chip {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 26px; padding: 12px 16px; border: 1px dashed rgba(14, 110, 119, .35);
  background: rgba(255, 255, 255, .7); border-radius: 12px; font-size: 15px; color: var(--ink-2);
}
.price-chip b { font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.price-chip span { color: var(--muted); }

/* ---------- демо-чат ---------- */
.demo-card {
  min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
  min-height: 430px; max-height: 540px;
}
.demo-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fafcfc);
}
.demo-ava {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--teal), #12909a);
}
.demo-who { display: flex; flex-direction: column; line-height: 1.25; }
.demo-who b { font-size: 15px; }
.demo-who span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #22b573; box-shadow: 0 0 0 3px rgba(34, 181, 115, .18); }

.chat-log {
  flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  background: #fbfdfd; scroll-behavior: smooth;
}
.msg { max-width: 85%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 6px; }
.msg.err { background: #fff4f0; border-color: #ffd9cb; color: #8a3a1c; }

.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; background: #fbfdfd; }
.chat-chips[hidden] { display: none !important; }
.chip {
  border: 1px solid rgba(14, 110, 119, .28); background: #fff; color: var(--teal);
  border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chip:hover { background: var(--mint); border-color: var(--teal); }

.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input[type="text"] {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fbfdfd;
}
.chat-form input[type="text"]:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(14, 110, 119, .12); }
.chat-send {
  border: 0; background: var(--teal); color: #fff; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s;
}
.chat-send:hover { background: var(--teal-dark); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-note { padding: 0 16px 12px; font-size: 12px; color: var(--muted); background: #fff; }
.chat-note a { color: var(--muted); text-decoration: underline; }

.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9db4be; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* ---------- секции ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #d3e2e6; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.card h3 { font-size: 18.5px; }
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--mint); color: var(--teal); margin-bottom: 16px;
}
.ico.flame { background: #fdeee7; color: var(--flame); }

/* ---------- шаги ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 13px; font-weight: 800; color: var(--teal); letter-spacing: .06em;
}
.step h3 { margin: 10px 0 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }
.step .meta { margin-top: 14px; font-size: 13px; color: var(--teal); font-weight: 650; }

/* ---------- кейс ---------- */
.case { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: stretch; }
.case-main {
  background: linear-gradient(160deg, #0e6e77, #0a4c55 70%);
  color: #fff; border-radius: 22px; padding: 38px; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 320px; position: relative; overflow: hidden;
}
.case-main::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.case-main .tag {
  display: inline-flex; align-self: flex-start; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #eafffb;
}
.case-main h3 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 18px; }
.case-main p { color: rgba(255, 255, 255, .82); margin-top: 14px; font-size: 16px; }
.case-main small { color: rgba(255, 255, 255, .6); font-size: 13px; }
.case-list { display: grid; gap: 12px; }
.case-item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
}
.case-item .n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--tint-2); color: var(--teal); font-weight: 800; font-size: 13px;
}
.case-item h4 { font-size: 16px; margin-bottom: 4px; }
.case-item p { color: var(--muted); font-size: 15px; }

/* ---------- отрасли ---------- */
.industry { display: flex; flex-direction: column; gap: 6px; }
.industry .emoji { font-size: 26px; margin-bottom: 8px; }
.industry ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.industry li { margin: 3px 0; }

/* ---------- возможности ---------- */
.feat-list { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0; margin: 0; list-style: none; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.feat-list svg { flex: none; margin-top: 3px; color: var(--teal); }
.feat-list b { color: var(--ink); }

.limits { margin-top: 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.limits h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.limits ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.limits li { margin: 8px 0; }

/* ---------- безопасность ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sec-card h3 { font-size: 17px; margin-bottom: 8px; }
.sec-card p { color: var(--muted); font-size: 15px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  font-size: 14px; color: var(--ink-2);
}
.badge b { color: var(--ink); }

/* ---------- цены ---------- */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px;
  display: flex; flex-direction: column;
}
.price-card.hot { border-color: rgba(14, 110, 119, .45); box-shadow: var(--shadow-sm); position: relative; }
.price-card .label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--teal); }
.price-card .amount { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 4px; }
.price-card .amount small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .note { color: var(--muted); font-size: 14.5px; }
.price-card ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.price-card li svg { flex: none; margin-top: 3px; color: var(--teal); }
.price-card .btn { margin-top: auto; }
.price-card .spacer { flex: 1; min-height: 22px; }

.fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 840px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--teal); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- форма ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-side h2 { margin-bottom: 16px; }
.form-side p { color: var(--muted); }
.contacts { margin-top: 28px; display: grid; gap: 14px; }
.contact { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--ink-2); }
.contact svg { color: var(--teal); flex: none; }
.contact a { color: var(--ink); }

form.lead {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow-sm); display: grid; gap: 14px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 11px; background: #fbfdfd; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(14, 110, 119, .12);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.form-msg { font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: var(--mint); color: #0a565e; }
.form-msg.bad { display: block; background: #fff4f0; color: #8a3a1c; }
.hp { position: absolute; left: -9999px; }

/* ---------- подвал ---------- */
.site-foot { background: var(--ink); color: #c6d3da; padding: 56px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-foot .logo { color: #fff; }
.site-foot .logo b { color: #6ad0cf; }
.site-foot p { font-size: 14.5px; color: #93a6b1; margin-top: 14px; max-width: 34em; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: #7f95a1; margin-bottom: 14px; font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: #c6d3da; font-size: 14.5px; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 12.5px; color: #7f95a1;
}

/* ---------- плавающий виджет ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 32px -10px rgba(14, 110, 119, .7);
  transition: transform .18s, background .18s;
}
.fab:hover { transform: scale(1.06); background: var(--teal-dark); }
.fab .badge-dot {
  position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--flame); border: 2px solid #fff;
}

/* ---------- cookie ---------- */
.ck {
  position: fixed; left: 18px; bottom: 18px; z-index: 70; max-width: 420px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 14px; align-items: center;
}
.ck[hidden] { display: none !important; }
.ck p { margin: 0; }
.ck a { text-decoration: underline; color: var(--ink-2); }
.ck button { flex: none; }

/* ---------- анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .demo-card { max-height: 520px; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 30px 0 60px; }
  .nav { display: none; }
  .head-cta { margin-left: auto; padding: 11px 16px; font-size: 14px; }
  .grid-4, .grid-3, .grid-2, .steps, .sec-grid, .feat-list, .prices { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .demo-card { min-height: 420px; }
  .case-main { padding: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .ck { left: 10px; right: 10px; bottom: 10px; max-width: none; flex-direction: column; align-items: stretch; }
  .fab { right: 16px; bottom: 16px; }
}
