:root {
  color-scheme: light;
  --navy: #172033;
  --navy-deep: #071a3a;
  --blue: #1268e8;
  --blue-hover: #0b56c7;
  --cyan: #0c9fd6;
  --teal: #139ab0;
  --green: #128a4a;
  --muted: #586984;
  --line: #dce4f0;
  --soft: #f4f7fb;
  --white: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--navy);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 228, 240, 0.88);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a,
.site-footer nav a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

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

.button:focus-visible,
.main-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(18, 104, 232, 0.24);
  outline-offset: 3px;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-hover);
}

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

.button-secondary:hover {
  background: #f2f7ff;
}

.header-action {
  min-height: 44px;
  padding-inline: 19px;
}

.hero {
  overflow: hidden;
  padding: 92px 0 108px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 58px;
}

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

.hero h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(44px, 5.15vw, 72px);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero-copy > p {
  max-width: 560px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

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

.product-scene {
  position: relative;
  min-width: 700px;
  padding: 26px 0 26px 52px;
}

.crm-window {
  min-height: 520px;
  display: grid;
  grid-template-columns: 122px minmax(350px, 1fr) 212px;
  overflow: hidden;
  border: 1px solid #cfd9e7;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.13);
}

.crm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 28px 22px;
  background: var(--navy-deep);
  color: var(--white);
}

.crm-sidebar strong {
  margin-bottom: 14px;
  font-size: 15px;
  font-style: italic;
}

.crm-sidebar span {
  width: 50px;
  height: 11px;
  display: block;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.crm-main {
  min-width: 0;
}

.crm-head {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}

.crm-head strong {
  font-size: 17px;
}

.crm-back {
  color: var(--muted);
  font-size: 25px;
}

.crm-tabs {
  min-height: 54px;
  display: flex;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  color: #718099;
  font-size: 12px;
}

.crm-tabs span,
.crm-tabs strong {
  padding-bottom: 17px;
}

.crm-tabs strong {
  border-bottom: 3px solid var(--blue);
  color: var(--navy);
}

.conversation {
  min-height: 395px;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 16px;
  background: #fbfcfe;
}

.conversation-date {
  margin: 0 0 26px;
  color: #8390a5;
  font-size: 11px;
  text-align: center;
}

.message {
  max-width: 82%;
  display: grid;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 15px 9px;
  font-size: 15px;
  line-height: 1.38;
}

.message time {
  color: #79879b;
  font-size: 10px;
  text-align: right;
}

.message-in {
  align-self: flex-start;
  background: #f0f3f7;
}

.message-out {
  align-self: flex-end;
  margin-top: 36px;
  border: 1px solid #7ab3ff;
  background: #eaf3ff;
}

.composer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: #93a0b2;
  font-size: 12px;
}

.composer strong {
  color: var(--blue);
  font-size: 19px;
}

.channel-panel {
  border-left: 1px solid var(--line);
  padding: 24px 15px;
}

