/* Darvoto — мобилен header (до 980 px). На десктоп нищо не се показва. */
.dvmh, .dvmh-chips, .dvmh-ov, .dvmh-panel { display: none; }

@media (max-width: 980px) {
  :root { --dvmh-ink: #191816; --dvmh-muted: #655f57; --dvmh-accent: #806044; --dvmh-soft: #f7f4ef; --dvmh-line: #e7ddd2; }
  /* Старият header на Divi — скрит само на мобилно и само когато новият е сложен (html.dvmh-on) */
  html.dvmh-on #main-header, html.dvmh-on #top-header { display: none !important; }
  html.dvmh-on #page-container { padding-top: 0 !important; margin-top: 0 !important; }

  .dvmh, .dvmh-chips { display: block; }
  .dvmh { position: sticky; top: 0; z-index: 99990; background: #fff; border-bottom: 1px solid var(--dvmh-line); font-family: inherit; }
  .admin-bar .dvmh { top: 46px; }
  .dvmh-bar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px; }
  .dvmh-right { display: flex; }
  .dvmh .dvmh-ib, .dvmh-panel .dvmh-ib {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0;
    border: 0; border-radius: 12px; background: none; color: var(--dvmh-ink); cursor: pointer; text-decoration: none;
  }
  .dvmh-ib svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dvmh-ib:focus-visible, .dvmh-panel a:focus-visible, .dvmh-panel button:focus-visible { outline: 2px solid var(--dvmh-accent); outline-offset: 2px; }
  .dvmh-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #d0021b; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
  .dvmh-count[hidden] { display: none; }
  .dvmh-logo { display: flex; align-items: center; justify-content: center; height: 60px; }
  .dvmh-logo img { display: block; max-height: 46px; width: auto; }
  .dvmh-logo--wide img { max-height: 36px; max-width: 170px; }

  .dvmh-search { display: flex; gap: 8px; padding: 0 12px 12px; }
  .dvmh-search[hidden] { display: none; }
  .dvmh-search input[type="search"] { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--dvmh-line); border-radius: 12px; background: var(--dvmh-soft); font: inherit; font-size: 16px; color: var(--dvmh-ink); }
  .dvmh-search button { height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--dvmh-ink); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }

  .dvmh-chips { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--dvmh-line); }
  .dvmh-chip { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--dvmh-line); border-radius: 12px; background: var(--dvmh-soft); color: var(--dvmh-ink); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.1; }
  .dvmh-chip img { flex: none; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #fff; }
  .dvmh-chip span { min-width: 0; }
  .dvmh-chip small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--dvmh-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Панел */
  .dvmh-ov { display: block; position: fixed; inset: 0; z-index: 99998; background: rgba(25, 24, 22, .45); opacity: 0; transition: opacity .2s; }
  .dvmh-ov[hidden] { display: none; }
  .dvmh-panel { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 99999; width: min(88vw, 360px); background: #fff; box-shadow: 12px 0 40px rgba(0, 0, 0, .25); transform: translateX(-102%); transition: transform .25s ease; }
  .dvmh-panel[hidden] { display: none; }
  .dvmh-open .dvmh-ov { opacity: 1; }
  .dvmh-open .dvmh-panel { transform: none; }
  .admin-bar .dvmh-panel { top: 46px; }
  .dvmh-ph { display: flex; align-items: center; justify-content: space-between; flex: none; height: 60px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--dvmh-line); }
  .dvmh-ph .dvmh-logo { justify-content: flex-start; }
  .dvmh-pc { flex: 1; overflow-y: auto; padding: 14px 14px 18px; -webkit-overflow-scrolling: touch; }
  .dvmh-lbl { margin: 2px 2px 10px !important; padding: 0 !important; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dvmh-accent); }
  .dvmh-feat { position: relative; display: flex; align-items: center; gap: 12px; min-height: 86px; margin-bottom: 10px; padding: 12px; overflow: hidden; border-radius: 16px; background: #2a2622; color: #fff !important; text-decoration: none; }
  .dvmh-feat__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
  .dvmh-feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 24, 22, .88) 0%, rgba(25, 24, 22, .55) 60%, rgba(25, 24, 22, .2)); }
  .dvmh-feat__tx { position: relative; z-index: 1; flex: 1; min-width: 0; }
  .dvmh-feat b { display: block; font-size: 22px; line-height: 1.05; }
  .dvmh-feat__tx span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.25; opacity: .9; }
  .dvmh-feat i { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--dvmh-ink); font-style: normal; font-size: 18px; }

  .dvmh-list, .dvmh-sub { margin: 0 !important; padding: 0 !important; list-style: none !important; }
  .dvmh-list { margin-top: 6px !important; border-top: 1px solid #eee5da; }
  .dvmh-list > li { margin: 0; padding: 0; border-bottom: 1px solid #eee5da; list-style: none; }
  .dvmh-panel .dvmh-it { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; margin: 0; padding: 0 4px; border: 0; background: none; color: var(--dvmh-ink); font: inherit; font-size: 18px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
  .dvmh-it > span[aria-hidden] { color: var(--dvmh-accent); font-weight: 400; }
  .dvmh-pl { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid #d9cdbf; border-radius: 50%; }
  .dvmh-pl::before, .dvmh-pl::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.6px; background: var(--dvmh-accent); transform: translate(-50%, -50%); transition: transform .2s; }
  .dvmh-pl::after { transform: translate(-50%, -50%) rotate(90deg); }
  .dvmh-it[aria-expanded="true"] .dvmh-pl::after { transform: translate(-50%, -50%) rotate(0deg); }
  .dvmh-sub { margin: 0 0 10px !important; padding: 2px 12px !important; border-radius: 12px; background: var(--dvmh-soft); }
  .dvmh-sub[hidden] { display: none; }
  .dvmh-sub li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #ebe2d6; }
  .dvmh-sub li:last-child { border-bottom: 0; }
  .dvmh-sub a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; color: var(--dvmh-ink); font-size: 16px; text-decoration: none; }
  .dvmh-sub a span { color: var(--dvmh-accent); }
  .dvmh-pf { flex: none; padding: 12px 14px 16px; border-top: 1px solid var(--dvmh-line); }
  .dvmh-call { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px; background: #1e7a34; color: #fff !important; font-size: 17px; font-weight: 600; text-decoration: none; }
  .dvmh-call svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  html.dvmh-lock, html.dvmh-lock body { overflow: hidden; }
}
@media (max-width: 600px) { .admin-bar .dvmh { top: 0; } }
@media (prefers-reduced-motion: reduce) { .dvmh-panel, .dvmh-ov, .dvmh-pl::before, .dvmh-pl::after { transition: none; } }

/* ================================================================
   Десктоп меню (над 980 px) — body.dvdh
   ================================================================ */
.dvdh { display: none; }
@media (min-width: 981px) {
  body.dvdh-on #main-header, body.dvdh-on #top-header { display: none !important; }
  body.dvdh-on #page-container { padding-top: 0 !important; margin-top: 0 !important; }

  .dvdh {
    --d-ink: #191816; --d-muted: #655f57; --d-accent: #806044; --d-soft: #f7f4ef; --d-line: #e7ddd2;
    display: block; position: sticky; top: 0; z-index: 99990;
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--d-line); color: var(--d-ink); font-family: inherit;
  }
  .admin-bar .dvdh { top: 32px; }
  .dvdh * { box-sizing: border-box; }
  .dvdh-bar { position: relative; display: flex; align-items: center; gap: 16px; max-width: 1360px; height: 68px; margin: 0 auto; padding: 0 32px; transition: height .2s; }
  .dvdh.is-scrolled .dvdh-bar { height: 56px; }
  .dvdh .dvmh-logo { flex: 0 0 auto; display: flex; align-items: center; height: auto; }
  .dvdh .dvmh-logo img { display: block; width: auto; max-height: 40px; max-width: 180px; transition: max-height .2s; }
  .dvdh.is-scrolled .dvmh-logo img { max-height: 34px; }

  .dvdh-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
  .dvdh-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .dvdh-item { position: static; margin: 0; padding: 0; list-style: none; }
  .dvdh-more { position: relative; }
  .dvdh .dvdh-top {
    display: flex; align-items: center; gap: 6px; height: 40px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px;
    background: none; color: #3a352f; font: inherit; font-size: 17px; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  }
  .dvdh-item.is-feat > .dvdh-top { color: var(--d-ink); font-weight: 700; }
  .dvdh-item.is-feat > .dvdh-top::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dvdh-dot, var(--d-accent)); }
  .dvdh-ch { width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .55; transition: transform .2s; }
  .dvdh-item:hover > .dvdh-top, .dvdh-item.is-open > .dvdh-top, .dvdh .dvdh-top:focus-visible { background: #f1ebe3; outline: none; }
  .dvdh-item:hover > .dvdh-top .dvdh-ch, .dvdh-item.is-open > .dvdh-top .dvdh-ch { transform: translateY(1px) rotate(225deg); }

  /* Панел */
  .dvdh-panel {
    position: absolute; left: 0; right: 0; top: 100%; padding: 22px 32px 26px; background: #fff;
    border-bottom: 1px solid var(--d-line); box-shadow: 0 30px 60px rgba(25, 24, 22, .12);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .dvdh-item.has-panel:hover > .dvdh-panel, .dvdh-item.is-open > .dvdh-panel {
    opacity: 1; visibility: visible; transform: none; transition: opacity .18s .08s, transform .18s .08s, visibility 0s .08s;
  }
  .dvdh-in { display: flex; justify-content: center; align-items: stretch; gap: 12px; max-width: 1180px; margin: 0 auto; }
  .dvdh-intro { flex: 0 0 210px; display: flex; flex-direction: column; justify-content: center; padding-right: 10px; }
  .dvdh-intro img { width: 60px; height: 60px; margin-bottom: 10px; border-radius: 12px; object-fit: cover; }
  .dvdh-intro b { font-size: 22px; line-height: 1.1; }
  .dvdh-intro span { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--d-muted); }

  .dvdh a.dvdh-sz, .dvdh a.dvdh-tile { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--d-ink); text-decoration: none; border-radius: 14px; background: var(--d-soft); border: 1px solid #efe7dc; transition: border-color .15s, transform .15s; }
  .dvdh a.dvdh-sz:hover, .dvdh a.dvdh-tile:hover { border-color: var(--d-accent); transform: translateY(-2px); }
  .dvdh-sz { justify-content: center; width: 118px; min-height: 112px; padding: 12px 8px; }
  .dvdh-sz b { font-size: 28px; line-height: 1; }
  .dvdh-sz b small { margin-left: 3px; font-size: 15px; font-weight: 400; }
  .dvdh-tile { width: 150px; padding: 10px 10px 12px; }
  .dvdh-tile img { width: 100%; height: 96px; border-radius: 10px; object-fit: cover; background: #fff; }
  .dvdh-tile b { margin-top: 10px; font-size: 16px; line-height: 1.15; }
  .dvdh-sz em, .dvdh-tile em { margin-top: 6px; font-size: 12.5px; font-style: normal; line-height: 1.25; color: var(--d-accent); }
  .dvdh a.dvdh-all { display: flex; align-items: center; padding: 0 14px; color: var(--d-accent); font-size: 15px; white-space: nowrap; text-decoration: none; }
  .dvdh a.dvdh-all:hover { text-decoration: underline; }

  /* Още */
  .dvdh-dd {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; background: #fff;
    border: 1px solid var(--d-line); border-radius: 14px; box-shadow: 0 20px 40px rgba(25, 24, 22, .12);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s .15s;
  }
  .dvdh-more::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* мост за мишката */
  .dvdh-more:hover > .dvdh-dd, .dvdh-more.is-open > .dvdh-dd { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s, visibility 0s; }
  .dvdh-dd a { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 10px; color: var(--d-ink); font-size: 16px; text-decoration: none; }
  .dvdh-dd a:hover { background: var(--d-soft); }
  .dvdh-dd .dvdh-tel { margin-top: 4px; border-top: 1px solid #eee5da; border-radius: 0 0 10px 10px; color: #1e7a34; }
  .dvdh-dd svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

  /* Иконите */
  .dvdh-right { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
  .dvdh .dvdh-ib { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--d-ink); cursor: pointer; text-decoration: none; }
  .dvdh .dvdh-ib:hover { background: #f1ebe3; }
  .dvdh-ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .dvdh .dvmh-count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #d0021b; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
  .dvdh .dvmh-count[hidden] { display: none; }
  .dvdh-search { width: 0; overflow: hidden; transition: width .2s; }
  .dvdh-search.is-open { width: 220px; }
  .dvdh-search input[type="search"] { width: 220px; height: 38px; margin: 0; padding: 0 12px; border: 1px solid var(--d-line); border-radius: 999px; background: var(--d-soft); font: inherit; font-size: 15px; color: var(--d-ink); }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .dvdh .dvdh-top { padding: 0 9px; font-size: 15.5px; }
  .dvdh-bar { padding: 0 18px; gap: 8px; }
  .dvdh-intro { flex-basis: 170px; }
}
@media (prefers-reduced-motion: reduce) { .dvdh-panel, .dvdh-dd, .dvdh-bar, .dvdh-search { transition: none !important; } }
