/* V.S. UNIFIED BUTTON SYSTEM — 2026-10-14
   One visual language for all actions: liquid glass, same radius/height/shadow/hover. */
:root{
  --vs-btn-h:54px;
  --vs-btn-r:16px;
  --vs-btn-text:#f4f9fc;
  --vs-btn-muted:#82a1b2;
  --vs-btn-bg-1:rgba(11,45,66,.78);
  --vs-btn-bg-2:rgba(5,28,44,.88);
  --vs-btn-border:rgba(105,211,255,.26);
  --vs-btn-cyan:#57dfff;
  --vs-btn-violet:#8e72ff;
  --vs-btn-pink:#f36bbd;
}

/* Main unified family */
.header-cta,
.button.button--gradient,
.ghost-button,
.project-modal__open,
.btn.btn--primary,
.showreel,
.mobile-sticky-cta{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:11px!important;
  min-height:var(--vs-btn-h)!important;
  height:var(--vs-btn-h)!important;
  padding:0 20px!important;
  border:1px solid var(--vs-btn-border)!important;
  border-radius:var(--vs-btn-r)!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.105),rgba(255,255,255,.025) 46%,rgba(255,255,255,.012) 100%),
    linear-gradient(145deg,var(--vs-btn-bg-1),var(--vs-btn-bg-2))!important;
  color:var(--vs-btn-text)!important;
  font:600 .82rem/1 var(--sans,'Onest','Inter',sans-serif)!important;
  letter-spacing:0!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -11px 20px rgba(0,12,23,.20),
    0 10px 28px rgba(0,12,23,.24),
    0 0 0 1px rgba(255,255,255,.015),
    0 0 20px rgba(87,223,255,.045)!important;
  backdrop-filter:blur(14px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(14px) saturate(140%)!important;
  overflow:hidden!important;
  isolation:isolate!important;
  cursor:pointer!important;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),border-color .24s ease,box-shadow .24s ease,background .24s ease,filter .24s ease!important;
}

/* One identical liquid top highlight */
.header-cta::before,
.button.button--gradient::before,
.ghost-button::before,
.project-modal__open::before,
.btn.btn--primary::before,
.showreel::before,
.mobile-sticky-cta::before{
  content:""!important;
  position:absolute!important;
  z-index:0!important;
  left:9%!important;
  right:9%!important;
  top:2px!important;
  height:42%!important;
  border-radius:calc(var(--vs-btn-r) - 4px)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.03))!important;
  opacity:.62!important;
  pointer-events:none!important;
}

/* Same restrained edge glow */
.header-cta::after,
.button.button--gradient::after,
.ghost-button::after,
.project-modal__open::after,
.btn.btn--primary::after,
.showreel::after,
.mobile-sticky-cta::after{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  width:92px!important;
  height:92px!important;
  right:-38px!important;
  bottom:-58px!important;
  border-radius:50%!important;
  background:radial-gradient(circle,rgba(142,114,255,.28),rgba(243,107,189,.08) 46%,transparent 72%)!important;
  opacity:.74!important;
  pointer-events:none!important;
  transition:transform .35s ease,opacity .35s ease!important;
}

.header-cta:hover,
.button.button--gradient:hover,
.ghost-button:hover,
.project-modal__open:hover,
.btn.btn--primary:hover,
.showreel:hover,
.mobile-sticky-cta:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(105,211,255,.42)!important;
  filter:brightness(1.055)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -11px 20px rgba(0,12,23,.18),
    0 14px 34px rgba(0,12,23,.30),
    0 0 0 1px rgba(255,255,255,.02),
    0 0 25px rgba(87,223,255,.08)!important;
}
.header-cta:hover::after,
.button.button--gradient:hover::after,
.ghost-button:hover::after,
.project-modal__open:hover::after,
.btn.btn--primary:hover::after,
.showreel:hover::after,
.mobile-sticky-cta:hover::after{transform:scale(1.16)!important;opacity:1!important}

/* Make all content sit above glass layers */
.header-cta > *,
.button.button--gradient > *,
.ghost-button > *,
.project-modal__open > *,
.btn.btn--primary > *,
.showreel > *,
.mobile-sticky-cta > *{position:relative!important;z-index:2!important}

/* arrows/icons use one accent language */
.header-cta span,
.button.button--gradient span,
.ghost-button span,
.project-modal__open span,
.mobile-sticky-cta span{
  color:#92e7ff!important;
  font-size:1rem!important;
  line-height:1!important;
}

