:root {
  --bg: #f4f6f9;
  --card: #fff;
  --text: #1c2430;
  --muted: #6b7686;
  --line: #e3e8ef;
  --primary: #0f6e8c;
  --primary-2: #0b5670;
  --primary-soft: #e5f3f7;
  --accent: #d6453d;
  --accent-2: #b93a33;
  --ok: #1f8a4c;
  --ok-soft: #e6f5ec;
  --warn: #b7791f;
  --warn-soft: #fdf4e3;
  --err: #c53030;
  --err-soft: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px rgba(16, 24, 40, 0.05);
  --fs: 15px;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  font-size: var(--fs);
}
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1rem/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}
body.exion-front {
  display: flex;
  flex-direction: column;
}
body.exion-front > .page,
body.exion-front > .bvi-body > .page {
  flex: 1 0 auto;
  width: 100%;
}
body.exion-front > .bvi-body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-height: 100vh;
}
body.big {
  --fs: 18px;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1 {
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}
h2 {
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}
h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
p {
  margin: 0.3rem 0 0.8rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.87rem;
}
.nowrap {
  white-space: nowrap;
}
.right {
  text-align: right;
}
.mt {
  margin-top: 1rem;
}
.mb {
  margin-bottom: 1rem;
}
.mt2 {
  margin-top: 2rem;
}
.row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
}
.grid {
  display: grid;
  gap: 1rem;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.side {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}
@media (max-width: 900px) {
  .g2,
  .g3,
  .g4,
  .side {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card.flat {
  box-shadow: none;
}
.sticky {
  position: sticky;
  top: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  text-decoration: none !important;
  transition: 0.15s;
}
.btn:hover {
  background: var(--primary-2);
}
.btn.accent {
  background: var(--accent);
}
.btn.accent:hover {
  background: var(--accent-2);
}
.btn.ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: #f1f4f8;
}
.btn.ok {
  background: var(--ok);
}
.btn.link {
  background: none;
  color: var(--primary);
  padding: 0.3rem 0.2rem;
}
.btn.sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.87rem;
  border-radius: 8px;
}
.btn.block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

label.f {
  display: block;
  margin-bottom: 0.8rem;
}
label.f > span {
  display: block;
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cfd6df;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}


/* input::placeholder {
  font-size:1.35rem;letter-spacing:.15rem;text-align:center
} */

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}
.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.5rem 0;
}
.check input {
  margin-top: 0.3rem;
}

.badge {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #eef1f5;
  color: #445;
}
.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge.err {
  background: var(--err-soft);
  color: var(--err);
}
.badge.info {
  background: var(--primary-soft);
  color: var(--primary);
}

.alert {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border: 1px solid;
  margin-bottom: 1rem;
}
.alert.ok {
  background: var(--ok-soft);
  border-color: #b9e2c8;
}
.alert.warn {
  background: var(--warn-soft);
  border-color: #f1d9a8;
}
.alert.err {
  background: var(--err-soft);
  border-color: #f3c0c0;
}
.alert.info {
  background: var(--primary-soft);
  border-color: #bfe0ea;
}

.tbl-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 0.6rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
tr.click {
  cursor: pointer;
}
tr.click:hover td {
  background: #f7fafc;
}
td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}
tfoot td {
  font-weight: 700;
  border-bottom: none;
}

/* ---------- user layout ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar .in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--text);
  font-size: 1.1rem;
}
.logo i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-style: normal;
  font-size: 0.9rem;
}
.nav {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
}
.nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--text);
  white-space: nowrap;
  font-weight: 500;
}
.nav a:hover {
  background: #f1f4f8;
  text-decoration: none;
}
.nav a.on {
  background: var(--primary-soft);
  color: var(--primary);
}
.iconbtn {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  height: 36px;
  min-width: 36px;
  padding: 0 0.5rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.iconbtn .dot {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 0 0.35rem;
  line-height: 1.3rem;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dfe7ef;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary);
}
.exion-front-profile {
  gap: 0.5rem;
  color: inherit;
  flex-wrap: nowrap;
}
.exion-front-profile:hover {
  text-decoration: none;
}
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
  /* background: linear-gradient(135deg, #e7f2f6, #f4f6f9); */
}
@media (max-width: 760px) {
  .topbar .in {
    flex-wrap: wrap;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
  }
  .hide-m {
    display: none;
  }
}

