/* Лендинг «Работяга» — фирменный дизайн.
   Токены перенесены из web/ (Tailwind slate + fuchsia-акцент, тёмная тема — дефолт). */

:root {
  --graphite: #101827;      /* фон плашки логотипа */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --fuchsia-300: #f0abfc;
  --fuchsia-400: #e879f9;
  --fuchsia-500: #d946ef;
  --fuchsia-600: #c026d3;
  --fuchsia-700: #a21caf;
  --fuchsia-900: #701a75;

  --red-accent: #e52b20;    /* красный из логотипа */
  --emerald-500: #10b981;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;

  --bg: var(--slate-950);
  --panel: rgba(15, 23, 42, 0.55);
  --panel-solid: var(--slate-900);
  --border: var(--slate-800);
  --border-soft: rgba(51, 65, 85, 0.6);
  --text: var(--slate-100);
  --text-muted: var(--slate-400);
  --text-faint: var(--slate-500);
  --accent: var(--fuchsia-500);

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --maxw: 72rem;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* фоновое свечение акцентом */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(217, 70, 239, 0.16), transparent 60%),
    radial-gradient(46rem 34rem at 8% 6%, rgba(229, 43, 32, 0.10), transparent 55%);
  pointer-events: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  font-weight: 600;
}

.accent { color: var(--fuchsia-400); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.brand img { width: 30px; height: 30px; border-radius: 0.4rem; }

.nav {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
  align-items: center;
}

.nav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav a:hover { color: var(--text); }

.nav a.cta {
  color: var(--slate-50);
  background: var(--fuchsia-700);
  border-color: var(--fuchsia-600);
}

.nav a.cta:hover { background: var(--fuchsia-600); }

.nav-hide { }

@media (max-width: 720px) {
  .nav .nav-hide { display: none; }
}

/* ---------- hero ---------- */

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--panel);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  max-width: 20ch;
  font-weight: 700;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--fuchsia-500), var(--red-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--slate-300);
  max-width: 56ch;
  margin: 0 0 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--fuchsia-700);
  color: var(--slate-50);
  border-color: var(--fuchsia-600);
}

.btn-primary:hover { background: var(--fuchsia-600); }

.btn-ghost {
  border-color: var(--slate-700);
  color: var(--slate-200);
}

.btn-ghost:hover { border-color: var(--slate-500); color: var(--text); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hero-meta .num {
  font-size: 1.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.hero-meta .lbl { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- sections ---------- */

section { padding: 4.5rem 0; border-bottom: 1px solid var(--border); }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
  margin: 0.6rem 0 0.6rem;
  font-weight: 700;
}

.section-head p { color: var(--text-muted); margin: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

.card .idx {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fuchsia-400);
  font-weight: 600;
}

/* нумерованные шаги */
.steps { counter-reset: step; }
.step .idx::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
}

/* плитки-цифры */
.stat {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.stat .v {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--fuchsia-400), var(--red-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .k { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.35rem; }

/* чипы каналов */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.88rem;
  color: var(--slate-200);
}
.chip::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fuchsia-500);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* блок безопасности — таблица-список */
.secure-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.secure-list li {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.secure-list li:last-child { border-bottom: 0; }
.secure-list .ctrl { font-weight: 600; color: var(--text); }
.secure-list .impl { color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 640px) {
  .secure-list li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* редакции */
.plan {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--fuchsia-700); background: rgba(112, 26, 117, 0.12); }
.plan .name {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fuchsia-400);
  font-weight: 700;
}
.plan h3 { margin: 0.5rem 0 0.75rem; font-size: 1.5rem; }
.plan p { color: var(--text-muted); margin: 0 0 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.plan li { padding-left: 1.4rem; position: relative; font-size: 0.95rem; color: var(--slate-200); }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 0.55rem;
  width: 0.5rem; height: 0.5rem;
  border-radius: 2px;
  background: var(--fuchsia-500);
}

/* CTA */
.cta-band {
  border: 1px solid var(--fuchsia-700);
  background:
    linear-gradient(180deg, rgba(112, 26, 117, 0.22), rgba(15, 23, 42, 0.3));
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.cta-band p { color: var(--slate-300); max-width: 52ch; margin: 0 auto 1.75rem; }

/* footer */
.site-footer { padding: 2.5rem 0; color: var(--text-faint); font-size: 0.9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer .brand { font-size: 0.95rem; color: var(--text-muted); }

.note { color: var(--text-faint); font-size: 0.9rem; margin-top: 1.25rem; }

:focus-visible { outline: 2px solid rgba(217, 70, 239, 0.85); outline-offset: 2px; border-radius: 4px; }
