/* dl-hosting — каталог-справочник.
   Песочная бумага, индиго-акцент, границы вместо теней, числа моноширинные.
   Источник правды — утверждённый макет: таблица внутри контейнера 1400px. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --max:        1400px;
  --bg:         #faf9f7;
  --panel:      #ffffff;
  --sand:       #f3f1ec;
  --sand-2:     #ece9e2;
  --line:       #ddd9d0;
  --line-strong:#c6c1b6;
  --ink:        #1b1a18;
  --ink-2:      #4c4941;
  --muted:      #77726a;
  --accent:     #3730a3;
  --accent-ink: #2a2480;
  --accent-soft:#eceaf6;
  --warn:       #8a5a12;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Golos Text', 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.dlh-num, td.dlh-num, .dlh-stat { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.dlh-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.dlh-main { display: block; }

/* ── Режим подготовки ───────────────────────────────────── */
.dlh-private {
  background: var(--warn); color: #fff; text-align: center;
  font-size: 13px; font-weight: 600; padding: 6px 12px; letter-spacing: .02em;
}

/* ── Шапка ──────────────────────────────────────────────── */
.dlh-hd { border-bottom: 1px solid var(--line); background: var(--panel); }
.dlh-hd__in { display: flex; align-items: center; gap: 28px; min-height: 56px; }

.dlh-lg {
  display: flex; align-items: baseline; gap: 8px;
  font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em; flex: none;
}
.dlh-lg:hover { text-decoration: none; }
.dlh-lg b { color: var(--accent); font-weight: 700; }
.dlh-lg span {
  font-weight: 400; font-size: 12px; color: var(--muted);
  letter-spacing: .02em; text-transform: uppercase;
}

.dlh-nav { margin-left: auto; }
.dlh-nav__list, .dlh-nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
.dlh-nav a { color: var(--ink-2); font-size: 14px; }
.dlh-nav a:hover, .dlh-nav .current-menu-item > a { color: var(--accent); }

.dlh-burger {
  display: none; margin-left: auto; width: 36px; height: 32px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: transparent; cursor: pointer; padding: 8px 7px;
  flex-direction: column; justify-content: space-between; flex: none;
}
.dlh-burger span { display: block; height: 1px; background: var(--ink-2); }
.dlh-burger:hover { border-color: var(--accent); }

/* ── Строка фильтров ────────────────────────────────────── */
.dlh-filters {
  position: sticky; top: 0; z-index: 20;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.dlh-filters__in { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 11px; }

.dlh-f { display: flex; flex-direction: column; gap: 3px; }
.dlh-f label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 600;
}
.dlh-f select, .dlh-f input {
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  height: 32px; padding: 0 8px; min-width: 150px;
}
.dlh-f input { min-width: 180px; }
.dlh-f select:focus, .dlh-f input:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
}

.dlh-found {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2); padding-bottom: 5px;
}
.dlh-found strong {
  font-variant-numeric: tabular-nums;
  background: var(--accent); color: #fff;
  padding: 2px 9px; border-radius: 2px; font-size: 14px; font-weight: 600;
}
.dlh-reset {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 2px;
  height: 32px; padding: 0 10px; font-family: inherit; font-size: 13px;
  color: var(--ink-2); cursor: pointer;
}
.dlh-reset:hover { border-color: var(--accent); color: var(--accent); }

/* ── Хлебные крошки ─────────────────────────────────────── */
.dlh-bc { border-bottom: 1px solid var(--line); background: var(--panel); }
.dlh-bc .dlh-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 7px; padding-bottom: 7px; }
.dlh-bc a { color: var(--muted); font-size: 12px; }
.dlh-bc a:hover { color: var(--accent); }
.dlh-bc__sep { color: var(--line-strong); font-size: 12px; }
.dlh-bc__cur { color: var(--ink-2); font-size: 12px; }

/* ── Каталог ────────────────────────────────────────────── */
.dlh-catalog { padding: 22px 0 6px; }
.dlh-cat-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
h1, .dlh-h1 { font-size: 20px; line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.dlh-cat-note { font-size: 13px; color: var(--muted); margin: 0; }
.dlh-lead { font-size: 14px; color: var(--ink-2); margin: 0; max-width: 900px; }
.dlh-catalog .dlh-lead { margin: 0 0 12px; }
.dlh-tags-more .dlh-taglist { margin-top: 10px; }

.dlh-tablewrap { border: 1px solid var(--line); background: var(--panel); }
.dlh-table { width: 100%; border-collapse: collapse; }
.dlh-table thead th {
  background: var(--sand-2);
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2);
  font-weight: 600; text-align: right; padding: 9px 12px; white-space: nowrap;
}
.dlh-table thead th:first-child { text-align: left; }
.dlh-table thead th.dlh-l { text-align: left; }
.dlh-table th.dlh-sortable { cursor: pointer; user-select: none; }
.dlh-table th.dlh-sortable:hover { color: var(--accent); }
.dlh-table th .dlh-arr { opacity: .28; margin-left: 4px; font-size: 10px; }
.dlh-table th.is-sorted .dlh-arr { opacity: 1; color: var(--accent); }

