/* ==========================================================
   Элемент ИИ — лендинг
   ========================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-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: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/oswald-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/oswald-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 {
  --teal: #00b4e4;
  --teal-dark: #008fc0;
  --teal-light: #2ad0f5;
  --ink: #14181c;
  --slate: #5b6b7a;
  --line: #dde7ee;
  --bg: #f6fafc;
  --soft: #eef6fa;
  --night: #0a1520;
  --night-2: #10202e;
  --berry: #8d0535;
  --coral: #e0336f;
  --green: #0f9d6b;
  --violet: #7c5cf5;
  --amber: #f0a020;
  --cta: linear-gradient(90deg, #008fc0, #00b4e4 48%, #2ad0f5);
  --radius: 22px;
  --shadow: 0 24px 60px rgba(10, 40, 60, 0.12);
  --shadow-sm: 0 10px 30px rgba(10, 40, 60, 0.08);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid rgba(0, 180, 228, 0.55);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

.container--narrow {
  width: min(880px, 100% - 40px);
}

.accent {
  background: var(--cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Заголовки ---------- */

.display,
.display-2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.02;
}

.display {
  font-size: clamp(40px, 4.7vw, 72px);
}

.display-2 {
  font-size: clamp(32px, 4.4vw, 62px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--cta);
}

.eyebrow--light {
  color: var(--teal-light);
}

.vs {
  display: inline-block;
  margin: 0 0.15em;
  padding: 0 0.3em;
  border-radius: 10px;
  font-size: 0.55em;
  vertical-align: middle;
  color: #fff;
  background: var(--ink);
  transform: translateY(-0.1em) rotate(-4deg);
}

/* ---------- Прогресс прокрутки ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--cta);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(5px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  overflow: hidden;
  color: #fff;
  background: var(--cta);
  box-shadow: 0 12px 30px rgba(0, 160, 210, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

.btn--primary:hover {
  box-shadow: 0 18px 40px rgba(0, 160, 210, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 14px;
  border-radius: 13px;
}

.btn--lg {
  padding: 18px 30px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

@keyframes shine {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(20, 24, 28, 0.06), 0 10px 30px rgba(10, 40, 60, 0.06);
}

.header.is-scrolled .header__inner {
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: auto;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-12deg) scale(1.06);
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
}

.brand__name b {
  color: inherit;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 24, 28, 0.06);
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 12px rgba(10, 40, 60, 0.08);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.call-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.call-link svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  color: var(--teal-dark);
  background: rgba(0, 180, 228, 0.12);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.call-link:hover {
  color: var(--teal-dark);
}

.call-link:hover svg {
  transform: rotate(-14deg) scale(1.08);
  background: var(--teal);
  color: #fff;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }

.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  padding: 8px 20px 22px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(10, 40, 60, 0.12);
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
}

.mobile-menu a:not(.btn) {
  padding: 12px 4px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  margin-top: 12px;
}

/* ---------- Свечения ---------- */

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow--a {
  width: 760px;
  height: 760px;
  top: -260px;
  right: -180px;
  background: radial-gradient(circle, rgba(42, 208, 245, 0.42), rgba(42, 208, 245, 0) 65%);
  animation: drift 16s ease-in-out infinite alternate;
}

.glow--b {
  width: 620px;
  height: 620px;
  top: 220px;
  left: -260px;
  background: radial-gradient(circle, rgba(124, 92, 245, 0.2), rgba(124, 92, 245, 0) 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.glow--c {
  width: 460px;
  height: 460px;
  bottom: -120px;
  right: 22%;
  background: radial-gradient(circle, rgba(141, 5, 53, 0.1), rgba(141, 5, 53, 0) 65%);
  animation: drift 18s ease-in-out infinite alternate;
}

.glow--section {
  width: 700px;
  height: 700px;
  top: 20px;
  left: 50%;
  margin-left: -350px;
  background: radial-gradient(circle, rgba(0, 180, 228, 0.16), rgba(0, 180, 228, 0) 65%);
}

.glow--calc {
  width: 800px;
  height: 800px;
  top: 10%;
  right: -300px;
  background: radial-gradient(circle, rgba(0, 180, 228, 0.2), rgba(0, 180, 228, 0) 65%);
}

.glow--lead {
  width: 620px;
  height: 620px;
  top: -260px;
  right: -160px;
  background: radial-gradient(circle, rgba(42, 208, 245, 0.35), rgba(42, 208, 245, 0) 65%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-60px, 40px, 0) scale(1.08); }
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 90px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, var(--bg)),
    linear-gradient(135deg, #eaf7fc 0%, #f7fbfd 45%, #f1f0fd 100%);
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 143, 192, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 143, 192, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 180, 228, 0.25);
  box-shadow: 0 6px 20px rgba(0, 143, 192, 0.12);
}

