:root {
  --ink: #172033;
  --muted: #5d6a7f;
  --line: #d6e2f2;
  --surface: #f2f7ff;
  --white: #ffffff;
  --blue: #1f6fff;
  --cyan: #19c4ff;
  --deep: #10192b;
  --green: #20c979;
  --yellow: #ffc43d;
  --orange: #ff7a45;
  --purple: #8068ff;
  --pink: #ff4fb8;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.13);
  --glow: 0 24px 70px rgba(31, 111, 255, 0.2);
  --progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(31, 111, 255, 0.07) 0 1px, transparent 1px 28px),
    linear-gradient(225deg, rgba(25, 196, 255, 0.06) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 42%, #ffffff 100%);
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: calc(var(--progress) * 100%);
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--pink));
  box-shadow: 0 0 24px rgba(31, 111, 255, 0.5);
  transform-origin: left center;
}

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

code {
  padding: 0.1em 0.38em;
  color: #0d5fd7;
  background: rgba(31, 111, 255, 0.09);
  border: 1px solid rgba(31, 111, 255, 0.14);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(214, 226, 242, 0.84);
  backdrop-filter: blur(22px) saturate(1.25);
  transition:
    min-height 220ms ease,
    padding 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  min-height: 62px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(23, 32, 51, 0.11);
}

.brand,
.main-nav,
.hero-actions,
.hero-metrics,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan) 58%, var(--green));
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(31, 111, 255, 0.32);
  transition: transform 180ms ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-4deg);
}

.main-nav {
  gap: clamp(14px, 3vw, 34px);
  color: #42506a;
  font-size: 0.94rem;
}

.main-nav a,
.header-action {
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-action {
  min-width: max-content;
  padding: 10px 16px;
  border: 1px solid rgba(31, 111, 255, 0.22);
  border-radius: 8px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.header-action:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(36, 107, 254, 0.06);
}

.hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(20px, 4vw, 64px) 28px;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-delivery-automation.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.02);
  animation: heroImageDrift 16s ease-in-out infinite alternate;
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-motion span {
  position: absolute;
  display: block;
  width: 34vw;
  max-width: 520px;
  height: 3px;
  background: linear-gradient(90deg, rgba(31, 111, 255, 0), rgba(31, 111, 255, 0.65), rgba(32, 201, 121, 0));
  filter: blur(0.2px);
  transform: rotate(-18deg);
  animation: dataLine 6s linear infinite;
}

.hero-motion span:nth-child(1) {
  top: 22%;
  right: 10%;
}

.hero-motion span:nth-child(2) {
  top: 48%;
  right: 24%;
  animation-delay: 1.4s;
}

.hero-motion span:nth-child(3) {
  top: 68%;
  right: 2%;
  animation-delay: 2.8s;
}

.hero-overlay {
  background:
    linear-gradient(115deg, rgba(31, 111, 255, 0.14) 0%, rgba(25, 196, 255, 0) 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.93) 34%, rgba(255, 255, 255, 0.46) 58%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 22%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  animation: heroContentIn 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-content::after {
  content: "";
  display: block;
  width: min(520px, 74vw);
  height: 5px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), transparent);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(25, 196, 255, 0.32);
  animation: accentScan 3.6s ease-in-out infinite;
}