.dlh-table tbody tr { border-bottom: 1px solid var(--line); cursor: pointer; }
.dlh-table tbody tr[hidden] { display: none; }
.dlh-table tbody tr:last-child { border-bottom: 0; }
.dlh-table tbody tr:hover { background: var(--accent-soft); }
.dlh-table tbody tr:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.dlh-table tbody td { padding: 10px 12px; text-align: right; vertical-align: middle; }
.dlh-table tbody td:first-child { text-align: left; }
.dlh-table td.dlh-l { text-align: left; }

.dlh-prov { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dlh-logo {
  width: 32px; height: 32px; flex: 0 0 32px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--accent); background: var(--bg);
  overflow: hidden;
}
.dlh-logo img { width: 100%; height: 100%; object-fit: contain; }
.dlh-pname { display: block; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.2; }
.dlh-psub { display: block; font-size: 12px; color: var(--muted); }

.dlh-price { font-weight: 600; white-space: nowrap; }
.dlh-price i { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 2px; }
.dlh-dash { color: var(--line-strong); }
.dlh-geo { white-space: nowrap; }

.dlh-cell-tags, .dlh-table td.dlh-cell-tags { text-align: left; max-width: 280px; }
.dlh-chip {
  display: inline-block; border: 1px solid var(--line-strong); border-radius: 2px;
  font-size: 11px; color: var(--ink-2); padding: 1px 6px; margin: 1px 3px 1px 0; white-space: nowrap;
}
a.dlh-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.dlh-btn {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: 2px;
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; white-space: nowrap;
}
.dlh-btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.dlh-table tbody tr:hover .dlh-btn { background: var(--accent); color: #fff; }
.dlh-btn--fill { background: var(--accent); color: #fff; }
.dlh-btn--fill:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.dlh-btn--wide { display: block; text-align: center; padding: 9px 12px; font-size: 14px; }

.dlh-empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.dlh-tablefoot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); padding: 9px 2px 0;
}

/* ── Блоки страницы ─────────────────────────────────────── */
.dlh-block { padding: 34px 0 0; }
.dlh-h2 { font-size: 17px; margin: 0 0 12px; font-weight: 600; letter-spacing: -.01em; }
.dlh-h2 .dlh-h2note { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 8px; }

/* Разделы каталога */
.dlh-sections {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); background: var(--panel);
}
.dlh-sec {
  padding: 14px 16px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.dlh-sec:last-child { border-right: 0; }
.dlh-sec:hover { background: var(--accent-soft); text-decoration: none; }
.dlh-sec-n {
  font-size: 22px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.dlh-sec-n span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 5px; }
.dlh-sec-t { font-weight: 600; color: var(--ink); font-size: 15px; }
.dlh-sec-d { font-size: 12px; color: var(--muted); }

/* Подборки */
.dlh-taglist {
  border: 1px solid var(--line); background: var(--panel);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dlh-tag {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px;
}
.dlh-tag:nth-child(odd) { border-right: 1px solid var(--line); }
.dlh-taglist .dlh-tag:nth-last-child(-n+2) { border-bottom: 0; }
.dlh-tag:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.dlh-tag.is-cur { background: var(--sand); color: var(--accent); }
.dlh-tag .dlh-tag__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlh-tag .dlh-tag__n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.dlh-tags-more { margin-top: 10px; font-size: 13px; color: var(--muted); }
.dlh-tags-more summary { cursor: pointer; color: var(--accent); }

/* ── Нижний текст и вопросы ─────────────────────────────── */
.dlh-seo { padding: 38px 0 8px; }
.dlh-seo__in { border-top: 1px solid var(--line); padding-top: 18px; max-width: 900px; }
.dlh-seo h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.dlh-seo h3 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; }
.dlh-seo p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.dlh-seo ul { margin: 0 0 12px; padding-left: 18px; list-style: disc; color: var(--ink-2); font-size: 14.5px; }
.dlh-seo li { margin-bottom: 5px; }

.dlh-faq { padding: 26px 0 0; }
.dlh-faq__list { border: 1px solid var(--line); background: var(--panel); }
.dlh-faq__i { border-bottom: 1px solid var(--line); }
.dlh-faq__i:last-child { border-bottom: 0; }
.dlh-faq__i summary {
  cursor: pointer; list-style: none; padding: 11px 14px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.dlh-faq__i summary::-webkit-details-marker { display: none; }
.dlh-faq__i summary::before { content: '+'; color: var(--accent); margin-right: 9px; font-weight: 700; }
.dlh-faq__i[open] summary::before { content: '–'; }
.dlh-faq__i summary:hover { color: var(--accent); }
.dlh-faq__a { padding: 0 14px 13px 33px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* ── Карточка компании ──────────────────────────────────── */
.dlh-pv { padding: 22px 0 0; }
.dlh-pv__hd {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--panel); padding: 16px;
}
.dlh-pv__logo {
  width: 48px; height: 48px; flex: 0 0 48px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: var(--accent); background: var(--bg); overflow: hidden;
}
.dlh-pv__logo img { width: 100%; height: 100%; object-fit: contain; }
.dlh-pv__t { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.dlh-pv__facts { font-size: 13px; color: var(--muted); }
.dlh-pv__facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dlh-pv__act { flex: 0 0 220px; display: flex; flex-direction: column; gap: 6px; }
.dlh-pv__note { font-size: 11px; color: var(--muted); line-height: 1.4; }

.dlh-pv__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; padding: 26px 0 0; align-items: start; }
.dlh-spec { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel); }
.dlh-spec th, .dlh-spec td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; }
.dlh-spec tr:last-child th, .dlh-spec tr:last-child td { border-bottom: 0; }
.dlh-spec th { width: 38%; font-weight: 500; color: var(--muted); background: var(--sand); }
.dlh-spec td { font-variant-numeric: tabular-nums; }