.chip__dot,
.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.chip__dot::after,
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  margin: 22px 0 22px;
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--slate);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.stat {
  flex: 1 1 150px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.1;
  background: var(--cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--slate);
}

/* ---------- Демо ---------- */

.hero__demo {
  position: relative;
  padding: 40px 10px;
}

.demo {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 40px 90px rgba(10, 40, 60, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.demo__bar,
.window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fafc);
}

.demo__dots {
  display: flex;
  gap: 6px;
}

.demo__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.demo__dots i:nth-child(2) { background: #febc2e; }
.demo__dots i:nth-child(3) { background: #28c840; }

.demo__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--slate);
}

.demo__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--slate);
  background: var(--soft);
  transition: background 0.3s, color 0.3s;
}

.demo__status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.demo__status.is-running {
  color: var(--teal-dark);
  background: rgba(0, 180, 228, 0.12);
}

.demo__status.is-running span {
  animation: blink 0.8s infinite alternate;
}

.demo__status.is-done {
  color: var(--green);
  background: rgba(15, 157, 107, 0.12);
}

@keyframes blink {
  to { opacity: 0.2; }
}

.demo__tabs {
  display: flex;
  gap: 6px;
  padding: 12px 18px 0;
}

.demo__tab {
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--slate);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.demo__tab:hover {
  color: var(--ink);
  background: var(--soft);
}

.demo__tab.is-active {
  color: #fff;
  background: var(--ink);
}

.demo__tab:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.demo__body {
  padding: 16px 18px 20px;
}

.demo__task {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
}

.demo__task-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.demo__task p {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}

.demo__steps {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  min-height: 212px;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--slate);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.4s var(--ease), opacity 0.4s;
}

.demo-step__mark {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}

.demo-step.is-active {
  color: var(--ink);
  border-color: rgba(0, 180, 228, 0.5);
  background: rgba(0, 180, 228, 0.05);
  transform: translateX(4px);
}

.demo-step.is-active .demo-step__mark {
  border-color: rgba(0, 180, 228, 0.25);
  border-top-color: var(--teal);
  animation: spin 0.7s linear infinite;
}

.demo-step.is-done {
  color: var(--ink);
}

.demo-step.is-done .demo-step__mark {
  border-color: var(--green);
  background: var(--green);
}

.demo-step.is-done .demo-step__mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.demo-step__time {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.demo-step.is-done .demo-step__time {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo__progress {
  height: 6px;
  border-radius: 6px;
  background: var(--soft);
  overflow: hidden;
}

.demo__progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  background: var(--cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.demo__result {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.4s, margin 0.4s;
}

.demo__result > * {
  overflow: hidden;
}

.demo__result.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}

.demo__time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 180, 228, 0.1), rgba(124, 92, 245, 0.08));
}

.demo__time small {
  display: block;
  font-size: 12px;
  color: var(--slate);
}

.demo__time b {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
}

.demo__time div:first-child b {
  color: var(--slate);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--coral);
}

.demo__time svg {
  width: 26px;
  height: 26px;
  color: var(--teal);
}

.demo__start {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.demo__start svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.demo__start:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 24, 28, 0.3);
}

.demo__start:disabled {
  cursor: progress;
  background: var(--slate);
  transform: none;
  box-shadow: none;
}

.demo__start-ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid var(--teal);
  opacity: 0;
  animation: ring 2.2s ease-out infinite;
  pointer-events: none;
}

.demo__start:disabled .demo__start-ring {
  display: none;
}

@keyframes ring {
  0% { transform: scale(0.96); opacity: 0.8; }
  100% { transform: scale(1.06); opacity: 0; }
}

