/* ============================================================
   neiro-sotrudnik.ru — дизайн-система
   Концепция: «нейросеть + рабочие процессы»
   Палитра: графит-синий / светлый более / сигнальный бирюзовый / янтарный CTA
   Шрифты: Unbounded (заголовки) + IBM Plex Sans (текст)
   ============================================================ */

:root {
  /* Цвет */
  --bg-dark: #0E1626;
  --bg-dark-2: #131E33;
  --bg-light: #F4F6FA;
  --surface-light: #FFFFFF;
  --line-dark: rgba(233, 238, 247, 0.14);
  --line-light: #DCE2EC;
  --text-on-dark: #E9EEF7;
  --text-muted-dark: #9AA7BC;
  --text-on-light: #14203A;
  --text-muted-light: #5A6A84;
  --accent: #19B3A6;
  --accent-soft: rgba(25, 179, 166, 0.12);
  --accent-2: #5A7D9E;
  --cta: #FFB454;
  --cta-text: #241A0A;

  /* Типографика */
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  /* Геометрия */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 76px;

  /* Шкала */
  --fs-hero: clamp(2.1rem, 5.4vw, 3.6rem);
  --fs-h2: clamp(1.55rem, 3.2vw, 2.35rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.95rem;
  --line: 1.65;
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--line);
  color: var(--text-on-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #062521;
}

/* ---------- Типографика ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-hero);
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1.1rem;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
}

p {
  max-width: 68ch;
}

.section-lead {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* На светлом */
.theme-light h1,
.theme-light h2 {
  color: var(--text-on-light);
}

.theme-light p {
  color: var(--text-muted-light);
}

/* На тёмном */
.theme-dark h1,
.theme-dark h2 {
  color: var(--text-on-dark);
}

.theme-dark p {
  color: var(--text-muted-dark);
}

/* ---------- Макет ---------- */

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

.section {
  padding-block: clamp(72px, 9vw, 110px);
}

.section--dark {
  background: var(--bg-dark);
}

.section--light {
  background: var(--bg-light);
}

.section--white {
  background: var(--surface-light);
}

.section-head {
  max-width: 720px;
  display: grid;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head p {
  margin: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--cta {
  background: var(--cta);
  color: var(--cta-text);
}

.btn--cta:hover {
  background: #ffc577;
}

.btn--ghost {
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}

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

.theme-light .btn--ghost {
  border-color: var(--line-light);
  color: var(--text-on-light);
}

.theme-light .btn--ghost:hover {
  border-color: var(--accent);
  color: #0E7E74;
}

.btn--accent {
  background: var(--accent);
  color: #062521;
}

.btn--accent:hover {
  background: #2cc4b6;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 22, 38, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--text-on-dark);
  letter-spacing: 0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-muted-dark);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text-on-dark);
  background: rgba(233, 238, 247, 0.06);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.header-cta {
  padding: 12px 20px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 96px));
  padding-bottom: clamp(56px, 8vw, 100px);
  background: var(--bg-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

.hero__bg path {
  stroke: var(--accent);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 6 8;
  animation: graph-drift 26s linear infinite;
}

.hero__bg .node {
  fill: var(--accent);
  opacity: 0.35;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 24px;
  align-content: start;
}

.hero__copy h1 {
  color: var(--text-on-dark);
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--text-muted-dark);
  max-width: 46ch;
  margin: 0;
}

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

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0 34px;
  padding-top: 8px;
}

.hero__trust-item {
  display: grid;
  gap: 2px;
}

.hero__trust-item strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.hero__trust-item span {
  font-size: 0.9rem;
  color: var(--text-muted-dark);
}

/* ---------- Демо-чат ---------- */

.chat {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 16, 0.55);
  transform: translateY(0);
  animation: chat-arrival 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
}

.chat__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #062521;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  flex: none;
}

.chat__title {
  display: grid;
  gap: 1px;
}

.chat__title strong {
  color: var(--text-on-dark);
  font-size: 0.98rem;
  font-weight: 600;
}

.chat__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

.chat__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

.chat__body {
  display: grid;
  gap: 12px;
  padding: 18px;
  height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-2) transparent;
}

.msg {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: msg-in 0.3s ease both;
}

