/* ============================================================
   ЛК DVER — редизайн 2026-11
   Серые тона + фирменный бледно-зелёный, градиенты, плавность
   (дизайн-язык презентации lk.dver.com/presentation)
   ============================================================ */
:root {
  --bg:        #eef0ea;
  --bg-soft:   #f4f5f1;
  --card:      #ffffff;
  --line:      #e2e5dc;
  --line-soft: #eceee7;
  --ink:       #23281e;
  --ink-2:     #5b6353;
  --ink-3:     #8b927f;
  --brand:     #b0cc3f;
  --brand-2:   #9cb837;
  --brand-dark:#5a6d12;
  --brand-deep:#46570e;
  --green:     #2e7d32;
  --red:       #b71c1c;
  --shadow-sm: 0 2px 12px rgba(28,36,5,.05);
  --shadow-md: 0 10px 30px rgba(28,36,5,.09);
  --shadow-lg: 0 18px 50px rgba(28,36,5,.14);
  --r:         14px;
  --r-lg:      18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 20px;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(176,204,63,.20), transparent 62%),
    radial-gradient(900px 520px at -12% 112%, rgba(90,109,18,.10), transparent 60%),
    linear-gradient(180deg, #f2f3ef 0%, #edeee8 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { text-decoration: none; color: var(--brand-dark); }

::selection { background: rgba(176,204,63,.45); color: var(--brand-deep); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cfd5c2;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); background-clip: content-box; border: 2px solid transparent; }

a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(176,204,63,.85);
  outline-offset: 2px;
}

/* ---------- анимации ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px) scale(.997); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   ФОРМЫ ВХОДА / РЕГИСТРАЦИИ (страницы вне кабинета)
   ============================================================ */
.box {
  background: var(--card);
  padding: 48px 40px 40px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg), 0 4px 14px rgba(28,36,5,.06);
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
  animation: fadeUp .55s ease both;
}
.box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 38%, var(--brand-2) 68%, var(--brand-dark));
}
.box .box-logo { display: block; margin: 6px auto 18px; width: 132px; height: auto; }
.box .box-logo svg { width: 100%; height: auto; display: block; }

h1 { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.sub { color: var(--ink-2); margin: 0 0 25px; font-size: 14px; line-height: 1.5; }

label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dde1d4;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 16px;
  font-family: inherit;
  background: #fbfcf8;
  color: var(--ink);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
input::placeholder, textarea::placeholder { color: #a8ae9c; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(176,204,63,.18);
}
input:disabled { background: #f2f3ee; color: #9aa08e; cursor: not-allowed; }

button, .btn {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(135deg, #b8d24a 0%, var(--brand) 45%, var(--brand-2) 100%);
  color: #1c2405;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(156,184,55,.25), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease, background .3s ease;
  text-decoration: none;
}
button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(156,184,55,.42), inset 0 1px 0 rgba(255,255,255,.35);
  filter: saturate(1.06);
  text-decoration: none;
}
button:active, .btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(156,184,55,.3); }
button:disabled { opacity: .5; cursor: default; transform: none; }

.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: #f7faf0;
  border-color: #d9e6b0;
  color: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(176,204,63,.2);
}

button.full { width: 100%; }

