:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --line: rgba(255,255,255,0.12);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --r: 18px;
  --r2: 22px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 700px at 20% 10%, rgba(105,120,255,0.35), transparent 60%),
              radial-gradient(900px 650px at 80% 0%, rgba(26,245,210,0.18), transparent 55%),
              radial-gradient(850px 700px at 70% 90%, rgba(255,120,190,0.18), transparent 55%),
              var(--bg);
}

a{ color: inherit; text-decoration: none; }
.container{ width:min(1100px, calc(100% - 32px)); margin: 0 auto; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,0.65);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{
  width: 42px; height: 42px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(105,120,255,0.8), rgba(26,245,210,0.55));
  color: rgba(0,0,0,0.75);
  font-weight: 900;
  letter-spacing: 0.5px;
}
.brand__name{ font-weight: 800; font-size: 16px; }
.brand__tag{ color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav{ display:flex; gap: 14px; flex-wrap: wrap; justify-content:flex-end; }
.nav a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover{ background: rgba(255,255,255,0.06); color: var(--text); }

.hero{ padding: 42px 0 26px; }
.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}
.hero h1{ margin: 0 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.muted{ color: var(--muted); }
.hero__cta{ display:flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero__badges{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 18px; }

.badge{
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

.section{ padding: 34px 0; }
.section--alt{
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2{ margin: 0 0 10px; font-size: 26px; }
.section p{ margin: 0 0 16px; }

.card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card__title{ font-weight: 800; margin-bottom: 4px; }
.card__subtitle{ color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.field{ display:block; margin: 10px 0; }
.field span{ display:block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
input{
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  outline: none;
}
input:focus{ border-color: rgba(105,120,255,0.65); }

.note{
  margin-top: 10px;
  min-height: 20px;
  color: rgba(26,245,210,0.9);
  font-size: 13px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.plan{
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  border-radius: var(--r2);
  padding: 16px;
}
.plan--popular{
  background: linear-gradient(180deg, rgba(105,120,255,0.15), rgba(255,255,255,0.05));
  border-color: rgba(105,120,255,0.35);
}
.pill{
  position:absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(105,120,255,0.25);
  border: 1px solid rgba(105,120,255,0.35);
}
.plan__head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.plan__name{ font-weight: 900; font-size: 18px; }
.plan__price{ color: rgba(26,245,210,0.95); font-weight: 800; }
.plan__list{ margin: 12px 0 14px; padding-left: 18px; color: var(--muted); }
.plan__list li{ margin: 8px 0; }

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.faq{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  border-radius: var(--r2);
  padding: 12px 14px;
  margin: 10px 0;
}
.faq summary{
  cursor:pointer;
  font-weight: 800;
}
.faq p{ margin-top: 10px; }

.footer{
  border-top: 1px solid var(--line);
  padding: 20px 0 90px;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.footer__title{ font-weight: 900; }

.btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight: 800;
}
.btn:hover{ background: rgba(255,255,255,0.09); }
.btn--primary{
  border-color: rgba(105,120,255,0.5);
  background: rgba(105,120,255,0.25);
}
.btn--primary:hover{ background: rgba(105,120,255,0.32); }
.btn--ghost{ background: rgba(255,255,255,0.03); }
.w-100{ width:100%; }

.chat-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(11,16,32,0.75);
  backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor:pointer;
  font-weight: 900;
}
.chat-fab__dot{
  width: 10px; height:10px;
  border-radius: 999px;
  background: rgba(26,245,210,0.95);
  box-shadow: 0 0 0 6px rgba(26,245,210,0.12);
}

.chat-panel{
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 20;
  width: min(360px, calc(100% - 36px));
  height: 520px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(11,16,32,0.75);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
}
.chat-panel.is-open{ display: flex; flex-direction: column; }

.chat-panel__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.chat-panel__title{ font-weight: 900; }
.chat-panel__subtitle{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.icon-btn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,0.09); }

.chat-panel__body{
  padding: 12px;
  flex: 1;
  overflow: auto;
}
.bubble{
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 16px;
  margin: 8px 0;
  border: 1px solid rgba(255,255,255,0.12);
}
.bubble--agent{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.bubble--user{
  margin-left: auto;
  background: rgba(105,120,255,0.22);
  border-color: rgba(105,120,255,0.35);
}
.hint{
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed rgba(255,255,255,0.14);
  padding-top: 10px;
}
.chat-panel__footer{
  display:flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.chat-input{
  flex: 1;
  border-radius: 14px;
}

@media (max-width: 920px){
  .hero__inner{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
}

/* ...оставь всё как было выше... */

.plan{
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  border-radius: var(--r2);
  padding: 16px;
}

/* ✅ FIX: give the "popular" card extra top padding so the ribbon doesn't overlap the price */
.plan--popular{
  background: linear-gradient(180deg, rgba(105,120,255,0.15), rgba(255,255,255,0.05));
  border-color: rgba(105,120,255,0.35);
  padding-top: 54px; /* was 16px via .plan */
}

.pill{
  position:absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(105,120,255,0.25);
  border: 1px solid rgba(105,120,255,0.35);
  z-index: 2;
  pointer-events: none;
}

/* ...дальше без изменений... */