.msg--bot {
  justify-self: start;
  background: rgba(233, 238, 247, 0.07);
  border-bottom-left-radius: 4px;
  color: var(--text-on-dark);
}

.msg--user {
  justify-self: end;
  background: var(--accent);
  border-bottom-right-radius: 4px;
  color: #062521;
}

.msg--typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 14px 18px;
}

.msg--typing b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted-dark);
  animation: blink 1.2s ease-in-out infinite;
}

.msg--typing b:nth-child(2) {
  animation-delay: 0.2s;
}

.msg--typing b:nth-child(3) {
  animation-delay: 0.4s;
}

.chat__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--text-muted-dark);
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat__input {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line-dark);
}

.chat__input input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(233, 238, 247, 0.05);
  color: var(--text-on-dark);
  font-family: inherit;
  font-size: 0.95rem;
}

.chat__input input::placeholder {
  color: var(--text-muted-dark);
}

.chat__send {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #062521;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.15s ease;
}

.chat__send:hover {
  background: #2cc4b6;
}

.chat__disclaimer {
  padding: 10px 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  background: rgba(14, 22, 38, 0.6);
}

/* ---------- Проблема / решение ---------- */

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.ba-block {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}

.ba-block--problem {
  border-left: 4px solid var(--cta);
}

.ba-block--solution {
  border-left: 4px solid var(--accent);
  background: var(--bg-dark);
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.ba-block h3 {
  margin-bottom: 16px;
}

.ba-block--solution h3 {
  color: var(--text-on-dark);
}

.ba-block ul {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ba-block li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted-light);
}

.ba-block--solution li {
  color: var(--text-muted-dark);
}

.ba-block li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.ba-block--problem li::before {
  background: var(--cta);
  opacity: 0.75;
}

/* ---------- Услуги ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.service h3 {
  margin-top: 6px;
}

.service p {
  margin: 0;
}

.service ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.service li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted-light);
  font-size: 0.97rem;
}

.service li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

.service__cta {
  margin-top: 18px;
  font-weight: 600;
  color: #0E7E74;
}

.service__cta:hover {
  color: var(--accent);
}

/* ---------- Кейсы ---------- */

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

.case {
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case__tag {
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 600;
}

.case h3 {
  color: var(--text-on-dark);
  font-size: 1.1rem;
}

.case p {
  color: var(--text-muted-dark);
  font-size: 0.96rem;
  margin: 0;
}

.case__metrics {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.metric span {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
}

.metric strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Процесс ---------- */

.process-list {
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 90px 1fr 260px;
  gap: 22px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line-light);
  align-items: start;
}

.step:first-child {
  border-top: 1px solid var(--line-light);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.step__title {
  font-weight: 600;
  color: var(--text-on-light);
  font-size: 1.08rem;
}

.step__desc {
  color: var(--text-muted-light);
  margin: 0;
}

.step__note {
  color: var(--text-muted-light);
  font-size: 0.92rem;
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

/* ---------- Тарифы ---------- */

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

.plan {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan--featured {
  border-color: var(--accent);
  position: relative;
}

.plan--featured::before {
  content: "выбор клиентов";
  position: absolute;
  top: -14px;
  left: 26px;
  background: var(--accent);
  color: #062521;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.plan__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--accent);
}

.plan__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text-on-light);
  letter-spacing: -0.02em;
}

.plan__price span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted-light);
}

.plan p {
  color: var(--text-muted-light);
  font-size: 0.97rem;
  margin: 0;
}

.plan ul {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.plan li {
  position: relative;
  padding-left: 24px;
  color: var(--text-on-light);
  font-size: 0.95rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.plan .btn {
  margin-top: 22px;
}

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

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq[open] {
  border-color: var(--accent);
}

.faq summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text-on-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex: none;
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 24px 22px;
  color: var(--text-muted-light);
  max-width: 70ch;
}

/* ---------- CTA-блок с формой ---------- */

.cta-panel {
  background: var(--bg-dark);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  padding: clamp(30px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

.cta-panel h2 {
  color: var(--text-on-dark);
  margin-bottom: 14px;
}

.cta-panel .section-head {
  margin-bottom: 0;
}

.cta-panel .section-lead {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
}

.cta-panel ul {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.cta-panel li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted-dark);
}

.cta-panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

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

.form {
  display: grid;
  gap: 14px;
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}

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

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted-dark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(233, 238, 247, 0.05);
  color: var(--text-on-dark);
  font-family: inherit;
  font-size: 1rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted-dark);
  opacity: 0.75;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted-dark);
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-success {
  display: none;
  background: var(--bg-dark-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 44px);
  text-align: left;
}

