:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6f76;
  --line: #e7e7ea;
  --soft: #f6f6f7;

  --black: #111111;
  --red: #e01b22; /* под твой lab */
  --shadow: 0 12px 30px rgba(0,0,0,.08);

  --r: 18px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 0%, rgba(224,27,34,.06), transparent 60%),
              radial-gradient(900px 700px at 90% 10%, rgba(0,0,0,.04), transparent 55%),
              var(--bg);
}

.container{
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.logo img{
  height: 88px;
  width: auto;
  display:block;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}
.pill--muted{ color: var(--muted); }

.hero{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  padding: 22px 0 8px;
}
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
}

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
}

.kicker{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(224,27,34,.10);
}

.h1{
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h2{
  margin: 0 0 12px;
  font-size: 18px;
}
.h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.lead{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.btn{
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
}
.btn:hover{ background: var(--soft); }

.btn--primary{
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}
.btn--primary:hover{ opacity: .92; }

.btn--ghost{
  background:#fff;
  border-color: var(--line);
  color: var(--text);
}

.price{
  font-size: 13px;
  margin: 6px 0 12px;
}
.sep{ margin: 0 8px; color: var(--line); }

.muted{ color: var(--muted); }

.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--text);
}

.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px){
  .form{ grid-template-columns: 1fr; }
}

.field{ display:flex; flex-direction: column; gap: 8px; }
.field__label{ font-size: 13px; color: var(--muted); }
.field__input{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
}
.field__input:focus{
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

.result{
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}
.result--ok{
  border-color: rgba(0,0,0,.22);
}
.result--bad{
  border-color: rgba(224,27,34,.55);
  box-shadow: 0 0 0 4px rgba(224,27,34,.08);
}

.result__empty{ padding: 6px 0; }

.kpis{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.kpi{
  flex: 1 1 160px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.kpi__label{ font-size: 12px; color: var(--muted); }
.kpi__value{
  margin-top: 4px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.kpi__value--accent{ color: var(--red); }

.details{
  margin-top: 12px;
  color: var(--muted);
}
.details summary{
  cursor:pointer;
  color: var(--text);
  font-weight: 650;
}

.triptych{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px 0 10px;
}
@media (max-width: 860px){
  .triptych{ grid-template-columns: 1fr; }
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }

.footer{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
@media (max-width: 620px){
  .footer{ flex-direction: column; }
}

.result__note{ margin-top: 10px; }

.btn--primary:hover{
  background: var(--black);
  opacity: 0.9;
}

.btn{
  transition: background-color .15s ease, opacity .15s ease;
}

.seo p { line-height: 1.6; }

.result__note{ margin-top: 10px; }

/* ДОБАВЬ В КОНЕЦ /assets/style.css (если у тебя этих классов ещё нет) */
.tablewrap{ overflow:auto; border-radius: var(--r); }
.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}
.table thead th{
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.table tbody td{
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:last-child td{ border-bottom: 0; }

.table__input{ width: 100%; }
.table__num{ text-align: right; }
.table__del{ padding: 8px 10px; border-radius: 12px; }
.link{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.25);
}
.link:hover{ text-decoration-color: rgba(0,0,0,.65); }
