:root {
  --bg: #070a12;
  --bg-soft: #0b1020;
  --bg-elevated: #111827;
  --surface: rgba(15, 23, 42, 0.82);
  --surface-solid: #101827;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(56, 189, 248, 0.36);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-strong: #22d3ee;
  --secondary: #8b5cf6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 34px rgba(34, 211, 238, 0.22);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.94) 0%, rgba(7, 10, 18, 1) 46%, rgba(10, 15, 28, 1) 100%),
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.04) 0 1px, transparent 1px 96px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: 64px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 21px;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.72);
  outline-offset: 3px;
}

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

.narrow {
  max-width: 840px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight {
  padding: 44px 0;
}

.section-header {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-header h2 + p {
  margin-top: 18px;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(34, 211, 238, 0.08);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-success {
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
}

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

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

.btn-primary {
  color: #03111f;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.32);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.72);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(17, 24, 39, 0.94);
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.telegram-link::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.7 4.3c.3-1.1-.8-2-1.8-1.5L2.8 10.3c-1.2.5-1.1 2.2.1 2.6l4.4 1.4 1.7 5.2c.4 1.1 1.8 1.4 2.5.5l2.4-2.9 4.5 3.3c.9.7 2.2.2 2.5-.9l3.3-15.2zM8.1 13.3l9.7-6.1-7.8 7.3-.3 3.1-1.6-4.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.7 4.3c.3-1.1-.8-2-1.8-1.5L2.8 10.3c-1.2.5-1.1 2.2.1 2.6l4.4 1.4 1.7 5.2c.4 1.1 1.8 1.4 2.5.5l2.4-2.9 4.5 3.3c.9.7 2.2.2 2.5-.9l3.3-15.2zM8.1 13.3l9.7-6.1-7.8 7.3-.3 3.1-1.6-4.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-nav .telegram-link {
  color: var(--primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 78px;
  gap: 24px;
}

.logo-link,
.footer-logo {
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  width: 190px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 1px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  overflow: hidden;
  padding-top: 78px;
  padding-bottom: 88px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(34, 211, 238, 0.12), transparent 32%),
    linear-gradient(250deg, rgba(139, 92, 246, 0.12), transparent 38%);
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 54px;
}

.hero-copy,
.hero-grid > *,
.split-grid > * {
  position: relative;
  z-index: 1;
}

.hero-lead,
.page-hero p {
  max-width: 720px;
  margin-top: 22px;
  font-size: 19px;
}

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

.tech-stack {
  margin-top: 26px;
  color: #cbd5e1;
  font-size: 14px;
}

.dashboard {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(7, 10, 18, 0.96));
  box-shadow: var(--shadow), var(--glow);
  animation: floatY 6s ease-in-out infinite;
}

.dashboard::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  pointer-events: none;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard h2 {
  margin-top: 14px;
  font-size: 28px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 14px;
  font-weight: 800;
}

.live-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.74);
}

.uptime-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.78);
}

.uptime-panel span {
  color: var(--muted);
}

.uptime-panel strong {
  color: var(--primary-strong);
  font-size: 34px;
}

.metric-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.metric-row {
  display: grid;
  grid-template-columns: 94px 1fr 46px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.metric-row b {
  color: var(--text);
  text-align: right;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #1f2937;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--secondary));
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.status-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.76);
  font-size: 14px;
}

.status-ok,
.status-warn {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-ok {
  background: var(--success);
}

.status-warn {
  background: var(--warning);
}

.metrics-grid,
.cards-grid,
.pricing-grid,
.capability-grid,
.tag-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card,
.card,
.mini-card,
.price-card,
.step,
.solution-panel,
.contact-form,
.contact-aside,
.cta-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(11, 16, 32, 0.78));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.metric-card {
  min-height: 126px;
  padding: 22px;
}

.metric-card strong {
  display: block;
  color: var(--primary-strong);
  font-size: 34px;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

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

.card,
.mini-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover,
.mini-card:hover,
.price-card:hover,
.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.card img {
  width: 74px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 16px;
}

.card h3 + p,
.card h2 + p,
.price-card h3 + p,
.price-card h2 + p,
.step h3 + p {
  margin-top: 12px;
}

.card a:not(.btn) {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 800;
}

.problem-section,
.muted-band,
.audience-section {
  background: rgba(11, 16, 32, 0.48);
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

.check-list,
.feature-list {
  display: grid;
  gap: 13px;
}

.check-list li,
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: #cbd5e1;
}

.check-list li::before,
.feature-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--success);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.38);
}

