@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');
/* Shared header/footer copied from index.php. Keeps logo and links unified across the site. */
:root{--merc-shell-red:var(--red,#ff3b30);--merc-shell-gold:var(--gold,#ffd36a);--merc-shell-text:var(--text,#15110d);--merc-shell-card:rgba(255,255,255,.84);--merc-shell-line:rgba(23,18,14,.12)}
html[data-theme="dark"]{--merc-shell-text:#fff7ee;--merc-shell-card:rgba(11,13,18,.82);--merc-shell-line:rgba(255,255,255,.13)}
.site-header{position:sticky!important;top:0!important;z-index:1000!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;width:min(1180px,calc(100% - 28px))!important;margin:12px auto!important;padding:10px 12px!important;border:1px solid var(--merc-shell-line)!important;border-radius:28px!important;background:rgba(255,255,255,.78)!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important;box-shadow:0 18px 50px rgba(34,21,9,.12)!important;font-family:Montserrat,Arial,sans-serif!important}
html[data-theme="dark"] .site-header,body[data-theme="dark"] .site-header{background:rgba(9,11,16,.78)!important;box-shadow:0 18px 50px rgba(0,0,0,.28)!important}.site-header *{box-sizing:border-box}.brand.mercuriy-brand,.site-header .brand{display:flex!important;align-items:center!important;gap:12px!important;min-width:260px!important;text-decoration:none!important;color:inherit!important;background:transparent!important;border:0!important;box-shadow:none!important}.brand.mercuriy-brand .brand-icon{width:58px!important;height:58px!important;display:grid!important;place-items:center!important;flex:0 0 auto!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}.brand.mercuriy-brand .brand-icon img,.site-header .brand img{width:58px!important;height:58px!important;object-fit:contain!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:drop-shadow(0 12px 26px rgba(255,59,48,.22))!important;display:block!important}.brand-wordmark{display:grid!important;gap:2px!important;line-height:1!important;text-transform:uppercase!important;background:transparent!important;box-shadow:none!important;border:0!important;white-space:nowrap!important}.brand-wordmark .brand-kicker{font-size:10px!important;font-weight:1000!important;letter-spacing:.24em!important;color:var(--merc-shell-red)!important;line-height:1!important;text-shadow:0 0 18px rgba(255,59,48,.16)!important}.brand-wordmark strong{font-size:24px!important;font-weight:1000!important;letter-spacing:-.045em!important;color:var(--merc-shell-text)!important;line-height:.95!important;text-shadow:0 10px 24px rgba(0,0,0,.12)!important}.brand-wide,.brand-title{display:none!important}.main-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}.main-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:0 14px!important;border-radius:999px!important;text-decoration:none!important;color:var(--merc-shell-text)!important;font-size:14px!important;font-weight:850!important;white-space:nowrap!important;opacity:.88!important;background:transparent!important;border:0!important}.main-nav a:hover,.main-nav a.active{opacity:1!important;background:rgba(255,59,48,.10)!important;color:var(--merc-shell-red)!important}.header-actions,.header-actions-pro{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0!important}.contact-pill.phone-chip{display:inline-flex!important;align-items:center!important;gap:8px!important;min-height:42px!important;padding:0 13px!important;border-radius:999px!important;text-decoration:none!important;color:#17110b!important;background:linear-gradient(135deg,#ffd36a,#ffb13b)!important;border:1px solid rgba(90,55,0,.12)!important;font-size:13px!important;font-weight:950!important;box-shadow:0 12px 28px rgba(255,177,59,.22)!important}.contact-pill.phone-chip svg{width:18px!important;height:18px!important;fill:currentColor!important}.messenger-icon{width:42px!important;height:42px!important;border-radius:50%!important;display:inline-grid!important;place-items:center!important;text-decoration:none!important;background:rgba(255,255,255,.66)!important;border:1px solid var(--merc-shell-line)!important;color:var(--merc-shell-text)!important;box-shadow:0 10px 24px rgba(0,0,0,.08)!important}.messenger-icon svg{width:21px!important;height:21px!important;fill:currentColor!important;stroke:currentColor!important}.theme-toggle{width:44px!important;height:44px!important;border-radius:50%!important;border:1px solid var(--merc-shell-line)!important;background:rgba(255,255,255,.72)!important;display:inline-grid!important;place-items:center!important;cursor:pointer!important;color:var(--merc-shell-text)!important}.theme-toggle svg{width:28px!important;height:28px!important}.site-footer{width:min(1180px,calc(100% - 28px))!important;margin:44px auto 18px!important;padding:28px!important;border-radius:30px!important;border:1px solid var(--merc-shell-line)!important;background:rgba(255,255,255,.70)!important;box-shadow:0 18px 54px rgba(34,21,9,.10)!important;color:var(--merc-shell-text)!important;font-family:Montserrat,Arial,sans-serif!important}.site-footer .footer-grid{display:grid!important;grid-template-columns:1.2fr 1fr 1fr!important;gap:24px!important;align-items:start!important}.site-footer a{color:inherit!important;text-decoration:none!important}.wide-links{display:flex!important;flex-wrap:wrap!important;gap:10px!important}.wide-links a{padding:8px 12px!important;border-radius:999px!important;background:rgba(255,59,48,.08)!important}.footer-bottom{margin-top:18px!important;padding-top:16px!important;border-top:1px solid var(--merc-shell-line)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;opacity:.76!important}.footer-socials{display:flex!important;align-items:center!important;gap:8px!important;margin-top:8px!important}@media(max-width:1040px){.site-header{flex-wrap:wrap!important}.main-nav{order:3!important;width:100%!important;overflow-x:auto!important;justify-content:flex-start!important;padding-bottom:2px!important}.header-actions{margin-left:auto!important}.site-footer .footer-grid{grid-template-columns:1fr!important}.brand.mercuriy-brand{min-width:0!important}}@media(max-width:560px){.site-header{width:min(100% - 16px,1180px)!important;margin:8px auto!important;border-radius:22px!important;padding:8px!important;gap:8px!important}.brand.mercuriy-brand{gap:9px!important}.brand.mercuriy-brand .brand-icon,.brand.mercuriy-brand .brand-icon img{width:46px!important;height:46px!important}.brand-wordmark .brand-kicker{font-size:8px!important;letter-spacing:.14em!important}.brand-wordmark strong{font-size:18px!important}.header-actions{gap:6px!important}.contact-pill.phone-chip span{display:none!important}.messenger-icon,.theme-toggle{width:38px!important;height:38px!important}.main-nav a{font-size:13px!important;min-height:38px!important;padding:0 12px!important}.site-footer{width:min(100% - 16px,1180px)!important;padding:20px!important;border-radius:24px!important}}


/* === Client requested final fixes: old header, full-screen hamburger, no access overlay, mobile staff framing === */
html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important;overscroll-behavior-x:none!important;}
body{position:relative!important;}
img,video,iframe,svg,canvas{max-width:100%!important;}
section,main,header,footer,.section,.section-grid,.contact-panel,.offer-wrap,.site-footer,.site-header{max-width:100%!important;}
*{box-sizing:border-box;}

.nav-toggle{position:relative!important;z-index:10002!important;display:none;align-items:center!important;justify-content:center!important;gap:0!important;}
.nav-toggle span{transform-origin:center!important;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .22s ease,background .22s ease!important;}
.nav-toggle.is-active span:nth-child(1),.site-header.menu-open .nav-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg)!important;}
.nav-toggle.is-active span:nth-child(2),.site-header.menu-open .nav-toggle span:nth-child(2){opacity:0!important;transform:scaleX(.2)!important;}
.nav-toggle.is-active span:nth-child(3),.site-header.menu-open .nav-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)!important;}

