
:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #5b6473;
  --line: #d9e0ea;
  --soft: #edf2f8;
  --blue: #1463ff;
  --green: #10a66a;
  --amber: #d97706;
  --red: #dc2626;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 13px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  align-items: center;
  gap: 42px;
  padding: 64px 0 50px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}
.hero p {
  margin: 24px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  background: var(--paper);
}
.button.primary { background: var(--ink); color: #fff; }
.button.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero-media {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--paper);
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.verdict-rail {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stamp {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(17, 24, 39, 0.18);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.stamp.keep { color: var(--green); }
.stamp.return { color: var(--red); }
.stamp.replace { color: var(--blue); }
.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.section h1,
.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}
.section-header p,
.lede {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
}
.card h3,
.panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}
.card p,
.panel p {
  color: var(--muted);
  margin: 0;
}
.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.test-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.test-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
.test-list span {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}
th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--soft);
}
tr:last-child td { border-bottom: 0; }
.form { display: grid; gap: 14px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.checkbox-row label,
.inline-check {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}
.checkbox-row input,
.inline-check input { width: auto; }
.notice {
  border-radius: 8px;
  border: 1px solid #badbcc;
  background: #eefbf4;
  color: #0f6b44;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}
.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}
.admin-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.admin-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  background: var(--paper);
}
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px;
}
.kpi strong {
  display: block;
  font-size: 28px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .nav { align-items: start; }
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 46px 0 38px;
  }
  .hero-media,
  .hero-media img { min-height: 280px; }
  .section-header { display: grid; }
  .grid,
  .grid.two,
  .admin-kpis,
  .field-grid,
  .admin-shell { grid-template-columns: 1fr; }
}