.certbar {
  background: linear-gradient(120deg, #0f6e8c, #12899f);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.certbar .grid {
  gap: 0.5rem 1.5rem;
}
.certbar .k {
  font-size: 0.8rem;
  opacity: 0.8;
}
.certbar .v {
  font-weight: 700;
  font-size: 1.05rem;
}

.steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.step {
  flex: 1;
  min-width: 160px;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.step b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9eef3;
  color: var(--muted);
  flex: none;
}
.step.on {
  border-color: var(--primary);
}
.step.on b {
  background: var(--primary);
  color: #fff;
}
.step.done b {
  background: var(--ok);
  color: #fff;
}

.drop {
  border: 2px dashed #b9c6d3;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  background: #fafcfe;
  cursor: pointer;
  display: block;
}
.drop:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.drop .ic {
  font-size: 2.4rem;
}

.progress li {
  margin: 0.35rem 0;
  list-style: none;
}
.progress {
  padding: 0;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #cfe3ea;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: sp 1s linear infinite;
  vertical-align: middle;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}

/* catalog accordion — повторяет схему заказчика */
.pos {
  border: 1.5px solid #9fd3de;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.pos.sel {
  border-color: var(--primary);
}
.pos.locked {
  border-color: var(--line);
  background: #f7f8fa;
}
.pos-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
}
summary.pos-head {
  list-style: none;
}
summary.pos-head::-webkit-details-marker {
  display: none;
}
.pos.locked .pos-head {
  cursor: default;
}
.pos-head .t {
  flex: 1;
  min-width: 0;
}
.pos-head .t b {
  display: block;
}
.box {
  width: 30px;
  height: 30px;
  border: 2px solid #e8883a;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  color: #fff;
}
.pos.sel .box {
  background: var(--ok);
  border-color: var(--ok);
}
.pos.locked .box {
  border-color: #ccd;
  background: #eef;
}
.chev {
  transition: 0.2s;
  color: var(--muted);
}
.pos.open .chev {
  transform: rotate(90deg);
}
.variants {
  border-top: 1px solid var(--line);
  padding: 0.6rem 1rem 1rem;
  background: #fbfdfd;
}
.var {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid #bfe3c9;
  border-radius: 9px;
  margin-top: 0.5rem;
  cursor: pointer;
  background: #fff;
}
button.var {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
}
.choice-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #9aaab2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.skip-choice.on .choice-radio::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  content: '';
}
.var:hover {
  border-color: var(--ok);
}
.var.on {
  border-color: var(--ok);
  background: var(--ok-soft);
}
.var .t {
  flex: 1;
  min-width: 0;
}
.product-recommendation {
  color: var(--ok);
  font-weight: 700;
  margin-top: 0.2rem;
}
.compat-warning-pill {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 700;
}
.product-choice-form {
  margin: 0;
}
.product-thumb {
  width: 74px;
  height: 74px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.var .right {
  display: grid;
  gap: 0.15rem;
  justify-items: end;
  flex: none;
}
.var .right .btn {
  margin-top: 0.25rem;
}
@media (max-width: 600px) {
  .product-choice-form .var {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    cursor: default;
  }
  .product-thumb {
    width: 64px;
    height: 64px;
  }
  .product-choice-form .var .t {
    grid-column: 2;
  }
  .product-choice-form .var .right {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    width: auto;
    justify-items: start;
  }
  .product-choice-form .var .right b,
  .product-choice-form .var .right .small {
    grid-column: 1;
  }
  .product-choice-form .var .right .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}
.sum-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
}
.sum-line b {
  white-space: nowrap;
}
.sum-line.big {
  font-size: 1.15rem;
  border-bottom: none;
}