@media (max-width:1040px){
  body.merc-menu-open{overflow:hidden!important;touch-action:none!important;}
  .site-header{z-index:10000!important;overflow:visible!important;}
  .nav-toggle{display:inline-grid!important;}
  .site-header .main-nav{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100svh!important;
    max-height:none!important;
    margin:0!important;
    padding:clamp(96px,16vh,150px) 20px 34px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:center!important;
    gap:14px!important;
    border:0!important;
    border-radius:0!important;
    background:
      radial-gradient(circle at 18% 12%,rgba(255,211,90,.26),transparent 19rem),
      radial-gradient(circle at 86% 74%,rgba(255,59,48,.23),transparent 22rem),
      linear-gradient(145deg,rgba(8,7,6,.98),rgba(20,14,9,.98) 56%,rgba(54,8,5,.98))!important;
    box-shadow:none!important;
    backdrop-filter:blur(26px)!important;
    -webkit-backdrop-filter:blur(26px)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(-18px) scale(1.02)!important;
    transition:opacity .34s ease,visibility .34s ease,transform .42s cubic-bezier(.2,.8,.2,1)!important;
    overflow:hidden auto!important;
    z-index:9998!important;
  }
  .site-header .main-nav::before{content:"Меркурій";display:block;margin:0 auto 16px;padding:10px 18px;border-radius:999px;color:#17110b;background:linear-gradient(135deg,#ffd36a,#ffb13b);font-weight:1000;letter-spacing:.16em;text-transform:uppercase;box-shadow:0 18px 46px rgba(255,177,59,.22);}
  .site-header .main-nav.open,.site-header.menu-open .main-nav{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;}
  .site-header .main-nav a{width:min(520px,100%)!important;margin:0 auto!important;min-height:62px!important;padding:0 20px!important;border-radius:24px!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#fff7ee!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.14)!important;font-size:clamp(18px,5.6vw,30px)!important;font-weight:1000!important;letter-spacing:-.035em!important;opacity:1!important;box-shadow:0 18px 50px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12)!important;transform:translateY(18px)!important;transition:transform .38s cubic-bezier(.2,.8,.2,1),background .25s ease,border-color .25s ease,color .25s ease!important;}
  .site-header .main-nav.open a,.site-header.menu-open .main-nav a{transform:none!important;}
  .site-header .main-nav.open a:nth-child(1){transition-delay:.04s!important}.site-header .main-nav.open a:nth-child(2){transition-delay:.08s!important}.site-header .main-nav.open a:nth-child(3){transition-delay:.12s!important}.site-header .main-nav.open a:nth-child(4){transition-delay:.16s!important}
  .site-header .main-nav a:hover,.site-header .main-nav a:focus{background:linear-gradient(135deg,rgba(255,211,90,.22),rgba(255,59,48,.18))!important;border-color:rgba(255,211,90,.35)!important;color:#ffd36a!important;}
}

@media (max-width:720px){
  .site-header{width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;margin-left:auto!important;margin-right:auto!important;}
  .header-actions,.header-actions-pro{max-width:100%!important;}
  .brand.mercuriy-brand{max-width:calc(100vw - 150px)!important;min-width:0!important;}
  .brand-wordmark{min-width:0!important;}
  .brand-wordmark strong{max-width:38vw!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .section,.section-grid,.admin-main,.blog-hero,.legal-page{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;margin-left:auto!important;margin-right:auto!important;}
  .staff-grid{grid-template-columns:1fr!important;gap:18px!important;}
  .staff-card{display:grid!important;grid-template-columns:1fr!important;gap:16px!important;padding:16px!important;overflow:hidden!important;}
  .staff-photo{width:100%!important;height:auto!important;min-height:320px!important;max-height:420px!important;aspect-ratio:4/5!important;border-radius:26px!important;}
  .staff-photo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 18%!important;transform:none!important;}
  .staff-card:nth-child(1) .staff-photo img{object-position:center 16%!important;}
  .staff-card:nth-child(2) .staff-photo img{object-position:center 15%!important;}
  .staff-card:nth-child(n+3) .staff-photo img{object-position:center 17%!important;}
}
@media (max-width:420px){
  .staff-photo{min-height:290px!important;aspect-ratio:3/4!important;}
  .site-header .main-nav a{min-height:58px!important;border-radius:22px!important;}
}


/* === Final patch: red phone button + lighter header icons === */
.contact-pill.phone-chip,
.site-header .contact-pill.phone-chip,
.header-actions .contact-pill.phone-chip,
.header-actions-pro .contact-pill.phone-chip{
  color:#fff!important;
  background:linear-gradient(135deg,#ff3b30 0%,#d71916 100%)!important;
  border:0!important;
  box-shadow:0 12px 28px rgba(255,59,48,.28)!important;
}
.contact-pill.phone-chip:hover,
.site-header .contact-pill.phone-chip:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 16px 36px rgba(255,59,48,.34)!important;
}
.site-header .contact-pill.phone-chip svg,
.contact-pill.phone-chip svg{
  fill:currentColor!important;
  stroke:currentColor!important;
  stroke-width:1.65!important;
}
.site-header .messenger-icon svg,
.site-header .theme-toggle svg,
.header-actions .messenger-icon svg,
.header-actions .theme-toggle svg{
  stroke-width:1.55!important;
  fill:none!important;
}
.site-header .inst-link svg path,
.site-header .messenger-icon svg path{
  stroke-width:1.55!important;
}
.site-header .messenger-icon{
  box-shadow:0 8px 18px rgba(0,0,0,.07)!important;
}

/* === Client patch: red phone button + custom autoschool theme switch + lighter header icons === */
.site-header .contact-pill.phone-chip,
.header-actions .contact-pill.phone-chip,
.header-actions-pro .contact-pill.phone-chip,
a.contact-pill.phone-chip{
  color:#fff!important;
  background:linear-gradient(135deg,#ff3b30 0%,#e21f1a 48%,#b90f08 100%)!important;
  border:1px solid rgba(255,59,48,.22)!important;
  box-shadow:0 12px 28px rgba(255,59,48,.28), inset 0 1px 0 rgba(255,255,255,.22)!important;
}
.site-header .contact-pill.phone-chip:hover,
a.contact-pill.phone-chip:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 16px 36px rgba(255,59,48,.34), inset 0 1px 0 rgba(255,255,255,.24)!important;
}
.site-header .contact-pill.phone-chip svg,
.contact-pill.phone-chip svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.35!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}
.site-header .messenger-icon,
.header-actions .messenger-icon{
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(23,18,14,.10)!important;
  box-shadow:0 8px 20px rgba(34,21,9,.08), inset 0 1px 0 rgba(255,255,255,.72)!important;
  color:#17110d!important;
}
html[data-theme="dark"] .site-header .messenger-icon,
body[data-theme="dark"] .site-header .messenger-icon{
  background:rgba(255,255,255,.09)!important;
  border-color:rgba(255,255,255,.14)!important;
  color:#fff7ee!important;
  box-shadow:0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10)!important;
}
.site-header .messenger-icon svg,
.header-actions .messenger-icon svg{
  width:20px!important;
  height:20px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.28!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}
.site-header .messenger-icon svg path,
.header-actions .messenger-icon svg path{
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.28!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}
.site-header .inst-link svg path:first-child{stroke-width:1.18!important;}
.site-header .theme-toggle.theme-toggle-auto,
.header-actions .theme-toggle.theme-toggle-auto,
button.theme-toggle.theme-toggle-auto{
  width:44px!important;
  height:44px!important;
  border-radius:999px!important;
  padding:0!important;
  color:#fff!important;
  background:
    radial-gradient(circle at 30% 18%,rgba(255,255,255,.36),transparent 18px),
    linear-gradient(135deg,#ff3b30 0%,#df2019 50%,#ad0d07 100%)!important;
  border:1px solid rgba(255,59,48,.24)!important;
  box-shadow:0 12px 28px rgba(255,59,48,.30), inset 0 1px 0 rgba(255,255,255,.27)!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.site-header .theme-toggle.theme-toggle-auto::before,
.header-actions .theme-toggle.theme-toggle-auto::before{
  content:""!important;
  position:absolute!important;
  inset:auto 8px 8px 8px!important;
  height:7px!important;
  border-radius:999px!important;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.82) 0 7px,transparent 7px 12px)!important;
  opacity:.42!important;
  transform:skewX(-14deg)!important;
  pointer-events:none!important;
}
.site-header .theme-toggle.theme-toggle-auto::after,
.header-actions .theme-toggle.theme-toggle-auto::after{
  content:""!important;
  position:absolute!important;
  inset:-38% auto auto -18%!important;
  width:48px!important;
  height:48px!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.16)!important;
  pointer-events:none!important;
}
.site-header .theme-toggle.theme-toggle-auto:hover,
button.theme-toggle.theme-toggle-auto:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 16px 36px rgba(255,59,48,.36), inset 0 1px 0 rgba(255,255,255,.30)!important;
}
.site-header .theme-toggle.theme-toggle-auto .auto-theme-icon,
.header-actions .theme-toggle.theme-toggle-auto .auto-theme-icon{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
}
.site-header .theme-toggle.theme-toggle-auto svg,
.header-actions .theme-toggle.theme-toggle-auto svg{
  width:31px!important;
  height:31px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.35!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.16))!important;
}
.theme-toggle.theme-toggle-auto .theme-wheel,
.theme-toggle.theme-toggle-auto .theme-wheel-center,
.theme-toggle.theme-toggle-auto .theme-wheel-spoke,
.theme-toggle.theme-toggle-auto .theme-road,
.theme-toggle.theme-toggle-auto .theme-cone,
.theme-toggle.theme-toggle-auto .theme-spark{
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.35!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}
.theme-toggle.theme-toggle-auto .theme-cone{opacity:.94!important;}
.theme-toggle.theme-toggle-auto .theme-road{opacity:.72!important;}
.theme-toggle.theme-toggle-auto .theme-spark{opacity:.84!important;}
html[data-theme="dark"] .theme-toggle.theme-toggle-auto,
body[data-theme="dark"] .theme-toggle.theme-toggle-auto{
  background:
    radial-gradient(circle at 30% 18%,rgba(255,255,255,.26),transparent 18px),
    linear-gradient(135deg,#d71916 0%,#9f0c07 56%,#4b0503 100%)!important;
  color:#fff7ee!important;
}
.site-header .theme-toggle .theme-glow{display:none!important;}
@media (max-width:560px){
  .site-header .theme-toggle.theme-toggle-auto,
  .header-actions .theme-toggle.theme-toggle-auto,
  button.theme-toggle.theme-toggle-auto{width:39px!important;height:39px!important;}
  .site-header .theme-toggle.theme-toggle-auto svg,
  .header-actions .theme-toggle.theme-toggle-auto svg{width:28px!important;height:28px!important;}
  .site-header .messenger-icon svg,
  .header-actions .messenger-icon svg{width:18px!important;height:18px!important;}
  .site-header .contact-pill.phone-chip svg,.contact-pill.phone-chip svg{width:17px!important;height:17px!important;}
}

/* === Mercury desktop/header stability patch 2026-06-09 === */
html,body{font-family:Montserrat,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;max-width:100%!important;overflow-x:hidden!important;}
.site-header,
.site-header *{pointer-events:auto!important;}
.site-header::before,
.site-header::after,
.site-header .main-nav::before,
.site-header .main-nav::after,
.site-header .main-nav .menu-title,
.site-header .main-nav .nav-title,
.site-header .main-nav .menu-caption,
.site-header .main-nav [class*="menu-title"],
.site-header .main-nav [class*="menu-caption"]{content:none!important;display:none!important;}
@media (min-width:1041px){
  body.merc-menu-open{overflow-x:hidden!important;overflow-y:auto!important;touch-action:auto!important;}
  .site-header{
    position:sticky!important;
    top:14px!important;
    z-index:10000!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    width:min(1440px,calc(100% - 32px))!important;
    max-width:calc(100% - 32px)!important;
    min-height:78px!important;
    margin:14px auto!important;
    padding:10px 14px!important;
    border-radius:32px!important;
    overflow:visible!important;
    isolation:isolate!important;
  }
  .site-header .brand.mercuriy-brand,
  .brand.mercuriy-brand{
    flex:0 0 auto!important;
    min-width:244px!important;
    max-width:270px!important;
    gap:12px!important;
  }
  .brand.mercuriy-brand .brand-icon,
  .brand.mercuriy-brand .brand-icon img,
  .site-header .brand img{
    width:58px!important;
    height:58px!important;
    flex:0 0 58px!important;
    object-fit:contain!important;
  }
  .brand-wordmark{display:grid!important;min-width:0!important;max-width:190px!important;}
  .brand-wordmark .brand-kicker{font-size:10px!important;letter-spacing:.22em!important;}
  .brand-wordmark strong{font-size:23px!important;line-height:.96!important;}
  .site-header .main-nav{
    position:static!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .site-header .main-nav a{
    width:auto!important;
    min-width:0!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 13px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--merc-shell-text,var(--text,#fff7ee))!important;
    font-size:14px!important;
    font-weight:900!important;
    letter-spacing:-.01em!important;
    line-height:1!important;
    white-space:nowrap!important;
    opacity:.88!important;
    transform:none!important;
  }
  .site-header .main-nav a:hover,
  .site-header .main-nav a.active{
    opacity:1!important;
    color:var(--merc-shell-red,var(--red,#ff3b30))!important;
    background:rgba(255,59,48,.10)!important;
  }
  .site-header .header-actions,
  .site-header .header-actions-pro{
    flex:0 0 auto!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    min-width:max-content!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  .site-header .contact-pill.phone-chip{
    min-width:154px!important;
    min-height:46px!important;
    height:46px!important;
    padding:0 18px!important;
    gap:9px!important;
    border-radius:999px!important;
    font-size:14px!important;
    line-height:1!important;
  }
  .site-header .contact-pill.phone-chip span{display:inline!important;white-space:nowrap!important;}
  .site-header .messenger-icon,
  .site-header .theme-toggle.theme-toggle-auto,
  .site-header .theme-toggle{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    flex:0 0 46px!important;
    border-radius:999px!important;
    display:inline-grid!important;
    place-items:center!important;
    overflow:hidden!important;
  }
  .site-header .messenger-icon svg{width:20px!important;height:20px!important;stroke-width:1.35!important;}
  .site-header .theme-toggle.theme-toggle-auto svg{width:30px!important;height:30px!important;stroke-width:1.25!important;}
  .site-header .nav-toggle{display:none!important;}
}
@media (min-width:1041px) and (max-width:1240px){
  .site-header{width:min(100% - 24px,1200px)!important;gap:8px!important;padding:9px 10px!important;}
  .site-header .brand.mercuriy-brand{min-width:205px!important;max-width:220px!important;gap:9px!important;}
  .brand.mercuriy-brand .brand-icon,
  .brand.mercuriy-brand .brand-icon img,
  .site-header .brand img{width:50px!important;height:50px!important;flex-basis:50px!important;}
  .brand-wordmark .brand-kicker{font-size:8.8px!important;letter-spacing:.17em!important;}
  .brand-wordmark strong{font-size:20px!important;}
  .site-header .main-nav{gap:4px!important;}
  .site-header .main-nav a{font-size:13px!important;padding:0 9px!important;}
  .site-header .contact-pill.phone-chip{min-width:46px!important;width:46px!important;padding:0!important;}
  .site-header .contact-pill.phone-chip span{display:none!important;}
  .site-header .messenger-icon,
  .site-header .theme-toggle.theme-toggle-auto,
  .site-header .theme-toggle{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;flex-basis:42px!important;}
}
@media (max-width:1040px){
  .site-header .main-nav::before,
  .site-header .main-nav::after{content:none!important;display:none!important;}
  .site-header .main-nav{padding-top:clamp(92px,14vh,130px)!important;}
}