.integration-logos {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 24px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  border: 2px solid rgba(199, 216, 238, 0.96);
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 24px 64px rgba(31, 111, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: integrationFloat 5.8s ease-in-out infinite;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 14px 20px;
  color: #172033;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  border: 2px solid #d7e2f1;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 850;
  box-shadow:
    0 10px 26px rgba(23, 32, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.bitrix-logo {
  width: clamp(250px, 23vw, 304px);
}

.bitrix-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.connector-line {
  width: 32px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  box-shadow: 0 0 16px rgba(25, 196, 255, 0.48);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.connector-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  animation: connectorPulse 1.8s ease-in-out infinite;
}

.telegram-logo svg {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 10px;
  background: linear-gradient(135deg, #22b7ff, #178fea);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(42, 171, 238, 0.32);
}

.telegram-logo circle {
  fill: #2aabee;
}

.telegram-logo path {
  fill: var(--white);
}

.telegram-logo span {
  margin-left: 12px;
  font-size: clamp(1.65rem, 2.6vw, 2rem);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(92deg, #111827 0%, #172033 42%, #005eea 74%, #0db6e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: #344258;
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%);
  transform: translateX(-80%);
  transition: transform 420ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(80%);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan) 62%, var(--green));
  box-shadow: 0 18px 34px rgba(31, 111, 255, 0.3);
}

.button.primary:hover {
  background: linear-gradient(135deg, #155df5, #13b8ef 62%, #18b96f);
  box-shadow: 0 22px 44px rgba(31, 111, 255, 0.36);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(31, 111, 255, 0.2);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.07);
}

.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-metrics {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 0;
}

.hero-metrics div {
  width: min(190px, 100%);
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hero-metrics div:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 107, 254, 0.32);
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.1);
}

.hero-status-card {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 78px);
  bottom: clamp(36px, 8vw, 108px);
  width: min(360px, 30vw);
  padding: 18px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.82));
  border: 1px solid rgba(199, 216, 238, 0.94);
  border-radius: 8px;
  box-shadow: 0 30px 78px rgba(31, 111, 255, 0.18);
  backdrop-filter: blur(20px) saturate(1.2);
  animation: statusFloat 5.5s ease-in-out infinite;
}

.status-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.84rem;
}

.status-card-head span {
  color: var(--muted);
}

.status-card-head strong {
  color: var(--blue);
}

.sync-track {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.sync-node {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(18, 167, 200, 0.12);
  animation: nodePulse 1.8s ease-in-out infinite;
}

.sync-node:nth-of-type(3) {
  background: var(--orange);
  animation-delay: 0.3s;
}

.sync-node:nth-of-type(5) {
  background: var(--green);
  animation-delay: 0.6s;
}

.sync-line {
  flex: 1;
  height: 2px;
  margin: 0 8px;
  background: linear-gradient(90deg, rgba(36, 107, 254, 0.25), rgba(18, 167, 200, 0.65));
  border-radius: 999px;
}

.mini-message {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(239, 247, 255, 0.88));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, #22b7ff, #178fea);
  border-radius: 8px;
  font-weight: 900;
}

.mini-message p {
  margin: 0;
  color: #344057;
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-metrics dt {
  margin-bottom: 4px;
  font-size: 1.6rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 64px);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(31, 111, 255, 0.035) 0 1px, transparent 1px 30px),
    linear-gradient(225deg, rgba(25, 196, 255, 0.03) 0 1px, transparent 1px 34px);
  pointer-events: none;
}

.section-inner,
.request-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.two-column,
.split-panel,
.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.text-stack {
  color: #3f4d63;
  font-size: 1.12rem;
}

.pain-section {
  padding-top: clamp(16px, 2.6vw, 28px);
}

.text-stack p:last-child,
.setup-layout p,
.request-inner p {
  margin-bottom: 0;
}

.workflow-section,
.setup-section {
  background:
    linear-gradient(135deg, rgba(31, 111, 255, 0.08), rgba(25, 196, 255, 0.035) 42%, rgba(32, 201, 121, 0.045)),
    var(--surface);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.workflow-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-item,
.case-grid article {
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(31, 111, 255, 0.36), rgba(25, 196, 255, 0.18), rgba(32, 201, 121, 0.26)) border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.06);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.workflow-item:hover,
.case-grid article:hover {
  transform: translateY(-7px);
  border-color: rgba(36, 107, 254, 0.26);
  box-shadow: 0 24px 54px rgba(31, 111, 255, 0.15);
}

.step-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.workflow-item p,
.case-grid p,
.setup-layout p,
.request-inner p {
  color: var(--muted);
}

.status-section {
  background:
    linear-gradient(120deg, rgba(31, 111, 255, 0.11), rgba(25, 196, 255, 0.08), rgba(32, 201, 121, 0.08)),
    var(--white);
}

