:root {
  --ink: #0F1B33; --ink-2: #16264A; --teal: #0A8F92; --teal-d: #067376; --teal-l: #2CCBC6;
  --orange: #FF8A1F; --paper: #FFF7EA; --paper-2: #FFEFD6; --mint: #D3F2EA; --peach: #FFDFC2;
  --line: #E8DDC8; --muted: #4B5872; --white: #FFFDF9; --danger: #B3261E; --ok: #067376;
  --display: 'Unbounded', 'Arial Black', sans-serif; --body: 'Nunito', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 4.5vw, 3.7rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.25; }
p { margin: 0; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: 14px; font: 800 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-main { background: var(--teal-d); color: #fff; }
.btn-main:hover { background: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: #fff; }
.btn-login { background: var(--ink); color: #fff; min-height: 46px; padding: 10px 30px; font-size: 1.05rem; }
.btn-login:hover { background: var(--teal-d); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { flex: none; display: block; padding: 4px 0; }
.brand img { width: 96px; }
.links { display: flex; gap: 22px; margin-right: auto; }
.links a { font-weight: 700; text-decoration: none; padding: 8px 2px; white-space: nowrap; }
.links a:hover { color: var(--teal-d); }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.langs { display: flex; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.langs button { min-width: 44px; min-height: 42px; padding: 0 10px; border: 0; background: transparent; color: var(--ink); font: 800 .9rem var(--body); cursor: pointer; }
.langs button + button { border-left: 1.5px solid var(--ink); }
.langs button:hover { background: var(--paper-2); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* первый экран */
.hero { padding-top: clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { color: var(--teal-d); font-weight: 800; margin-bottom: 16px; }
.lead { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.note { margin-top: 16px; font-weight: 700; color: var(--muted); font-size: 1rem; }

/* демонстрация: бот и сайт */
.demo { position: relative; margin: 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.demo figcaption { grid-column: 1 / -1; font-size: .92rem; color: var(--muted); }
.device-label { font-weight: 800; font-size: .88rem; margin-bottom: 8px; }
.chat, .panel-body { background: var(--white); border: 2px solid var(--ink); border-radius: 20px; padding: 16px; box-shadow: 6px 6px 0 var(--ink); }
.chat { background: var(--mint); }
.bubble { background: var(--white); border-radius: 12px; padding: 10px 12px; font-size: .92rem; line-height: 1.35; }
.kids { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.kids li { display: flex; align-items: center; gap: 8px; background: var(--white); border-radius: 10px; padding: 8px 10px; font-size: .92rem; font-weight: 700; transition: background-color .25s ease; }
.tick { flex: none; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--ink); transition: background-color .25s ease, transform .25s ease; }
.kids li.on { background: #fff; }
.kids li.on .tick { background: var(--orange); transform: rotate(8deg); }
.link-cube { position: absolute; left: 44.5%; top: 45%; width: 26px; height: 26px; border-radius: 7px; background: var(--orange); transform: rotate(10deg); }
.panel-h { font-weight: 800; font-size: .92rem; }
.big { font: 700 2.5rem/1.1 var(--display); margin-top: 8px; }
.big small { font: 700 .92rem var(--body); color: var(--muted); }
.bar { height: 10px; border-radius: 6px; background: var(--paper-2); overflow: hidden; margin: 12px 0 14px; }
.bar span { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: left; transform: scaleX(.75); transition: transform .4s ease; }
.panel-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }

/* до и после */
.pain { background: var(--ink); color: #F3F6F7; }
.ledger { margin-top: 36px; border-top: 2px solid #33456E; }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ledger-head { padding: 14px 0; font-weight: 800; border-bottom: 2px solid #33456E; color: #C9D6E3; }
.ledger-head span:last-child { color: var(--teal-l); }
.ledger-row { padding: 20px 0; border-bottom: 1px solid #2A3A60; }
.ledger-row p:first-child { color: #B9C6D6; }
.ledger-row p:last-child { font-weight: 700; color: #fff; }

/* рабочие места */
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.split-head p { color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.role { padding: 30px; border-radius: 22px; }
.role h3 { font-size: 1.35rem; margin-bottom: 10px; }
.role-a { grid-column: span 7; background: var(--mint); }
.role-b { grid-column: span 5; background: var(--peach); }
.role-c { grid-column: span 5; background: #E7DEFF; }
.role-d { grid-column: span 7; background: #FFE3DF; }

/* факты */
.facts { background: var(--paper-2); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.facts h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 18px; }
.cubes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cubes li { position: relative; padding-left: 28px; }
.cubes li::before { content: ''; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 4px; background: var(--orange); }

/* цифры */
.proof-text { margin-top: 14px; max-width: 44em; color: var(--muted); }

/* шаги */
.how { padding-top: 0; }
.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); display: block; font: 700 2.2rem var(--display); color: var(--orange); margin-bottom: 8px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* тарифы */
.price { background: var(--ink); color: #F3F6F7; }
.price .split-head p { color: #C9D6E3; }
.plans { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: start; }
.plan { display: flex; flex-direction: column; background: var(--ink-2); border-radius: 24px; padding: 30px; min-width: 0; }
.plan-main { background: var(--teal-d); }
.plan h3 { font-size: 1.5rem; }
.plan-badge { align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 800; font-size: .88rem; }
.plan-size { margin-top: 6px; color: #C9D6E3; }
.plan-main .plan-size { color: #E3F6F4; }
.plan-price { margin-top: 18px; font: 700 clamp(1.5rem, 2.5vw, 2rem)/1.15 var(--display); white-space: nowrap; }
.plan-price small { font: 700 1rem var(--body); }
.plan-from { margin-top: 18px; font-weight: 800; }
.plan ul { list-style: none; margin: 14px 0 22px; padding: 0; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 24px; font-size: 1rem; line-height: 1.35; }
.plan li::before { content: ''; position: absolute; left: 0; top: .32em; width: 12px; height: 12px; border-radius: 3px; background: var(--teal-l); }
.plan-main li::before { background: var(--orange); }
.plan-extra { margin-bottom: 22px; font-size: .95rem; color: #C9D6E3; }
.plan .btn { margin-top: auto; border-color: #fff; color: #fff; }
.plan .btn:hover { background: #fff; color: var(--ink); }
.plan-main .btn-main { background: #fff; color: var(--ink); border-color: #fff; }
.price-note { margin-top: 18px; color: #DCE5EE; }
.price-note + .price-note { margin-top: 6px; }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
details { border-top: 1.5px solid var(--line); padding: 4px 0; }
details:last-child { border-bottom: 1.5px solid var(--line); }
summary { padding: 14px 0; font-weight: 800; cursor: pointer; min-height: 44px; }
details p { padding-bottom: 16px; color: var(--muted); }

/* заявка */
.lead-box { background: var(--teal-d); color: #fff; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.lead-grid > div p { margin-top: 14px; }
#lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#lead-form label { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; }
#lead-form input { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 12px; font: 600 16px var(--body); color: var(--ink); background: #fff; }
#lead-form .btn, .form-msg, .consent { grid-column: 1 / -1; }
.form-msg { min-height: 1.5em; font-weight: 800; }
.consent { font-size: .88rem; }
.consent a { display: inline-block; padding: 10px 0; }

/* подвал */
.foot { background: var(--ink); color: #C9D6E3; padding: 32px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { padding: 6px 0; }
.foot-contact { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* вход */
.auth-page { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.auth-main { display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(420px, 100%); background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 30px; box-shadow: 6px 6px 0 var(--ink); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 20px; }
.field { display: grid; gap: 4px; margin-bottom: 14px; font-weight: 700; font-size: .95rem; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 12px; font: 600 16px var(--body); color: var(--ink); background: #fff; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 96px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 10px; border: 0; background: transparent; color: var(--teal-d); font: 800 .82rem var(--body); cursor: pointer; }
.auth-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal-d); }
.textlink { background: none; border: 0; padding: 10px 0; color: var(--teal-d); font: 800 .95rem var(--body); text-decoration: underline; cursor: pointer; }
.auth-card .btn { width: 100%; }
.auth-card .btn + .btn { margin-top: 10px; }
.su-login { font: 700 1.25rem/1.3 ui-monospace, Consolas, monospace; margin: 14px 0 20px; padding: 12px 14px; border: 2px dashed var(--ink); border-radius: 12px; overflow-wrap: anywhere; }
.msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 700; }
.msg.err { color: var(--danger); }
.msg.good { color: var(--ok); }
.muted { color: var(--muted); }

@media (max-width: 1040px) {
  .links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split-head, .faq-grid, .lead-grid { grid-template-columns: 1fr; }
  .split-head { gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .top-row { gap: 8px; min-height: 64px; }
  .brand img { width: 70px; }
  .top-actions { gap: 6px; }
  .langs button { min-width: 36px; min-height: 40px; padding: 0 4px; font-size: .8rem; }
  .btn-login { padding: 8px 12px; min-height: 42px; font-size: .92rem; }
  .demo { gap: 26px; grid-template-columns: 1fr; }
  .link-cube { display: none; }
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }
  .roles { grid-template-columns: 1fr; }
  .role { grid-column: auto; padding: 24px; }
  .facts-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  #lead-form { grid-template-columns: 1fr; }
  .foot nav { margin-left: 0; }
  .plan { padding: 24px; }
  .auth-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
