@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/onest-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/onest-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/onest-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/onest-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/unbounded-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/unbounded-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #EDF1F5;
  --card: #FFFFFF;
  --ink: #1D2833;
  --muted: #566573;
  --line: #CAD4DD;
  --signal: #0F7A6A;
  --signal-soft: #DCEFEA;
  --sign: #FFD23F;
  --sign-press: #F2C224;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --col: 480px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--text);
  padding-bottom: 88px; /* место под плавающую кнопку */
}
main, .bar, .foot { max-width: var(--col); margin: 0 auto; padding: 0 20px; }
a { color: var(--signal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }

/* шапка */
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font: 600 16px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.bar-cta { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }

/* первый экран */
.hero { padding: 12px 0 8px; }
h1 {
  font: 600 clamp(24px, 6.9vw, 31px)/1.14 var(--display);
  letter-spacing: -0.03em; margin: 8px 0 14px; hyphens: manual; overflow-wrap: break-word;
}
.lead p { margin: 0 0 20px; color: var(--muted); font-size: 16.5px; }

.form-card { background: var(--card); border-radius: 22px; padding: 20px; box-shadow: 0 1px 0 var(--line); }
.form-card.inline { margin: 28px 0; }
.toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.knob { width: 44px; height: 44px; flex: none; }
.knob .track { fill: none; stroke: var(--line); stroke-width: 5; }
.knob .ring {
  fill: none; stroke: var(--signal); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 176; stroke-dashoffset: 176; transform: rotate(-90deg); transform-origin: 32px 32px;
  animation: ring 1.1s .5s cubic-bezier(.6, 0, .2, 1) forwards;
}
.knob .glyph { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; animation: glyph .3s 1.6s forwards; }
/* две подписи в одной ячейке: «Не подключено» гаснет, «Подключено» проявляется */
.states { display: grid; font-weight: 600; font-size: 16px; }
.states > span { grid-area: 1 / 1; }
.states .off { color: var(--muted); animation: fade-out .25s 1.5s forwards; }
.states .on { color: var(--signal); opacity: 0; animation: fade-in .3s 1.6s forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
@keyframes glyph { to { stroke: var(--signal); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.offer { margin: 0 0 14px; font-size: 16px; }

.signup label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.signup input[type=email] {
  width: 100%; height: 54px; padding: 0 16px; font: 400 17px var(--text); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
}
.signup input[type=email]:focus { border-color: var(--signal); outline: none; background: var(--card); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup button, .btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 10px;
  font: 600 17px/1.2 var(--text); color: var(--ink); background: var(--sign); border: 0; border-radius: 14px;
  text-decoration: none; cursor: pointer; padding: 0 16px; text-align: center;
}
.signup button:active, .btn:active { background: var(--sign-press); transform: translateY(1px); }
.fine { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal); transform: rotate(-45deg);
}

/* шаги: настоящая последовательность — поэтому с номерами */
.steps { margin: 40px 0 8px; }
.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.steps li { counter-increment: s; background: var(--card); border-radius: 18px; padding: 12px 12px 14px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; top: 10px; left: 12px;
  font: 600 13px/22px var(--display); width: 22px; height: 22px; text-align: center; border-radius: 50%;
  background: var(--ink); color: var(--card);
}
.steps svg { display: block; width: 100%; height: 76px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 14.5px; line-height: 1.4; }
.s-card { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.s-text { font: 400 12px var(--text); fill: var(--muted); }
.s-ink { fill: var(--ink); }
.s-phone { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.s-teal { fill: var(--signal); }
.s-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s-yellow { fill: var(--sign); }
.s-tap { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }
.s-ring { fill: var(--signal-soft); stroke: var(--signal); stroke-width: 4; }
.s-glyph { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; }

/* статья */
h2 { font: 600 21px/1.25 var(--display); letter-spacing: -0.015em; margin: 40px 0 12px; }
h3 { font: 600 17.5px/1.35 var(--text); margin: 26px 0 8px; }
.body p, .body li { max-width: 68ch; }
.body ul, .body ol { padding-left: 1.25em; }
.body li { margin: 6px 0; }
.body li::marker { color: var(--signal); }
.body code { font-size: .9em; background: var(--card); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.cta-row { margin: 28px 0; }
.table-wrap { overflow-x: auto; margin: 16px -20px; padding: 0 20px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; font-size: 14.5px; line-height: 1.4; min-width: 100%; background: var(--card); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--paper); vertical-align: top; }
th { font-weight: 600; background: var(--ink); color: var(--card); }
tr:last-child td { border-bottom: 0; }

details { background: var(--card); border-radius: 14px; margin: 8px 0; padding: 0 16px; }
summary { font-weight: 600; padding: 14px 24px 14px 0; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 11px; font: 600 20px var(--display); color: var(--signal); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 14px; color: var(--muted); }

.related ul, .hub { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a, .hub a { display: block; background: var(--card); border-radius: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }

.foot { padding-top: 32px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(237, 241, 245, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky .btn { max-width: var(--col); margin: 0 auto; }
.sticky.show { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knob .ring, .knob .glyph, .states span, .sticky { animation: none; transition: none; }
  .knob .ring { stroke-dashoffset: 0; }
  .knob .glyph { stroke: var(--signal); }
  .states .off { opacity: 0; }
  .states .on { opacity: 1; }
}
