:root {
  --bg: #000000;
  --card: #121212;
  --card-2: #161616;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #8b8b8b;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --green: #22c55e;
  --star: #facc15;
  --input: #0c0c0c;
  --radius: 14px;
  --header-h: 56px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f5f7;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --text: #0a0a0a;
  --muted: #6b7280;
  --input: #f3f4f6;
  color-scheme: light;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  padding: calc(var(--header-h) + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}

body.in-telegram {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 20% 18%, rgba(37, 99, 235, 0.18), transparent 55%);
  z-index: 0;
}

.header, main, footer { position: relative; z-index: 1; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.logo {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.logo-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-left: 6px;
  margin-top: 6px;
  color: var(--muted);
}

.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-btn, .icon-btn {
  height: 34px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font: 600 12px Inter, sans-serif;
  cursor: pointer;
}

.icon-btn { width: 34px; padding: 0; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font: 600 14px Inter, sans-serif;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: scale(0.98); background: var(--blue-2); }
.btn-sm { width: auto; height: 34px; padding: 0 12px; font-size: 12px; }
.btn-lg { min-height: 50px; font-size: 15px; border-radius: 10px; }

.hero { padding: 28px 0 8px; }
.hero-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.hero-top h1 {
  flex: 1;
  margin: 0;
  font-size: 24px;
  max-width: none;
}
.hero-laptop {
  flex: 0 0 148px;
  width: 148px;
  margin: -8px -8px 0 0;
}
.hero-laptop img {
  display: block;
  width: 148px;
  height: 148px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}
.badge {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

h1 { font-size: 28px; margin-bottom: 10px; }
h2 { font-size: 26px; text-align: center; }
h2 em { font-style: normal; color: var(--blue); }

.price {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.lead, .sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.sub { text-align: center; margin: 10px auto 22px; max-width: 36ch; }
.lead { margin-bottom: 18px; }

.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.checks li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.section { padding: 36px 0 8px; }

.cards, .reviews { display: grid; gap: 12px; }

.card, .review, .form, .acc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-ico { color: var(--blue); font-size: 16px; }
.card h3 { font-size: 16px; font-weight: 700; }
.pill {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card-price { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.card-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.card-desc { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }

.list { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.list li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.list li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review { padding: 16px; position: relative; overflow: hidden; }
.quote {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 56px;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  font-family: Georgia, serif;
}
html[data-theme="light"] .quote { color: rgba(0,0,0,0.06); }

.who { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.who strong { display: block; font-size: 14px; }
.who span { color: var(--muted); font-size: 12px; }
.ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.a1 { background: #1d4ed8; }
.a2 { background: #0f766e; }
.a3 { background: #7c3aed; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 12px; margin-bottom: 8px; }
.review p { font-size: 13px; line-height: 1.55; }

.faq { display: grid; gap: 8px; }
.acc { overflow: hidden; }
.acc-btn {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  padding: 16px;
  font: 600 14px Inter, sans-serif;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.chevron {
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.acc.open .chevron { transform: rotate(180deg); }
.acc-body {
  display: none;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.acc.open .acc-body { display: block; }

.form { padding: 16px; display: grid; gap: 12px; }
.row { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
input, textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 12px;
  font: 400 14px Inter, sans-serif;
  outline: none;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { border-color: var(--blue); }
.note, .or { text-align: center; color: var(--muted); font-size: 12px; }
.or { margin: 18px 0 10px; }

.socials { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.footer {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer .logo { justify-content: center; margin-bottom: 8px; }

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  background: #111827;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  z-index: 50;
  text-align: center;
}

@media (min-width: 520px) {
  body { max-width: 560px; margin: 0 auto; }
  .row { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 34px; }
}