/* Уведомления и плашки вокруг демо */

.toast {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(10, 40, 60, 0.2);
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
  max-width: 280px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.toast small {
  display: block;
  font-size: 12px;
  color: var(--slate);
}

.toast__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
}

.toast__icon--blue {
  background: var(--cta);
}

.toast__icon svg {
  width: 20px;
  height: 20px;
}

.toast--a {
  top: 0;
  left: -34px;
}

.toast--b {
  bottom: 4px;
  right: -20px;
}

.float-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 12px 30px rgba(10, 40, 60, 0.14);
  animation: float 6s ease-in-out infinite;
}

.float-badge svg {
  width: 16px;
  height: 16px;
  color: var(--teal-dark);
}

.float-badge--1 {
  top: 8px;
  right: -6px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.float-badge--1 svg {
  color: var(--teal-light);
}

.float-badge--2 {
  top: 46%;
  left: -58px;
  animation-delay: -2s;
}

.float-badge--3 {
  bottom: 18px;
  left: 20px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Бегущая строка ---------- */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 20px 0;
  background: var(--ink);
  transform: rotate(-1.2deg);
  margin: -24px -10px 0;
  box-shadow: 0 20px 40px rgba(10, 21, 32, 0.18);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.marquee i {
  font-style: normal;
  font-size: 18px;
  color: var(--teal-light);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Секции ---------- */

.section {
  position: relative;
  padding: 120px 0;
}

.section--soft {
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), var(--soft) 30%, var(--soft) 70%, var(--bg));
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section__head {
  max-width: 820px;
  margin-bottom: 56px;
}

.section__head h2 {
  margin-top: 16px;
}

.section__head p {
  margin-top: 18px;
  max-width: 640px;
  font-size: 18px;
  color: var(--slate);
}

/* Карточка со «стеклом» и подсветкой за курсором */

.pain,
.solution,
.why__card,
.format,
.step {
  position: relative;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 24, 28, 0.06);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s, border-color 0.35s;
}

[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

[data-tilt]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 180, 228, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 0;
}

[data-tilt]:hover::before {
  opacity: 1;
}

[data-tilt] > * {
  position: relative;
  z-index: 1;
}

.pain:hover,
.solution:hover,
.why__card:hover,
.format:hover {
  border-color: rgba(0, 180, 228, 0.35);
  box-shadow: var(--shadow);
}

/* ---------- Боли ---------- */

.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain {
  padding: 30px;
}

.pain__icon,
.solution__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--coral);
  background: rgba(224, 51, 111, 0.09);
  transition: transform 0.4s var(--ease);
}

.pain__icon--warn {
  color: var(--amber);
  background: rgba(240, 160, 32, 0.12);
}

.pain__icon svg,
.solution__icon svg {
  width: 26px;
  height: 26px;
}

.pain:hover .pain__icon,
.solution:hover .solution__icon {
  transform: translateZ(30px) scale(1.08) rotate(-6deg);
}

.pain h3,
.solution h3,
.why__card h3,
.step h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.pain p,
.solution p,
.why__card p,
.step p {
  color: var(--slate);
}

.pains__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.pains__cta p {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- Решения ---------- */

.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.solution {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  text-align: left;
  cursor: pointer;
}

.solution__num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: rgba(0, 143, 192, 0.12);
  transition: color 0.35s;
}

.solution:hover .solution__num {
  color: rgba(0, 143, 192, 0.3);
}

.solution__icon {
  color: var(--teal-dark);
  background: rgba(0, 180, 228, 0.12);
}

.solution p {
  flex-grow: 1;
}

.solution__more {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  font-weight: 800;
  font-size: 14px;
  color: var(--teal-dark);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.solution__more .arrow {
  transition: transform 0.3s var(--ease);
}

.solution:hover .solution__more {
  opacity: 1;
}

.solution:hover .solution__more .arrow {
  transform: translateX(5px);
}

/* ---------- Продукты ---------- */

.products__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.products__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.products__tab span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
  background: var(--soft);
  color: var(--teal-dark);
  transition: background 0.25s, color 0.25s;
}