.channel-panel > p:first-child {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.channel-row {
  display: grid;
  grid-template-columns: 34px 1fr 8px;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
}

.channel-row > span:nth-child(2) {
  min-width: 0;
}

.channel-row strong,
.channel-row small {
  display: block;
}

.channel-row strong {
  font-size: 12px;
}

.channel-row small {
  margin-top: 3px;
  color: var(--green);
  font-size: 10px;
}

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

.channel-dot,
.channel-symbol {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-style: normal;
  font-weight: 850;
}

.channel-dot {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.telegram-dot,
.channel-symbol-telegram {
  background: var(--cyan);
}

.max-dot,
.channel-symbol-max {
  background: #6e4de8;
}

.channel-note {
  margin: 50px 4px 0;
  color: #748198;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.channel-route {
  position: absolute;
  left: 0;
  width: 82px;
  height: 112px;
  border-left: 3px solid var(--blue);
  z-index: 3;
}

.channel-route::after {
  position: absolute;
  right: 0;
  width: 42px;
  border-top: 3px solid var(--blue);
  content: "";
}

.channel-route-telegram {
  top: 88px;
  border-bottom: 3px solid var(--blue);
  border-bottom-left-radius: 25px;
}

.channel-route-telegram::after {
  bottom: -3px;
}

.channel-route-max {
  top: 325px;
  border-top: 3px solid var(--blue);
  border-top-left-radius: 25px;
}

.channel-route-max::after {
  top: -3px;
}

.channel-symbol {
  position: absolute;
  left: -25px;
  width: 52px;
  height: 52px;
  border: 7px solid var(--white);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.18);
}

.channel-route-telegram .channel-symbol {
  top: -26px;
}

.channel-route-max .channel-symbol {
  bottom: -26px;
}

.section {
  padding: 108px 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.process {
  background: var(--soft);
}

.process h2 {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin-top: 64px;
}

.step {
  position: relative;
  display: block;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 33px;
  left: 76px;
  width: calc(100% - 54px);
  border-top: 2px solid rgba(18, 104, 232, 0.45);
  content: "";
}

.step-number {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-size: 58px;
  font-weight: 820;
  line-height: 1;
}

.step > div:last-child {
  position: relative;
  z-index: 2;
  margin-top: 24px;
}

.step h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.features {
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 88px;
}

.product-stack {
  position: relative;
  min-height: 540px;
}

.product-stack::after {
  position: absolute;
  right: 4%;
  bottom: 1%;
  left: 10%;
  height: 38%;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  border-bottom-right-radius: 28px;
  content: "";
}

.product-image {
  position: absolute;
  z-index: 2;
  width: 88%;
  height: auto;
  border: 1px solid #cfd9e7;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(23, 32, 51, 0.12);
}

.product-image-qr {
  top: 0;
  left: -14%;
}

.product-image-chat {
  right: -4%;
  bottom: 0;
}

.feature-copy h2 {
  max-width: 500px;
}

.feature-list,
.trust-list {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  font-size: 18px;
  font-weight: 650;
}

.feature-list svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.security {
  background: var(--soft);
}

.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 94px;
}

.shield-art svg {
  width: 100%;
  overflow: visible;
}

.shield,
.lock,
.lock-key,
.route-blue,
.route-light {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shield,
.lock {
  stroke: var(--blue);
  stroke-width: 4;
}

.lock-key {
  stroke: var(--teal);
  stroke-width: 4;
}

.route-blue {
  stroke: var(--blue);
  stroke-width: 2;
}

.route-light {
  stroke: #cbd6e7;
  stroke-width: 2;
}

.trust-list {
  margin-top: 30px;
}

.trust-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.trust-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 10px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 820;
}

.trust-list h3 {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
}

.trust-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.cta-section {
  padding: 74px 0;
  background: var(--navy-deep);
  color: var(--white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
}

.cta-section h2 {
  margin: 0;
  font-size: clamp(34px, 3.5vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.cta-section p {
  margin: 18px 0 0;
  color: #c6d3e8;
  font-size: 18px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.button-dark-outline {
  border-color: var(--blue);
  color: var(--white);
}

.button-dark-outline:hover {
  background: rgba(18, 104, 232, 0.16);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr 0.7fr;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  font-size: 25px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

@media (max-width: 1080px) {
  .hero {
    padding-top: 68px;
  }

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

  .hero-copy {
    max-width: 760px;
  }

  .product-scene {
    width: 100%;
    min-width: 0;
    max-width: 780px;
    justify-self: center;
  }

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

  .feature-copy {
    max-width: 720px;
  }

  .product-stack {
    width: min(780px, 100%);
    justify-self: center;
  }

  .shield-art {
    width: min(560px, 100%);
    justify-self: center;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer p {
    text-align: center;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 32px, 640px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 21px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .main-nav {
    display: none;
  }

  .header-action {
    min-height: 40px;
  }

  .hero {
    padding: 58px 0 78px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .hero-copy > p {
    margin-top: 24px;
    font-size: 18px;
  }

  .crm-window {
    min-height: 440px;
    grid-template-columns: 86px minmax(300px, 1fr);
  }

  .crm-sidebar {
    padding-inline: 16px;
  }

  .channel-panel {
    display: none;
  }

  .product-scene {
    padding-left: 38px;
  }

  .channel-route {
    width: 58px;
  }

  .section {
    padding: 78px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
  }

  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    gap: 18px;
  }

  .step:not(:last-child)::after {
    top: 56px;
    bottom: -32px;
    left: 27px;
    width: 0;
    border-top: 0;
    border-left: 2px solid rgba(18, 104, 232, 0.45);
  }

  .step-number {
    width: 56px;
    height: 58px;
    font-size: 46px;
  }

  .step > div:last-child {
    padding-top: 5px;
    margin-top: 0;
  }

  .product-stack {
    min-height: 470px;
  }

  .product-image {
    width: 96%;
  }

  .product-image-qr {
    left: -18%;
  }

  .product-image-chat {
    right: -13%;
  }

  .feature-grid,
  .security-grid {
    gap: 56px;
  }

  .cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 18px 26px;
  }
}

@media (max-width: 520px) {
  .header-action {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 41px;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

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

  .product-scene {
    margin-top: 10px;
    padding: 0;
  }

  .channel-route {
    display: none;
  }

  .crm-window {
    min-height: 430px;
    grid-template-columns: 1fr;
  }

  .crm-sidebar {
    min-height: 52px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
  }

  .crm-sidebar strong {
    margin: 0 auto 0 0;
  }

  .crm-sidebar span {
    width: 17px;
    height: 8px;
  }

  .crm-head {
    min-height: 58px;
  }

  .crm-tabs {
    gap: 18px;
    overflow: hidden;
  }

  .conversation {
    min-height: 320px;
  }

  .section h2 {
    font-size: 34px;
  }

  .product-stack {
    min-height: 370px;
  }

  .product-image-qr {
    top: 0;
    left: -24%;
  }

  .product-image-chat {
    right: -22%;
  }

  .feature-list li {
    align-items: flex-start;
    font-size: 16px;
  }

  .security-copy h2 {
    font-size: 36px;
  }

  .trust-list li {
    grid-template-columns: 44px 1fr;
    gap: 15px;
  }

  .trust-icon {
    width: 42px;
    height: 42px;
  }

  .trust-list h3 {
    font-size: 18px;
  }

  .cta-section {
    padding: 62px 0;
  }

  .site-footer nav {
    flex-direction: column;
    align-items: center;
  }
}

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

  .button {
    transition: none;
  }
}
