:root {
  --bg: #f1f2f4;
  --surface: #ffffff;
  --text: #090b10;
  --muted: #626a78;
  --line: #dfe2e7;
  --blue: #2159f3;
  --green: #10a66a;
  --yellow: #f5b83d;
  --red: #ef4444;
  --shadow: 0 28px 70px rgba(9, 11, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 82px;
  margin: 0;
  padding: 14px max(24px, calc((100% - 1440px) / 2));
  background: rgba(241, 242, 244, 0.84);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(24px) saturate(150%);
}

.site-header.is-elevated {
  box-shadow: 0 1px 0 rgba(9, 11, 16, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #070a12 0%, #111827 48%, #1d4ed8 100%);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 26px rgba(29, 78, 216, 0.24);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  color: #353b47;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(9, 11, 16, 0.08);
}

.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #353b47;
  text-decoration: none;
  font-size: 15px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav a:hover {
  color: #090b10;
  background: #eef0f4;
}

.header-cta {
  min-width: 126px;
  padding: 12px 20px;
  text-align: center;
  color: #fff !important;
  background: #090b10 !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(9, 11, 16, 0.16);
}

/* ============ SECTIONS ============ */
.section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - 82px);
  padding-top: 54px;
  padding-bottom: 84px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 24px;
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 32px;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 720;
  line-height: 0.94;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 680;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.lead {
  max-width: 720px;
  color: #505765;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: #090b10;
  box-shadow: 0 14px 28px rgba(9, 11, 16, 0.16);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(9, 11, 16, 0.07);
}

.button-label-mobile {
  display: none;
}

/* ============ PHONE PREVIEW ============ */
.phone-preview {
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: min(100%, 500px);
  margin-right: 18px;
  margin-left: auto;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(222, 229, 242, 0.28) 52%, rgba(127, 151, 197, 0.2)), rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 42px;
  backdrop-filter: blur(28px) saturate(150%);
  box-shadow: 0 50px 110px rgba(35, 47, 74, 0.2), 0 12px 30px rgba(255, 255, 255, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(89, 108, 145, 0.14);
  transform: perspective(1200px) rotateY(-8deg) rotateZ(3deg);
  transform-style: preserve-3d;
}

.phone-preview::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 34px;
  left: auto;
  z-index: 4;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98), transparent);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