.products__tab:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.products__tab.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.products__tab.is-active span {
  background: var(--cta);
  color: #fff;
}

.product {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.product[hidden],
.mobile-menu[hidden] {
  display: none;
}

.product.is-active {
  animation: productIn 0.6s var(--ease);
}

@keyframes productIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.product__tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(0, 180, 228, 0.1);
}

.product h3 {
  margin: 18px 0 14px;
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
}

.product p {
  color: var(--slate);
  font-size: 17px;
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 157, 107, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9d6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.window {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(10, 40, 60, 0.18);
}

.window::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0, 180, 228, 0.25), transparent 70%);
  z-index: -1;
}

.window__url {
  flex: 1;
  max-width: 260px;
  margin-inline: auto;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--slate);
  background: var(--soft);
}

.window img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--soft);
}

/* ---------- Шаги ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--line);
}

.steps::after {
  content: "";
  position: absolute;
  top: 52px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--cta);
  transform: scaleX(var(--line-progress, 0));
  transform-origin: left;
  transition: transform 1.6s var(--ease);
}

.step {
  padding: 26px 22px;
  z-index: 1;
}

.step__num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 20px;
  color: #fff;
  background: var(--cta);
  box-shadow: 0 0 0 6px var(--soft), 0 10px 24px rgba(0, 143, 192, 0.35);
}

.step h3 {
  margin-top: 20px;
}

.step p {
  font-size: 15px;
}

/* ---------- До / После ---------- */

.ba {
  position: relative;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: pan-y;
}

.ba__layer {
  position: absolute;
  inset: 0;
}

.ba__layer--before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  background:
    repeating-linear-gradient(45deg, rgba(224, 51, 111, 0.03) 0 12px, transparent 12px 24px),
    #fbf3f3;
}

.ba__layer--after {
  background: linear-gradient(135deg, #eaf7fc, #f4f2fe);
}

.ba__label {
  position: absolute;
  top: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.ba__label--before {
  left: 20px;
  background: var(--coral);
}

.ba__label--after {
  right: 20px;
  background: var(--cta);
}

.ba__chaos {
  position: absolute;
  inset: 0;
}

.chaos {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(60, 20, 30, 0.12);
  border: 1px solid rgba(224, 51, 111, 0.12);
}

.chaos b {
  font-size: 13px;
}

.chaos span {
  color: var(--slate);
}

.chaos--xls { top: 76px; left: 4%; transform: rotate(-4deg); }
.chaos--xls span:not(:last-child) { color: var(--coral); font-weight: 800; }
.chaos--chat { top: 70px; left: 31%; transform: rotate(3deg); }
.chaos--note { top: 250px; left: 8%; padding: 18px; max-width: 190px; font-weight: 800; background: #fff3b0; transform: rotate(5deg); border: 0; }
.chaos--mail { top: 270px; left: 33%; transform: rotate(-3deg); }
.chaos--alert { bottom: 26px; left: 18%; color: #fff; font-weight: 800; background: var(--coral); border: 0; transform: rotate(-2deg); }
.chaos--folder { top: 190px; left: 56%; transform: rotate(6deg); }

.ba__app {
  position: absolute;
  inset: 70px 4% 26px auto;
  width: min(620px, 56%);
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 50px rgba(10, 40, 60, 0.16);
}

.ba__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 58px;
  padding: 16px 0;
  background: var(--ink);
}

.ba__side img {
  width: 26px;
  margin-bottom: 8px;
}

.ba__side i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.ba__side i.is-on {
  background: var(--cta);
}

.ba__main {
  flex: 1;
  padding: 18px 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.ba__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill--ok {
  color: var(--green);
  background: rgba(15, 157, 107, 0.12);
}

.ba__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ba__kpis div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
}

.ba__kpis small {
  display: block;
  font-size: 11px;
  color: var(--slate);
}

.ba__kpis b {
  font-family: var(--display);
  font-size: 24px;
}

.ba__kpis em {
  margin-left: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
}

.ba__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding: 0 4px;
}

.ba__chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: var(--cta);
  opacity: 0.85;
}

.ba__rows {
  display: grid;
  gap: 6px;
}

.ba__rows div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.ba__rows i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.ba__rows small {
  margin-left: auto;
  color: var(--teal-dark);
  font-weight: 800;
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.ba__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ba__handle svg {
  width: 22px;
  height: 22px;
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba__range:focus-visible + .ba__handle span,
.ba:focus-within .ba__handle span {
  outline: 3px solid rgba(0, 180, 228, 0.6);
  outline-offset: 3px;
}

.compare {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  transition: background 0.2s;
}

.compare__row:not(.compare__row--head):hover {
  background: var(--soft);
}

.compare__row span:first-child {
  font-weight: 800;
}

.compare__row span:nth-child(2) {
  color: var(--slate);
}

.compare__row span:nth-child(3) {
  font-weight: 700;
  color: var(--teal-dark);
}

.compare__row--head {
  border-top: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
}

.compare__row--head span:nth-child(2) { color: #ff9fbf; }
.compare__row--head span:nth-child(3) { color: var(--teal-light); }

/* ---------- Калькулятор ---------- */

.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.calc__inputs {
  display: grid;
  gap: 28px;
  padding: 36px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.range {
  display: grid;
  gap: 14px;
}

.range__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}

.range__head b {
  flex-shrink: 0;
  min-width: 80px;
  padding: 4px 12px;
  border-radius: 10px;
  text-align: center;
  color: var(--teal-dark);
  background: rgba(0, 180, 228, 0.1);
  font-variant-numeric: tabular-nums;
}

.range input {
  --fill: 50%;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal-light)) 0 / var(--fill) 100% no-repeat, var(--line);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
  box-shadow: 0 6px 16px rgba(0, 143, 192, 0.35);
  transition: transform 0.2s;
}

.range input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
  box-shadow: 0 6px 16px rgba(0, 143, 192, 0.35);
}

.range input:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.calc__result {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 36px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 208, 245, 0.35), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(124, 92, 245, 0.3), transparent 55%),
    var(--night);
  box-shadow: 0 40px 80px rgba(10, 21, 32, 0.3);
}

