:root {
  --bg: #070b14;
  --bg-2: #0e1628;
  --card: #121a2c;
  --line: rgba(124, 255, 212, 0.18);
  --text: #f4f7ff;
  --muted: #c5d0e6;
  --mint: #7cffd4;
  --mint-deep: #04241c;
  --gold: #f3c96b;
  --gold-deep: #2a1f08;
  --tg: #2aabee;
  --tg-deep: #04283a;
  --danger: #ff9b9b;
  --ok: #7cffd4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  color-scheme: dark;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(124, 255, 212, 0.16), transparent 52%),
    radial-gradient(820px 420px at 92% 0%, rgba(243, 201, 107, 0.12), transparent 48%),
    radial-gradient(600px 300px at 50% 100%, rgba(42, 171, 238, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--mint); text-decoration: none; }
a:hover { color: #b6ffe8; }
h1, h2, h3, .display {
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 22px 0 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(124, 255, 212, 0.25), 0 8px 24px rgba(124, 255, 212, 0.12);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  flex: 1 1 280px;
  flex-wrap: wrap;
  font-size: 14px;
  min-width: 0;
}
.nav-links a { color: var(--muted); white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--mint-deep); white-space: nowrap; }
.nav-links .btn:hover { color: var(--mint-deep); }

.hero {
  padding: 48px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.hero h1 { font-size: clamp(32px, 5vw, 64px); line-height: 1.08; margin: 14px 0 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 42rem; line-height: 1.55; }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); font-size: 13px; margin-top: 12px; line-height: 1.5; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(180deg, #9fffe0, var(--mint));
  color: var(--mint-deep);
  box-shadow: 0 10px 28px rgba(124, 255, 212, 0.28);
}
.btn-primary:hover { color: var(--mint-deep); box-shadow: 0 14px 34px rgba(124, 255, 212, 0.38); }
.btn-gold {
  background: linear-gradient(180deg, #ffe39a, var(--gold));
  color: var(--gold-deep);
  box-shadow: 0 10px 28px rgba(243, 201, 107, 0.28);
}
.btn-gold:hover { color: var(--gold-deep); }
.btn-tg {
  background: linear-gradient(180deg, #5bc4f7, var(--tg));
  color: #041820;
  box-shadow: 0 10px 28px rgba(42, 171, 238, 0.32);
}
.btn-tg:hover { color: #041820; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(124, 255, 212, 0.45); background: rgba(124, 255, 212, 0.06); }
.btn-danger {
  background: rgba(255, 139, 139, 0.08);
  color: var(--danger);
  border: 1px solid rgba(255, 139, 139, 0.35);
}
.btn-danger:hover { color: var(--danger); background: rgba(255, 139, 139, 0.16); }

.phone {
  background: linear-gradient(180deg, #1c2740, #101726);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 18px 18px 22px;
  box-shadow: var(--shadow);
  position: relative;
  min-width: 0;
}
.phone::before {
  content: "";
  display: block;
  width: 86px;
  height: 8px;
  border-radius: 99px;
  background: #2a3348;
  margin: 2px auto 14px;
}
.phone-top {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #132033, #0d1524);
  border: 1px solid rgba(124, 255, 212, 0.1);
  border-radius: 18px 18px 18px 6px;
  padding: 16px 16px 18px;
  line-height: 1.45;
  font-size: 15px;
  color: var(--text);
}
.bubble b { color: #fff; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 0 8px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
  background: rgba(124, 255, 212, 0.12);
  color: var(--mint);
}
.step-num.gold { background: rgba(243, 201, 107, 0.14); color: var(--gold); }
.step-num.tg { background: rgba(42, 171, 238, 0.16); color: #8ad6ff; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0 48px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  min-width: 0;
}
.card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.3; }
.card p { color: var(--muted); margin: 0; line-height: 1.55; }
.card p + p { margin-top: 10px; }
.card p b, .card li { color: var(--text); }
.price { font-size: 28px; color: var(--gold); margin-top: 12px; font-family: "Unbounded", sans-serif; }
.product { margin: 8px 0 36px; }
.product-card { display: grid; gap: 14px; }
.product-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.product-card h2 { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 0; line-height: 1.2; }
.product-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
  display: grid;
  gap: 6px;
}
.product-list li::marker { color: var(--mint); }
.product-shot {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 18px;
  background: #0b1220;
  box-shadow: 0 0 0 1px rgba(124, 255, 212, 0.25);
}
.footer {
  color: var(--muted);
  font-size: 13px;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.footer b { color: var(--text); }
.footer-legal { display: grid; gap: 6px; max-width: 36rem; min-width: 0; line-height: 1.5; }
.footer-links { display: flex; gap: 12px 16px; flex-wrap: wrap; }

.cabinet {
  width: min(720px, 100%);
  margin: 32px auto 80px;
  min-width: 0;
}
.cabinet h1 { font-size: clamp(28px, 5vw, 34px); margin: 8px 0 24px; }
.legal { display: grid; gap: 16px; }
.legal .card { display: grid; gap: 16px; }
.legal .card h3 { margin: 0; }
.legal .card p + p { margin-top: 0; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  flex-wrap: wrap;
}
.row:last-child { border-bottom: 0; }
.row > span:first-child {
  color: var(--muted);
  flex: 1 1 8rem;
  min-width: 0;
}
.row > b,
.row > .pill,
.row > .btn {
  flex: 0 1 auto;
  max-width: 100%;
}
.row b {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--danger); font-weight: 700; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-ok { background: rgba(124, 255, 212, 0.12); color: var(--mint); }
.pill-gold { background: rgba(243, 201, 107, 0.16); color: var(--gold); }
.pill-bad { background: rgba(255, 139, 139, 0.14); color: var(--danger); }
.pill-tg { background: rgba(42, 171, 238, 0.16); color: #8ad6ff; }
.pill-mute { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

.form-grid { display: grid; gap: 10px; margin: 18px 0; }
label { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
label.stack { flex-direction: column; align-items: stretch; gap: 8px; flex-wrap: nowrap; }
select, input[type="checkbox"] { accent-color: var(--mint); }
select,
input[type="text"],
input[type="password"],
input[type="time"] {
  background: #0d1524;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  width: 100%;
  min-width: 0;
}
select:focus,
input:focus {
  outline: 0;
  border-color: rgba(124, 255, 212, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 255, 212, 0.1);
}
.error {
  background: rgba(255, 139, 139, 0.12);
  color: var(--danger);
  border-radius: 14px;
  padding: 12px 14px;
}
.crm-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
a.crm-card { text-decoration: none; color: inherit; display: grid; gap: 8px; }
a.crm-card:hover { border-color: var(--mint); }
.company-btn {
  width: 100%;
  text-align: left;
  background: #0d1524;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font: inherit;
  display: grid;
  gap: 4px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.company-btn span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.company-btn:hover { border-color: var(--mint); transform: translateY(-1px); }
.card.billing-warn {
  border-color: rgba(243, 201, 107, 0.45);
  background: #1a160c;
}
.card.billing-stop {
  border-color: rgba(255, 139, 139, 0.4);
  background: #1a1014;
}
.card.billing-warn h3,
.card.billing-stop h3 { color: var(--text); }
.card.billing-warn p,
.card.billing-stop p { color: var(--muted); }
.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  align-items: center;
}
.actions-row form { margin: 0; max-width: 100%; }
.preview {
  margin-top: 24px;
  background: linear-gradient(180deg, #132033, #0d1524);
  border: 1px solid rgba(124, 255, 212, 0.1);
  border-radius: 18px;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
  color: var(--text);
}
.alt-login {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
.alt-login summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}
.alt-login .card { margin-top: 12px; }

@media (max-width: 980px) {
  .hero, .grid, .steps { grid-template-columns: 1fr; }
  .nav-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .hero { padding: 28px 0 16px; gap: 24px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .grid, .steps { padding-bottom: 24px; }
  .product-head { align-items: flex-start; }
  .cabinet { margin-top: 20px; }
  .row b { justify-content: flex-start; text-align: left; }
}
