:root{
  --bg:#f3f3f3;
  --card:#ffffff;
  --text:#111;
  --muted:#6b6b6b;
  --line:#e8e8e8;

  --green:#b6f400;

  --blue:#2f80ff;
  --orange:#ff9a3c;
  --purple:#a05bff;
  --gray:#5e6b73;

  --shadow:0 18px 60px rgba(0,0,0,.10);
  --radius:22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px 16px;
}

.shell{
  width:min(980px, 100%);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:34px 34px 26px;
}

.h1{
  margin:0;
  text-align:center;
  font-size:40px;
  letter-spacing:.2px;
}

.line{
  height:2px;
  background:var(--green);
  margin:18px 0 26px;
  border-radius:999px;
}

.tabs{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:26px;
}

.tab{
  text-decoration:none;
  color:#fff;
  font-weight:600;
  font-size:14px;
  padding:12px 18px;
  border-radius:12px;
  transition:transform .15s ease, filter .15s ease;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
  border:1px solid rgba(255,255,255,.18);
}

.tab:hover{ transform:translateY(-2px); filter:brightness(1.02); }
.tab-blue{ background:var(--blue); }
.tab-orange{ background:var(--orange); }
.tab-purple{ background:var(--purple); }
.tab-gray{ background:var(--gray); }

.box{
  border-left:4px solid var(--green);
  padding:18px 18px;
  background:#fff;
  border-radius:16px;
}

.h2{
  margin:0 0 14px;
  font-size:22px;
}

.list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  line-height:1.5;
}

.check{
  display:inline-flex;
  width:24px;
  height:24px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(182,244,0,.22);
  color:#2a2a2a;
  font-weight:800;
  margin-right:10px;
}

.footer{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--line);
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

/* Формы */
.form{
  display:grid;
  gap:12px;
  max-width:560px;
}

.row{
  display:grid;
  grid-template-columns: 1fr 220px 1fr;
  gap:12px;
}

label{
  font-size:13px;
  color:var(--muted);
  display:block;
  margin-bottom:6px;
}

input, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  font-size:14px;
  outline:none;
  background:#fff;
}

input:focus, select:focus{
  border-color:rgba(47,128,255,.45);
  box-shadow:0 0 0 4px rgba(47,128,255,.10);
}

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

.btn{
  border:0;
  cursor:pointer;
  padding:12px 16px;
  border-radius:12px;
  font-weight:700;
  font-size:14px;
  transition:transform .15s ease, filter .15s ease;
}

.btn:hover{ transform:translateY(-2px); filter:brightness(1.02); }

.btn-accent{ background:var(--green); color:#111; }
.btn-ghost{
  background:#fff;
  border:1px solid var(--line);
  color:#111;
}

.result{
  margin-top:14px;
  background:#f7f7f7;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}

.big{
  font-size:28px;
  font-weight:900;
  margin:6px 0 0;
}

.note{
  color:var(--muted);
  font-size:13px;
  margin-top:8px;
  line-height:1.45;
}

.kbd{
  padding:2px 6px;
  border-radius:6px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
  font-size:11px;
}

@media (max-width: 720px){
  .shell{ padding:24px 18px 18px; }
  .h1{ font-size:30px; }
  .tab{ width:100%; text-align:center; }
  .row{ grid-template-columns:1fr; }
}

.code{
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

/* Добавки для лабораторной */
.section{
  background: transparent;
  margin: 0 0 14px;
}
.grid{
  display:grid;
  gap:14px;
}
.hr{
  height:1px;
  background:var(--line);
  border:0;
  margin:16px 0;
}
.inline{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.small{
  font-size:13px;
  color:var(--muted);
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}
.pill input{ width:auto; }
img.preview{
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow:0 8px 26px rgba(0,0,0,.08);
}
