:root {
  --bg: #15181c;
  --panel: #1f2329;
  --panel2: #282d35;
  --line: #353b45;
  --text: #e6e8eb;
  --muted: #9aa3ae;
  --acc: #f0a03c;
  --acc2: #ffbe6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #2a2418 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--acc2); }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }

.lang {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 13px;
}
.lang:hover { color: var(--text); border-color: var(--muted); }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.hero { text-align: center; padding: 48px 0 40px; }
.hero .logo { filter: drop-shadow(0 10px 30px rgba(240, 160, 60, .25)); }
.hero h1 { font-size: clamp(30px, 6vw, 50px); line-height: 1.1; margin: 22px 0 12px; letter-spacing: -.5px; }
.lead { max-width: 640px; margin: 0 auto 28px; color: #c9ced4; font-size: clamp(16px, 2.4vw, 19px); }

.cta {
  display: inline-block;
  background: var(--acc);
  color: #1b1206;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 14px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(240, 160, 60, .25);
}
.cta:hover { background: var(--acc2); }

.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.shot { margin: 0 0 40px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03); }

.priv {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, #1e2a22, #1f2329);
  border: 1px solid #2f4a37;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 8px 0 34px;
}
.priv svg { width: 40px; height: 40px; flex: none; color: #6fcf8e; }
.priv h2 { margin: 0 0 6px; font-size: 19px; }
.priv p { margin: 0; color: #c9ced4; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.grid svg { width: 26px; height: 26px; color: var(--acc); }
.grid h3 { margin: 10px 0 4px; font-size: 16px; }
.grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

.how { text-align: center; padding: 44px 0 30px; }
.how h2 { font-size: 24px; margin: 0 0 16px; }
.how ol { display: inline-block; text-align: left; margin: 0 0 8px; padding-left: 22px; color: #c9ced4; }
.how li { margin: 6px 0; }
.how .note { max-width: 560px; margin: 10px auto 26px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 32px; border-top: 1px solid var(--line); margin-top: 20px; }

.links { display: flex; gap: 8px; }
.cta2 { display: inline-block; margin-left: 10px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 13px 22px; font-weight: 600; }
.cta2:hover { border-color: var(--muted); }

[hidden] { display: none !important; }
.batch { padding-top: 26px; padding-bottom: 20px; }
.batch h1 { font-size: clamp(26px, 5vw, 38px); margin: 0 0 8px; }
.batch .lead { margin: 0 0 6px; max-width: none; text-wrap: pretty; }
.privline { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; color: #8fd3a5; font-size: 15px; }
.privline svg { width: 20px; height: 20px; flex: none; }
.settings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 20px; margin: 18px 0 6px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label:first-child { font-size: 13px; font-weight: 600; color: #c9ced4; display: flex; justify-content: space-between; align-items: baseline; }
.field > label output { color: var(--acc2); font-weight: 700; }
.field select, .field .tin { width: 100%; height: 38px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; }
.field input[type=range] { width: 100%; accent-color: var(--acc); margin: 10px 0 4px; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.field .chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #c9ced4; }
.field .chk input { accent-color: var(--acc); }
.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .settings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .settings { grid-template-columns: minmax(0, 1fr); } .actions { justify-content: stretch; } .actions .btn { flex: 1; } }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; text-align: center; color: var(--muted); }
.drop:hover, .drop.on { border-color: var(--acc); color: var(--text); }
.drop input { display: none; }
.drop svg { width: 38px; height: 38px; color: var(--acc); }
.drop strong { color: var(--text); font-size: 17px; }
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 18px 0 4px; }
.opts label { display: flex; align-items: center; gap: 8px; color: #c9ced4; }
.opts select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; }
.opts input[type=range] { accent-color: var(--acc); }
.opts output { color: var(--muted); min-width: 3ch; }
.tin { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; width: 240px; }
.tin.short { width: 160px; }
.grow { flex: 1; }
.btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; font: inherit; cursor: pointer; }
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #1b1206; font-weight: 700; }
.tablewrap { overflow-x: auto; margin-top: 16px; }
.res { width: 100%; border-collapse: collapse; font-size: 14px; }
.res th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.res td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.res td.nm { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.res .muted { color: var(--muted); }
.res .err { color: #ef5350; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.tag.warn { color: #ffb74d; border-color: #6b5226; }
.tag.good { color: #6fcf8e; border-color: #2f4a37; }
.dl { font-weight: 600; }
.sum { color: #c9ced4; font-weight: 600; margin: 14px 0 0; }

@media (max-width: 560px) {
  .hero { padding: 26px 0 30px; }
  .hero .logo { width: 92px; height: 92px; }
  .priv { flex-direction: column; gap: 10px; padding: 18px; }
  .cta2 { margin: 12px 0 0; }
  .res td.nm { max-width: 140px; }
}