.phone-preview::after {
  content: "";
  position: absolute;
  top: 26px;
  right: -30px;
  bottom: -30px;
  left: 26px;
  z-index: -1;
  width: auto;
  height: auto;
  background: rgba(224, 231, 245, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 42px;
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 72px rgba(49, 62, 89, 0.12);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 8px 14px 10px;
  color: #111827;
}

.glass-app-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(145deg, #070a12, #1d4ed8);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.24);
  font-size: 11px;
  font-weight: 900;
}

.phone-top strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 38px;
  color: #111318;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 30px;
  padding: 0 11px;
  color: #08724b;
  background: rgba(209, 250, 229, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.chat {
  display: grid;
  gap: 12px;
  min-height: 500px;
  padding: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(231, 236, 246, 0.38)), rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  backdrop-filter: blur(30px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 24px 48px rgba(70, 85, 116, 0.09);
  align-content: center;
}

.bubble {
  max-width: 82%;
  margin: 0;
  padding: 13px 15px;
  border-radius: 18px;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(63, 77, 105, 0.09);
  backdrop-filter: blur(14px);
}

.bubble.client {
  justify-self: start;
  background: rgba(255, 255, 255, 0.76);
}

.bubble.operator {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, #1e4ed8, #3974ff);
  border-color: rgba(105, 148, 255, 0.56);
  box-shadow: 0 16px 34px rgba(33, 89, 243, 0.22);
}

.bubble.system {
  justify-self: center;
  max-width: 92%;
  color: #626b7a;
  background: rgba(218, 224, 236, 0.58);
  font-size: 14px;
}

.floating-note {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #141820;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 18px 46px rgba(44, 57, 84, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  font-size: 12px;
  opacity: 0;
  scale: 0.94;
  translate: 0 12px;
  filter: blur(7px);
}

.floating-note span {
  color: #697180;
}

.floating-note--incoming {
  position: relative;
  inset: auto;
  justify-self: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 8px;
  color: #626b7a;
  background: rgba(218, 224, 236, 0.62);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(63, 77, 105, 0.08);
}

.floating-note--incoming strong {
  color: #4f5868;
}

.floating-note--sent {
  position: relative;
  inset: auto;
  justify-self: end;
  margin: 10px 12px 16px 0;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #10a66a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(16, 166, 106, 0.12);
}

/* ============ ANSWERS ============ */
.answers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  overflow: visible;
  padding: 42px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.answer {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(223, 226, 231, 0.9);
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(9, 11, 16, 0.05);
  transition: opacity 800ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease, border-color 500ms ease, translate 700ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.answer:first-child {
  color: #fff;
  background: #090b10;
  border-color: #090b10;
}

.answer:first-child span {
  color: #aeb4bf;
}

.answer:nth-child(2) {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.answer:nth-child(2) span {
  color: rgba(255, 255, 255, 0.7);
}

.answer span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.answer strong {
  display: block;
  font-size: 24px;
  line-height: 1.18;
}

/* ============ SPLIT SECTIONS ============ */
.split {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 90px;
  align-items: start;
}

.split > div:first-child {
  position: sticky;
  top: 112px;
}

.section-head {
  max-width: 900px;
  margin-bottom: 44px;
}

.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-grid {
  counter-reset: feature;
}

.feature-grid article,
.faq-grid article,
.plan {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  transition: opacity 800ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease, border-color 500ms ease, translate 700ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.feature-grid article {
  counter-increment: feature;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  box-shadow: 0 18px 48px rgba(9, 11, 16, 0.05);
}

/* Нумерация в "Что внутри" */
.feature-grid article::before {
  content: "0" counter(feature);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: auto;
  color: #fff;
  background: #090b10;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 1800ms ease;
}

.feature-grid article.is-centered::before {
  background: var(--blue);
}

.feature-grid article h3 {
  margin-top: 44px;
  font-size: 26px;
}

.feature-grid article p,
.faq-grid article p,
.plan p {
  margin-bottom: 0;
  color: #444b58;
  line-height: 1.65;
}

.faq-grid article {
  min-height: 230px;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 44px rgba(9, 11, 16, 0.05);
}

.faq-grid article h3 {
  max-width: 440px;
  font-size: 24px;
}

/* ============ PLANS ============ */
.plans {
  padding-top: 128px;
  padding-bottom: 128px;
}

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

.plan {
  min-height: 390px;
  padding: 32px;
  box-shadow: 0 18px 48px rgba(9, 11, 16, 0.06);
}

.plan.featured {
  position: relative;
  top: -16px;
  color: #fff;
  background: #090b10;
  border-color: #090b10;
  box-shadow: 0 28px 68px rgba(9, 11, 16, 0.2);
}

.plan.featured .plan-name {
  color: #77a0ff;
}

.plan.featured .muted,
.plan.featured li {
  color: #d7dbe4;
}

.plan-name {
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.plan h3 {
  margin-top: 28px;
  margin-bottom: 6px;
  font-size: 50px;
}

.plan ul {
  margin: 24px 0 0;
  padding-left: 20px;
}

.plan li {
  margin: 10px 0;
}

.muted,
.note {
  color: var(--muted);
}

.note {
  margin: 18px 0 0;
  font-size: 14px;
}

.payment-note {
  margin: 26px 0 0;
  color: #7b8494;
  font-size: 13px;
  line-height: 1.5;
}

/* Эффект заполнения для планов */
.plan-action {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  isolation: isolate;
  --fill-color: #111318;
  --fill-text: #ffffff;
  --fill-x: 50%;
  --fill-y: 50%;
  text-decoration: none;
}

.plan-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--fill-color);
  clip-path: circle(0% at var(--fill-x) var(--fill-y));
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-action > * {
  position: relative;
  z-index: 1;
  transition: color 0.22s ease;
}

.plan-action.is-filling::before {
  clip-path: circle(160% at var(--fill-x) var(--fill-y));
}

.plan-action.is-filling,
.plan-action.is-filling .muted,
.plan-action.is-filling li,
.plan-action.is-filling .plan-name,
.plan-action.is-filling h3,
.plan-action.is-filling p,
.plan-action.is-filling li::marker {
  color: var(--fill-text);
}

.plan.featured {
  --fill-color: #ffffff;
  --fill-text: #111318;
}

/* ============ RESULT BAND ============ */
.result-band {
  width: min(1320px, calc(100% - 48px));
  max-width: 1320px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 90px;
  padding: 96px 88px;
  color: #fff;
  background: #090b10;
  border: 0;
  border-radius: 36px;
  box-shadow: 0 36px 86px rgba(9, 11, 16, 0.2);
}

.result-band .eyebrow {
  color: #77a0ff;
}

.result-band h2 {
  max-width: 780px;
}

.result-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: result;
}

.result-list li {
  counter-increment: result;
  position: relative;
  margin: 0;
  padding: 20px 0 20px 54px;
  color: #e8eaf0;
  border-bottom: 1px solid #2b2e36;
  line-height: 1.45;
}

.result-list li:last-child {
  border-bottom: 0;
}

.result-list li::before {
  content: counter(result);
  position: absolute;
  top: 17px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #090b10;
  background: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

/* ============ DEMO ============ */
.demo {
  width: min(1320px, calc(100% - 48px));
  min-height: 420px;
  margin: 112px auto;
  padding: 68px;
  background: var(--blue);
  border-radius: 36px;
  box-shadow: 0 32px 80px rgba(33, 89, 243, 0.22);
}

.demo .eyebrow,
.demo h2,
.demo p {
  color: #fff;
}

.demo p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.demo .button.primary {
  color: #090b10;
  background: #fff;
  box-shadow: 0 14px 30px rgba(9, 11, 16, 0.16);
  margin-top: 36px;
}

/* ============ CONTACTS ============ */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 72px;
}

.support-title {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 44px;
}

.support-title a {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: text-shadow 320ms ease;
}

.support-title a .max-logo {
  transition: filter 320ms ease;
}

.support-title a:hover {
  text-shadow: 0 10px 24px rgba(9, 11, 16, 0.18);
}

.support-title a:hover .max-logo {
  filter: drop-shadow(0 10px 18px rgba(9, 11, 16, 0.22));
}

.support-link-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.max-logo {
  flex: 0 0 auto;
  display: inline-block;
  width: 42px;
  height: 42px;
  background: none;
  vertical-align: middle;
}

.max-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contacts a {
  color: var(--blue);
  font-weight: 800;
}

.requisites {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(9, 11, 16, 0.05);
  transition: opacity 800ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease, border-color 500ms ease, translate 700ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.requisites p {
  margin-bottom: 8px;
  color: #444b58;
  line-height: 1.38;
}

.requisites p:last-child {
  margin-bottom: 0;
}

/* ============ FOOTER ============ */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

/* ============ DOCUMENT ============ */
.document {
  width: min(860px, calc(100% - 32px));
  margin: 56px auto 96px;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(9, 11, 16, 0.07);
}

.document h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.document h2 {
  margin-top: 38px;
  font-size: 28px;
}

.document p {
  color: #444b58;
  line-height: 1.65;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

th, td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: #f2f4f8;
}

tr:last-child td {
  border-bottom: 0;
}

/* ============ ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  .motion-card {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
    transition: opacity 800ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease, border-color 500ms ease, translate 700ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, translate, opacity;
  }

  .motion-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease;
  }

  .motion-card.is-visible {
    opacity: 1;
    transform: translate(
        calc(var(--push-x, 0) * 1px),
        calc(var(--push-y, 0) * 1px)
      )
      rotateX(calc(var(--tilt-y, 0) * 0.45deg))
      rotateY(calc(var(--tilt-x, 0) * -0.45deg));
  }

  .motion-button.is-visible {
    opacity: 1;
    transform: translate(
        calc(var(--push-x, 0) * 1px),
        calc(var(--push-y, 0) * 1px)
      )
      rotateX(calc(var(--tilt-y, 0) * 0.35deg))
      rotateY(calc(var(--tilt-x, 0) * -0.35deg));
  }

  .slow-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 650ms;
  }

  .slow-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .chat .bubble {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    filter: blur(6px);
  }

  .phone-preview.is-chat-visible .chat .bubble {
    animation: bubbleAppear 760ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--bubble-delay, 0ms) forwards;
  }

  .chat .bubble:nth-of-type(1) { --bubble-delay: 3000ms; }
  .chat .bubble:nth-of-type(2) { --bubble-delay: 4200ms; }
  .chat .bubble:nth-of-type(3) { --bubble-delay: 5400ms; }
  .chat .bubble:nth-of-type(4) { --bubble-delay: 6800ms; }

  @keyframes bubbleAppear {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  .phone-preview {
    animation: glassDeviceFloat 7s ease-in-out infinite;
  }

  .phone-preview.is-chat-visible .floating-note--incoming {
    animation: glassNoteReveal 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 1200ms forwards, glassNoteFloat 5.4s ease-in-out 2100ms infinite;
  }

  .phone-preview.is-chat-visible .floating-note--sent {
    animation: glassNoteReveal 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 6250ms forwards, glassNoteFloat 6.2s ease-in-out 7150ms infinite reverse;
  }

  @keyframes glassNoteReveal {
    from {
      opacity: 0;
      scale: 0.94;
      translate: 0 12px;
      filter: blur(7px);
    }
    to {
      opacity: 1;
      scale: 1;
      translate: 0 0;
      filter: blur(0);
    }
  }

  @keyframes glassDeviceFloat {
    0%, 100% {
      transform: perspective(1200px) rotateY(-8deg) rotateZ(3deg) translateY(0);
    }
    50% {
      transform: perspective(1200px) rotateY(-6deg) rotateZ(2deg) translateY(-12px);
    }
  }

  @keyframes glassNoteFloat {
    0%, 100% {
      translate: 0 0;
    }
    50% {
      translate: 0 -8px;
    }
  }
}

/* Hover-эффекты для карточек (просто тень и граница) */
@media (hover: hover) and (pointer: fine) {
  .motion-card.answer:hover,
  .feature-grid article.motion-card:hover,
  .faq-grid article.motion-card:hover,
  .motion-card.plan:hover,
  .motion-card.requisites:hover {
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 60px rgba(30, 39, 58, 0.16);
  }

  .motion-card.answer:first-child:hover {
    border-color: rgba(92, 132, 255, 0.52);
    box-shadow: 0 30px 60px rgba(9, 11, 16, 0.25);
  }

  .motion-card.answer:nth-child(2):hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 60px rgba(33, 89, 243, 0.25);
  }
}

/* ============ ПОДЪЁМ КАРТОЧКИ В ЦЕНТРЕ ЭКРАНА (мобильные) ============ */
.motion-card.is-lifted {
  translate: 0 -8px;
  box-shadow: 0 26px 48px rgba(30, 39, 58, 0.14);
  border-color: rgba(255, 255, 255, 0.96);
  transition: translate 800ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 800ms ease, border-color 800ms ease;
}

.motion-card.answer:first-child.is-lifted {
  box-shadow: 0 34px 68px rgba(9, 11, 16, 0.28);
  border-color: rgba(92, 132, 255, 0.52);
}

.motion-card.answer:nth-child(2).is-lifted {
  box-shadow: 0 34px 68px rgba(33, 89, 243, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============ МЯГКОЕ НАЖАТИЕ ДЛЯ СЕНСОРНЫХ ЭКРАНОВ ============ */
.motion-card.is-pressed,
.motion-button.is-pressed {
  transform: scale(0.96);
  box-shadow: 0 12px 28px rgba(30, 39, 58, 0.2);
  transition: transform 1000ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 1000ms ease;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .site-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
  }

  .answer strong {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

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

  .phone-preview {
    margin: 0 auto;
    transform: rotate(-2deg);
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .split > div:first-child {
    position: static;
  }

  .result-band {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .plan.featured {
    top: 0;
  }

  .demo {
    margin-top: 72px;
    margin-bottom: 72px;
  }

  .contacts {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: 100%;
    min-height: 70px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-cta {
    min-width: 112px;
    padding: 11px 16px;
  }

  .section {
    width: calc(100% - 24px);
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .hero {
    gap: 48px;
    min-height: auto;
    padding-top: 44px;
  }

  .hero .eyebrow {
    margin-bottom: 20px;
  }

  h1, .hero h1 {
    font-size: 48px;
    line-height: 0.96;
  }

  h2 {
    font-size: 36px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions {
    display: flex;
    width: auto;
    gap: 10px;
    margin-top: 30px;
  }

  .hero-actions .button {
    flex: 0 0 108px;
    width: 108px;
    min-height: 48px;
    padding: 0 14px;
  }

  .button-label-desktop {
    display: none;
  }

  .button-label-mobile {
    display: inline;
  }

  .phone-preview {
    width: calc(100% - 12px);
    padding: 14px;
    border-radius: 38px;
    box-shadow: 0 30px 70px rgba(9, 11, 16, 0.18), 0 0 0 6px rgba(255, 255, 255, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.72);
  }

  .phone-preview::after {
    top: 18px;
    right: -14px;
    bottom: -18px;
    left: 18px;
    border-radius: 34px;
  }

  .phone-top {
    padding-right: 8px;
    padding-left: 8px;
  }

  .phone-top strong {
    min-width: 108px;
  }

  .phone-top .live-status {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10px;
  }

  .floating-note--incoming {
    max-width: 96%;
    margin-bottom: 4px;
  }

  .floating-note--sent {
    max-width: calc(100% - 32px);
    margin-right: 4px;
  }

  .chat {
    min-height: 410px;
    padding: 18px 14px;
    gap: 10px;
    border-radius: 28px;
  }

  .phone-preview .bubble {
    max-width: 88%;
    padding: 11px 13px;
  }

  .phone-preview .bubble.system {
    max-width: 96%;
  }

  .answers {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .answer {
    min-height: 190px;
  }

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

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

  .feature-grid article,
  .faq-grid article,
  .plan,
  .requisites {
    border-radius: 24px;
  }

  .feature-grid article {
    min-height: 260px;
  }

  .faq-grid article {
    min-height: 0;
  }

  .plan {
    min-height: 360px;
  }

  .plan h3 {
    font-size: 44px;
  }

  .result-band {
    width: calc(100% - 24px);
    max-width: none;
    margin: 24px auto 0;
    padding: 58px 24px;
    border-radius: 28px;
  }

  .demo {
    width: calc(100% - 24px);
    min-height: 0;
    margin-top: 68px;
    margin-bottom: 68px;
    padding: 38px 24px;
    border-radius: 28px;
  }

  .support-title {
    max-width: 100%;
    font-size: 20px;
  }

  .contacts {
    width: calc(100% - 32px);
    gap: 28px;
    margin-right: auto;
    margin-left: auto;
  }

  .contacts > div,
  .support-title a,
  .support-link-inner,
  .requisites {
    min-width: 0;
    max-width: 100%;
  }

  .support-link-inner {
    white-space: normal;
  }

  .max-logo {
    width: 30px;
    height: 30px;
  }

  .requisites {
    width: 100%;
    padding: 22px 18px;
    overflow-wrap: anywhere;
  }

  .footer {
    width: calc(100% - 24px);
    flex-direction: column;
  }

  .document {
    width: calc(100% - 20px);
    margin: 28px auto 64px;
    padding: 24px;
    border-radius: 20px;
  }

  th, td {
    padding: 12px 10px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-card,
  .motion-button,
  .slow-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .floating-note {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    filter: none;
  }

  .phone-preview {
    animation: none;
  }
}
#demo {
  scroll-margin-top: 134px;
}

@media (max-width: 560px) {
  #demo {
    scroll-margin-top: 112px;
  }
}