/* UCHЁBKA / expressive precision controls v4
   More personality and hierarchy, never glow-plastic. Buttons remain semantic DOM controls.
   Original logos, photographs, and action handlers are untouched. */

body.uchebka-lux {
  --control-lime:#a8ef83;
  --control-lime-hover:#bafa97;
  --control-charcoal:#14221f;
  --control-edge:#658f66;
}
body.uchebka-lux :is(a,button):focus-visible{
  outline:2px solid #c0fa9c!important;outline-offset:3px!important;
}
/* Primary: crisp emerald/lime fill, visible instantly in the dark interface. */
body.uchebka-lux :is(
  .header-cta,.enter,.btn-primary,.action:not(.muted),
  .scenario-action,#open-director-live,.sales-primary-action,
  .crm-feature-action:not(.image-cta),#cc-run-agent,
  .quiz-actions #check,.speak-controls #speak
){
  position:relative;
  background:#9ce678!important;
  background-image:linear-gradient(165deg,#b3f28f 0%,#97dd71 67%,#83c45d 100%)!important;
  color:#102119!important;
  border:1px solid #c4fba8!important;
  border-radius:10px!important;
  font-weight:850!important;
  letter-spacing:-.018em!important;
  text-shadow:none!important;
  box-shadow:inset 0 1px rgba(255,255,255,.56),
    0 0 0 1px rgba(106,165,73,.14),0 6px 20px rgba(0,0,0,.29)!important;
  transition:background .19s,border-color .19s,box-shadow .19s,transform .19s,color .19s!important;
  -webkit-font-smoothing:antialiased;
}
body.uchebka-lux :is(
  .header-cta,.enter,.btn-primary,.action:not(.muted),
  .scenario-action,#open-director-live,.sales-primary-action,
  .crm-feature-action:not(.image-cta),#cc-run-agent,
  .quiz-actions #check,.speak-controls #speak
):hover{
  background-image:linear-gradient(165deg,#c9ffac 0%,#a9eb89 72%,#8dd36b 100%)!important;
  border-color:#defdcb!important;
  color:#101f15!important;
  transform:translateY(-2px)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.72),
    0 0 0 1px rgba(180,242,145,.28),0 10px 25px rgba(0,0,0,.36)!important;
  filter:none!important;
}
body.uchebka-lux :is(
  .header-cta,.enter,.btn-primary,.action:not(.muted),
  .scenario-action,#open-director-live,.sales-primary-action,
  .crm-feature-action:not(.image-cta),#cc-run-agent,
  .quiz-actions #check,.speak-controls #speak
):active{
  background:#86cb68!important;background-image:linear-gradient(165deg,#83c264,#9add7b)!important;
  transform:translateY(1px)!important;
  box-shadow:inset 0 3px 7px rgba(41,80,30,.22),0 2px 5px rgba(0,0,0,.24)!important;
}
/* Main marketing CTA sizing: one unmistakable focal point. */
body.uchebka-lux .hero-actions .btn-primary{
  min-height:58px!important;padding:15px 23px!important;gap:18px!important;
  font-size:13px!important;
  white-space:normal;
}
body.uchebka-lux .hero-actions .btn-primary svg,
body.uchebka-lux .header-cta svg{
  flex:none;
  width:21px!important;height:21px!important;
  color:#16301b!important;
  stroke-width:2.3!important;
}
body.uchebka-lux .hero-actions .btn-primary svg{
  border-left:1px solid rgba(27,75,21,.20);
  padding-left:8px;
  box-sizing:content-box;
}
body.uchebka-lux .site-header .header-cta{
  min-height:44px!important;
  padding:10px 15px!important;
  gap:10px!important;
}
body.uchebka-lux .site-header .header-cta .header-cta-label{
  font-weight:850!important;letter-spacing:-.02em!important;
}
/* Secondary: distinct graphite surface and clean tactile border; no neon halo. */
body.uchebka-lux :is(
  .btn-secondary,.action.muted,.header-login,.cc-contact-action,.cc-inline-action,.inline-link,
  .experience-tab,.cc-nav-button,.cc-mini-action,.lesson-tab,.quiz-step,.option,
  .sales-dark-action,.sales-copy,.sales-preset,.sales-tabs button,.showroom-contact-button,
  #director-photo-back,.academy-modes button,.academy-teacher-link,.academy-handoff-link
){
  background:#1a2b2c!important;
  background-image:linear-gradient(150deg,#253a36 0%,#142329 78%)!important;
  color:#edf8ed!important;
  border:1px solid #61846c!important;
  border-radius:10px!important;
  text-shadow:none!important;
  box-shadow:inset 0 1px rgba(255,255,255,.10),0 5px 17px rgba(0,0,0,.27)!important;
  font-weight:760!important;
  transition:border-color .18s,background .18s,box-shadow .18s,transform .18s!important;
}
body.uchebka-lux :is(
  .btn-secondary,.action.muted,.header-login,.cc-contact-action,.cc-inline-action,.inline-link,
  .experience-tab,.cc-nav-button,.cc-mini-action,.lesson-tab,.quiz-step,.option,
  .sales-dark-action,.sales-copy,.sales-preset,.sales-tabs button,.showroom-contact-button,
  #director-photo-back,.academy-modes button,.academy-teacher-link,.academy-handoff-link
):hover{
  background:#294439!important;
  background-image:linear-gradient(150deg,#345442,#192e2e 90%)!important;
  border-color:#a2dc8f!important;
  color:#f3fff0!important;
  box-shadow:inset 0 1px #e6ffd021,0 7px 20px rgba(0,0,0,.33)!important;
  transform:translateY(-1px)!important;
}
body.uchebka-lux :is(
  .experience-tab.active,.cc-nav-button.is-active,.cc-nav-button[aria-pressed="true"],
  .lesson-tab.active,.quiz-step.active,.option.selected,
  .sales-tabs button.active,.sales-preset.active,.academy-modes button.active
){
  background:#244631!important;background-image:linear-gradient(135deg,#30543a,#1b3529)!important;
  color:#f0ffeb!important;
  border-color:#afeb93!important;
  box-shadow:inset 3px 0 #adf38d,0 5px 14px rgba(0,0,0,.21)!important;
}
body.uchebka-lux :is(
  .btn-secondary,.action.muted,.experience-tab,.cc-nav-button,
  .sales-tabs button,.academy-modes button
):active{
  transform:translateY(1px)!important;
  box-shadow:inset 0 2px 5px rgba(0,0,0,.3)!important;
}
/* Functional navigation/photos: higher edge contrast but photography stays sharp. */
body.uchebka-lux :is(
  .crm-photo-nav,.crm-quick-photo,.home-ai-card,
  .department-card,.feature-card,.tile,.showroom-sales-photo,.sales-mode,.academy-agent-card,
  .academy-module-card
){
  border-color:#52785d!important;
  border-radius:10px!important;
  box-shadow:0 8px 21px rgba(0,0,0,.28)!important;
  transition:border-color .18s,transform .18s,box-shadow .18s!important;
}
body.uchebka-lux :is(
  .crm-photo-nav,.crm-quick-photo,.home-ai-card,
  .department-card,.feature-card,.tile,.showroom-sales-photo,.sales-mode,.academy-agent-card,
  .academy-module-card
):hover{
  border-color:#afe58c!important;
  transform:translateY(-2px)!important;
  box-shadow:0 0 0 1px rgba(163,222,136,.13),0 11px 27px rgba(0,0,0,.35)!important;
}
body.uchebka-lux :is(
  .crm-photo-nav.active,.crm-photo-nav[aria-pressed="true"],.sales-mode.active,
  .academy-module-card.active
){
  border-color:#bef3a3!important;
  box-shadow:inset 3px 0 #bbf29d,0 9px 25px rgba(0,0,0,.33)!important;
}
/* Buttons layered over photography must preserve it. */
body.uchebka-lux .crm-feature-action.image-cta{
  border:1px solid #abd996!important;
  border-radius:10px!important;
  color:#f2ffec!important;
  text-shadow:0 1px 3px #000b!important;
  box-shadow:inset 0 1px rgba(255,255,255,.16),0 7px 20px rgba(0,0,0,.30)!important;
}
body.uchebka-lux .crm-feature-action.image-cta:hover{
  border-color:#ccf6b5!important;
  transform:translateY(-2px)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.22),0 9px 26px #0007!important;
}
/* Compact and icon-only controls have a visible 44px touch target where possible. */
body.uchebka-lux :is(.mobile-menu,.menu-toggle,button.crm-mini-icon){
  min-width:43px;min-height:43px;
  background:#203a2d!important;
  border:1px solid #789e75!important;
  border-radius:10px!important;
  color:#c9f6b5!important;
  box-shadow:inset 0 1px rgba(255,255,255,.12),0 3px 10px rgba(0,0,0,.23)!important;
}
body.uchebka-lux :is(.mobile-menu,.menu-toggle,button.crm-mini-icon):hover{
  background:#31533c!important;
  border-color:#b5e99a!important;
  box-shadow:0 5px 14px rgba(0,0,0,.32)!important;
}
/* SEO navigational links have no CSS classes, so handle their own CTA. */
body.uchebka-lux header.top nav[aria-label="Навигация"] a{
  min-height:42px;
  color:#edf6ea!important;
  border-color:#61826a!important;
  background:#1c302e!important;
  background-image:linear-gradient(155deg,#283f35,#17262b)!important;
  font-weight:750!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 4px 12px rgba(0,0,0,.22)!important;
}
body.uchebka-lux header.top nav[aria-label="Навигация"] a:not([href="/login"]):hover{
  background:#2a4738!important;
  border-color:#a7dc8a!important;color:#f1ffee!important;
}
body.uchebka-lux header.top nav[aria-label="Навигация"] a[href="/login"]{
  background:#a4e982!important;
  background-image:linear-gradient(155deg,#bcf29b,#92d46e)!important;
  color:#102019!important;
  border-color:#c2f6a8!important;
  font-weight:850!important;
  box-shadow:inset 0 1px #ffffff8a,0 6px 18px #0006!important;
}
body.uchebka-lux header.top nav[aria-label="Навигация"] a[href="/login"]:hover{
  background:#beefa6!important;
  color:#102019!important;
  border-color:#ddffca!important;
}
/* Header and status labels should not become decorative buttons. */
body.uchebka-lux :is(.chip,.tag,.crm-pill,.cc-secure,.feature-chip,.sales-stage-chip){
  background:#1f362a!important;border:1px solid #527e55!important;
  border-radius:8px!important;color:#d4edca!important;box-shadow:none!important;
}
@media(max-width:750px){
  body.uchebka-lux .hero-actions .btn-primary{
    min-height:54px!important;
    padding:13px 17px!important;
    font-size:12px!important;
  }
  body.uchebka-lux .site-header .header-cta{
    min-height:40px!important;padding:9px 11px!important;
  }
  body.uchebka-lux .hero-actions .btn-primary svg{width:18px!important;height:18px!important}
  body.uchebka-lux :is(header.top .nav.open,.site-header #main-nav.open){
    background:#102017!important;border:1px solid #5a875e!important;
    box-shadow:0 15px 32px rgba(0,0,0,.5)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.uchebka-lux :is(a,button){transition:none!important}
  body.uchebka-lux :is(a,button):hover{transform:none!important}
}