/* "Смотреть работы" becomes the same pill instead of a separate circle + text */
.showreel{
  min-width:184px!important;
  justify-content:flex-start!important;
  padding-left:11px!important;
  padding-right:17px!important;
}
.showreel b{
  position:relative!important;
  z-index:2!important;
  flex:0 0 32px!important;
  display:grid!important;
  place-items:center!important;
  width:32px!important;
  height:32px!important;
  margin:0!important;
  border:1px solid rgba(105,211,255,.30)!important;
  border-radius:10px!important;
  background:linear-gradient(145deg,rgba(87,223,255,.13),rgba(142,114,255,.08))!important;
  color:#94ebff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 4px 14px rgba(0,13,24,.14)!important;
  font-size:.69rem!important;
}
.showreel b::before,
.showreel b::after{display:none!important}
.showreel span{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  align-items:flex-start!important;
  line-height:1.05!important;
}
.showreel small{
  color:var(--vs-btn-muted)!important;
  font:500 .60rem/1 var(--sans,'Onest','Inter',sans-serif)!important;
  letter-spacing:0!important;
}

/* form full-width keeps same system */
.btn.btn--primary.btn--full{width:100%!important}

/* Header CTA slightly compact but same materials */
.header-cta{min-width:164px!important}

/* Modal CTA same height, no separate pink fill */
.project-modal__open{margin-top:auto!important}

/* Theme toggle = icon-only member of the same family */
.color-theme-toggle{
  width:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  border:1px solid var(--vs-btn-border)!important;
  border-radius:14px!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.02)),
    linear-gradient(145deg,var(--vs-btn-bg-1),var(--vs-btn-bg-2))!important;
  color:#96e8ff!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -8px 15px rgba(0,12,23,.18),
    0 8px 22px rgba(0,12,23,.20)!important;
  backdrop-filter:blur(14px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(14px) saturate(140%)!important;
}
.color-theme-toggle:hover{transform:translateY(-2px)!important;border-color:rgba(105,211,255,.42)!important}

/* LIGHT: same shape/materials, just white glass */
html[data-theme="light"]{
  --vs-btn-text:#173746;
  --vs-btn-muted:#6e8794;
  --vs-btn-bg-1:rgba(255,255,255,.90);
  --vs-btn-bg-2:rgba(235,243,246,.80);
  --vs-btn-border:rgba(66,155,197,.24);
}
html[data-theme="light"] .header-cta,
html[data-theme="light"] .button.button--gradient,
html[data-theme="light"] .ghost-button,
html[data-theme="light"] .project-modal__open,
html[data-theme="light"] .btn.btn--primary,
html[data-theme="light"] .showreel,
html[data-theme="light"] .mobile-sticky-cta{
  color:#173746!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.36) 46%,rgba(255,255,255,.24) 100%),
    linear-gradient(145deg,rgba(255,255,255,.90),rgba(232,241,245,.84))!important;
  border-color:rgba(66,155,197,.24)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -10px 18px rgba(110,146,165,.08),
    0 10px 26px rgba(67,92,107,.10),
    0 0 0 1px rgba(255,255,255,.50),
    0 0 18px rgba(87,223,255,.035)!important;
}
html[data-theme="light"] .header-cta:hover,
html[data-theme="light"] .button.button--gradient:hover,
html[data-theme="light"] .ghost-button:hover,
html[data-theme="light"] .project-modal__open:hover,
html[data-theme="light"] .btn.btn--primary:hover,
html[data-theme="light"] .showreel:hover,
html[data-theme="light"] .mobile-sticky-cta:hover{
  border-color:rgba(46,147,193,.36)!important;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -10px 18px rgba(110,146,165,.08),
    0 14px 30px rgba(67,92,107,.14),
    0 0 0 1px rgba(255,255,255,.58),
    0 0 20px rgba(87,223,255,.05)!important;
}
html[data-theme="light"] .header-cta span,
html[data-theme="light"] .button.button--gradient span,
html[data-theme="light"] .ghost-button span,
html[data-theme="light"] .project-modal__open span,
html[data-theme="light"] .mobile-sticky-cta span{color:#1789b4!important}
html[data-theme="light"] .showreel b{
  color:#1789b4!important;
  border-color:rgba(46,147,193,.24)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(224,240,247,.62))!important;
  box-shadow:inset 0 1px 0 #fff,0 4px 12px rgba(67,92,107,.08)!important;
}
html[data-theme="light"] .color-theme-toggle{
  color:#1789b4!important;
  background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(232,241,245,.84))!important;
  border-color:rgba(66,155,197,.24)!important;
  box-shadow:inset 0 1px 0 #fff,0 8px 20px rgba(67,92,107,.10)!important;
}

/* Don't let old theme styles repaint the submit button */
.contact-form .btn--primary,
.lead-form .btn--primary{background:inherit}

@media(max-width:760px){
  .header-cta{display:none!important}
  .showreel{width:100%!important;justify-content:center!important;min-width:0!important}
  .mobile-sticky-cta{
    left:12px!important;right:12px!important;bottom:12px!important;
    width:auto!important;
    border-radius:var(--vs-btn-r)!important;
  }
  .color-theme-toggle{width:40px!important;height:40px!important;flex-basis:40px!important;border-radius:13px!important}
}

@media(prefers-reduced-motion:reduce){
  .header-cta,.button.button--gradient,.ghost-button,.project-modal__open,.btn.btn--primary,.showreel,.mobile-sticky-cta{transition:none!important}
}
