/* Оптовый сайт — нейтральное оформление (до логотипа и цветов Заказчика: заменить --accent и logo.svg). */
:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --line: #e2e0da;
  --accent: #c2410c;
  --accent-text: #ffffff;
  --ok: #166534;
  --ok-bg: #e8f5ec;
  --err: #b91c1c;
  --err-bg: #fdecec;
  --warn-bg: #fff6e0;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1200px; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-logo { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.main { padding-top: 24px; padding-bottom: 40px; flex: 1 0 auto; width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero { text-align: center; padding: 28px 0 20px; }
.hero h1 { font-size: 1.9rem; margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 20px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.2rem; margin-top: 1.4em; }
.card > h2:first-child { margin-top: 0; }
.muted { color: var(--muted); font-size: .92rem; }
.hint { background: var(--warn-bg); border-radius: 8px; padding: 10px 12px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-small { padding: 8px 14px; min-height: 38px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-danger { background: var(--err); }
button.link { background: none; border: 0; padding: 6px 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
button.link.danger { color: var(--err); }
form.inline { display: inline; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; min-height: 44px; }
input[readonly] { background: var(--bg); color: var(--muted); }
input[type=file] { font: inherit; max-width: 100%; }
.field-error { color: var(--err); margin: -6px 0 0; font-size: .92rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.flash { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.flash p { margin: 4px 0; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }
.banner { border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.banner ul { margin: 6px 0 0; padding-left: 20px; }
.banner-warn { background: var(--warn-bg); }
.banner-error { background: var(--err-bg); }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 6px; }
.contacts { list-style: none; padding: 0; }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.price-list li div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--bg); }
tr.dim td { color: var(--muted); }
.actions-cell { white-space: nowrap; }
.actions-cell form, .actions-cell a { margin-right: 10px; }
.actions-cell a { display: inline-block; padding: 6px 0; }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-form input[type=text], .row-form input[type=search] { flex: 1 1 180px; width: auto; }
.search { margin-bottom: 8px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.doc { line-height: 1.6; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--card); padding: 16px 0; font-size: .92rem; }
.site-footer p { margin: 4px 0; }
/* Телефон/узкий планшет: таблицы админки не сжимают колонки, а прокручиваются вбок (проверка вёрстки 15.10). */
@media (max-width: 760px) {
  .table-wrap table { min-width: 720px; }
}
/* Телефон: строки таблиц — карточками «Подпись: значение» (подписи из заголовков ставит assets/forms.js, класс stack). */
@media (max-width: 640px) {
  .table-wrap table.stack { min-width: 0; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.stack td { border: 0; padding: 3px 0; overflow-wrap: anywhere; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .9rem; }
  table.stack td.actions-cell { white-space: normal; padding-top: 6px; }
  table.stack td.actions-cell::before { content: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .price-list li { flex-direction: column; align-items: flex-start; }
  .card { padding: 16px; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { margin-top: 6px; }
}

/* Кнопка «показать пароль» (assets/forms.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 92px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); border: 0; background: none;
  font: inherit; font-size: .9rem; color: var(--muted); padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: inherit; background: var(--bg); }
