/* ==========================================================================
   wpFace — стили личного кабинета и админки (в стиле основного сайта)
   Палитра сайта: #366CE3 (синий), #D0FC00 (лайм), #F2F2F2, #CFCFCF, #999, #666
   ========================================================================== */
:root {
  --blue: #366CE3; --blue-d: #2556c7; --blue-l: #EBF2FF;
  --lime: #D0FC00; --lime-d: #9fc200;
  --ink: #000; --text: #1a1a1a; --muted: #666; --muted2: #999;
  --line: #EEEEEE; --line2: #CFCFCF; --soft: #F2F2F2; --bg: #F7F8FB;
  --green: #1f9d55; --green-l: #e5f6ec; --yellow: #b7791f; --yellow-l: #fdf3dc;
  --red: #d64545; --red-l: #fde8e8; --grey-l: #f0f0f0;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --shadow: 0 10px 30px rgba(20, 35, 80, .06);
}
.w-scope, .w-scope * { box-sizing: border-box; }
.w-scope { font-family: 'Montserrat', sans-serif; color: var(--text); font-size: 15px; line-height: 1.55; }
.w-scope a { color: var(--blue); text-decoration: none; }
.w-scope a:hover { text-decoration: underline; }
.w-scope h1, .w-scope h2, .w-scope h3, .w-scope h4 { font-family: 'Montserrat', sans-serif; color: var(--ink); margin: 0; line-height: 1.25; }
.w-scope p { margin: 0 0 12px; }
.w-scope .ico { flex: 0 0 auto; }
.muted { color: var(--muted2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }

/* ------------------------------------------------------------ buttons */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px;
  border-radius: 12px; border: 1px solid transparent; font: 500 15px/1.2 'Montserrat', sans-serif; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .1s; text-decoration: none !important; white-space: nowrap; }
