/* МОИ ПРАВА | Glass quick links v1 | 2026-11-17 */
/* Distinct Telegram destinations are rendered server-side per host. */
.mp-glass-links {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  white-space: nowrap;
}
.mp-glass-btn,
.footer .footer-brand a[href="https://clck.ru/3Wouxu"],
.mp-nsk-footer .mp-nsk-social a[href="https://clck.ru/3Wouxu"] {
  position: relative;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  gap: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42) !important;
  border-radius: 12px !important;
  background: linear-gradient(155deg,#248fbd 0%,#126a9e 46%,#0b4779 100%) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.52),inset 0 -2px 5px rgba(0,25,65,.20),0 4px 11px rgba(4,60,100,.22),0 9px 17px rgba(4,60,100,.10) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .1px;
  line-height: 1 !important;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.mp-glass-btn::before,
.footer .footer-brand a[href="https://clck.ru/3Wouxu"]::before,
.mp-nsk-footer .mp-nsk-social a[href="https://clck.ru/3Wouxu"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 1px;
  left: 5px;
  right: 5px;
  height: 48%;
  border-radius: 9px 9px 45% 45%;
  background: linear-gradient(to bottom,rgba(255,255,255,.32),rgba(255,255,255,0));
  pointer-events: none;
}
.mp-glass-btn:hover,
.footer .footer-brand a[href="https://clck.ru/3Wouxu"]:hover,
.mp-nsk-footer .mp-nsk-social a[href="https://clck.ru/3Wouxu"]:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.07);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.60),0 7px 17px rgba(0,68,120,.25),0 12px 23px rgba(0,68,120,.12) !important;
}
.mp-glass-btn:active {transform:translateY(0) !important;}
.mp-glass-btn:focus-visible,
.mp-glass-cta:focus-visible,
.footer .footer-brand a[href="https://clck.ru/3Wouxu"]:focus-visible,
.mp-nsk-footer .mp-nsk-social a[href="https://clck.ru/3Wouxu"]:focus-visible {
  outline: 3px solid #77d8ff !important;
  outline-offset: 3px;
}
/* Existing Tomsk MAX contains a decorative SVG; show only MAX text. */
.footer .footer-brand a[href="https://clck.ru/3Wouxu"] svg {display:none !important;}
.footer .footer-brand a[href="https://clck.ru/3Wouxu"] span {font-size:12px !important;line-height:1 !important;}
/* Keep footer links aligned and spaced consistently. */
.mp-footer-links {gap:8px !important;}
.mp-nsk-footer .mp-nsk-social {gap:8px !important;align-items:center;}
/* Main CTA remains the strongest action; don't change its click handler. */
.site-header a.header-request-btn.mp-glass-cta,
.mp-mobile-quick a.mp-glass-cta {
  position:relative;
  isolation:isolate;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto;
  height:46px !important;
  min-height:46px !important;
  width:auto;
  padding:0 14px !important;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.50) !important;
  border-radius:12px !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.1 !important;
  white-space:nowrap;
  text-decoration:none;
  background:linear-gradient(155deg,#35bee7 0%,#009ad4 48%,#006da4 100%) !important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.62),inset 0 -2px 4px rgba(0,30,70,.13),0 5px 13px rgba(0,97,148,.25),0 10px 21px rgba(0,97,148,.11) !important;
  overflow:hidden;
  transition:transform .18s ease,filter .18s ease;
}
.site-header a.header-request-btn.mp-glass-cta::before,
.mp-mobile-quick a.mp-glass-cta::before {
  content:"";position:absolute;top:1px;left:6px;right:6px;height:48%;
  border-radius:10px 10px 45% 45%;
  background:linear-gradient(to bottom,rgba(255,255,255,.34),transparent);
  pointer-events:none;
}
.site-header a.header-request-btn.mp-glass-cta:hover,
.mp-mobile-quick a.mp-glass-cta:hover {transform:translateY(-2px);filter:brightness(1.06);}
/* Shown on desktop/tablet; mobile gets an always-visible second row. */
.site-header .mp-mobile-quick {display:none !important;}
.site-header .mp-header-quick {display:inline-flex !important;}
/* Tight desktop widths: conserve space by hiding the existing landline in header only. */
@media (min-width:1391px) and (max-width:1710px) {
  .site-header .header-phone-group {display:none !important;}
  .site-header .header-inner>.header-contacts {gap:8px !important;}
}
@media (min-width:701px) and (max-width:1050px) {
  .site-header .header-phone-group {display:none !important;}
  .site-header .header-inner>.header-contacts {gap:8px !important;}
}
@media (max-width:700px) {
  .site-header .mp-header-quick {display:none !important;}
  .site-header .mp-mobile-quick {
    display:flex !important;
    gap:6px;
    width:100%;
    padding:0 0 11px;
    align-items:stretch;
    box-sizing:border-box;
  }
  .site-header .mp-mobile-quick a.mp-glass-btn {width:44px !important;min-width:44px !important;}
  .site-header .mp-mobile-quick a.mp-glass-cta {
    min-width:0 !important;
    width:auto !important;
    flex:1 1 auto !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 7px !important;
    font-size:12px !important;
  }
}
@media (max-width:359px) {
  .site-header .mp-mobile-quick a.mp-glass-cta {font-size:11px !important;padding:0 3px !important;}
}
@media (prefers-reduced-motion:reduce) {
  .mp-glass-btn,.site-header a.header-request-btn.mp-glass-cta,.mp-mobile-quick a.mp-glass-cta {transition:none !important;}
  .mp-glass-btn:hover,.site-header a.header-request-btn.mp-glass-cta:hover,.mp-mobile-quick a.mp-glass-cta:hover {transform:none !important;}
}
