/* ===== Vsteh.ru Design System ============================================
   Источник: web-design-preview/ + new/css/main.css
   Подключается ВДОБАВОК к старому main.css. Префиксы новых классов (.vh, .vt,
   .vs, .vc, .vb, .pc, .lead, .kcol, .kcard) не пересекаются со старыми. ====== */

/* ── Tokens ── */
:root {
  --primary: #FFC107;
  --primary-hover: #FBDD84;
  --dark: #333333;
  --text: #333333;
  --text-muted: #828282;
  --text-light: #BDBDBD;
  --border: #DADADA;
  --border-light: #E5E5E5;
  --bg: #FFFFFF;
  --bg-grey: #F0F0F0;
  --bg-light: #F6F6F6;
  --shadow: 0 12px 23px rgba(0,0,0,.06);
  --shadow-lg: 0 16px 32px rgba(0,0,0,.10);
}

.new-design { font-family: "Play", sans-serif; color: var(--text); }
.new-design *, .new-design *::before, .new-design *::after { box-sizing: border-box; }

/* ── Header (.vh — vsteh header) ───────────────────────────────────────── */
.vh {
  background: var(--dark);
  color: #fff;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  height: 70px;
  font-family: "Play", sans-serif;
}
.vh__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 700; font-size: 20px; }
.vh__logo svg { display: block; }
.vh__menu { display: flex; gap: 0; }
.vh__menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 0 15px;
  line-height: 30px;
  transition: color .3s;
}
.vh__menu a:hover, .vh__menu a.active { color: var(--primary); }
.vh__search {
  flex: 1;
  max-width: 520px;
  background: #fff;
  border-radius: 4px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin-left: auto;
}
.vh__search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: "Play", sans-serif; font-size: 14px; color: var(--text);
}
.vh__search input::placeholder { color: var(--text-light); }
.vh__user { display: flex; align-items: center; gap: 24px; }
.vh__user a {
  color: #fff; font-size: 14px; text-decoration: none;
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  transition: color .3s;
}
.vh__user a:hover { color: var(--primary); }
.vh__user svg { stroke: var(--primary); fill: none; stroke-width: 1.5; }
.vh__notif { position: relative; }
.vh__notif::after {
  content: ''; position: absolute; top: -2px; right: -4px;
  width: 8px; height: 8px; background: #EB5757; border-radius: 50%;
}

/* ── Topbar (.vt — sub-navigation в кабинете, серая полоса) ───────────── */
.vt {
  background: var(--bg-grey);
  height: 50px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-family: "Play", sans-serif;
}
.vt a {
  color: var(--text); text-decoration: none;
  padding-bottom: 14px; position: relative; cursor: pointer;
  transition: all .6s;
}
.vt a:hover::before, .vt a.active::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px; background: var(--primary);
}

/* ── Body wrapper и cabinet sidebar ── */
.vb { display: flex; background: var(--bg-light); min-height: calc(100vh - 120px); }
.vc { flex: 1; padding: 30px 40px; }

.vs {
  width: 240px; background: #fff; border-right: 1px solid var(--border-light);
  padding: 20px 0; flex-shrink: 0; font-family: "Play", sans-serif;
}
.vs-section { padding: 0 0 20px; }
.vs-title {
  font-size: 11px; text-transform: uppercase; color: var(--text-muted);
  letter-spacing: 1px; font-weight: 700;
  padding: 0 24px; margin-bottom: 8px;
}
.vs-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 24px; color: var(--text); text-decoration: none;
  font-size: 14px; cursor: pointer;
  border-left: 3px solid transparent; transition: all .2s;
}
.vs-link:hover { background: var(--bg-light); color: var(--text); }
.vs-link.active {
  background: var(--bg-light); border-left-color: var(--primary);
  color: var(--text); font-weight: 700;
}
.vs-link .b {
  margin-left: auto; background: var(--primary); color: var(--text);
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
}