/* timeline */
.tl {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tl li {
  position: relative;
  padding: 0 0 1rem 1.9rem;
}
.tl li:before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.2rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl li:last-child:before {
  display: none;
}
.tl li i {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #dfe5ec;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #cdd5de;
}
.tl li.done i {
  background: var(--ok);
  box-shadow: 0 0 0 1px var(--ok);
}
.tl li.cur i {
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.tl li.todo {
  color: var(--muted);
}

/* auth */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  /* background: linear-gradient(135deg, #e7f2f6, #f4f6f9); */
}
.auth .card {
  width: 100%;
  max-width: 440px;
  padding: 2rem;
}

/* mock payment gateway */
.gw {
  min-height: 100vh;
  background: #eceff3;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.gw .box2 {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.gw .hd {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gw .bd {
  padding: 1.4rem;
}
.gw .demo {
  background: #fff3cd;
  color: #7a5b00;
  font-size: 0.8rem;
  padding: 0.4rem 1.4rem;
}
.gwlogo {
  font-weight: 800;
  color: #1a1a1a;
}
.gwlogo span {
  color: #3a7bd5;
}
.cardfield {
  border: 1px solid #d6dbe1;
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(135deg, #f9fbff, #eef3fa);
}

/* admin */
.adm {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.adm aside {
  background: #16202c;
  color: #c9d3de;
  padding: 1rem 0.75rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.adm aside .logo {
  color: #fff;
  padding: 0.3rem 0.5rem 1rem;
}
.adm aside a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c9d3de;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 2px;
}
.adm aside a:hover {
  background: #223044;
  text-decoration: none;
}
.adm aside a.on {
  background: #0f6e8c;
  color: #fff;
}
.adm aside .sec {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f8093;
  margin: 1rem 0.75rem 0.3rem;
}
.adm main {
  padding: 1.5rem 1.75rem 5rem;
  min-width: 0;
}
@media (max-width: 900px) {
  .adm {
    grid-template-columns: minmax(0, 1fr);
  }
  .adm aside {
    position: static;
    height: auto;
  }
}
.kpi .n {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}
.chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.87rem;
}
.chip.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  background: #cbd3dc;
  border-radius: 22px;
  cursor: pointer;
  transition: 0.2s;
}
.switch span:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--ok);
}
.switch input:checked + span:before {
  transform: translateX(18px);
}
tr.bad td {
  background: var(--err-soft);
}
tr.new td {
  background: var(--ok-soft);
}

