.umh-search-button, .umh-search-panel { display: none; }
@media (max-width: 700px) {
  html.umh-ready { --umh-surface: #fff; --umh-control: #f1f2f6; --umh-text: #22242b; --umh-muted: #656c79; --umh-line: #e5e6eb; }
  html.umh-ready[data-u-theme="dark"] { --umh-surface: #1c1e23; --umh-control: #292b31; --umh-text: #eff0f4; --umh-muted: #9299a8; --umh-line: #303239; }
  html.umh-ready .uproger-home .uh-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  html.umh-ready .uproger-home .uh-header-inner > .uh-search { display: none; }
  html.umh-ready .uproger-home .uh-brand img { width: 132px; }
  html.umh-ready .uproger-home .uh-header-actions { gap: 6px; }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"],
  html.umh-ready #header [data-device="mobile"] [data-row="bottom"]:has(.navchannel) {
    background: var(--umh-surface) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html.umh-ready[data-u-theme="dark"] #header [data-device="mobile"] [data-row="middle"],
  html.umh-ready[data-u-theme="dark"] #header [data-device="mobile"] [data-row="bottom"]:has(.navchannel) {
    background: var(--umh-surface) !important;
  }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] { --height: 63px; position: relative; }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] > .ct-container {
    width: calc(100% - 32px) !important;
    max-width: none;
    min-height: 63px;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px;
  }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] .site-logo-container { height: auto !important; line-height: 0; }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] .site-logo-container img {
    display: block;
    width: 132px !important;
    height: auto !important;
    max-height: none !important;
  }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] [data-column="end"] [data-items] { gap: 6px !important; }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] [data-column="end"] .utm-control { margin: 0 !important; }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] .utm-mobile-button,
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] [data-id="trigger"],
  html.umh-ready .umh-search-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--umh-line) !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--umh-text) !important;
    box-shadow: none !important;
    cursor: pointer;
  }
  html.umh-ready .umh-search-button svg,
  html.umh-ready #header [data-device="mobile"] [data-row="middle"] [data-id="trigger"] svg { display: block; width: 20px; height: 20px; flex: none; }
  html.umh-ready .umh-search-panel:not([hidden]) {
    position: absolute;
    z-index: 102;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid var(--umh-line);
    border-radius: 12px;
    background: var(--umh-surface);
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
  }
  html.umh-ready .umh-search-panel[hidden] { display: none !important; }
  html.umh-ready .umh-search-panel input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px;
    background: var(--umh-control) !important;
    color: var(--umh-text) !important;
    font: 400 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  html.umh-ready .umh-search-panel input::placeholder { color: var(--umh-muted); opacity: 1; }
  html.umh-ready .umh-search-panel > button {
    flex: none;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 8px;
    background: var(--umh-control) !important;
    color: var(--umh-text) !important;
    font: 500 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
  }
  html.umh-ready .umh-search-button:focus-visible,
  html.umh-ready .umh-search-panel :focus-visible { outline: 2px solid #7d78ff; outline-offset: 2px; }
  html.umh-ready #header [data-device="mobile"] [data-row="middle"]:has(.umh-search-panel:not([hidden])) { z-index: 100; }
}
@media (max-width: 700px) and (prefers-color-scheme: dark) {
  html.umh-ready:not([data-u-theme="light"]) { --umh-surface: #1c1e23; --umh-control: #292b31; --umh-text: #eff0f4; --umh-muted: #9299a8; --umh-line: #303239; }
  html.umh-ready:not([data-u-theme="light"]) #header [data-device="mobile"] [data-row="middle"],
  html.umh-ready:not([data-u-theme="light"]) #header [data-device="mobile"] [data-row="bottom"]:has(.navchannel) {
    background: var(--umh-surface) !important;
  }
}
@media print { .umh-search-button, .umh-search-panel { display: none !important; } }