.form-success.show {
  display: grid;
  gap: 10px;
}

.form-success h3 {
  color: var(--text-on-dark);
}

.form-success p {
  color: var(--text-muted-dark);
  margin: 0;
}

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

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--line-dark);
  padding-block: 56px 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 40px;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.footer-grid p {
  color: var(--text-muted-dark);
  font-size: 0.92rem;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-contacts li a {
  color: var(--text-on-dark);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
  color: var(--text-muted-dark);
}

/* ---------- Страницы-разделы ---------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 80px));
  padding-bottom: clamp(40px, 6vw, 64px);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
}

.page-hero h1 {
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted-dark);
  font-size: 1.14rem;
  max-width: 62ch;
}

.page-hero .container {
  display: grid;
  gap: 12px;
}

/* ---------- Контентные блоки услуг ---------- */

.service-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 60px);
  align-items: start;
}

.service-block + .service-block {
  border-top: 1px solid var(--line-light);
}

.service-block__intro {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  display: grid;
  gap: 14px;
  align-content: start;
  background: var(--bg-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
}

.service-block__intro h3 {
  color: var(--text-on-dark);
}

.service-block__body {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  gap: 22px;
}

.service-block__body h3 {
  margin: 0;
}

.service-block__body p {
  color: var(--text-muted-light);
  margin: 0;
}

.service-block__body ul {
  display: grid;
  gap: 12px;
}

.service-block__body li {
  position: relative;
  padding-left: 26px;
  color: var(--text-on-light);
}

.service-block__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.service-block__body strong {
  color: var(--text-on-light);
}

/* ---------- Поддерживаемые системы ---------- */

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

.systems span {
  padding: 10px 16px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: var(--surface-light);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-on-light);
}

.systems--dark span {
  border-color: var(--line-dark);
  background: var(--bg-dark-2);
  color: var(--text-on-dark);
}

/* ---------- Блог ---------- */

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.article-card__tag {
  color: var(--accent);
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.2rem;
}

.article-card p {
  color: var(--text-muted-light);
  margin: 0;
}

.article-card__link {
  font-weight: 600;
  color: #0E7E74;
  margin-top: auto;
  padding-top: 8px;
}

.article-card__link:hover {
  color: var(--accent);
}

.article-card__link--muted {
  color: var(--text-muted-light);
  font-weight: 500;
}

.article-card--soon h3 {
  opacity: 0.55;
}

.article-card--soon .article-card__link {
  color: var(--text-muted-light);
  font-weight: 500;
}

/* Полная статья */

.article-full {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
}

.article-full h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-top: 1.6em;
}

.article-full p {
  color: var(--text-muted-light);
  margin-top: 1em;
}

.article-full ul {
  display: grid;
  gap: 10px;
  margin: 1.2em 0;
  padding-left: 4px;
}

.article-full ul li {
  position: relative;
  padding-left: 26px;
  color: var(--text-on-light);
}

.article-full ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.article-full blockquote {
  border-left: 4px solid var(--accent);
  padding: 14px 22px;
  margin: 1.4em 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 500;
  color: var(--text-on-light);
}

/* ---------- Анимации ---------- */

@keyframes graph-drift {
  to {
    stroke-dashoffset: -400;
  }
}

@keyframes chat-arrival {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

@media (max-width: 1020px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero .container .chat {
    order: 2;
  }

  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block__intro {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-dark-2);
    border-bottom: 1px solid var(--line-dark);
    padding: 14px 18px 20px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 10px;
  }

  .header-cta {
    display: none;
  }

  .before-after,
  .services-grid,
  .blog-list {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 60px 1fr;
    gap: 14px;
  }

  .step__note {
    grid-column: 1 / -1;
  }

  .service-block__body {
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  .cases-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    gap: 18px 24px;
  }

  .chat__body {
    height: 260px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}