/* ── Buttons (overrides на новых страницах) ── */
.new-design .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; border-radius: 4px; border: 1px solid;
  font-family: "Play", sans-serif; font-size: 14px; line-height: 38px;
  height: 40px; text-decoration: none; font-weight: 400;
  transition: all .5s ease; cursor: pointer; white-space: nowrap;
}
.new-design .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--text); }
.new-design .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--text); }
.new-design .btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.new-design .btn-dark:hover { background: var(--primary); border-color: var(--primary); color: var(--text); }
.new-design .btn-transp { background: #fff; border-color: var(--text); color: var(--text); }
.new-design .btn-transp:hover { background: var(--text); color: #fff; }
.new-design .btn-link { background: transparent; border-color: transparent; color: var(--text); text-decoration: underline; }
.new-design .btn-link:hover { color: var(--primary); }
.new-design .btn-sm { height: 34px; line-height: 32px; font-size: 13px; padding: 0 14px; }
.new-design .btn-lg { height: 48px; line-height: 46px; font-size: 16px; padding: 0 28px; }

/* ── Page heading ── */
.page-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.page-h h1 { font-size: 24px; font-weight: 700; color: var(--text); margin: 0; }
.page-h p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.page-acts { display: flex; gap: 10px; }

/* ── Card ── */
.new-design .card {
  background: #fff; border-radius: 4px; padding: 20px;
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.new-design .card.no-shadow { box-shadow: none; border: 1px solid var(--border-light); }
.new-design .card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.new-design .card-h h3 { font-size: 16px; font-weight: 700; margin: 0; }
.new-design .card-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ── Inputs ── */
.new-design .field { margin-bottom: 16px; }
.new-design .field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.new-design .input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; background: #fff;
  outline: none; font-family: "Play", sans-serif;
  color: var(--text); transition: all .3s;
}
.new-design .input:focus { border-color: var(--primary); }

/* ── Hero (главная) ── */
.hero {
  background: linear-gradient(135deg, #1A1A1B 0%, #333333 100%);
  color: #fff; padding: 50px 40px; border-radius: 4px;
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 14px; line-height: 1.2; color: #fff; }
.hero h1 b { color: var(--primary); }
.hero p { font-size: 16px; opacity: .85; margin-bottom: 24px; max-width: 560px; color: #fff; line-height: 1.55; }
.hero-cta { display: flex; gap: 10px; }

/* ── Stats grid ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: #fff; border-radius: 4px; padding: 20px 22px; box-shadow: var(--shadow); }
.stat .v { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat .l { font-size: 12px; color: var(--text-muted); text-transform: uppercase;
           letter-spacing: .5px; margin-top: 6px; font-weight: 700; }
.stat .t { font-size: 13px; color: #27AE60; margin-top: 8px; }

/* ── Grid ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ── Badges (только чёрный/оранжевый/серый) ── */
.new-design .badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 4px; font-size: 12px;
  font-weight: 700; line-height: 1.2;
}
.new-design .b-yellow { background: var(--primary); color: var(--text); }
.new-design .b-green  { background: var(--primary); color: var(--text); }
.new-design .b-red    { background: var(--dark); color: var(--primary); }
.new-design .b-blue   { background: var(--bg-grey); color: var(--text); border: 1px solid var(--border-light); }
.new-design .b-grey   { background: var(--bg-grey); color: var(--text); }
.new-design .b-light  { background: var(--bg-light); color: var(--text); border: 1px solid var(--border-light); }
.new-design .b-dark   { background: var(--dark); color: #fff; }

/* ── Avatar ── */
.av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FFC107, #FBDD84);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-weight: 700; font-size: 14px;
  flex-shrink: 0; font-family: "Play", sans-serif;
}
.av-sm { width: 32px; height: 32px; font-size: 12px; }
.av-lg { width: 80px; height: 80px; font-size: 28px; }

/* ── Star rating ── */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.rating-num { font-weight: 700; font-size: 13px; color: var(--text); margin-right: 6px; }

/* ── Table ── */
.new-design .tbl {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 4px; overflow: hidden; box-shadow: var(--shadow);
}
.new-design .tbl th {
  background: var(--bg-grey); padding: 14px 18px; text-align: left;
  font-size: 12px; text-transform: uppercase; color: var(--text-muted);
  font-weight: 700; letter-spacing: .5px;
  border-bottom: 1px solid var(--border-light);
}
.new-design .tbl td {
  padding: 16px 18px; font-size: 14px;
  border-bottom: 1px solid var(--border-light); color: var(--text);
}
.new-design .tbl tr:last-child td { border-bottom: none; }
.new-design .tbl tr:hover { background: var(--bg-light); cursor: pointer; }
.new-design .tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
.tab {
  padding: 12px 22px; font-size: 14px; color: var(--text-muted);
  border-bottom: 2px solid transparent; cursor: pointer;
  font-weight: 400; transition: all .3s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 700; }

/* ── Chip ── */
.chip {
  display: inline-flex; padding: 7px 14px; background: #fff;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 13px; cursor: pointer; color: var(--text);
  margin-right: 6px; margin-bottom: 6px; transition: all .3s;
}
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); font-weight: 700; }

/* ── Filter sidebar ── */
.fs { width: 280px; background: #fff; border-right: 1px solid var(--border-light); padding: 24px; flex-shrink: 0; }
.fs-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.fs-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.fs-section:last-child { border-bottom: none; }
.fs-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.fs-check { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.fs-check input { accent-color: var(--primary); }

/* ── Product card (catalog) ── */
.pc {
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow); transition: all .3s; cursor: pointer;
}
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pc-img {
  height: 200px; background: linear-gradient(135deg, #F6F6F6, #E8E8E8);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pc-fav {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
}
.pc-fav:hover { color: var(--primary); }
.pc-body { padding: 16px; }
.pc-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.pc-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.pc-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--border-light);
}
.pc-price { font-size: 18px; font-weight: 700; color: var(--text); }

/* ── Lead/order row (биржа заявок) ── */
.lead {
  background: #fff; border-radius: 4px; padding: 18px 22px;
  margin-bottom: 12px; box-shadow: var(--shadow); cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px;
  align-items: center; transition: all .3s;
}
.lead:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.lead h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.lead .meta { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead .price { font-size: 18px; font-weight: 700; text-align: right; }

/* ── Kanban ── */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; }
.kcol { min-width: 280px; background: var(--bg-grey); border-radius: 4px; padding: 14px; flex-shrink: 0; }
.kcol h4 {
  font-size: 13px; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px; display: flex; justify-content: space-between;
  font-weight: 700; letter-spacing: .5px;
}
.kcol h4 .c { background: #fff; color: var(--text); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.kcard {
  background: #fff; border-radius: 4px; padding: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow);
  font-size: 13px; cursor: pointer;
}
.kcard h5 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.kcard .meta { color: var(--text-muted); font-size: 12px; }

/* ── Bar (progress) ── */
.bar { height: 8px; background: var(--bg-grey); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: var(--primary); }

/* ── Misc ── */
.muted { color: var(--text-muted); font-size: 13px; }
.divider { height: 1px; background: var(--border-light); margin: 14px 0; }
.amount { font-size: 24px; font-weight: 700; color: var(--text); }
.amount-lg { font-size: 34px; font-weight: 700; color: var(--text); }

.hint {
  background: #FFF8E1; border-left: 3px solid var(--primary);
  padding: 14px 18px; border-radius: 4px;
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px;
}
.hint .ico { flex-shrink: 0; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 4px;
  background: transparent; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); transition: all .3s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Footer (тёмный) ── */
.foot {
  background: var(--dark); color: #fff;
  padding: 30px 40px; font-size: 13px;
  font-family: "Play", sans-serif;
}
.foot a { color: #fff; text-decoration: none; opacity: .7; }
.foot a:hover { opacity: 1; color: var(--primary); }

/* ── Categories grid (главная) ── */
.cat {
  background: #fff; border-radius: 4px; padding: 24px 16px;
  text-align: center; cursor: pointer;
  box-shadow: var(--shadow); transition: all .3s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat .ico { font-size: 0; height: 64px; display: flex; align-items: center; justify-content: center; }
.cat .name { font-weight: 700; font-size: 14px; margin-top: 8px; }

/* ── Breakpoints (mobile / tablet) ── */
@media (max-width: 768px) {
  .vh { padding: 12px 16px; gap: 12px; height: auto; flex-wrap: wrap; }
  .vh__menu { display: none; }
  .vh__search { max-width: none; order: 99; flex-basis: 100%; }
  .vc { padding: 20px 16px; }
  .vs { display: none; }
  .vt { overflow-x: auto; padding: 0 16px; }
  .hero { padding: 30px 20px; }
  .hero h1 { font-size: 26px; }
}