.error {
  background: linear-gradient(135deg, #fdeeea, #fbdcdc);
  color: var(--red);
  border: 1px solid #f0cccc;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}
.success {
  background: linear-gradient(135deg, #eaf6ec, #dcefe0);
  color: var(--green);
  border: 1px solid #c8e2cc;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}
.resend { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.resend a { color: var(--brand-dark); font-weight: 600; }
.resend a:hover { color: var(--brand-deep); text-decoration: underline; }

/* Чекбокс согласия */
label.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  cursor: pointer;
  margin-bottom: 18px;
}
label.consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--brand-2);
  cursor: pointer;
}

/* Переключатель Email / Логин */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: #f0f2ec;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.auth-tab:hover { color: var(--brand-dark); }
.auth-tab.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 2px 8px rgba(28,36,5,.10);
}

/* ============================================================
   ЛAYOUT КАБИНЕТА
   ============================================================ */
body.lk { padding: 0; display: block; background: transparent; }

.lk-header {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(226,229,220,.9);
  position: sticky;
  top: 0;
  z-index: 100;
}
.lk-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 2%, rgba(176,204,63,.85) 20%, rgba(90,109,18,.5) 55%, transparent 96%);
  pointer-events: none;
}
.lk-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.lk-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  border-radius: 10px;
  padding: 5px 8px;
  transition: background .3s ease, transform .3s ease;
}
.lk-logo:hover { background: linear-gradient(135deg, #f4f8e6, #eef5d8); transform: translateY(-1px) scale(1.015); }
.lk-logo-img { display: inline-flex; line-height: 0; }
.lk-logo-img svg { width: 124px; height: auto; display: block; }

.lk-site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-dark);
  padding: 7px 14px;
  border: 1px solid #e2e8c4;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7fbec, #f0f6da);
  white-space: nowrap;
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}
.lk-site-link:hover {
  background: linear-gradient(135deg, #f0f6da, #e8f1c6);
  border-color: #cfe09a;
  box-shadow: 0 4px 14px rgba(176,204,63,.35);
  transform: translateY(-1px);
  color: var(--brand-deep);
}

.lk-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.lk-user .email { color: var(--ink-3); font-size: 13px; }

/* Тип клиента в шапке */
.lk-type {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  background: #f0f1ec;
  color: var(--ink-2);
  border: 1px solid #e2e5dd;
  transition: all .3s ease;
}
.lk-type.type-retail    { background: #f0f1ec; color: var(--ink-2); border-color: #e2e5dd; }
.lk-type.type-wholesale { background: linear-gradient(135deg, #f4f8e6, #eaf2cf); color: var(--brand-dark); border-color: #d9e6b0; }
.lk-type.type-pending   { background: linear-gradient(135deg, #fff9e8, #fff3d6); color: #8a6d1a; border-color: #f0e3b8; }
.lk-type.type-rejected  { background: linear-gradient(135deg, #fdeeea, #fbdcdc); color: var(--red); border-color: #f0cccc; }
.lk-type.type-admin     { background: linear-gradient(135deg, #f0edf9, #e6e1f4); color: #4a3f8a; border-color: #d8d2ee; }

.lk-user .lk-logout {
  display: inline-block;
  color: var(--ink-2);
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.lk-user .lk-logout:hover {
  color: var(--red);
  border-color: #e5c6c6;
  background: #fdf5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(183,28,28,.12);
}

.lk-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}

.lk-side {
  background: linear-gradient(180deg, #ffffff, #fbfcf7);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 92px;
}
.lk-side ul { list-style: none; margin: 0; padding: 0; }
.lk-side li { margin: 2px 0; }
.lk-side a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.lk-side a:hover {
  background: linear-gradient(90deg, rgba(176,204,63,.18), rgba(176,204,63,.04));
  color: var(--brand-dark);
  transform: translateX(3px);
}
.lk-side a.active {
  background: linear-gradient(135deg, #f0f6da, #e7f0c8);
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(176,204,63,.35), 0 4px 12px rgba(176,204,63,.18);
}
.lk-side a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}
.lk-side .s-ic { flex-shrink: 0; opacity: .7; transition: opacity .3s ease; }
.lk-side a:hover .s-ic, .lk-side a.active .s-ic { opacity: 1; }

.lk-main { min-width: 0; }
.lk-main > * { animation: fadeUp .45s ease both; }
.lk-main > *:nth-child(1) { animation-delay: .02s; }
.lk-main > *:nth-child(2) { animation-delay: .07s; }
.lk-main > *:nth-child(3) { animation-delay: .12s; }
.lk-main > *:nth-child(4) { animation-delay: .17s; }
.lk-main > *:nth-child(5) { animation-delay: .22s; }
.lk-main > *:nth-child(n+6) { animation-delay: .26s; }

.lk-main h1 { font-size: 26px; font-weight: 700; margin: 0 0 20px; letter-spacing: -.35px; color: var(--ink); }
.lk-main h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 2px 8px rgba(176,204,63,.5);
}
.lk-main h2 { font-size: 18px; margin: 24px 0 12px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); }

/* Заголовок страницы + бейджи */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h1 { margin: 0; }
.page-head-desc { margin: 16px 0 0; color: var(--ink-2); font-size: 14px; max-width: 640px; line-height: 1.5; }
.page-head-badges { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.page-head-sub { color: var(--ink-3); font-size: 14px; padding-top: 8px; }

/* Бейджи статуса */
.badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-plain  { background: #eceee9; color: var(--ink-2); border-color: #e0e3da; }
.badge-brand  { background: linear-gradient(135deg, #f4f8e6, #eaf2cf); color: var(--brand-dark); border-color: #d9e6b0; }
.badge-ok     { background: linear-gradient(135deg, #eaf6ec, #dcefe0); color: var(--green); border-color: #c8e2cc; }
.badge-wait   { background: linear-gradient(135deg, #fff9e8, #fff3d6); color: #8a6d1a; border-color: #f0e3b8; }
.badge-no     { background: linear-gradient(135deg, #fdeeea, #fbdcdc); color: var(--red); border-color: #f0cccc; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #dfe4d4; }
.card p { margin: 8px 0; line-height: 1.55; }
.card .label { color: var(--ink-3); font-size: 13px; display: block; margin-bottom: 2px; }
.card a { color: var(--brand-dark); font-weight: 500; }
.card a:hover { color: var(--brand-deep); text-decoration: underline; }

/* Сетка ключ-значение */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 24px;
}
.kv .label { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.kv .val { font-size: 15px; font-weight: 500; color: var(--ink); word-break: break-word; }

/* Баннер статуса */
.status-banner {
  position: relative;
  overflow: hidden;
  padding: 13px 18px 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.status-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.status-banner.ok   { background: linear-gradient(90deg, #eaf6ec, #f7fbf4); color: var(--green); border-color: #c8e2cc; }
.status-banner.ok::before   { background: linear-gradient(180deg, var(--green), #7cbf85); }
.status-banner.wait { background: linear-gradient(90deg, #fff9e8, #fffdf6); color: #8a6d1a; border-color: #f0e3b8; }
.status-banner.wait::before { background: linear-gradient(180deg, #e6a700, #f0c95c); }
.status-banner.err  { background: linear-gradient(90deg, #fdeeea, #fffafa); color: var(--red); border-color: #f0cccc; }
.status-banner.err::before  { background: linear-gradient(180deg, var(--red), #e08a8a); }

/* Таблицы */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #f0f1ec;
}
.table th {
  background: linear-gradient(180deg, #fafbf6, #f4f6ee);
  font-weight: 700;
  color: var(--ink-2);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .25s ease; }
.table tbody tr:hover td { background: #f7faf0; }
.table a { color: var(--brand-dark); }
.table a:hover { color: var(--brand-deep); text-decoration: underline; }

.lk-footer {
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(250,251,246,.95));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 26px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 44px;
  line-height: 1.7;
}
.lk-footer a { color: var(--brand-dark); font-weight: 600; }
.lk-footer a:hover { color: var(--brand-deep); text-decoration: underline; }

.form-row { margin-bottom: 16px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* Возврат и замена: карточка с документами */
.docs-card {
  border: 1px solid #e4ecc6;
  border-left: 1px solid #e4ecc6;
  background: linear-gradient(135deg, #fbfdf4, #ffffff 60%);
}
.docs-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}
.docs-card h2 { margin: 0 0 10px; font-size: 16px; }
.docs-card p { font-size: 14.5px; line-height: 1.65; color: #3a4033; }
.docs-card a { color: var(--brand-dark); font-weight: 600; }
.docs-card a:hover { color: var(--brand-deep); text-decoration: underline; }
.doc-link {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f4f8e6;
  border: 1px solid #e2e8c4;
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.doc-link:hover {
  background: #eaf2cf;
  box-shadow: 0 3px 10px rgba(176,204,63,.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.profile-card h2 { margin: 0 0 16px; font-size: 16px; }

/* ============================================================
   ПРАЙС-ЛИСТЫ
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.price-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 50%, var(--brand-2));
  opacity: 0;
  transition: opacity .4s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: #d9e6b0;
  box-shadow: var(--shadow-lg);
}
.price-card:hover::before { opacity: 1; }
.price-card-top { display: flex; align-items: flex-start; gap: 14px; }
.price-card-info { min-width: 0; flex: 1; }
.price-card-name {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
}
.price-card-meta { color: var(--ink-3); font-size: 13px; margin-top: 5px; }
.price-dl {
  align-self: flex-start;
  padding: 9px 20px;
  font-size: 14px;
  border-radius: 9px;
}
.p-ic { flex-shrink: 0; }

.section-title {
  position: relative;
  margin: 34px 0 6px;
  padding-left: 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.25px;
  color: var(--ink);
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}
.section-sub { margin: 0 0 18px; padding-left: 16px; color: var(--ink-3); font-size: 13.5px; }

/* ============================================================
   ЗАКАЗЫ
   ============================================================ */
.order {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.order:hover { box-shadow: var(--shadow-md); border-color: #dfe4d4; }
.order[open] { border-color: #d9e6b0; box-shadow: 0 14px 40px rgba(28,36,5,.10); }

.order-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  transition: background .3s ease;
}
.order-head::-webkit-details-marker { display: none; }
.order-head:hover { background: linear-gradient(90deg, #f7faf0, #ffffff 80%); }
.order[open] .order-head { background: linear-gradient(90deg, #f4f8e6, #ffffff 75%); }
.order-when { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-id { font-weight: 600; font-size: 15px; color: var(--ink); }
.order-date { color: var(--ink-3); font-size: 13px; }
.order-head .badge { flex-shrink: 0; }
.order-head-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.order-total { font-weight: 700; font-size: 15.5px; white-space: nowrap; color: var(--ink); }
.order-count { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.chev { color: #c2c8b8; transition: transform .35s ease, color .35s ease; }
.order-head:hover .chev { color: var(--brand-dark); }
.order[open] .chev { transform: rotate(180deg); color: var(--brand-dark); }

.order-body { padding: 4px 20px 20px; border-top: 1px solid #f0f1ec; }
.order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
  padding: 14px 0 4px;
}
.om { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om-l { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.om-v { font-size: 14px; color: #3a4033; word-break: break-word; }

.order-items {
  margin: 14px 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0f1ec;
  box-shadow: none;
}
.order-items th.num, .order-items td.num { text-align: right; white-space: nowrap; }
.order-items td.strong { font-weight: 700; }
.item-name { word-break: break-word; }
.item-art { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }

.order-totals {
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f7faf0, #f1f5e2);
  border: 1px solid #e8eed6;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ot { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.ot span:last-child { font-weight: 600; color: #3a4033; white-space: nowrap; }
.ot.main { font-size: 15.5px; }
.ot.main span { color: var(--ink); font-weight: 700; }
.ot.save { color: var(--brand-dark); }
.ot.save span:last-child { color: var(--brand-dark); }

@media (max-width: 768px) {
  .order-head { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
  .order-head-right { width: 100%; margin-left: 0; justify-content: flex-end; }
  .order-body { padding: 4px 16px 16px; }
  .order-items { display: block; overflow-x: auto; }
  .order-items table { min-width: 560px; }
}

/* ============================================================
   ФОРМЫ
   ============================================================ */
.hint { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.sub-label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
textarea { resize: vertical; min-height: 70px; }

/* Поле телефона с префиксом +7 */
.phone-wrap { display: flex; gap: 0; margin-bottom: 4px; }
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(180deg, #f4f6ee, #eef1e4);
  border: 1px solid #dde1d4;
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  flex: 0 0 auto;
}
.phone-wrap .phone-input { border-radius: 0 10px 10px 0; margin-bottom: 0; }
.phone-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin: 4px 0 16px;
  transition: color .25s ease;
}
.phone-hint.ok { color: var(--green); }
.phone-hint.bad { color: var(--red); }

/* ============================================================
   ДИЛЕРЫ (админ)
   ============================================================ */
.dealers-list { display: flex; flex-direction: column; gap: 14px; }
.dealer-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-left: 4px solid #e4e4e4;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.dealer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dealer-card.row-approved { border-left-color: var(--brand); background: linear-gradient(135deg, #fdfef9, #f8fbef); }
.dealer-card.row-rejected { border-left-color: #e8b4b4; background: linear-gradient(135deg, #fdfbfb, #fbf3f3); }
.dealer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dealer-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.dealer-rows { display: flex; flex-direction: column; gap: 6px; }
.drow { display: flex; gap: 14px; font-size: 14px; line-height: 1.45; }
.dlabel { flex: 0 0 92px; color: var(--ink-3); font-size: 13px; padding-top: 1px; }
.dval { color: #3a4033; overflow-wrap: anywhere; }
.dval-mail { color: var(--brand-dark); }
.dealer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f1ec;
}
.dealer-actions .inline-form { margin: 0; }
.dealer-actions .inline-form button { padding: 8px 18px; font-size: 14px; border-radius: 9px; }
.dealer-actions .btn-ok {
  background: linear-gradient(135deg, #b8d24a, var(--brand-2));
  color: #1c2405;
  box-shadow: 0 2px 8px rgba(156,184,55,.3);
}
.dealer-actions .btn-ok:hover { box-shadow: 0 6px 16px rgba(156,184,55,.45); }
.dealer-actions .btn-no {
  background: linear-gradient(135deg, #fdeeea, #fbdcdc);
  color: var(--red);
  border: 1px solid #f0cccc;
  box-shadow: none;
}
.dealer-actions .btn-no:hover { background: linear-gradient(135deg, #fbdcdc, #f8caca); box-shadow: 0 4px 12px rgba(183,28,28,.15); }
.dealer-actions .btn-plain {
  background: #f0f1ec;
  color: var(--ink-2);
  border: 1px solid #e2e5dd;
  box-shadow: none;
}
.dealer-actions .btn-plain:hover { background: #e8eae2; box-shadow: none; }
.dealer-actions .btn-open {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 9px;
  color: var(--brand-dark);
  background: #f4f6ee;
  border: 1px solid #e2e8c4;
  transition: all .3s ease;
}
.dealer-actions .btn-open:hover { background: #eaf2cf; border-color: #cfe09a; color: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(176,204,63,.25); }

/* Тулбар списка дилеров */
.dealers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sort-switch {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 3px;
}
.sort-switch a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.sort-switch a:hover { color: var(--brand-dark); }
.sort-switch a.active {
  background: linear-gradient(135deg, #b8d24a, var(--brand-2));
  color: #1c2405;
  box-shadow: 0 2px 8px rgba(156,184,55,.35);
}
.dealers-count { color: var(--ink-3); font-size: 13px; }

/* Пагинация */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pagination a, .pagination span {
  display: inline-block;
  min-width: 34px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  box-shadow: 0 1px 4px rgba(28,36,5,.04);
  transition: all .3s ease;
}
.pagination a:hover {
  color: var(--brand-dark);
  border-color: #d9e6b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(176,204,63,.2);
}
.pagination span.current {
  background: linear-gradient(135deg, #b8d24a, var(--brand-2));
  color: #1c2405;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(156,184,55,.35);
}
.pagination span.disabled { color: #c2c8b8; background: transparent; box-shadow: none; border-color: transparent; }

/* Карточка дилера (dealer_view.php) */
.dealer-view-profile .drow { padding: 5px 0; border-bottom: 1px solid #f4f5f0; }
.dealer-view-profile .drow:last-child { border-bottom: none; }
.dealer-view-profile .dlabel { flex-basis: 110px; }
.btn-back { display: inline-block; padding: 9px 18px; font-size: 14px; }

/* Блок «Сегодня на сайте» */
.today-strip {
  background: linear-gradient(135deg, #f7fbef, #ffffff 70%);
  border: 1px solid #e4ecc6;
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  transition: box-shadow .35s ease;
}
.today-strip:hover { box-shadow: var(--shadow-md); }
.today-strip .ts-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.today-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #e2ecc8;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: #3a4033;
  box-shadow: 0 1px 4px rgba(28,36,5,.04);
  transition: all .3s ease;
}
.tchip:hover {
  border-color: var(--brand);
  background: #fbfdf4;
  box-shadow: 0 4px 14px rgba(176,204,63,.3);
  transform: translateY(-1px);
}
.tchip b { color: var(--brand-deep); font-weight: 600; }
.tchip .cnt { color: var(--brand-dark); font-weight: 700; font-size: 12px; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green  { background: var(--green); box-shadow: 0 0 0 3px rgba(46,125,50,.15); }
.dot-yellow { background: #e6a700; box-shadow: 0 0 0 3px rgba(230,167,0,.15); }
.dot-gray   { background: #c8cdbc; }

/* Компактная таблица дилеров */
.dealers-table-wrap {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  overflow-x: auto;
}
table.dealers-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.dealers-table thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--ink-3);
  font-weight: 700;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafbf6, #f4f6ee);
  white-space: nowrap;
}
.dealers-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f4f5f0; vertical-align: middle; }
.dealers-table tbody tr { transition: background .25s ease; }
.dealers-table tbody tr:last-child td { border-bottom: none; }
.dealers-table tbody tr:hover { background: #f7faf0; }
.dealers-table tr.row-rejected td { background: #fdf8f8; }
.dealers-table tr.row-rejected:hover td { background: #fbeeee; }

.d-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.d-company { font-size: 12px; color: var(--ink-3); margin-top: 1px; line-height: 1.25; }
.d-phone { font-size: 13px; color: #3a4033; line-height: 1.3; white-space: nowrap; }
.d-mail { font-size: 12px; color: var(--brand-dark); line-height: 1.3; overflow-wrap: anywhere; }
.d-date { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

.act-line { font-size: 12.5px; color: #3a4033; line-height: 1.45; white-space: nowrap; }
.act-line .lbl { color: #b3b9a8; font-size: 11.5px; margin-right: 4px; }
.act-line .when { font-weight: 600; color: #3a4033; }
.act-line .when.fresh { color: var(--green); }
.act-line .views { color: var(--brand-dark); font-weight: 700; }
.act-line .never { color: #c2c8b8; }
.act-dot { margin-right: 5px; vertical-align: -1px; }

/* Кнопки действий в таблице */
.d-actions { white-space: nowrap; text-align: right; }
.d-actions .inline-form { display: inline-block; margin: 0 0 0 4px; }
.d-actions .btn-open {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #f4f6ee;
  border: 1px solid #e2e8c4;
  transition: all .3s ease;
}
.d-actions .btn-open:hover { background: #eaf2cf; border-color: #cfe09a; transform: translateY(-1px); }

.ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  vertical-align: middle;
  transition: all .25s ease;
}
.ibtn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(28,36,5,.14); }
.ibtn-ok  { background: linear-gradient(135deg, #e8f3d3, #d9ecbe); color: var(--green); }
.ibtn-ok:hover  { box-shadow: 0 4px 12px rgba(46,125,50,.25); }
.ibtn-no  { background: linear-gradient(135deg, #fdeeea, #fbdcdc); color: var(--red); }
.ibtn-no:hover  { box-shadow: 0 4px 12px rgba(183,28,28,.2); }
.ibtn-back { background: #f0f1ec; color: var(--ink-2); border-color: #e2e5dd; }
.ibtn-back:hover { background: #e8eae2; }

/* ============================================================
   МОБИЛЬНЫЕ
   ============================================================ */
@media (max-width: 768px) {
  body { padding: 0; }
  .lk-wrap { grid-template-columns: 1fr; padding: 16px; }
  .lk-side { position: static; overflow-x: auto; }
  .lk-side ul { display: flex; gap: 4px; }
  .lk-side a { white-space: nowrap; }
  .lk-side a:hover { transform: none; }
  .lk-side a.active { box-shadow: inset 0 -3px 0 var(--brand); }
  .lk-side a.active::before { display: none; }
  .lk-header-inner { padding: 0 16px; gap: 12px; height: 60px; }
  .lk-logo-img svg { width: 96px; }
  .lk-site-link span { display: none; }
  .lk-user .email { display: none; }
  .page-head { flex-direction: column; gap: 10px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 10px 12px; }
  .box { margin: 16px; }
  .lk-main h1 { font-size: 22px; }
  .card { padding: 18px; }
  .dealer-card { padding: 14px 16px; }
  .drow { flex-direction: column; gap: 1px; }
  .dlabel { flex: none; }
  .dealers-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .today-strip { padding: 10px 12px; }
  .dealers-table-wrap { border-radius: 10px; }
  .dealers-table thead th, .dealers-table tbody td { padding: 8px 9px; }
}
