@import url("../fonts/fonts.css");

:root {
  --bg: #0f0f13;
  --panel: #18181e;
  --panel-2: #1f1f27;
  --line: #2c2c36;
  --text: #ececf1;
  --muted: #9a9aa8;
  --accent: #e30613;
  --accent-2: #ff3b3b;
  --ok: #1f9d55;
  --warn: #c98a12;
  --radius: 10px;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Roboto Condensed', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.45 var(--body);
  min-height: 100vh;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: .5px; margin: 0 0 .6em; }
h1 { font-size: 30px; }
h2 { font-size: 21px; text-transform: uppercase; letter-spacing: 1.5px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }

/* шапка */
.top {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #16161c, var(--bg));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 22px var(--head); letter-spacing: 1px; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 600; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--panel-2); text-decoration: none; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); font-weight: 700; white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }
.narrow { max-width: 440px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stat { font: 600 40px var(--head); color: var(--text); line-height: 1.1; }
.stat small { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* кнопки и поля */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: 700 15px var(--body);
  cursor: pointer; text-decoration: none;
}
.btn:hover, button:hover { border-color: #444452; text-decoration: none; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover, button.primary:hover { background: var(--accent-2); }
.btn.danger, button.danger { color: var(--accent-2); }
.btn.small, button.small { padding: 5px 10px; font-size: 13px; }
form.inline { display: inline; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: #111117; color: var(--text); font: 15px var(--body);
}
input:focus, select:focus { outline: 2px solid rgba(227,6,19,.45); border-color: var(--accent); }
input[type=color] { width: 54px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: #111117; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: middle; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0; color: var(--accent-2); font-size: 13px; }
.helptext { font-size: 12px; color: var(--muted); }

/* таблицы */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
td.num { width: 70px; }
td.num input { text-align: center; }
.plus { color: var(--ok); font-weight: 700; }
.minus { color: var(--accent-2); font-weight: 700; }

/* сообщения */
.messages { list-style: none; padding: 0; margin: 0 0 18px; }
.messages li { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; background: var(--panel-2); border-left: 4px solid var(--ok); word-break: break-word; }
.messages li.error { border-left-color: var(--accent); }

/* команды */
.team-tile { display: flex; align-items: center; gap: 14px; }
.team-tile img, .logo-ph { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #111117; }
.logo-ph { display: grid; place-items: center; color: var(--muted); font: 600 22px var(--head); }
.team-tile .name { font: 600 20px var(--head); color: var(--text); }
.people td { padding: 5px 6px; }
.people select { width: 120px; }
.copy { font-family: monospace; font-size: 13px; background: #111117; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); word-break: break-all; }

/* главная */
.hero { padding: 70px 0 40px; text-align: center; }
.hero h1 { font-size: 46px; text-transform: uppercase; letter-spacing: 2px; }
.hero h1 b { color: var(--accent); }
.hero p { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 auto 26px; }
.price { font: 600 30px var(--head); }
.footer { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 0; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .top { padding: 10px 16px; gap: 10px; }
  .wrap { padding: 20px 16px 40px; }
  .hero h1 { font-size: 32px; }
  .people select { width: 96px; }
}