/* modal / toast / demo */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.45);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 1rem;
}
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 1.4rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.product-lightbox-bg {
  background: rgba(15, 23, 32, 0.9);
  padding: 2.2rem 5.5rem 2rem;
  cursor: zoom-out;
}
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(12, 19, 27, .96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}
.product-lightbox img {
  width: 100%;
  max-height: calc(100vh - 7.2rem);
  display: block;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
}
.product-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #17232a;
    font: 2rem / 1 Arial, sans-serif;
    cursor: pointer;
}
.product-lightbox-close:hover {
  background: #f1f4f8;
}
.product-lightbox-name {
  margin-top: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
.product-lightbox-count {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}
@media (max-width: 760px) {
  .product-lightbox-bg {
    padding: 4rem 1rem 1.5rem;
  }
  .product-lightbox {
    width: calc(100vw - 2rem);
  }
  .product-lightbox-close {
    top: 0.8rem;
    right: 0.8rem;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background: #1c2430;
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
}
.exion-toast-stack {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1000;
  transform: translateX(-50%);
  pointer-events: none;
}
.exion-toast {
  max-width: 90vw;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: #1c2430;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.exion-toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}
.demo-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
}
.demo-fab > button {
  background: #5b3cc4;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(91, 60, 196, 0.35);
}
.demo-menu {
  position: absolute;
  right: 0;
  bottom: 3.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  width: 290px;
  padding: 0.5rem;
}
.demo-menu .h {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.6rem 0.2rem;
  letter-spacing: 0.05em;
}
.demo-menu a,
.demo-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  padding: 0.45rem 0.6rem;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
}
.demo-menu a:hover,
.demo-menu button:hover {
  background: #f1f4f8;
  text-decoration: none;
}
.tag-demo {
  display: inline-block;
  background: #efe9ff;
  color: #5b3cc4;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  vertical-align: middle;
}
.exion-notification-item {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0.8rem;
}
.exion-notification-item:hover {
  text-decoration: none;
}
.exion-notification-item.is-unread {
  border-color: var(--primary);
}
.exion-notification-title {
  font-weight: 700;
  margin-top: 0.2rem;
}
.exion-notification-text {
  margin-top: 0.25rem;
}
.exion-profile-statement {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.exion-profile-statement:last-of-type {
  border-bottom: none;
}
.pvz {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: block;
  width: 100%;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
}
.pvz__input {
  display: none;
}
.pvz.on {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.pvz:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
html.bvi-active .pvz__input {
  display: inline-block !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 1.35rem !important;
  height: 1.35rem !important;
  min-width: 1.35rem !important;
  min-height: 1.35rem !important;
  margin: 0.15rem 0.7rem 0 0 !important;
  padding: 0 !important;
  border: 2px solid currentColor !important;
  border-radius: 50% !important;
  background: transparent !important;
  vertical-align: top !important;
  cursor: pointer !important;
}
html.bvi-active .pvz__input:checked {
  background: radial-gradient(circle, currentColor 0 32%, transparent 36%) !important;
}
/* BVI.js инвертирует фон ссылок и кнопок при наведении. Для интерактивных карточек
   оставляем только контур — так содержимое не становится чёрной плашкой. */
html.bvi-active .bvi-body .drop,
html.bvi-active .bvi-body .drop:hover,
html.bvi-active .bvi-body .var,
html.bvi-active .bvi-body .var:hover,
html.bvi-active .bvi-body .var.on,
html.bvi-active .bvi-body .skip-choice,
html.bvi-active .bvi-body .skip-choice:hover {
  background-color: transparent !important;
  color: var(--bvi-site-color) !important;
}
html.bvi-active .bvi-body .drop.bvi-no-styles,
html.bvi-active .bvi-body .drop.bvi-no-styles:hover,
html.bvi-active .bvi-body .skip-choice.bvi-no-styles,
html.bvi-active .bvi-body .skip-choice.bvi-no-styles:hover {
  background-color: transparent !important;
}
html.bvi-active body .bvi-body[data-bvi-theme] button.var.skip-choice.bvi-no-styles:hover {
  background: transparent !important;
  background-image: none !important;
  color: var(--bvi-site-color) !important;
}
html.bvi-active .bvi-body .certbar,
html.bvi-active .bvi-body .certbar.bvi-background-image {
  background: transparent !important;
  border: 1px solid var(--bvi-site-color) !important;
  box-shadow: none !important;
  filter: none !important;
}
.map {
  height: 200px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, #e8eef2 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, #e8eef2 0 1px, transparent 1px 38px),
    #f5f8f6;
  position: relative;
  border: 1px solid var(--line);
  margin-bottom: 0.8rem;
}
.map .pin {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 1.5rem;
  cursor: pointer;
}
.memo ol li {
  margin-bottom: 0.5rem;
}
.pos.locked.wait {
  border-color: #f1d9a8;
  background: var(--warn-soft);
}
.pos.locked.wait .box {
  border-color: #e9c77e;
  background: #fff;
}
.toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.toolbar input,
.toolbar select {
  width: auto;
  min-width: 220px;
}
@media (max-width: 600px) {
  .toolbar input,
  .toolbar select {
    width: 100%;
  }
}

/* ---------- Yii2 EXION front shell ---------- */
.exion-front .topbar {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.exion-front-logo {
  flex: none;
}

.exion-front-logo img {
  display: block;
  width: 148px;
  height: auto;
}

.exion-front .nav {
  margin-left: 0.5rem;
}

.exion-front .btn.sm,
.exion-front .iconbtn {
  min-height: 36px;
}

.exion-front-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.exion-front-footer .in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.exion-front-footer p {
  margin-bottom: 0;
}

.exion-front-logout {
  margin: 0;
}

.form-error {
  display: block;
  margin-top: 0.35rem;
  color: var(--err);
  font-size: 0.86rem;
}

label.f > .form-error {
  color: var(--err);
  font-size: 0.86rem;
  margin-bottom: 0;
}

.callback-agreement .form-error {
  margin-bottom: 0.8rem;
}

.center {
  text-align: center;
}

.exion-hero {
  margin-bottom: 1rem;
}

.exion-hero h1 {
  max-width: 820px;
}

.exion-hero .lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.exion-home-stat {
  min-height: 138px;
}

.exion-home-stat .value {
  display: block;
  margin-top: 0.55rem;
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 800;
}

.exion-front pre {
  white-space: pre-wrap;
}

.exion-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.exion-product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  flex-direction: column;
}

.exion-product-card__media {
  display: grid;
  min-height: 190px;
  overflow: hidden;
  place-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

.exion-product-card__media img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}

.exion-product-card__body {
  display: flex;
  gap: 0.75rem;
  min-height: 270px;
  padding: 1rem;
  flex-direction: column;
}

.exion-product-card h3 {
  margin: 0;
}

.exion-product-card__bottom {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  align-items: flex-end;
  justify-content: space-between;
}

.exion-product-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.exion-product-meta div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.5rem;
}

.exion-product-meta dt {
  color: var(--muted);
}

.exion-product-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.exion-product-view-media {
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

.exion-product-view-media img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: contain;
}

.product-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.87rem;
  font-weight: 600;
}

.product-detail-layout {
  align-items: start;
}

.product-image-card {
  display: grid;
  min-height: 560px;
  padding: 1.2rem;
  place-items: center;
}

.product-gallery-stage {
  width: 100%;
  max-width: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
}

.product-gallery-stage.multiple {
  grid-template-columns: 42px minmax(0, 520px) 42px;
  gap: 0.65rem;
}

.product-gallery-stage.multiple .product-detail-image {
  grid-column: 2;
}

.product-gallery-control {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.product-gallery-control:hover,
.product-gallery-control:focus-visible,
.product-detail-thumb:hover,
.product-detail-thumb:focus-visible,
.product-detail-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 110, 140, 0.15);
  outline: none;
}