.danger-list li::before {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.28);
}

.solution-panel {
  padding: 30px;
}

.solution-panel h3 {
  margin-bottom: 20px;
}

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

.mini-card {
  min-height: 94px;
  color: #dbeafe;
  font-weight: 800;
}

.notice {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 8px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.09);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

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

.step {
  min-height: 186px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #03111f;
  background: var(--primary-strong);
  font-weight: 900;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.price-card.featured {
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
}

.price-card strong {
  display: block;
  margin-top: 18px;
  color: var(--primary-strong);
  font-size: 15px;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.price-card li {
  position: relative;
  padding-left: 22px;
  color: #cbd5e1;
  font-size: 15px;
}

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

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

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

.tag-grid span {
  min-height: 62px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.64);
  font-weight: 800;
}

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

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-left: 14px;
  border-radius: 50%;
  color: #03111f;
  background: var(--primary);
  text-align: center;
  line-height: 26px;
}

.faq-item.is-open button::after {
  content: "-";
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-panel > p {
  overflow: hidden;
  padding: 0 20px;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-panel > p {
  padding-bottom: 20px;
}

.final-cta {
  padding-top: 70px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
}

.cta-panel h2 + p {
  margin-top: 14px;
}

.page-hero {
  overflow: hidden;
  padding-top: 82px;
  padding-bottom: 70px;
}

.page-illustration {
  justify-self: end;
  width: min(100%, 420px);
  max-height: 320px;
  object-fit: contain;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.76);
}

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

th {
  color: var(--primary);
  background: rgba(7, 10, 18, 0.54);
}

td {
  color: #cbd5e1;
}

.contact-section {
  padding-top: 40px;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.contact-form,
.contact-aside {
  padding: 26px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  color: #dbeafe;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 10, 18, 0.62);
  color: var(--text);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--primary);
}

.form-note {
  min-height: 26px;
  color: var(--primary-strong);
}

.form-note.is-error {
  color: #fecaca;
}

.contact-aside {
  display: grid;
  gap: 14px;
}

.contact-aside a,
address a {
  color: var(--primary);
}

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: #070a12;
}

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

.footer-grid h2 {
  margin-bottom: 14px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-grid nav,
.footer-grid address {
  display: grid;
  align-content: start;
  gap: 9px;
  font-style: normal;
}

.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-grid p {
  max-width: 280px;
  margin-top: 14px;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

html.js .reveal {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    min-height: calc(100vh - 78px);
    padding: 28px 24px;
    background: rgba(7, 10, 18, 0.98);
    border-top: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: grid;
    align-content: start;
    gap: 6px;
  }

  .site-nav a {
    min-height: 52px;
    padding: 14px 0;
    font-size: 22px;
  }

  .header-cta {
    display: none;
  }

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

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

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

@media (max-width: 920px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .section {
    padding: 74px 0;
  }

  .hero-grid,
  .split-grid,
  .demo-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .dashboard,
  .page-illustration {
    justify-self: stretch;
  }

  .metrics-grid,
  .cards-grid,
  .capability-grid,
  .tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .logo-link img {
    width: 168px;
  }

  .site-nav {
    inset: 70px 0 auto 0;
    min-height: calc(100vh - 70px);
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-lead,
  .page-hero p {
    font-size: 17px;
  }

  .metrics-grid,
  .cards-grid,
  .pricing-grid,
  .capability-grid,
  .tag-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .dashboard {
    padding: 18px;
  }

  .dashboard h2 {
    font-size: 24px;
  }

  .dashboard-top {
    display: grid;
  }

  .metric-row {
    grid-template-columns: 82px 1fr 42px;
  }

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

  .btn {
    width: 100%;
  }

  .contact-form,
  .contact-aside,
  .cta-panel,
  .solution-panel {
    padding: 20px;
  }

  th,
  td {
    padding: 13px;
  }

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