.dlh-rel { border: 1px solid var(--line); background: var(--panel); }
.dlh-rel h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2);
  font-weight: 600; padding: 9px 12px; background: var(--sand-2); border-bottom: 1px solid var(--line-strong);
}
.dlh-rel__i {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.dlh-rel__i:last-child { border-bottom: 0; }
.dlh-rel__i:hover { background: var(--accent-soft); text-decoration: none; }
.dlh-rel__i b { font-weight: 600; font-size: 14px; display: block; }
.dlh-rel__i i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dlh-rel__logo {
  width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--line-strong); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--accent); background: var(--bg); overflow: hidden;
}
.dlh-rel__logo img { width: 100%; height: 100%; object-fit: contain; }

/* ── Текстовые страницы ─────────────────────────────────── */
.dlh-page { padding: 24px 0 0; }
.dlh-page__in { padding-top: 24px; padding-bottom: 8px; }
.dlh-prose { max-width: 900px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.dlh-prose h2 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.dlh-prose h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 18px 0 6px; }
.dlh-prose p { margin: 0 0 12px; }
.dlh-prose ul { list-style: disc; padding-left: 18px; margin: 0 0 12px; }
.dlh-prose li { margin-bottom: 5px; }
.dlh-prose table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel); margin: 0 0 14px; }
.dlh-prose th, .dlh-prose td { border-bottom: 1px solid var(--line); padding: 8px 11px; text-align: left; font-size: 14px; }

.dlh-404 { padding: 48px 0; }
.dlh-404__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── Подвал ─────────────────────────────────────────────── */
.dlh-ft { margin-top: 34px; border-top: 1px solid var(--line); background: var(--sand); padding: 16px 0 26px; }
.dlh-ft__in { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.dlh-ft__in a { color: var(--ink-2); }
.dlh-ft__in a:hover { color: var(--accent); }

/* ── Мобильные ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dlh-table thead th.dlh-cell-tags,
  .dlh-table tbody td.dlh-cell-tags { display: none; }
  .dlh-pv__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .dlh-lg span { display: none; }
}

@media (max-width: 860px) {
  .dlh-wrap { padding: 0 14px; }

  .dlh-hd__in { min-height: 0; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px 18px; }
  .dlh-burger { display: flex; }
  .dlh-nav { margin-left: 0; width: 100%; display: none; }
  .dlh-nav.is-open { display: block; }
  .dlh-nav__list, .dlh-nav ul { gap: 10px 18px; padding: 4px 0 2px; }

  .dlh-filters__in { padding-top: 9px; padding-bottom: 10px; gap: 8px; }
  .dlh-f { flex: 1 1 46%; }
  .dlh-f select, .dlh-f input { min-width: 0; width: 100%; }
  .dlh-found { margin-left: 0; width: 100%; padding-bottom: 0; }

  .dlh-sections { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dlh-sec:nth-child(2n) { border-right: 0; }
  .dlh-sec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .dlh-taglist { grid-template-columns: minmax(0, 1fr); }
  .dlh-tag, .dlh-tag:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
  .dlh-taglist .dlh-tag:last-child { border-bottom: 0; }

  .dlh-table thead { display: none; }
  .dlh-tablewrap { border-left: 0; border-right: 0; }
  .dlh-table, .dlh-table tbody { display: block; width: 100%; }
  .dlh-table tbody tr { display: block; padding: 12px; border-bottom: 1px solid var(--line); }
  .dlh-table tbody tr[hidden] { display: none; }
  .dlh-table tbody td { display: block; padding: 0; text-align: left; }
  .dlh-prov { margin-bottom: 9px; }
  .dlh-table td.dlh-mrow {
    display: flex; justify-content: space-between;
    border-top: 1px dashed var(--line); padding: 5px 0; font-size: 14px;
  }
  .dlh-table td.dlh-mrow::before { content: attr(data-l); color: var(--muted); font-size: 13px; }
  .dlh-table td.dlh-act { margin-top: 10px; }
  .dlh-table .dlh-btn {
    display: block; width: 100%; text-align: center; padding: 10px;
    background: var(--accent); color: #fff; font-size: 14px;
  }

  .dlh-pv__act { flex: 1 1 100%; }
  .dlh-btn--wide { width: 100%; }
  .dlh-spec th { width: 46%; }
}