.w-btn:active { transform: translateY(1px); }
.w-btn-primary { background: var(--blue); color: #fff !important; }
.w-btn-primary:hover { background: var(--blue-d); }
.w-btn-outline { background: #fff; color: var(--ink) !important; border-color: var(--blue); }
.w-btn-outline:hover { background: var(--blue); color: #fff !important; }
.w-btn-light { background: var(--soft); color: var(--ink) !important; }
.w-btn-light:hover { background: #e6e6e6; }
.w-btn-lime { background: var(--lime); color: #000 !important; }
.w-btn-lime:hover { background: #c3ee00; }
.w-btn-danger { background: #fff; color: var(--red) !important; border-color: #f3c4c4; }
.w-btn-danger:hover { background: var(--red); color: #fff !important; border-color: var(--red); }
.w-btn-sm { min-height: 34px; padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.w-btn-block { width: 100%; }
.w-btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--soft); color: var(--ink); border: 0; cursor: pointer; }
.icon-btn:hover { background: #e6e6e6; }

/* ------------------------------------------------------------ badges */
.w-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 30px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1.4; }
.w-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.w-badge-blue { background: var(--blue-l); color: var(--blue); }
.w-badge-green { background: var(--green-l); color: var(--green); }
.w-badge-yellow { background: var(--yellow-l); color: var(--yellow); }
.w-badge-red { background: var(--red-l); color: var(--red); }
.w-badge-grey { background: var(--grey-l); color: #777; }
.w-badge-lime { background: var(--lime); color: #000; }

/* ------------------------------------------------------------ alerts */
.w-alert { padding: 14px 18px; border-radius: var(--r); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.w-alert-success { background: var(--green-l); color: #166c3b; border-color: #c7ebd5; }
.w-alert-error { background: var(--red-l); color: #9b2c2c; border-color: #f6caca; }
.w-alert-info { background: var(--blue-l); color: #234ea8; border-color: #d3e1fb; }
.w-alert-warning { background: var(--yellow-l); color: #8a5a12; border-color: #f4e0b0; }

/* ------------------------------------------------------------ cards */
.w-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; }
.w-card-flat { background: var(--soft); border-color: transparent; }
.w-card > h2, .w-card-title { font-size: 20px; font-weight: 500; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.w-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.w-card-head h2 { font-size: 20px; font-weight: 500; margin: 0; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); flex: 0 0 auto; }
.dot-blue { background: var(--blue); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; gap: 14px; align-items: center; color: inherit !important; text-decoration: none !important; transition: box-shadow .2s, border-color .2s; }
a.stat:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.stat-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--blue-l); color: var(--blue); }
.stat-ico.lime { background: #f4ffc2; color: #6a8200; }
.stat-ico.green { background: var(--green-l); color: var(--green); }
.stat-ico.yellow { background: var(--yellow-l); color: var(--yellow); }
.stat-num { font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--muted2); margin-top: 4px; }

/* ------------------------------------------------------------ tables */
.w-table-wrap { overflow-x: auto; margin: 0 -4px; }
.w-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.w-table th { text-align: left; font-weight: 500; color: var(--muted2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.w-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.w-table tr:last-child td { border-bottom: 0; }
.w-table tbody tr:hover td { background: #fafbfd; }
.w-table .row-title { font-weight: 500; color: var(--ink); }
.w-table .thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--soft); display: block; }
@media (max-width: 767px) {
  .w-table.stack thead { display: none; }
  .w-table.stack, .w-table.stack tbody, .w-table.stack tr, .w-table.stack td { display: block; width: 100%; }
  .w-table.stack tr { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; margin-bottom: 12px; }
  .w-table.stack td { border: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .w-table.stack td::before { content: attr(data-label); color: var(--muted2); font-size: 13px; text-align: left; }
  .w-table.stack td[data-label=""]::before { content: none; }
  .w-table.stack tbody tr:hover td { background: none; }
}

/* ------------------------------------------------------------ forms */
.w-form .field { margin-bottom: 18px; }
.w-form label, .w-label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.w-input, .w-form input[type=text], .w-form input[type=email], .w-form input[type=password], .w-form input[type=number],
.w-form input[type=url], .w-form input[type=tel], .w-form input[type=date], .w-form input[type=datetime-local], .w-form select, .w-form textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; background: var(--soft);
  font: 400 15px/1.4 'Montserrat', sans-serif; color: var(--ink); outline: none; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none; }
.w-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M11 1.5l-5 5-5-5' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.w-form textarea { min-height: 130px; resize: vertical; }
.w-input:focus, .w-form input:focus, .w-form select:focus, .w-form textarea:focus { border-color: var(--blue); background: #fff; }
.w-form .hint { font-size: 12px; color: var(--muted2); margin-top: 6px; }
.w-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.w-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
@media (max-width: 767px) { .w-form .row2, .w-form .row3 { grid-template-columns: 1fr; } }
.w-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; font-weight: 400 !important; }
.w-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }
.w-file { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px dashed var(--line2); border-radius: 12px; font-size: 14px; color: var(--muted); cursor: pointer; background: #fff; }
.w-file input { font-size: 13px; max-width: 100%; }

/* radio cards (варианты лицензий) */
.opts { display: grid; gap: 12px; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; transition: border-color .2s, background .2s; font-weight: 400 !important; margin: 0 !important; }
.opt:hover { border-color: var(--blue); }
.opt input { accent-color: var(--blue); width: 18px; height: 18px; flex: 0 0 auto; }
.opt .opt-name { font-weight: 500; color: var(--ink); }
.opt .opt-meta { font-size: 13px; color: var(--muted2); }
.opt .opt-price { margin-left: auto; font-weight: 600; font-size: 17px; color: var(--ink); white-space: nowrap; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-l); }

/* filters / chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 30px; background: var(--soft); color: var(--muted) !important; font-size: 13px; font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.chip:hover { background: #e8e8e8; }
.chip.active { background: var(--blue); color: #fff !important; }
.chip .cnt { opacity: .7; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.searchbar .w-input { flex: 1 1 220px; min-height: 44px; }
.searchbar select.w-input { flex: 0 1 200px; }

/* pager */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--soft); color: var(--ink) !important; font-size: 14px; text-decoration: none !important; padding: 0 8px; }
.pager a.active { background: var(--blue); color: #fff !important; }
.pager span { background: none; }

/* empty */
.empty { text-align: center; padding: 48px 20px; color: var(--muted2); }
.empty .ico { color: var(--line2); margin-bottom: 12px; }
.empty h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }

/* definition list */
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; font-size: 14px; }
.dl dt { color: var(--muted2); font-weight: 400; }
.dl dd { margin: 0; color: var(--ink); word-break: break-word; }
@media (max-width: 575px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }

/* license key */
.keybox { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 8px 8px 8px 14px; max-width: 100%; }
.keybox code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; color: var(--ink); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; background: none; padding: 0; }
.keybox .icon-btn { width: 32px; height: 32px; background: #fff; }
.keybox .icon-btn.copied { background: var(--green-l); color: var(--green); }

/* products grid (как карточки на сайте) */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pcard { background: #fff; border: 1px solid var(--line2); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard .pimg { display: block; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--soft); margin-bottom: 18px; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .ptype { font-size: 12px; color: var(--muted2); margin-bottom: 6px; }
.pcard .ptitle { font-size: 15px; font-weight: 500; color: var(--ink) !important; line-height: 1.5; margin-bottom: 16px; flex: 1 1 auto; }
.pcard .pbid { display: flex; justify-content: space-between; align-items: center; background: var(--soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.pcard .pbid .l { font-size: 13px; color: var(--muted2); }
.pcard .pbid .v { font-weight: 600; color: var(--ink); }

/* product detail on order page */
.prod-head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.prod-head img { width: 160px; height: 160px; object-fit: cover; border-radius: var(--r); background: var(--soft); }
@media (max-width: 575px) { .prod-head { grid-template-columns: 1fr; } .prod-head img { width: 110px; height: 110px; } }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0 0; font-size: 20px; font-weight: 600; color: var(--ink); }

/* ticket thread */
.thread { display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; max-width: 86%; }
.msg .avatar-initials { width: 40px; height: 40px; font-size: 14px; flex: 0 0 auto; }
.msg-body { background: var(--soft); border-radius: 4px 18px 18px 18px; padding: 14px 18px; min-width: 0; }
.msg-meta { font-size: 12px; color: var(--muted2); margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.msg-meta b { color: var(--ink); font-weight: 500; }
.msg-text { font-size: 14px; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-att { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; background: #fff; padding: 6px 12px; border-radius: 10px; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .msg-body { background: var(--blue-l); border-radius: 18px 4px 18px 18px; }
.msg.staff .msg-body { background: #f6ffd6; }
@media (max-width: 575px) { .msg { max-width: 100%; } .msg .avatar-initials { display: none; } }

/* avatars */
.avatar-initials { --h: 220; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50%;
  background: hsl(var(--h), 70%, 92%); color: hsl(var(--h), 55%, 35%); font-weight: 600; font-size: 15px; width: 44px; height: 44px; font-family: 'Montserrat', sans-serif; line-height: 1; }
.profile-inr .avatar-initials { width: 50px; height: 50px; }

/* mini bars chart */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1 1 0; background: var(--blue-l); border-radius: 6px 6px 2px 2px; position: relative; min-height: 3px; transition: background .2s; }
.bars .bar:hover { background: var(--blue); }
.bars .bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; background: #000; color: #fff; padding: 3px 7px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; margin-bottom: 6px; transition: opacity .15s; }
.bars .bar:hover span { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted2); margin-top: 8px; }

/* ==========================================================================
   КАБИНЕТ (внутри шапки/подвала сайта)
   ========================================================================== */
.cab { padding: 48px 0 80px; }
.cab-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line2); }
.cab-title h1 { font-size: 32px; font-weight: 500; }
.cab-title .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.cab-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.cab-side { position: sticky; top: 24px; }
.cab-user { display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--soft); border-radius: var(--r-lg); margin-bottom: 16px; }
.cab-user .avatar-initials { width: 52px; height: 52px; font-size: 18px; }
.cab-user .nm { font-weight: 500; color: var(--ink); line-height: 1.3; word-break: break-word; }
.cab-user .em { font-size: 12px; color: var(--muted2); word-break: break-all; }
.cab-nav { list-style: none; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.cab-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--muted) !important; font-size: 15px; font-weight: 500; text-decoration: none !important; transition: background .2s, color .2s; }
.cab-nav a:hover { background: var(--soft); color: var(--ink) !important; }
.cab-nav a.active { background: var(--blue); color: #fff !important; }
.cab-nav .count { margin-left: auto; background: var(--lime); color: #000; font-size: 11px; font-weight: 600; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.cab-nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
@media (max-width: 991px) {
  .cab { padding: 28px 0 60px; }
  .cab-title h1 { font-size: 26px; }
  .cab-grid { grid-template-columns: 1fr; gap: 20px; }
  .cab-side { position: static; }
  .cab-user { display: none; }
  .cab-nav { display: flex; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cab-nav::-webkit-scrollbar { display: none; }
  .cab-nav a { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
  .cab-nav .sep { display: none; }
}
@media (max-width: 575px) {
  .w-card { padding: 18px; border-radius: 20px; }
  .cab-title .actions { margin-left: 0; width: 100%; }
}

/* auth pages */
.auth { padding: 60px 0 90px; }
.auth-box { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.auth-art { position: relative; padding: 48px; color: #000; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px;
  background: radial-gradient(circle at 15% 20%, rgba(54,108,227,.55), transparent 55%), radial-gradient(circle at 85% 85%, rgba(208,252,0,.75), transparent 55%), #eef1f8; }
.auth-art .tiles { position: absolute; inset: 32px 32px auto 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-8deg); opacity: .95; }
.auth-art .tiles img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.auth-art h2 { font-size: 30px; font-weight: 500; position: relative; }
.auth-art p { position: relative; color: #333; margin-top: 10px; }
.auth-form { padding: 48px; }
.auth-form h1 { font-size: 30px; font-weight: 500; margin-bottom: 8px; }
.auth-form .sub { color: var(--muted2); margin-bottom: 28px; }
.auth-form .alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
@media (max-width: 991px) { .auth-box { grid-template-columns: 1fr; } .auth-art { display: none; } }
@media (max-width: 575px) { .auth { padding: 24px 0 60px; } .auth-form { padding: 28px 20px; } .auth-box { border-radius: 24px; } .auth-form h1 { font-size: 24px; } }

/* ==========================================================================
   АДМИНКА
   ========================================================================== */
body.adm-body { margin: 0; background: var(--bg); }
.adm { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: #fff; border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.adm-logo { display: flex; align-items: center; gap: 10px; padding: 0 10px 24px; font-size: 13px; color: var(--muted2) !important; text-decoration: none !important; }
.adm-logo img { height: 30px; }
.adm-nav { list-style: none; padding: 0; margin: 0; }
.adm-nav .cap { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); padding: 18px 12px 8px; }
.adm-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted) !important; font-weight: 500; font-size: 14px; text-decoration: none !important; transition: background .2s, color .2s; }
.adm-nav a:hover { background: var(--soft); color: var(--ink) !important; }
.adm-nav a.active { background: var(--blue); color: #fff !important; }
.adm-nav .count { margin-left: auto; background: var(--lime); color: #000; font-size: 11px; font-weight: 600; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.adm-side .bottom { margin-top: auto; padding-top: 20px; }
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: rgba(247, 248, 251, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.adm-top h1 { font-size: 22px; font-weight: 500; }
.adm-top .burger { display: none; }
.adm-top .user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.adm-top .user .avatar-initials { width: 38px; height: 38px; font-size: 13px; }
.adm-content { padding: 28px 32px 60px; }
.adm-grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.adm-grid-2 > * { min-width: 0; }
.adm-overlay { display: none; }
@media (max-width: 1100px) { .adm-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 991px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 40px rgba(0,0,0,.1); }
  .adm.open .adm-side { transform: none; }
  .adm.open .adm-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 40; }
  .adm-top { padding: 14px 16px; }
  .adm-top .burger { display: inline-flex; }
  .adm-top h1 { font-size: 18px; }
  .adm-top .user .nm { display: none; }
  .adm-content { padding: 20px 16px 48px; }
}
.adm-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 10% 10%, rgba(54,108,227,.25), transparent 45%), radial-gradient(circle at 90% 90%, rgba(208,252,0,.35), transparent 45%), var(--bg); }
.adm-login .w-card { width: 100%; max-width: 420px; padding: 36px; border-radius: 28px; box-shadow: var(--shadow); }
.adm-login .logo { display: block; height: 34px; margin: 0 auto 24px; }

/* специфичность: label внутри .w-form по умолчанию block */
.w-form label.opt, .w-scope label.opt { display: flex; margin: 0; }
.w-form label.w-check, .w-scope label.w-check { display: flex; margin: 0; }
.w-form label.w-file, .w-scope label.w-file { display: flex; margin: 0; font-weight: 400; }
.cab-grid > *, .cab-main, .cab-side { min-width: 0; }
@media (max-width: 991px) { .cab-grid { grid-template-columns: minmax(0, 1fr); } }
.w-file { max-width: 100%; min-width: 0; overflow: hidden; }
.w-file input { min-width: 0; width: 100%; }
@media (max-width: 575px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { flex-direction: column; align-items: flex-start; padding: 16px; gap: 10px; }
  .stat-num { font-size: 20px; }
}
@media (max-width: 575px) {
  .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard { padding: 12px; }
  .pcard .pimg { margin-bottom: 12px; }
  .pcard .ptitle { font-size: 13px; margin-bottom: 10px; }
  .pcard .pbid { padding: 8px 10px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .pcard .w-btn { min-height: 38px; font-size: 13px; padding: 8px 10px; }
}

/* ---- визуальный редактор страниц ---- */
.wed { border: 1px solid var(--line2); border-radius: 16px; background: #fff; overflow: hidden; position: relative; }
.wed-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); background: #fafbfd; position: sticky; top: 0; z-index: 2; }
.wed-btn { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 600 13px/1 'Montserrat', sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wed-btn:hover { background: var(--soft); }
.wed-sep { width: 1px; background: var(--line); margin: 6px 4px; }
.wed-area { min-height: 380px; max-height: 70vh; overflow-y: auto; padding: 24px 28px; outline: none; }
.wed-area:empty::before { content: 'Начните писать…'; color: var(--muted2); }
.wed .wed-src { display: block; width: 100%; min-height: 380px; border: 0 !important; border-radius: 0 !important; background: #0f172a !important; color: #e2e8f0 !important;
  font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace !important; padding: 18px !important; resize: vertical; }
.wed-html .wed-btn:not([data-cmd=html]) { opacity: .35; pointer-events: none; }
.wed-html .wed-btn[data-cmd=html] { background: var(--blue); color: #fff; }
.wed-busy::after { content: 'Загрузка…'; position: absolute; right: 14px; top: 14px; font-size: 12px; background: #000; color: #fff; padding: 4px 10px; border-radius: 8px; }
@media (max-width: 575px) { .wed-area { padding: 16px; min-height: 300px; } }