.split-panel {
  align-items: center;
}

.split-panel p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.status-list {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.status-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.92));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.07);
  font-weight: 750;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.status-list div:hover {
  transform: translateX(8px);
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.1);
}

.dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(36, 107, 254, 0.08);
}

.dot.blue { background: var(--blue); }
.dot.yellow { background: var(--yellow); }
.dot.purple { background: var(--purple); }
.dot.orange { background: var(--orange); }
.dot.green { background: var(--green); }

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-layout {
  align-items: center;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.check-list li:hover {
  transform: translateX(6px);
  border-color: rgba(54, 166, 95, 0.32);
  box-shadow: 0 14px 28px rgba(23, 32, 51, 0.08);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.request-section {
  padding: clamp(64px, 8vw, 100px) clamp(20px, 4vw, 64px);
  background:
    linear-gradient(135deg, rgba(25, 196, 255, 0.18) 0%, rgba(25, 196, 255, 0) 28%),
    linear-gradient(225deg, rgba(255, 79, 184, 0.14) 0%, rgba(255, 79, 184, 0) 30%),
    linear-gradient(135deg, #0d1628 0%, #172033 52%, #063349 100%);
  color: var(--white);
  overflow: hidden;
}

.request-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
}

.request-inner .eyebrow {
  color: #7ed9ef;
}

.request-inner p {
  color: #c7d3e4;
  font-size: 1.08rem;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(31, 111, 255, 0.45), rgba(25, 196, 255, 0.22), rgba(32, 201, 121, 0.34)) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.22);
  transform: translateZ(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.lead-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.22);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #344057;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(36, 107, 254, 0.16);
  border-color: var(--blue);
  background: var(--white);
}

.has-motion .reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
}

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

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

@keyframes heroImageDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-18px, 8px, 0);
  }
}

@keyframes dataLine {
  from {
    opacity: 0;
    transform: translateX(80px) rotate(-18deg);
  }
  18%,
  70% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(-260px) rotate(-18deg);
  }
}

@keyframes connectorPulse {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes accentScan {
  0%,
  100% {
    opacity: 0.65;
    transform: scaleX(0.88);
    transform-origin: left center;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

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

@keyframes nodePulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(18, 167, 200, 0.1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(18, 167, 200, 0.02);
  }
}

@keyframes integrationFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

.form-button {
  width: 100%;
  margin-top: 4px;
  font: inherit;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #344057;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-message.is-success {
  color: var(--green);
}

.form-message.is-error {
  color: #e23d3d;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 64px);
  color: #69758a;
  background: #f5f7fa;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    min-height: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-top: 4px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 84px;
  }

  .hero-status-card {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 52%, rgba(255, 255, 255, 0.32) 100%),
      linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 22%);
  }

  .two-column,
  .split-panel,
  .setup-layout,
  .request-inner {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .has-motion .reveal-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1400px) {
  .hero-metrics {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-action {
    display: none;
  }

  .main-nav {
    gap: 18px;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .hero {
    min-height: calc(100svh - 172px);
    padding: 58px 18px 24px;
    align-items: flex-start;
  }

  .integration-logos {
    gap: 6px;
    max-width: 100%;
    padding: 6px;
    margin-top: 4px;
  }

  .logo-pill {
    min-height: 58px;
    padding: 10px 12px;
  }

  .bitrix-logo {
    width: min(214px, calc(100vw - 150px));
  }

  .connector-line {
    width: 20px;
  }

  .hero-media {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 46%, rgba(255, 255, 255, 0.58) 78%, rgba(255, 255, 255, 0.2) 100%),
      linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 22%);
  }

  h1 {
    font-size: clamp(1.95rem, 10.5vw, 2.65rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 2.8rem);
  }

  .button,
  .hero-actions a {
    width: 100%;
  }

  .section,
  .request-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .workflow-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .workflow-item,
  .case-grid article {
    min-height: auto;
  }

  .lead-form {
    padding: 18px;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }
}
