/* WL Sales — тёмная технологичная тема, акцент: холодный зелёный */
:root {
  --bg: #0b0f14;
  --bg-elev: #121821;
  --bg-soft: #171e29;
  --line: rgba(140, 170, 190, 0.14);
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #3dffa8;
  --accent-dim: rgba(61, 255, 168, 0.14);
  --accent-2: #1ec98a;
  --danger: #ff6b7a;
  --warn: #f0c14a;
  --ok: #3dffa8;
  --radius: 14px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 255, 168, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(40, 120, 255, 0.07), transparent 50%),
    linear-gradient(180deg, #0d131b 0%, var(--bg) 40%, #090c10 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7dffc4; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 20, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0;
}
.logo {
  font-weight: 800; font-size: 1.15rem; color: var(--text);
  letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 0.5rem;
}
.logo span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent);
}
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav-toggle {
  display: none; background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 0.45rem 0.7rem; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0.7rem 1.2rem; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04140d;
}
.btn-primary:hover { filter: brightness(1.05); color: #04140d; }
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.88rem; }
.btn-danger { background: rgba(255,107,122,.12); color: var(--danger); border-color: rgba(255,107,122,.3); }

.hero {
  padding: 4.5rem 0 3rem;
  display: grid; gap: 2rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 16ch;
  margin-bottom: 0.8rem;
}
.hero .lead { font-size: 1.08rem; max-width: 42ch; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); background: var(--bg-elev);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.hero-panel {
  background: linear-gradient(160deg, rgba(61,255,168,0.08), transparent 40%), var(--bg-elev);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem; box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
}
.hero-panel h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.hero-panel ul { margin: 0; padding: 0; list-style: none; }
.hero-panel li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.hero-panel li:last-child { border-bottom: 0; }
.hero-panel strong { color: var(--accent); font-family: var(--mono); font-weight: 600; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section { padding: 3.2rem 0; }
.section-head { margin-bottom: 1.6rem; max-width: 52ch; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.card-soft {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.card-soft h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.steps { counter-reset: step; }
.steps .card-soft { position: relative; padding-top: 1.6rem; }
.steps .card-soft::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0.9rem; right: 1rem;
  font-family: var(--mono); color: var(--accent); font-weight: 700; opacity: 0.7;
}

.filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem;
}
.filters select, .filters input, .form input, .form select, .form textarea {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 0.65rem 0.8rem; font: inherit; width: 100%;
}
.filters select { width: auto; min-width: 140px; }
.form label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.7rem 0 0.3rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: border-color .2s ease, transform .2s ease;
  animation: rise 0.5s ease both;
}
.product-card:hover { border-color: rgba(61,255,168,0.35); transform: translateY(-2px); }
.product-card .meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-size: 0.8rem; color: var(--muted);
}
.pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--accent-dim); color: var(--accent);
}
.pill.muted { background: rgba(139,154,171,0.12); color: var(--muted); }
.pill.warn { background: rgba(240,193,74,0.12); color: var(--warn); }
.pill.danger { background: rgba(255,107,122,0.12); color: var(--danger); }
.product-card h3 { font-size: 1.05rem; margin: 0; }
.product-card .subnet { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-2); }
.specs {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.specs th, .specs td { text-align: left; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.specs th { color: var(--muted); font-weight: 500; width: 40%; }
.prices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-top: auto;
}
.price-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.55rem 0.45rem; text-align: center;
}
.price-box .lbl { display: block; font-size: 0.68rem; color: var(--muted); margin-bottom: 0.15rem; }
.price-box .val { font-weight: 800; font-size: 0.92rem; color: var(--text); }
.price-box.accent { border-color: rgba(61,255,168,0.35); background: var(--accent-dim); }
.price-box.accent .val { color: var(--accent); }

.flash {
  border-radius: 12px; padding: 0.8rem 1rem; margin: 1rem 0;
  border: 1px solid var(--line); animation: fadein .3s ease;
}
.flash-success { background: rgba(61,255,168,0.1); border-color: rgba(61,255,168,0.3); color: var(--ok); }
.flash-error { background: rgba(255,107,122,0.1); border-color: rgba(255,107,122,0.3); color: var(--danger); }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
table.data th, table.data td {
  text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.site-footer {
  margin-top: 3rem; border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem;
}
.footer-grid a { color: var(--muted); display: inline-block; margin: 0.2rem 0; }
.footer-grid a:hover { color: var(--accent); }
.disclaimer {
  font-size: 0.85rem; color: var(--muted);
  border-left: 2px solid var(--accent); padding-left: 0.8rem; margin: 1rem 0;
}

.page-narrow { max-width: 720px; }
.faq details {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq details[open] summary { color: var(--accent); margin-bottom: 0.5rem; }

/* Admin */
.admin-body { background: #0a0e13; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-nav {
  background: #0e141c; border-right: 1px solid var(--line); padding: 1.2rem 1rem;
}
.admin-nav .logo { margin-bottom: 1.4rem; display: block; }
.admin-nav a {
  display: block; color: var(--muted); padding: 0.45rem 0.6rem; border-radius: 8px;
  margin-bottom: 0.2rem; font-size: 0.92rem;
}
.admin-nav a:hover, .admin-nav a.is-active { background: var(--accent-dim); color: var(--accent); }
.admin-main { padding: 1.4rem 1.5rem 2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1.4rem; }
.stat {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 1rem;
}
.stat .n { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat .l { font-size: 0.8rem; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(10px); transition: .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .product-grid, .grid-4, .stat-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav { display: none; width: 100%; }
  .nav.is-open { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 0.8rem; }
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .hero { padding-top: 2.5rem; }
  .hero-grid, .grid-3, .product-grid, .grid-2, .grid-4, .stat-grid, .footer-grid, .form .row, .prices {
    grid-template-columns: 1fr;
  }
}