.calc__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.calc__big {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.calc__big small {
  display: block;
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.calc__year {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.1);
  font-variant-numeric: tabular-nums;
}

.calc__free {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 28px;
}

.calc__free div {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.calc__free b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  color: var(--teal-light);
  font-variant-numeric: tabular-nums;
}

.calc__free small {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.calc__result .btn {
  margin-top: auto;
}

.note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate);
}

/* ---------- Почему мы ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why__card {
  padding: 28px;
}

.why__card h3 {
  margin-top: 0;
}

.why__card--big {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(42, 208, 245, 0.45), transparent 50%),
    linear-gradient(160deg, var(--night-2), var(--night));
  border: 0;
}

.why__card--big h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 1.05;
}

.why__card--big p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.why__num {
  margin-bottom: auto;
  font-family: var(--display);
  font-size: clamp(72px, 9vw, 130px);
  line-height: 1;
  background: var(--cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why__card--accent {
  grid-column: span 2;
  color: #fff;
  background: var(--cta);
  border: 0;
}

.why__card--accent p {
  color: rgba(255, 255, 255, 0.85);
}

.why__card--cta {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1.5px dashed rgba(0, 143, 192, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

.why__card--cta h3 {
  margin: 0 0 4px;
}

.why__card--cta .btn {
  flex-shrink: 0;
}

/* ---------- Форматы ---------- */

.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.format {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
}

.format__step {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.format h3 {
  margin: 10px 0 10px;
  font-family: var(--display);
  font-size: 30px;
  text-transform: uppercase;
  line-height: 1.1;
}

.format__desc {
  color: var(--slate);
}

.format .checks {
  margin-bottom: 28px;
  flex-grow: 1;
  align-content: start;
}

.format--featured {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(42, 208, 245, 0.4), transparent 55%),
    var(--night);
  border: 0;
  box-shadow: 0 40px 80px rgba(10, 21, 32, 0.28);
}

.format--featured .format__desc {
  color: rgba(255, 255, 255, 0.7);
}

.format--featured .format__step {
  color: var(--teal-light);
}

