:root {
  --navy: #111827;
  --connection: #172554;
  --blue: #4f46e5;
  --cyan: #06b6d4;
  --canvas: #f8fafc;
  --surface: #f1f5f9;
  --border: #e2e8f0;
  --text: #111827;
  --muted: #64748b;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.1);
  --radius: 8px;
  --header-height: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(14px);
}

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

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 148px;
  height: auto;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 650;
  color: #334155;
}

.site-menu > a:not(.button) {
  padding: 10px 0;
}

.site-menu > a:not(.button):hover {
  color: var(--blue);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(40px, 1fr));
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.language-switch button {
  min-height: 34px;
  min-width: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.language-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

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

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

.button-secondary:hover {
  border-color: rgba(79, 70, 229, 0.45);
}

.button-small {
  min-height: 40px;
  padding: 10px 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

.section {
  padding: 88px 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

#top,
#features,
#audience,
#process,
#pricing,
#security,
#faq-title,
#cta-title {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.hero {
  padding-top: 74px;
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 56px;
  align-items: center;
}

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

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

p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-lead,
.section-heading p,
.mini-card p,
.module-card p,
.flow p,
.steps p,
.price-card p,
.faq p,
.site-footer p {
  color: var(--muted);
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 640px;
  font-size: 20px;
}

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

.product-preview {
  min-width: 0;
}

.preview-window {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-topbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

.preview-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.preview-topbar strong {
  margin-left: 8px;
  font-size: 14px;
}

.preview-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 386px;
}

.preview-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: grid;
  align-content: start;
  gap: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.preview-sidebar img {
  width: 36px;
  margin-bottom: 8px;
}

.preview-main {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.preview-row,
.schedule-card,
.chat-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.preview-label,
.metrics-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  align-self: start;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: #0e7490;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.schedule-card {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.time {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 850;
}

.schedule-card p,
.chat-preview p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.metrics-grid div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
}

.metrics-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.chat-preview {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
}

.telegram-dot {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.8);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  font-size: 18px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.mini-card,
.module-card,
.price-card,
.steps article,
.flow div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.mini-card {
  padding: 22px;
}

.mini-card p,
.module-card p,
.flow p,
.steps p,
.price-card p {
  margin: 10px 0 0;
}

.icon,
.flow-icon {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.icon::after,
.flow-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 3px;
  background: var(--blue);
}

.icon.bot::after,
.flow-icon.telegram::after {
  background: var(--cyan);
  clip-path: polygon(0 45%, 100% 0, 78% 100%, 50% 65%, 34% 86%);
}

.icon.modules::after,
.flow-icon.config::after {
  background: var(--connection);
  box-shadow: 9px 0 0 var(--cyan), 0 9px 0 var(--blue), 9px 9px 0 var(--connection);
  width: 7px;
  height: 7px;
}

.icon.tenant::after,
.flow-icon.lock::after {
  border-radius: 999px;
}

.split-section,
.benefits,
.final-cta {
  background: var(--white);
}

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

.check-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-list li,
.security-list li {
  position: relative;
  padding: 15px 16px 15px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  color: #334155;
  font-weight: 650;
}

.check-list li::before,
.security-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

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

.flow div {
  padding: 22px;
}

.compact {
  align-items: stretch;
}

.module-card {
  padding: 20px;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.audience-list span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: #334155;
  font-weight: 750;
}

.steps,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps article {
  padding: 24px;
}

.steps span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--connection);
  color: var(--white);
  font-weight: 850;
}

.price-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.featured {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.12);
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #334155;
}

.price-card li {
  padding-left: 22px;
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.price-card .button {
  margin-top: auto;
}

.pricing-note {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

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

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 14px;
  background: var(--surface);
}

.cta-panel h2 {
  max-width: 760px;
}

.cta-panel p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
}

.cta-actions {
  margin-top: 0;
  justify-content: flex-end;
}

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

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0;
}

summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 20px 18px;
}

.site-footer {
  padding: 42px 0;
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr) minmax(180px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.site-footer img {
  width: 138px;
  height: auto;
}

.site-footer p {
  max-width: 410px;
  margin: 18px 0 0;
  color: #cbd5e1;
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #e2e8f0;
  font-weight: 700;
}

.footer-contact span {
  color: #cbd5e1;
}

@media (max-width: 1180px) {
  .nav-shell,
  .section-inner {
    width: min(100% - 40px, 1040px);
  }

  .site-menu {
    gap: 12px;
  }

  .hero-grid,
  .split-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
    gap: 36px;
  }

  h1 {
    max-width: 600px;
    font-size: clamp(36px, 4.1vw, 48px);
    line-height: 1.06;
  }

  .card-grid.four,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    align-content: start;
    align-items: stretch;
    gap: 8px;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 20px max(20px, calc((100vw - 860px) / 2)) 28px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.16);
    z-index: 60;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 0;
    background: var(--white);
    z-index: 45;
  }

  .site-menu.is-open {
    display: grid;
  }

  .site-menu > a:not(.button) {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }

  .language-switch {
    width: min(100%, 260px);
  }

  .site-menu .button {
    width: min(100%, 280px);
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 52px;
  }

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

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 780px;
    font-size: clamp(36px, 6.5vw, 52px);
  }

  .product-preview {
    max-width: 680px;
    width: 100%;
  }

  .card-grid.three,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .check-list.two-column {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .section-inner {
    width: calc(100% - 28px);
  }

  .brand img {
    width: 126px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  h2 {
    font-size: 30px;
  }

  .hero-lead,
  .section-heading p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    grid-template-columns: 36px repeat(3, minmax(0, 1fr));
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
  }

  .preview-sidebar img {
    margin: 0;
  }

  .preview-row {
    display: grid;
  }

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

  .card-grid.four,
  .flow {
    grid-template-columns: 1fr;
  }

  .mini-card,
  .module-card,
  .flow div,
  .steps article,
  .price-card {
    padding: 18px;
  }

  .cta-panel {
    padding: 22px;
  }
}

@media (max-width: 340px) {
  .nav-shell,
  .section-inner {
    width: calc(100% - 20px);
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 26px;
  }

  .preview-main,
  .preview-sidebar {
    padding: 12px;
  }

  .preview-sidebar {
    grid-template-columns: 1fr;
  }

  .schedule-card {
    display: grid;
  }
}

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