/* Shared navigation in the existing Blocksy mobile panel. */
.umh-navigation { display:none; }
@media (max-width:700px) {
  html.umh-ready { --umh-nav-bg:#f1f2f6; --umh-nav-label:#495361; --umh-nav-accent:#5147ea; }
  html.umh-ready[data-u-theme="dark"] { --umh-nav-bg:#101114; --umh-nav-label:#b1b7c3; --umh-nav-accent:#8b82ff; }
  html.umh-ready #offcanvas:has(.umh-navigation) .ct-panel-inner { background:var(--umh-nav-bg)!important; }
  .umh-has-navigation > .mobile-menu { display:none!important; }
  .umh-navigation { display:block; min-width:0; width:100%; color:var(--umh-text); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
  .umh-navigation *, .umh-navigation *::before, .umh-navigation *::after { box-sizing:border-box; }
  .umh-navigation a { text-decoration:none!important; box-shadow:none!important; border-bottom:0!important; }
  .umh-navigation svg { display:block; width:20px; height:20px; flex:none; }
  .umh-navigation .uh-nav-list { display:flex; flex-direction:column; gap:3px; }
  .umh-navigation .uh-nav-link { display:flex; align-items:center; gap:12px; min-height:48px; padding:6px 10px; margin:0; border:0; border-radius:12px; color:var(--umh-nav-label); font-size:14px; font-weight:400; line-height:1.35; list-style:none; cursor:pointer; transition:color .18s,background-color .18s; }
  .umh-navigation .uh-nav-link::-webkit-details-marker { display:none; }
  .umh-navigation .uh-nav-link > span:nth-child(2) { min-width:0; overflow-wrap:anywhere; }
  .umh-navigation .uh-nav-link:hover,
  .umh-navigation .uh-nav-link.is-current { background:var(--umh-surface); color:var(--umh-text); }
  .umh-navigation .uh-nav-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:var(--umh-surface); color:var(--umh-muted); flex:none; }
  .umh-navigation .uh-nav-link.is-current .uh-nav-icon { background:var(--umh-control); color:var(--umh-nav-accent); }
  .umh-navigation .uh-chevron { display:grid; place-items:center; margin-left:auto; flex:0 0 16px; width:16px; height:20px; }
  .umh-navigation .uh-chevron svg { width:16px; height:16px; transition:transform .18s ease; }
  .umh-navigation .uh-nav-group[open] .uh-chevron svg { transform:rotate(180deg); }
  .umh-navigation .uh-subnav { display:flex; flex-direction:column; gap:2px; padding:0 0 5px 54px; }
  .umh-navigation .uh-subnav a { padding:6px 0; font-size:14px; font-weight:400; line-height:1.4; color:var(--umh-nav-label); }
  .umh-navigation .uh-subnav a:hover { color:var(--umh-nav-accent); }
  .umh-navigation .uh-nav-services { display:flex; flex-direction:column; gap:3px; margin:14px 10px 0; padding-top:14px; border-top:1px solid var(--umh-line); }
  .umh-navigation .uh-nav-services .uh-nav-link { margin-inline:-10px; }
  .umh-navigation .uh-nav-icon.uh-nav-image { padding:0; overflow:hidden; background:transparent; }
  .umh-navigation .uh-nav-image img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
  .umh-navigation .uh-nav-footer { border-top:1px solid var(--umh-line); margin:25px 10px 0; padding-top:21px; padding-bottom:24px; color:var(--umh-muted); font-size:12px; }
  .umh-navigation .uh-nav-footer > span { font-size:11px; font-weight:800; letter-spacing:.12em; }
  .umh-navigation .uh-nav-footer p { margin:8px 0 14px; font-size:12px; line-height:1.5; }
  .umh-navigation .uh-socials { display:flex; align-items:center; gap:6px; margin:14px 0 0 -8px; }
  .umh-navigation .uh-socials a { display:grid; place-items:center; width:36px; height:36px; border-radius:8px; color:var(--umh-muted); }
  .umh-navigation .uh-socials a:hover { background:var(--umh-surface); color:var(--umh-nav-accent); }
  .umh-navigation .uh-socials svg { width:20px; height:20px; fill:currentColor; }
  .umh-navigation :is(a,summary):focus-visible { outline:2px solid var(--umh-nav-accent); outline-offset:3px; }
}
@media (max-width:700px) and (prefers-color-scheme:dark) {
  html.umh-ready:not([data-u-theme="light"]) { --umh-nav-bg:#101114; --umh-nav-label:#b1b7c3; --umh-nav-accent:#8b82ff; }
}
@media (prefers-reduced-motion:reduce) {
  .umh-navigation .uh-nav-link, .umh-navigation .uh-chevron svg { transition:none; }
}

@media (max-width:700px) {
  .umh-navigation .uh-socials svg.uh-telegram-logo { width:18px; height:18px; }
}

/* Mobile footer social tiles. */
@media (max-width:700px) {
  .uproger-home .uh-nav-footer .uh-socials,
  .umh-navigation .uh-socials { gap:12px; margin-left:0; }
  .uproger-home .uh-nav-footer .uh-socials a,
  .umh-navigation .uh-socials a {
    background:#a4a9b3;
    color:#fff;
    border-radius:9px;
    transition:background-color .2s ease, color .2s ease;
  }
  .uproger-home .uh-nav-footer .uh-socials a:hover,
  .uproger-home .uh-nav-footer .uh-socials a:focus-visible,
  .umh-navigation .uh-socials a:hover,
  .umh-navigation .uh-socials a:focus-visible { background:#8f96a3; color:#fff; }
}
@media (max-width:700px) and (prefers-reduced-motion:reduce) {
  .uproger-home .uh-nav-footer .uh-socials a,
  .umh-navigation .uh-socials a { transition:none; }
}

/* Night social tiles follow menu icons. */
@media (max-width:700px) {
  .uproger-home .uh-nav-footer .uh-socials {
    --ums-night-bg:var(--uh-surface);
    --ums-night-icon:var(--uh-muted);
    --ums-night-hover:var(--uh-control);
  }
  .umh-navigation .uh-socials {
    --ums-night-bg:var(--umh-surface);
    --ums-night-icon:var(--umh-muted);
    --ums-night-hover:var(--umh-control);
  }
  html[data-u-theme="dark"] :is(.uproger-home .uh-nav-footer .uh-socials, .umh-navigation .uh-socials) a {
    background:var(--ums-night-bg);
    color:var(--ums-night-icon);
  }
  html[data-u-theme="dark"] :is(.uproger-home .uh-nav-footer .uh-socials, .umh-navigation .uh-socials) a:is(:hover,:focus-visible) {
    background:var(--ums-night-hover);
    color:var(--ums-night-icon);
  }
}
@media (max-width:700px) and (prefers-color-scheme:dark) {
  html:not([data-u-theme="light"]) :is(.uproger-home .uh-nav-footer .uh-socials, .umh-navigation .uh-socials) a {
    background:var(--ums-night-bg);
    color:var(--ums-night-icon);
  }
  html:not([data-u-theme="light"]) :is(.uproger-home .uh-nav-footer .uh-socials, .umh-navigation .uh-socials) a:is(:hover,:focus-visible) {
    background:var(--ums-night-hover);
    color:var(--ums-night-icon);
  }
}

/* Match the mobile navigation icon to its existing expanded state. */
@media (max-width:700px) {
  .uproger-home .uh-menu-toggle[aria-expanded="true"] > svg { display:none!important; }
  .uproger-home .uh-menu-toggle[aria-expanded="true"]::before {
    content:"";
    display:block;
    width:20px;
    height:20px;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M6 6l12 12M18 6L6 18%22/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M6 6l12 12M18 6L6 18%22/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Slightly larger, clearer mobile labels with tighter vertical spacing. */
@media (max-width:700px) {
  .uproger-home .uh-nav { --uh-nav-text:#3f4855; }
  html.umh-ready { --umh-nav-label:#3f4855; }
  html[data-u-theme="dark"] .uproger-home .uh-nav { --uh-nav-text:#bdc3ce; }
  html.umh-ready[data-u-theme="dark"] { --umh-nav-label:#bdc3ce; }
  .uproger-home .uh-nav .uh-nav-link,
  .umh-navigation .uh-nav-link {
    font-size:15px;
    min-height:44px;
    padding-top:4px;
    padding-bottom:4px;
  }
  .uproger-home .uh-nav .uh-subnav a,
  .umh-navigation .uh-subnav a {
    font-size:15px;
    padding-top:4px;
    padding-bottom:4px;
  }
}
@media (max-width:700px) and (prefers-color-scheme:dark) {
  html:not([data-u-theme="light"]) .uproger-home .uh-nav { --uh-nav-text:#bdc3ce; }
  html.umh-ready:not([data-u-theme="light"]) { --umh-nav-label:#bdc3ce; }
}