.format--featured .checks li::before {
  background-color: rgba(42, 208, 245, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ad0f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.format__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: var(--teal-light);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq details[open] {
  border-color: rgba(0, 180, 228, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(0, 180, 228, 0.1);
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: #fff;
  background: var(--teal);
}

.faq__body {
  padding: 0 26px 22px;
  color: var(--slate);
  font-size: 16px;
}

.faq details[open] .faq__body {
  animation: faqIn 0.4s var(--ease);
}

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Форма ---------- */

.section--lead {
  padding-top: 40px;
}

.lead {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 60px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 0% 100%, rgba(124, 92, 245, 0.3), transparent 50%),
    linear-gradient(160deg, var(--night-2), var(--night));
  box-shadow: 0 50px 100px rgba(10, 21, 32, 0.3);
}

.lead > :not(.glow) {
  position: relative;
  z-index: 1;
}

.lead__text h2 {
  margin: 16px 0 18px;
}

.lead__text p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.lead__list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.lead__list li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
}

.lead__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cta);
}

.lead__list li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lead__form {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 32px;
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #f9fbfc;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 180, 228, 0.15);
}

.field.is-invalid input {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(224, 51, 111, 0.12);
}

.field--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio {
  position: relative;
  cursor: pointer;
}

.radio input {
  position: absolute;
  opacity: 0;
}

.radio span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.radio input:checked + span {
  color: var(--teal-dark);
  border-color: var(--teal);
  background: rgba(0, 180, 228, 0.08);
}

.radio input:focus-visible + span {
  outline: 3px solid rgba(0, 180, 228, 0.55);
  outline-offset: 2px;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topics button {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(0, 143, 192, 0.4);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.topics button::before {
  content: "+ ";
}

.topics button:hover {
  background: rgba(0, 180, 228, 0.08);
  transform: translateY(-1px);
}

.topics button.is-picked {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  border-style: solid;
}

.topics button.is-picked::before {
  content: "✓ ";
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.consent.is-invalid {
  color: var(--coral);
}

.form-message {
  min-height: 0;
  font-size: 14px;
  font-weight: 700;
}

.form-message:empty {
  display: none;
}

.form-message.is-error {
  color: var(--coral);
}

.lead__form.is-loading button[type="submit"] {
  pointer-events: none;
  opacity: 0.8;
}

.lead__success {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  border-radius: inherit;
  text-align: center;
  background: #fff;
  animation: productIn 0.5s var(--ease);
}

.lead__success[hidden] {
  display: none;
}

.lead__success h3 {
  font-family: var(--display);
  font-size: 32px;
  text-transform: uppercase;
}

.lead__success p {
  max-width: 320px;
  color: var(--slate);
}

.lead__success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 0 0 12px rgba(15, 157, 107, 0.12);
  animation: pop 0.6s var(--ease);
}

.lead__success-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 3;
}

@keyframes pop {
  0% { transform: scale(0.3); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ---------- Подвал ---------- */

.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer__muted {
  max-width: 340px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--slate);
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  align-content: start;
}

.footer__nav a {
  font-weight: 700;
  text-decoration: none;
  color: var(--slate);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--teal-dark);
}

.footer__legal summary {
  font-weight: 700;
  cursor: pointer;
}

.footer__legal p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--slate);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--slate);
}

.to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.to-top:hover {
  transform: translateY(-4px);
  background: var(--teal-dark);
}

.mobile-cta {
  display: none;
}

/* ---------- Появление при прокрутке ---------- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* После появления карточки с наклоном переходят на быструю анимацию */
.js [data-tilt].reveal.is-visible {
  transition: opacity 0.8s var(--ease), transform 0.25s ease-out, box-shadow 0.35s, border-color 0.35s;
  transition-delay: var(--delay, 0s), 0s, 0s, 0s;
}

/* ==========================================================
   Адаптив
   ========================================================== */

