:root {
  color-scheme: light;
  --black: #090909;
  --gray: #5e5e5e;
  --soft: #f3f3f3;
  --soft-2: #e9e9e9;
  background: #fff;
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; }
::selection { background: var(--black); color: #fff; }
h1, h2, h3, p { margin-top: 0; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell { width: min(100% - 44px, 1200px); margin: 0 auto; }
main { text-align: center; }

.hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: clamp(5rem, 10vw, 8.5rem) 0 7rem;
}
.hero h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(4rem, 9.4vw, 8rem);
  font-weight: 800;
  line-height: .91;
  letter-spacing: -.09em;
  text-wrap: balance;
}
.hero h1 em {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02em;
  font-weight: 400;
  letter-spacing: -.09em;
}
.hero-lead {
  max-width: 760px;
  margin: 3.1rem auto 0;
  color: #242424;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.48;
}
.hero-support {
  max-width: 690px;
  margin: 1rem auto 0;
  color: var(--gray);
  font-size: 1.06rem;
  line-height: 1.72;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  margin-top: 2.7rem;
  padding: .85rem 1.35rem;
  border: 1px solid #383838;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #303030, #090909 75%);
  box-shadow: inset 0 1px 0 #ffffff26, 0 5px 0 #0000000d, 0 10px 22px #00000012;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta .icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}
.cta span { flex: 1; }
.cta .cta-plane { width: 1.7rem; height: 1.7rem; }
.cta .cta-arrow { width: 1.1rem; height: 1.1rem; margin-left: .65rem; color: #bdbdbd; }
.cta:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff38, 0 8px 24px #00000026; }
.cta:active { transform: translateY(1px); box-shadow: inset 0 1px 0 #ffffff26; }
.cta:focus-visible { outline: 3px solid var(--black); outline-offset: 5px; }

.chat-demo {
  width: min(100%, 760px);
  margin: 6rem auto 0;
  text-align: left;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .3rem 1rem;
  color: var(--black);
}
.chat-control {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 50%;
  color: #555;
}
.chat-control .icon {
  width: 1.45rem;
  height: 1.45rem;
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 2.9rem;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}
.chat-profile { flex: 1; }
.chat-avatar svg { width: 2rem; height: 2rem; }
.chat-profile strong, .chat-profile span { display: block; }
.chat-profile strong { margin-bottom: .12rem; font-size: 1rem; }
.chat-profile span { color: #777; font-size: .8rem; }
.chat-actions { display: flex; align-items: center; gap: .15rem; }
.chat-canvas {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 570px;
  padding: 1.4rem .3rem;
  background: transparent;
}
.chat-date {
  align-self: center;
  margin-bottom: 1.5rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .09);
  color: #555;
  font-size: .75rem;
  font-weight: 700;
}
.message {
  position: relative;
  width: min(83%, 500px);
  margin-bottom: .85rem;
  padding: 1.15rem 1.2rem 1.5rem;
  border-radius: 1.15rem;
  box-shadow: none;
}
.bot-message { border-bottom-left-radius: .3rem; background: var(--soft); }
.user-message {
  align-self: flex-end;
  width: auto;
  border-bottom-right-radius: .3rem;
  background: var(--black);
  color: #fff;
}
.message-label {
  display: block;
  margin-bottom: .65rem;
  color: #777;
  font-size: .82rem;
  font-weight: 700;
}
.message > strong { display: block; margin-bottom: .55rem; font-size: 1.28rem; letter-spacing: -.035em; }
.message p { margin-bottom: 0; color: #505050; font-size: .96rem; line-height: 1.55; }
.user-message p { color: #fff; }
.message code { padding: .1rem .28rem; border-radius: .25rem; background: #e4e4e4; color: var(--black); font-family: Arial, Helvetica, sans-serif; font-size: .86em; }
.message dl { margin: 1rem 0 0; padding: .85rem 0 0; border-top: 1px solid #dedede; }
.message dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.message dt { color: #777; }
.message dd { margin: 0; font-weight: 700; }
.message time { position: absolute; right: .85rem; bottom: .45rem; color: #999; font-size: .68rem; }
.user-message time { color: #aaa; }
.compact-message { display: flex; align-items: flex-start; gap: .8rem; padding-right: 3.3rem; }
.compact-message strong { display: block; margin-bottom: .3rem; }
.message-status {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
}
.message-status .icon { width: 1.15rem; height: 1.15rem; }

.section { padding: 6.3rem 0; }
.section-heading { max-width: 900px; margin: 0 auto; }
h2 {
  margin-bottom: 1.7rem;
  font-size: clamp(3rem, 5.7vw, 5.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.075em;
  text-wrap: balance;
}
h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.06em;
}
.section-intro {
  max-width: 740px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.12rem;
  line-height: 1.72;
}

.features-section {
  padding: 7.5rem 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.5rem 2.5rem;
  margin-top: 4.2rem;
}
.feature-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 350px;
  padding: 2rem 1.8rem 2.3rem;
  background: transparent;
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.icon-disc {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
  margin: 0 auto 1.7rem;
  border-radius: 50%;
}
.icon-disc .icon { width: 1.85rem; height: 1.85rem; }
.feature-card h3, .usecase-card h3, .step h3 {
  margin-bottom: .85rem;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.23;
}
.feature-card p, .usecase-card p, .step p {
  max-width: 330px;
  margin: 0 auto;
  color: #555;
  font-size: 1rem;
  line-height: 1.68;
}

.watch-section {
  margin-top: 4rem;
  padding: 8rem 0;
}
.reading-section { max-width: 860px; margin: 0 auto; }
.section-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 2rem;
  border-radius: 50%;
}
.section-icon .icon { width: 1.9rem; height: 1.9rem; }
.reading-section h2 { max-width: 770px; margin-right: auto; margin-left: auto; }
.reading-section p {
  max-width: 750px;
  margin: 0 auto 1.25rem;
  color: #464646;
  font-size: 1.12rem;
  line-height: 1.8;
}
.reading-section p:last-child { margin-bottom: 0; }

.usecases-section { padding-top: 9rem; }
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem;
  margin-top: 4rem;
}
.usecase-card {
  min-height: 315px;
  padding: 2.6rem 2rem;
}
.usecase-card .icon { width: 2.7rem; height: 2.7rem; margin-bottom: 1.8rem; }
.usecase-card h3 { font-size: 1.52rem; }

.how-section { padding-top: 8rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem;
  margin-top: 4.2rem;
}
.step {
  min-height: 300px;
  padding: 2.3rem 1.7rem;
}
.step-number {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .84rem;
  font-weight: 700;
}
.step .icon { width: 2rem; height: 2rem; margin-bottom: 1.35rem; }
.note {
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 900px;
  margin: 5rem auto 0;
  padding: 3.2rem 2.3rem;
  color: var(--black);
}
.note .icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1.4rem; }
.note strong { margin-bottom: .8rem; font-size: 1.5rem; letter-spacing: -.035em; }
.note p { max-width: 680px; margin: 0; color: #555; font-size: 1rem; line-height: 1.7; }

.faq-section {
  margin-top: 4rem;
  padding: 8rem 0;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4.5rem 3.5rem;
  max-width: 1000px;
  margin: 4rem auto 0;
}
.faq-item {
  padding: 2.4rem 2rem 2.6rem;
}
.faq-item .icon { width: 1.85rem; height: 1.85rem; margin-bottom: 1.15rem; }
.faq-item h3 { margin-bottom: .9rem; font-size: 1.4rem; letter-spacing: -.035em; line-height: 1.3; }
.faq-item p { max-width: 710px; margin: 0 auto; color: #555; font-size: 1rem; line-height: 1.72; }

.closing-section {
  margin: 4rem 0;
  padding: 9rem 0;
}
.closing { max-width: 900px; margin: 0 auto; }
.closing > .icon { width: 2.5rem !important; height: 2.5rem !important; margin-bottom: 2rem !important; }
.closing h2 { font-size: clamp(4rem, 8vw, 7.5rem); }
.closing p { max-width: 700px; margin: 0 auto; color: #555; font-size: 1.16rem; line-height: 1.72; }
.site-footer {
  border-top: 1px solid #dedede;
  padding: 1.25rem 0 2rem;
  color: var(--gray);
  text-align: left;
  font-size: .875rem;
  line-height: 1.5;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--black); font-size: 1rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; white-space: nowrap; text-decoration: none; }
.brand-mark { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.footer-telegram { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--black); text-decoration: none; }
.footer-telegram .icon { width: 1rem; height: 1rem; }
.footer-telegram:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-description { margin: .25rem 0 0; }
.site-footer a:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; border-radius: .2rem; }
h1[id], h2[id] { scroll-margin-top: 2rem; }

@media (max-width: 850px) {
  .feature-grid, .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usecase-grid, .steps { grid-template-columns: 1fr; }
  .usecase-card, .step { min-height: 0; }
}

@media (max-width: 650px) {
  .site-footer { padding-top: 1rem; }
  .shell { width: min(100% - 28px, 1200px); }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero h1 { font-size: clamp(3.1rem, 13vw, 5rem); }
  .hero-lead { margin-top: 1.8rem; font-size: 1.2rem; }
  .hero-support { font-size: 1rem; }
  .cta { width: 100%; max-width: 360px; margin-top: 1.8rem; gap: .8rem; padding-inline: 1.1rem; font-size: 1rem; }
  .chat-demo { margin-top: 3rem; }
  .chat-head { gap: .45rem; padding-bottom: .75rem; }
  .chat-canvas { min-height: 0; padding: 1rem 0; }
  .message { width: 90%; }
  .user-message { width: auto; }
  .message > strong { font-size: 1.15rem; }
  .compact-message { padding-right: 2.5rem; }
  .section { padding: 3.5rem 0; }
  h2 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .section-intro, .reading-section p { font-size: 1.05rem; }
  .watch-section, .faq-section { margin-top: 1rem; }
  .closing-section { margin: 1rem 0; }
  .feature-grid, .faq-list { grid-template-columns: 1fr; margin-top: 2.25rem; gap: 1.75rem; }
  .feature-card { min-height: 0; padding: 1.25rem 1rem; }
  .icon-disc { margin-bottom: 1rem; }
  .usecase-grid, .steps { margin-top: 2.25rem; gap: 1.75rem; }
  .usecase-card, .step, .faq-item { padding: 1.5rem 1rem; }
  .note { margin-top: 2.5rem; padding: 2rem 1.3rem; }
  .closing h2 { font-size: clamp(3.3rem, 12vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .feature-card { transition: none; }
}
