/* TEMIDA compact mobile menu. Scoped to avoid home critical-CSS conflicts. */
@font-face{font-family:Mulish;src:url('../fonts/mulish/Mulish-VariableFont_wght.ttf') format('truetype');font-style:normal;font-weight:200 1000;font-display:swap}
.tm-dialog,.tm-toggle,.tm-fallback{font-family:Mulish,sans-serif;font-synthesis:none;color:#151c31}
.tm-dialog{--tm-motion-duration:380ms;--tm-header:72px;--tm-top:0px;--tm-gutter:22px;position:fixed;inset:0 auto 0 var(--tm-page-left,0px);width:var(--tm-page-width,100%);height:100dvh;max-width:none;max-height:none;padding:var(--tm-top) 0 0;margin:0;border:0;overflow:hidden;background:transparent;color:#151c31}
.tm-dialog:not([open]){display:none}
.tm-dialog::backdrop{background:rgb(21 28 49 / 0);transition:background-color var(--tm-motion-duration) ease}
.tm-dialog[data-open-state="true"]::backdrop{background:rgb(21 28 49 / .35)}
.tm-dialog *{box-sizing:border-box}
.tm-dialog a{text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.tm-dialog button,.tm-toggle{appearance:none;font:inherit;color:inherit;cursor:pointer;border:0;border-radius:0;box-shadow:none;text-transform:none;letter-spacing:normal;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.tm-dialog :is(a,button):focus-visible,.tm-toggle:focus-visible{outline:2px solid #395caa;outline-offset:3px}
.tm-dialog :is(a,button):active{opacity:.8}
.tm-dialog [hidden]{display:none!important}
.tm-icon{display:block;width:22px;height:22px;max-width:none;flex-shrink:0;stroke-width:1.7;pointer-events:none}
.tm-sheet{width:min(430px,100%);margin-left:auto;max-height:calc(100dvh - var(--tm-top));background:#f7f7f3;box-shadow:0 16px 36px #151c3129;display:flex;flex-direction:column;overflow:hidden}
.tm-header{position:relative;height:var(--tm-header);min-height:var(--tm-header);padding:12px var(--tm-gutter);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dfe2e6;flex-shrink:0;background:var(--tm-bar-background,var(--temida-white,#fff))}
.tm-brand{display:flex;align-items:center;min-height:48px}
.tm-brand img{width:154px;height:auto;display:block}
.tm-toggle{width:48px;height:48px;min-height:48px;display:grid;place-items:center;background:transparent;padding:0;flex-shrink:0}
.tm-toggle .tm-icon{width:25px;height:25px}
.tm-opener{display:none}
.tm-burger path{transition:transform var(--tm-motion-duration,300ms) cubic-bezier(.2,.8,.2,1),opacity 150ms ease;transform-box:view-box}
.tm-burger path:nth-child(1){transform-origin:12px 6px}.tm-burger path:nth-child(2){transform-origin:12px 12px}.tm-burger path:nth-child(3){transform-origin:12px 18px}
[data-tm-toggle][data-open-state="true"] .tm-burger path:nth-child(1){transform:translateY(6px) rotate(45deg)}
[data-tm-toggle][data-open-state="true"] .tm-burger path:nth-child(2){opacity:0;transform:scaleX(.5)}
[data-tm-toggle][data-open-state="true"] .tm-burger path:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.tm-menu-is-open{overflow:hidden}
.tm-menu-is-open .tm-opener{visibility:hidden}
.tm-scroll{overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;scrollbar-color:#c8cdd5 transparent;min-height:0;max-height:calc(100dvh - var(--tm-header) - var(--tm-top));padding:12px 14px calc(14px + env(safe-area-inset-bottom))}
.tm-main-link,.tm-dialog .tm-offer-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:49px;width:100%;padding:12px 10px;font-size:16px;line-height:1.4;font-weight:750;background:none;text-align:left}
.tm-main-link:hover,.tm-offer-toggle:hover,.tm-dialog [aria-current="page"]{color:#395caa}
.tm-offer-toggle .tm-chevron{width:17px;height:17px;transform:rotate(90deg);transition:transform 230ms cubic-bezier(.25,.8,.25,1)}
.tm-offer-toggle[aria-expanded="true"] .tm-chevron{transform:rotate(-90deg)}
.tm-offer-toggle[aria-expanded="true"]{color:#395caa}
.tm-accordion{overflow:hidden;height:0}
.tm-offer-content{display:flex;flex-direction:column;gap:10px;padding:5px 0 13px}
.tm-offer-group{background:#eceff3;padding:13px 13px 6px}
.tm-offer-group h3{display:flex;align-items:center;gap:8px;font-size:10px;line-height:1.5;letter-spacing:.11em;text-transform:uppercase;color:#505b6c;font-weight:750;padding:0 0 11px;margin:0 0 3px;border-bottom:1px solid #d5dae2}
.tm-offer-group h3 .tm-icon{width:16px;height:16px}
.tm-service-link{display:flex;align-items:center;min-height:46px;padding:11px 0;font-size:14px;line-height:1.5;font-weight:650}
.tm-service-link:hover{color:#395caa;text-decoration:underline;text-underline-offset:3px}
.tm-all-offer{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:48px;padding:9px 10px;font-size:14px;font-weight:750}
.tm-all-offer .tm-icon{width:19px;height:19px}
.tm-contact-row{margin-top:7px;border-top:1px solid #dfe2e6;padding-top:19px;padding-bottom:15px}
.tm-dialog .tm-call-link{display:flex;align-items:center;justify-content:center;gap:11px;min-height:48px;background:#151c31;color:white;font-size:14px;line-height:1.5;font-weight:650;letter-spacing:.01em;margin:4px 0 0;padding:12px 16px}
.tm-dialog .tm-call-link:hover{background:#395caa}
.tm-call-link .tm-icon{width:18px;height:18px}
.tm-fallback{display:none}
body.admin-bar .tm-dialog{--tm-top:32px}
@media(max-width:1100px){
  .site-header .primary-navigation,.site-header .language-link{display:none!important}
  .site-header .site-header__inner{display:flex;justify-content:space-between;width:100%;height:72px;min-height:72px;padding:12px 22px;gap:20px;transition:none}
  .site-header .site-brand{width:154px;min-width:0;min-height:48px;flex:0 0 154px;margin:0}
  .site-header .site-brand__logo{width:154px;height:auto;transform:none;transition:none}
  .site-header .tm-opener{display:grid}
  .tm-fallback{display:flex;flex-wrap:wrap;gap:4px 16px;padding:12px 22px}
  .tm-fallback a{display:flex;align-items:center;min-height:44px}
}
@media(max-width:782px){body.admin-bar .tm-dialog{--tm-top:46px}}
@media(max-width:359px){
  .tm-dialog{--tm-gutter:18px}.tm-brand img{width:142px}.tm-scroll{padding-left:12px;padding-right:12px}.tm-offer-group{padding-left:12px;padding-right:12px}
  .site-header .site-header__inner{padding-left:18px;padding-right:18px}.site-header .site-brand{width:142px;flex-basis:142px}.site-header .site-brand__logo{width:142px}
}
@media(prefers-reduced-motion:reduce){.tm-dialog *,.tm-dialog::backdrop,.tm-toggle *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Header overlay: opt-in for this local home demo only. */
.site-header[data-header-overlay] {
  position: fixed;
  inset: 0 0 auto;
  isolation: isolate;
  color: var(--temida-navy);
  background-color: #fff;
  border-bottom: 1px solid rgba(21,28,49,.1);
  box-shadow: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.site-header[data-header-overlay] .site-header__inner {
  height: 96px;
  min-height: 96px;
  transition: none;
}
.site-header[data-header-overlay] .site-brand__logo {
  transform: none;
  filter: none;
  transition: filter 180ms ease;
}
.site-header[data-header-overlay] .primary-menu__control > :is(a,button),
.site-header[data-header-overlay] .language-link,
.site-header[data-header-overlay] .tm-opener {
  color: inherit;
  transition: color 200ms ease;
}
.site-header[data-header-overlay] .primary-menu__control > :is(a,button)::after,
.site-header[data-header-overlay] .language-link::after { background-color: currentColor; }
.site-header[data-header-overlay] .mega-menu { color: var(--temida-navy); }
.site-header[data-header-overlay] :is(a,button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.site-header[data-header-overlay].is-over-hero {
  color: #fff;
  background-color: transparent;
  border-bottom-color: transparent;
}
/* Same official transparent PNG; only its display color changes. */
.site-header[data-header-overlay].is-over-hero .site-brand__logo {
  filter: brightness(0) invert(1);
}
/* The existing mobile sheet keeps an opaque bar and its standard logo. */
.site-header[data-header-overlay] ~ .tm-dialog .tm-header { background: #fff; }
@media(max-width:1100px) {
  .site-header[data-header-overlay] .site-header__inner { height: 72px; min-height: 72px; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header[data-header-overlay],
  .site-header[data-header-overlay] .site-brand__logo,
  .site-header[data-header-overlay] .primary-menu__control > :is(a,button),
  .site-header[data-header-overlay] .language-link,
  .site-header[data-header-overlay] .tm-opener { transition: none; }
}