@media (max-width: 1180px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: block; }
  .float-badge--2 { left: -20px; }
  .toast--a { left: -10px; }
  .toast--b { right: -6px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before, .steps::after { display: none; }
  .why { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero__grid,
  .product,
  .calc,
  .lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__demo {
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
  }

  .pains,
  .solutions,
  .formats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead {
    padding: 44px 32px;
  }

  .ba__app {
    width: 62%;
  }

  .chaos--folder { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .container { width: min(100% - 32px, 1240px); }

  .header__actions .btn,
  .call-link span {
    display: none;
  }

  .hero {
    padding: calc(var(--header-h) + 32px) 0 70px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat {
    padding: 12px 10px;
  }

  .stat b {
    font-size: 24px;
  }

  .stat small {
    font-size: 11px;
  }

  .hero__demo {
    padding: 30px 0 34px;
  }

  .demo__steps {
    min-height: 0;
  }

  .demo-step {
    font-size: 13px;
  }

  .float-badge--2 { display: none; }
  .float-badge--1 { right: 4px; top: 0; }
  .float-badge--3 { left: 8px; bottom: 0; }
  .toast--a { left: 0; top: 4px; }
  .toast--b { right: 0; bottom: 0; }
  .toast { max-width: 250px; }

  .marquee span { font-size: 18px; }
  .marquee { padding: 14px 0; }

  .section { padding: 80px 0; }
  .section__head { margin-bottom: 36px; }
  .section__head p { font-size: 16px; }

  .pains,
  .solutions,
  .formats,
  .why,
  .steps {
    grid-template-columns: 1fr;
  }

  .pain,
  .solution,
  .why__card {
    padding: 24px;
  }

  .why__card--big {
    grid-column: auto;
    grid-row: auto;
    min-height: 300px;
  }

  .why__card--accent,
  .why__card--cta {
    grid-column: auto;
  }

  .why__card--cta {
    flex-direction: column;
    align-items: stretch;
  }

  .steps {
    gap: 12px;
  }

  .step {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 16px;
    padding: 20px;
  }

  .step h3 { margin: 4px 0 6px; }
  .step p { grid-column: 2; }
  .step__num { grid-row: span 2; }

  .products__tab {
    flex: 1 1 100%;
  }

  .ba {
    height: 520px;
  }

  .ba__app {
    inset: auto 12px 14px 12px;
    width: auto;
    height: 300px;
  }

  .ba__side { display: none; }
  .ba__chart { height: 50px; }
  .ba__rows div:last-child { display: none; }

  .chaos { font-size: 12px; padding: 10px 12px; }
  .chaos--xls { top: 70px; left: 14px; }
  .chaos--chat { top: 150px; left: auto; right: 14px; }
  .chaos--note { top: 300px; left: 20px; max-width: 160px; }
  .chaos--mail { top: 330px; left: auto; right: 16px; }
  .chaos--alert { bottom: 20px; left: 14px; right: 14px; }

  .compare__row {
    grid-template-columns: 1fr 1fr;
    padding: 14px 16px;
    font-size: 14px;
  }

  .compare__row span:first-child {
    grid-column: 1 / -1;
  }

  .compare__row--head span:first-child {
    display: none;
  }

  .calc__inputs,
  .calc__result {
    padding: 26px 22px;
  }

  .lead {
    padding: 34px 20px 20px;
    border-radius: 26px;
  }

  .lead__form {
    padding: 22px 18px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding-bottom: 100px;
  }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(10, 40, 60, 0.2);
    transform: translateY(140%);
    transition: transform 0.45s var(--ease);
  }

  .mobile-cta.is-visible {
    transform: none;
  }

  .mobile-cta .btn {
    flex: 1;
  }

  .mobile-cta__call {
    display: grid;
    place-items: center;
    width: 52px;
    border-radius: 14px;
    color: #fff;
    background: var(--ink);
  }

  .mobile-cta__call svg {
    width: 22px;
    height: 22px;
  }

  /* Тяжёлые эффекты на телефоне упрощаем */
  .glow { animation: none; }
  .glow--b, .glow--c { display: none; }
  .stat,
  .header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header.is-scrolled { background: rgba(255, 255, 255, 0.96); }
}

@media (max-width: 420px) {
  .display { font-size: 36px; }
  .demo__tabs { padding: 10px 12px 0; }
  .demo__body { padding: 14px 12px 16px; }
  .demo__title { display: none; }
  .toast { max-width: 220px; padding: 10px 12px 10px 10px; }
}

/* ---------- Уменьшение движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding: 0 20px;
  }

  .marquee__track [aria-hidden="true"] {
    display: none;
  }
}
