:root {
  --bg: #061013;
  --bg-deep: #03080a;
  --panel: rgba(14, 22, 28, 0.88);
  --panel-solid: #0d161b;
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #a4b2bd;
  --accent: #26a5e4;
  --accent-soft: rgba(38, 165, 228, 0.18);
  --glow-a: rgba(38, 165, 228, 0.22);
  --glow-b: rgba(73, 221, 166, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(54, 147, 186, 0.24), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(73, 221, 166, 0.16), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(38, 165, 228, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}

body::before {
  top: -10vw;
  left: -12vw;
  background: var(--glow-a);
}

body::after {
  right: -14vw;
  bottom: -18vw;
  background: var(--glow-b);
  animation-duration: 19s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(30px, 18px, 0) scale(1.08);
  }
}

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

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topnav a,
.back-link {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef7fb;
  backdrop-filter: blur(16px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.topnav a:hover,
.back-link:hover,
.doc-card:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-copy {
  padding-top: 24px;
}

.hero-seo {
  align-items: stretch;
}

.hero-subtext {
  margin-top: 14px !important;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  background: linear-gradient(180deg, #27a7e7, #1688c8);
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(38, 165, 228, 0.26);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6f2f9;
  font-weight: 700;
}

.telegram-icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}

.panel,
.doc-card,
.doc-layout,
.bot-preview {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel,
.doc-layout {
  background: linear-gradient(180deg, rgba(19, 28, 35, 0.94), rgba(9, 15, 20, 0.94));
}

.panel {
  border-radius: 34px;
  padding: 28px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.panel p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.doc-grid {
  display: grid;
  gap: 14px;
}

.doc-card {
  display: block;
  border-radius: 24px;
  padding: 18px 18px 20px;
  background: var(--panel-soft);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.doc-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.doc-card span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.doc-card em {
  display: inline-block;
  margin-top: 12px;
  font-style: normal;
  color: #f0f8fd;
  font-weight: 700;
}

.hero-side {
  position: relative;
}

.hero-side::before {
  content: "";
  position: absolute;
  inset: 20px 40px auto auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(38, 165, 228, 0.32), transparent 70%);
  filter: blur(10px);
}

.seo-panel {
  min-height: 100%;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(73, 221, 166, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(19, 28, 35, 0.94), rgba(9, 15, 20, 0.96));
  box-shadow: var(--shadow);
}

.seo-panel h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.05;
}

.seo-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.bot-preview {
  position: relative;
  width: min(100%, 410px);
  margin-left: auto;
  border-radius: 42px;
  padding: 18px 16px 16px;
  background:
    radial-gradient(circle at top center, rgba(47, 129, 103, 0.24), transparent 38%),
    linear-gradient(180deg, #121a20 0%, #0b1014 100%);
  overflow: hidden;
}

.bot-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.03), transparent 22%),
    radial-gradient(circle at 75% 18%, rgba(55, 201, 137, 0.06), transparent 24%);
  pointer-events: none;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.phone-pill,
.telegram-chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-pill {
  padding: 9px 12px;
  min-width: 76px;
  text-align: center;
  font-weight: 700;
}

.telegram-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: white;
  background: linear-gradient(180deg, #29a9eb, #1687c7);
  box-shadow: 0 10px 24px rgba(38, 165, 228, 0.24);
}

.chat-date {
  width: max-content;
  margin: 0 auto 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.message-bubble,
.user-bubble,
.menu-grid a {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 21, 27, 0.92);
}

.user-bubble {
  width: max-content;
  margin-left: auto;
  margin-bottom: 12px;
  padding: 11px 15px;
  background: linear-gradient(180deg, #9d48ff, #6f33ca);
  color: white;
  font-weight: 700;
}

.message-bubble {
  padding: 18px 18px 12px;
  margin-bottom: 14px;
}

.message-bubble h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.message-bubble p {
  margin: 0;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.92);
}

.message-time {
  display: block;
  margin-top: 12px;
  text-align: right;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
  color: #edf5fb;
}

.menu-grid a.wide {
  grid-column: 1 / -1;
}

.features {
  margin-top: 18px;
}

.section-copy {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcebf5;
  font-size: 14px;
  font-weight: 700;
}

.section-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

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

.feature-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 22, 28, 0.92), rgba(9, 15, 20, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 165, 228, 0.18), transparent 72%);
  pointer-events: none;
}

.feature-card-large {
  grid-column: span 2;
}

.feature-card-accent {
  border-color: rgba(38, 165, 228, 0.42);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(38, 165, 228, 0.1),
    0 0 34px rgba(38, 165, 228, 0.18);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 20px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.14;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 92%;
}

.feature-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.feature-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #edf7fc;
  font-size: 14px;
  font-weight: 700;
}

.faq-block {
  margin-top: 54px;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-item {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 22, 28, 0.92), rgba(9, 15, 20, 0.96));
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.seo-article .doc-section p,
.seo-article .doc-section li {
  color: #dbe8f1;
}

.doc-wrap {
  padding-top: 8px;
}

.doc-layout {
  width: min(880px, 100%);
  margin: 0 auto;
  border-radius: 34px;
  padding: 34px 34px 42px;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.doc-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.doc-header p {
  margin: 10px 0 0;
  max-width: 580px;
  color: var(--muted);
  line-height: 1.7;
}

.doc-meta {
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: #d8f2ff;
  font-weight: 700;
  white-space: nowrap;
}

.doc-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.doc-section p,
.doc-section li {
  color: #eaf2f7;
  line-height: 1.82;
  font-size: 16px;
}

.doc-section ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.doc-section li + li,
.doc-section p + p {
  margin-top: 8px;
}

.footer-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    order: 2;
  }

  .bot-preview {
    margin: 0 auto;
    width: min(100%, 420px);
  }

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

  .feature-card-large {
    grid-column: span 2;
  }

  .doc-header {
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .hero-copy {
    padding-top: 0;
  }

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

  .cta-row {
    margin-top: 24px;
  }

  .doc-layout,
  .panel {
    padding: 24px 18px 28px;
  }

  .bot-preview {
    margin-top: 6px;
    padding: 14px 12px 12px;
    border-radius: 28px;
  }

  .phone-bar {
    margin-bottom: 14px;
  }

  .message-bubble {
    padding: 16px 14px 10px;
  }

  .message-bubble h3 {
    font-size: 16px;
  }

  .message-bubble p {
    font-size: 15px;
  }

  .menu-grid a {
    min-height: 54px;
    font-size: 15px;
  }

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

  .features {
    margin-top: 28px;
  }

  .section-copy h2 {
    font-size: 30px;
  }

  .section-copy p {
    font-size: 16px;
  }

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

  .feature-card,
  .feature-card-large {
    grid-column: auto;
    min-height: auto;
    padding: 20px 18px;
    border-radius: 24px;
  }

  .feature-card h3 {
    font-size: 21px;
  }

  .feature-card p {
    max-width: 100%;
    font-size: 15px;
  }

  .seo-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .seo-panel h2 {
    font-size: 28px;
  }

  .seo-panel p {
    font-size: 16px;
  }

  .faq-item {
    padding: 18px;
    border-radius: 20px;
  }

  .faq-item h3 {
    font-size: 19px;
  }
}
