:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #65717f;
  --line: #d8dee7;
  --brand: #0b6b57;
  --accent: #b82e55;
  --warning: #a96300;
  --danger: #9d1c20;
  --ok: #1d7a38;
  --soft: #eef5f2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), #1d9f85); display: inline-block; }
.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-switch a, .button, button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button.primary, button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.secondary { background: var(--soft); border-color: #c8ded6; color: #094d3f; }
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}
.sidebar {
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.side-title { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.nav { display: grid; gap: 7px; }
.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}
.nav a.active { background: var(--soft); color: var(--brand); }
.content { padding: 28px; max-width: 1180px; width: 100%; }
.hero {
  display: grid;
  gap: 12px;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
h1 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: 0; }
h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.stat { display: grid; gap: 6px; }
.stat strong { font-size: 26px; }
.risk-high { color: var(--danger); }
.risk-limited { color: var(--warning); }
.risk-low { color: var(--ok); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 94px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 10px 0; }
.checks label { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.checks input { width: auto; min-height: auto; margin-top: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--brand); font-weight: 750; font-size: 13px; }
.badge.high { background: #fde9ea; color: var(--danger); }
.badge.limited { background: #fff2dc; color: var(--warning); }
.badge.low { background: #e9f7ed; color: var(--ok); }
.roadmap { display: grid; gap: 12px; }
.roadmap-step { border-left: 4px solid var(--brand); padding: 10px 12px; background: #fff; border-radius: 0 7px 7px 0; }
.ad-slot { min-height: 92px; border: 1px dashed #bbc4cf; border-radius: 8px; display: grid; place-items: center; color: var(--muted); background: #fff; }
.footer { padding: 24px 28px; border-top: 1px solid var(--line); color: var(--muted); }
.seo-section { max-width: 860px; }
pre.export-box { white-space: pre-wrap; overflow: auto; background: #111820; color: #edf4fa; padding: 16px; border-radius: 8px; }

@media (max-width: 840px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 18px; }
  .grid.two, .grid.three, .form-grid, .checks { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
}