.product-detail-image {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow: hidden;
  cursor: zoom-in;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-price {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  font-size: 1.25rem;
}

.product-price b {
  font-size: 1.55rem;
}

.product-detail-thumbs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.85rem;
}

.product-detail-thumb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-detail-section {
  min-height: 142px;
  box-shadow: var(--shadow);
}

.product-detail-section h2 {
  font-size: 1.05rem;
}

.product-detail-section p:last-child {
  margin-bottom: 0;
}

.product-detail-bottom {
  align-items: stretch;
}

.product-specs {
  display: grid;
  gap: 0;
  margin: 0;
}

.product-specs div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.48rem 0;
  border-bottom: 1px dashed var(--line);
}

.product-specs div:last-child {
  border-bottom: none;
}

.product-specs dt {
  color: var(--muted);
}

.product-specs dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  text-align: right;
}

.product-extra-facts {
  margin-top: -0.45rem;
  padding: 0 0.15rem;
}

.product-related-rows {
  display: grid;
  margin-top: 0.7rem;
}

.product-related-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
}

.product-related-row:last-child {
  border-bottom: none;
}

.product-related-row b {
  white-space: nowrap;
}

.product-order-card p:last-child {
  margin-bottom: 0;
}

.product-order-card h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.35rem;
}

.product-order-card .alert {
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.85rem;
}

@media (max-width: 760px) {
  .product-image-card {
    min-height: 0;
  }

  .product-gallery-stage.multiple {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 0.35rem;
  }

  .product-gallery-control {
    width: 34px;
    height: 34px;
    font-size: 1.6rem;
  }

  .product-specs div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .product-specs dd {
    text-align: left;
  }

  .product-related-row {
    flex-direction: column;
    gap: 0.15rem;
  }
}

.exion-pager {
  display: flex;
  gap: 0.4rem;
  padding: 0;
  margin: 1rem 0 0;
  flex-wrap: wrap;
  list-style: none;
}

.exion-pager li {
  display: block;
}

.exion-pager .active a,
.exion-pager .active span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.exion-pager .disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 760px) {
  .exion-front-logo img {
    width: 132px;
  }

  .exion-front-login {
    margin-left: auto;
  }

  .exion-front-footer .in {
    align-items: flex-start;
    flex-direction: column;
  }

  .exion-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .exion-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
