/* =====================================================================
   Личный AI-агент — стили сайта
   Тёмный техно-стиль: градиентные акценты, стеклянные карточки, неон.
   ===================================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef7;
  --muted: #98a4b8;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-3: #4f46e5;
  --good: #34d399;
  --grad: linear-gradient(120deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, rgba(34,211,238,.16), rgba(168,85,247,.16));
  --radius: 18px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background layers */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(34, 211, 238, 0.12), transparent 55%),
    var(--bg);
}
.grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(99,102,241,.55);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--grad);
  color: #04121a;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(99,102,241,.4); }
.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}
.burger svg { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13.5px;
  font-family: "JetBrains Mono", monospace;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
}
.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 26px 0 22px;
  max-width: 900px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 10px 32px rgba(99,102,241,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(99,102,241,.45); }
.btn-ghost {
  background: var(--card);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--card-hover); transform: translateY(-2px); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.stat {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat .label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.about-text p strong { color: var(--text); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .2s, background .2s, transform .2s;
}
.feature:hover { border-color: var(--border-strong); background: var(--card-hover); transform: translateY(-3px); }
.feature .ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--grad-soft);
  display: grid; place-items: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.step .n {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step .n::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grad);
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Table (one-time) */
.table-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
tbody td {
  padding: 17px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .18s; }
tbody tr:hover { background: rgba(255,255,255,0.025); }
td.price {
  white-space: nowrap;
  text-align: right;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--text);
}
.note-inline { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.note-inline b { color: var(--accent); font-family: "JetBrains Mono", monospace; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, background .2s;
}
.plan:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 24px 60px rgba(99,102,241,.22);
}
.plan .tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #04121a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan .name { font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700; }
.plan .desc { color: var(--muted); font-size: 14px; margin: 8px 0 20px; min-height: 42px; }
.plan .price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.plan .price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan .per { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 0 0 26px; display: grid; gap: 11px; }
.plan ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); align-items: flex-start; }
.plan ul li b { color: var(--text); font-weight: 600; }
.plan ul li .tick { color: var(--good); flex-shrink: 0; margin-top: 1px; }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }
.plan .btn-ghost { border-color: var(--border-strong); }
.plan.featured .btn-ghost { background: var(--grad); color: #04121a; border-color: transparent; }

.discount-banner {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 15px;
  color: var(--muted);
}
.discount-banner .ic { color: var(--accent); }
.discount-banner b { color: var(--text); }

/* Not included */
.notinc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.notinc .item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.notinc .item .x { color: #f87171; font-family: "JetBrains Mono", monospace; font-weight: 700; }
.notinc .item h3 { font-size: 16px; font-weight: 600; margin: 10px 0 6px; }
.notinc .item p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
.faq-item button .plus { color: var(--accent); font-family: "JetBrains Mono", monospace; transition: transform .2s; flex-shrink: 0; }
.faq-item.open button .plus { transform: rotate(45deg); }
.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item .answer p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-family: "Space Grotesk", sans-serif; font-size: 22px; margin-bottom: 12px; }
.contact-info p { color: var(--muted); margin-bottom: 24px; }
.contact-channels { display: grid; gap: 12px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  transition: border-color .2s, background .2s;
}
.channel:hover { border-color: var(--border-strong); background: var(--card-hover); }
.channel .ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--grad-soft); display: grid; place-items: center; color: var(--accent); flex-shrink: 0;
}
.channel .c-label { font-size: 13px; color: var(--muted); }
.channel .c-value { font-size: 15.5px; font-weight: 600; }

form.contact-form {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,.14);
}
.field select { appearance: none; -webkit-appearance: none; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 110px; }
.form-status {
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 14.5px;
}
.form-status.ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: #a7f3d0; }
.form-status.err { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fecaca; }
.form-hint { margin-top: 16px; font-size: 13px; color: var(--muted); }

footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
}
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px 24px;
    background: rgba(7,11,20,.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }
  .burger { display: block; }
  .stats { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .notinc { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 60px 0 56px; }
  .stats { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  thead th, tbody td { padding: 14px 16px; }
  td.price { white-space: normal; }
}
