:root {
  --bg: #070f1a;
  --bg-raise: #0d1a2b;
  --bg-soft: #122339;
  --bg-input: #060d17;
  --line: #1e3350;
  --text: #eef3f9;
  --muted: #9fb3c8;
  --yellow: #f0ba1a;
  --yellow-deep: #c99412;
  --blue: #2f74c4;
  --blue-bright: #5a9be6;
  --ok: #7ccf8a;
  --danger: #ef7d6d;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 85% -8%, rgba(47, 116, 196, 0.28), transparent 60%),
    radial-gradient(700px 380px at -10% 18%, rgba(240, 186, 26, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: var(--blue-bright); }
a:hover { color: var(--yellow); }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 6vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(7, 15, 26, 0.88);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand img { height: 26px; width: auto; }
.brand b { color: var(--yellow); font-weight: 700; }

.top nav, .subnav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.top a, .linkish { color: var(--muted); text-decoration: none; }
.top a:hover, .linkish:hover { color: var(--text); }
.top a.btn { color: #1a1300; }
.top nav form { margin: 0; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

main { padding: 0 6vw 4rem; }
.hero, .section, .panel, .auth { max-width: 1120px; margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 2.5rem 0 2rem;
}
.hero-art { display: grid; place-items: center; }
.hero-art img {
  width: 100%;
  max-width: 640px;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.45));
}
.hero h1 { max-width: none; font-size: clamp(1.85rem, 3vw, 2.7rem); }
.hero .lead { max-width: none; }
.hl { color: var(--yellow); }
.hl-blue { color: var(--blue-bright); }

.kicker {
  color: var(--yellow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.panel h1, .auth h1 { max-width: 16ch; }

h2 { font-size: 1.7rem; margin: 0 0 0.6rem; }
h3 { margin: 0 0 0.35rem; }
.lead, .intro { color: var(--muted); max-width: 46rem; }
.lead { font-size: 1.12rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.pills li, .badge {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.badge.ok { color: var(--ok); }
.badge.warn { color: var(--yellow); }
.badge.danger { color: var(--danger); }

.hero-actions, .cta-row, .row-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn, button.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  color: #1a1300;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(240, 186, 26, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: #1a1300; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(240, 186, 26, 0.3); }

.btn.small { padding: 0.42rem 0.9rem; box-shadow: none; }
.btn.ghost, button.ghost { background: transparent; color: var(--text); border: 1px solid var(--blue); box-shadow: none; }
.btn.ghost:hover { background: rgba(47, 116, 196, 0.15); color: var(--text); }
.btn.danger, button.danger { background: transparent; color: var(--danger); border: 1px solid #7a3a32; box-shadow: none; }

.section { padding: 3rem 0 1rem; }
.grid { display: grid; gap: 1rem; }
.advantages { grid-template-columns: repeat(3, 1fr); }
.plans { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 1.4rem; }

.card {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-raise));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.feature { border-top: 3px solid var(--blue); }
.feature:nth-child(even) { border-top-color: var(--yellow); }

.plan { display: flex; flex-direction: column; padding: 1.6rem; position: relative; overflow: hidden; }
.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--yellow);
}
.plan-blue::before { background: var(--blue); }
.plan h3 { font-size: 1.4rem; }
.plan .tagline { color: var(--muted); margin: 0; }
.plan .btn { text-align: center; margin-top: auto; }

.card ul { margin: 0.8rem 0 1.2rem; padding-left: 1.1rem; color: var(--muted); }
.card li::marker { color: var(--yellow); }
.price { font-size: 2.2rem; font-weight: 700; margin: 0.6rem 0 0.2rem; }
.price span { font-size: 0.95rem; color: var(--muted); font-weight: 400; }

.section-title { text-align: center; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.6rem; }
.section-title + .grid, .section-title + .video, .section-title + .faq { margin-top: 1.6rem; }
.intro.center + * { margin-top: 1.6rem; }
.section-title .accent { color: var(--yellow); }
.testimonials { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.testimonial { display: flex; flex-direction: column; gap: 0.9rem; }
.testimonial blockquote { margin: 0; color: var(--muted); flex: 1; }
.stars { margin: 0; color: var(--yellow); letter-spacing: 0.12em; }
.stars span { color: var(--line); }
.author { display: flex; align-items: center; gap: 0.75rem; }
.author div { display: grid; }
.author .muted { font-size: 0.85rem; }
.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.9rem;
}

.video {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(47, 116, 196, 0.12);
  background: #000;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  color: var(--muted);
  background: radial-gradient(circle at 50% 40%, var(--bg-soft), var(--bg));
}

.faq { max-width: 820px; margin-left: auto; margin-right: auto; display: grid; gap: 0.7rem; }
.faq details {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary::marker { color: var(--yellow); }
.faq details p { color: var(--muted); margin: 0.6rem 0 0; }

.cta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
}

footer {
  margin-top: 2rem;
  padding: 2rem 6vw 2.4rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(4, 9, 16, 0.6);
}
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 0.6rem; justify-items: center; text-align: center; }
.footer-inner p { margin: 0; max-width: 52rem; }
.footer-inner img { height: auto; }

.auth, .panel { padding-top: 2rem; }
form.stack, .stack { display: grid; gap: 0.8rem; }
label { display: grid; gap: 0.3rem; color: var(--muted); font-size: 0.92rem; }

.url-name {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.url-name:focus-within { border-color: var(--blue); }

.url-name input {
  flex: 1;
  width: auto;
  border: 0;
  border-radius: 0;
  min-width: 0;
}

.url-suffix {
  color: var(--muted);
  padding-right: 0.85rem;
  white-space: nowrap;
}

input, select, textarea {
  width: 100%;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
.url-name input:focus { border: 0; }

textarea { min-height: 8rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--text); }
.choice label { display: flex; gap: 0.4rem; align-items: center; white-space: nowrap; }
.choice input { width: auto; accent-color: var(--yellow); }
.card-fields[hidden] { display: none; }

.flash, .error {
  max-width: 1120px;
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
}

.flash.ok { background: #10301f; color: var(--ok); }
.flash.err, .error { background: #3a1d1a; color: #ffc7be; }

.subnav { margin: 1.2rem 0 1.4rem; }
.subnav a { text-decoration: none; color: var(--muted); }
.subnav a.on { color: var(--yellow); border-bottom: 2px solid var(--yellow); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.35rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.thread { display: grid; gap: 0.8rem; margin: 1rem 0; }
.message { border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; background: var(--bg-raise); }
.message.staff { border-color: var(--yellow-deep); }
.message header { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.88rem; }
.muted { color: var(--muted); }
.callout {
  background: #3a1d1a;
  color: #ffc7be;
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.secret { word-break: break-all; font-family: ui-monospace, Consolas, monospace; }
.pix { word-break: break-all; background: var(--bg-input); border-radius: 12px; padding: 0.8rem; border: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

@media (max-width: 860px) {
  .advantages, .plans, .split { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; gap: 0.5rem; }
  .hero-art img { max-width: 460px; }
  .top { position: static; }
  .hide-sm { display: none; }
  h1, .panel h1, .auth h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
