/*
 * UCHЁBKA / PRECISION CONTROL SYSTEM v2
 * Native vector-sharp CSS controls — no sprites, screenshots or scaled raster text.
 * Original logos and business workflows remain unchanged.
 */
body.uchebka-lux {
  --ui-graphite:#10191e;
  --ui-graphite-2:#1b292d;
  --ui-edge:#415a4b;
  --ui-edge-hot:#9bd77b;
  --ui-lime:#adf582;
  --ui-lime-2:#7ac951;
  --ui-white:#f2f6f1;
  --ui-muted:#aebfb3;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.uchebka-lux :is(button,a){
  -webkit-tap-highlight-color:transparent;
}
body.uchebka-lux :is(button,a):focus-visible{
  outline:2px solid #c0ff96!important;
  outline-offset:3px!important;
}
body.uchebka-lux :is(button,a):is(:disabled,[aria-disabled="true"]){
  opacity:.5!important;
  filter:grayscale(.7);
  cursor:not-allowed!important;
  transform:none!important;
}
/* One restrained graphite masthead, with the original supplied logo. */
body.uchebka-lux :is(.site-header,header.top){
  background:linear-gradient(180deg,rgba(255,255,255,.025),transparent 49%),#0f171b!important;
  border-bottom:1px solid #33483d!important;
  box-shadow:0 5px 20px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.075)!important;
}
body.uchebka-lux :is(.site-header,header.top) :is(a.brand,a.logo,a.logo-home-link){
  cursor:pointer;
}
body.uchebka-lux :is(.site-header,header.top) :is(a.brand,a.logo,a.logo-home-link) img{
  filter:none;
  transition:opacity .18s ease;
}
body.uchebka-lux :is(.site-header,header.top) :is(a.brand,a.logo,a.logo-home-link):hover img{
  opacity:.88;
  filter:none;
}
body.uchebka-lux :is(.site-header,header.top) :is(.main-nav a,.nav a){
  text-shadow:none!important;
  font-weight:700;
  color:#c3d2c6!important;
  transition:color .16s,border-color .16s;
}
body.uchebka-lux :is(.site-header,header.top) :is(.main-nav a,.nav a):is(:hover,.active,[aria-current="page"]){
  text-shadow:none!important;
  color:#bdf79e!important;
}
/* Primary controls: hard typography, a fine gloss line, subtle physical depth. */
body.uchebka-lux :is(
  .header-cta,.enter,
  a.btn.btn-primary,a.action:not(.muted),a.btn:not(.btn-light),
  button.scenario-action,.scenario-action,
  #open-director-live,button.crm-feature-action:not(.image-cta),
  .quiz-actions #check,.speak-controls #speak,button#cc-run-agent,
  .sales-primary-action,.crm-feature-action:not(.image-cta)
){
  appearance:none;
  position:relative;
  isolation:isolate;
  background:#a9ef7f!important;
  background-image:linear-gradient(180deg,#c2fa9b 0%,#a7eb7b 47%,#88d05d 100%)!important;
  color:#112019!important;
  font-weight:800!important;
  letter-spacing:-.01em;
  text-shadow:none!important;
  border:1px solid #bdec9f!important;
  border-radius:9px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 0 -2px 0 rgba(44,96,37,.16),
    0 1px 1px rgba(0,0,0,.35),0 5px 15px rgba(0,0,0,.23)!important;
  filter:none!important;
  transition:transform .15s ease,background .16s,border-color .16s,box-shadow .16s!important;
}
body.uchebka-lux :is(
  .header-cta,.enter,
  a.btn.btn-primary,a.action:not(.muted),a.btn:not(.btn-light),
  button.scenario-action,.scenario-action,
  #open-director-live,button.crm-feature-action:not(.image-cta),
  .quiz-actions #check,.speak-controls #speak,button#cc-run-agent,
  .sales-primary-action,.crm-feature-action:not(.image-cta)
):hover{
  background-image:linear-gradient(180deg,#d1ffad 0%,#b4f38a 48%,#96d96c 100%)!important;
  border-color:#ddffc5!important;
  color:#0d1910!important;
  transform:translateY(-1px)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88),inset 0 -2px 0 rgba(46,91,34,.12),
    0 0 0 1px rgba(185,251,143,.17),0 6px 18px rgba(0,0,0,.30)!important;
}
body.uchebka-lux :is(
  .header-cta,.enter,
  a.btn.btn-primary,a.action:not(.muted),a.btn:not(.btn-light),
  button.scenario-action,.scenario-action,
  #open-director-live,button.crm-feature-action:not(.image-cta),
  .quiz-actions #check,.speak-controls #speak,button#cc-run-agent,
  .sales-primary-action,.crm-feature-action:not(.image-cta)
):active{
  background-image:linear-gradient(180deg,#8bc55f,#a2e377)!important;
  transform:translateY(1px)!important;
  box-shadow:inset 0 3px 6px rgba(23,69,24,.18),0 1px 2px #0006!important;
}
/* Secondary controls: real sharp graphite and a narrow edge highlight, not foggy chrome. */
body.uchebka-lux :is(
  .header-login,a.btn.btn-secondary,a.btn.btn-light,a.action.muted,
  .cc-contact-action,.cc-inline-action,.inline-link,
  .experience-tab,.cc-nav-button,.cc-mini-action,
  .crm-menu button:not(.crm-photo-nav),
  .lesson-tab,.quiz-step,.quiz-actions .text-button,
  .speak-controls .stop,.option,#director-photo-back,.showroom-contact-button,
  .sales-dark-action,.sales-copy,.sales-tabs button,.sales-preset
){
  appearance:none;
  position:relative;
  background:#17232a!important;
  background-image:linear-gradient(180deg,#ffffff0c 0%,transparent 40%,#0002 100%),linear-gradient(135deg,#202f34,#111c22 80%)!important;
  border:1px solid #486356!important;
  border-radius:9px!important;
  color:#e9f3e8!important;
  text-shadow:none!important;
  font-weight:750;
  box-shadow:inset 0 1px rgba(255,255,255,.11),0 1px 1px #0005,0 4px 12px rgba(0,0,0,.20)!important;
  filter:none!important;
  transition:background .16s,color .16s,border-color .16s,box-shadow .16s,transform .16s!important;
}
body.uchebka-lux :is(
  .header-login,a.btn.btn-secondary,a.btn.btn-light,a.action.muted,
  .cc-contact-action,.cc-inline-action,.inline-link,
  .experience-tab,.cc-nav-button,.cc-mini-action,
  .crm-menu button:not(.crm-photo-nav),
  .lesson-tab,.quiz-step,.quiz-actions .text-button,
  .speak-controls .stop,.option,#director-photo-back,.showroom-contact-button,
  .sales-dark-action,.sales-copy,.sales-tabs button,.sales-preset
):hover{
  background-image:linear-gradient(135deg,#2b4037,#16251f 85%)!important;
  color:#e8ffe1!important;
  border-color:#93c77e!important;
  transform:translateY(-1px)!important;
  box-shadow:inset 0 1px #e6ffd31f,0 0 0 1px rgba(162,233,128,.1),
    0 5px 15px rgba(0,0,0,.28)!important;
}
body.uchebka-lux :is(
  .header-login,a.btn.btn-secondary,a.btn.btn-light,a.action.muted,
  .cc-contact-action,.cc-inline-action,.inline-link,
  .experience-tab,.cc-nav-button,.cc-mini-action,
  .crm-menu button:not(.crm-photo-nav),
  .lesson-tab,.quiz-step,.quiz-actions .text-button,
  .speak-controls .stop,.option,#director-photo-back,.showroom-contact-button,
  .sales-dark-action,.sales-copy,.sales-tabs button,.sales-preset
):active{
  transform:translateY(1px)!important;
  border-color:#6c9a66!important;
  box-shadow:inset 0 3px 7px #0007!important;
}
body.uchebka-lux :is(
  .experience-tab.active,.cc-nav-button.is-active,.quiz-step.active,
  .lesson-tab.active,.option.selected,.sales-tabs button.active,
  .sales-preset.active,.cc-nav-button[aria-pressed="true"],
  .crm-menu button.active:not(.crm-photo-nav)
){
  background-image:linear-gradient(135deg,#31583a,#1b362b 80%)!important;
  color:#ecffe6!important;
  border-color:#a3db8b!important;
  box-shadow:inset 2px 0 #aaf38a,inset 0 1px rgba(255,255,255,.14),
    0 2px 10px rgba(0,0,0,.2)!important;
}
/* Photo navigation buttons remain photos; clean crop, a sharp frame and state ring. */
body.uchebka-lux :is(
  .crm-photo-nav,.crm-quick-photo,.showroom-sales-photo,
  .home-ai-card,.department-card,.tile,.feature-card,.sales-mode
){
  border:1px solid #4d6855!important;
  border-radius:10px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.1),0 6px 20px rgba(0,0,0,.26)!important;
  filter:none!important;
  transition:border-color .2s,transform .2s,box-shadow .2s!important;
}
body.uchebka-lux :is(
  .crm-photo-nav,.crm-quick-photo,.showroom-sales-photo,
  .home-ai-card,.department-card,.tile,.feature-card,.sales-mode
):hover{
  border-color:#a4df82!important;
  transform:translateY(-2px)!important;
  box-shadow:0 0 0 1px rgba(170,235,133,.13),0 9px 22px rgba(0,0,0,.35)!important;
}
body.uchebka-lux :is(.crm-photo-nav.active,.crm-photo-nav[aria-pressed="true"],.sales-mode.active){
  border-color:#beed96!important;
  box-shadow:inset 3px 0 #a7ef80,0 0 0 1px rgba(174,233,143,.2),0 8px 21px rgba(0,0,0,.30)!important;
}
body.uchebka-lux .crm-feature-action.image-cta{
  border:1px solid #7caf6c!important;
  border-radius:9px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.17),0 5px 13px #0006!important;
  text-shadow:0 1px 3px #000c;
  transition:border-color .16s,box-shadow .16s,transform .16s!important;
}
body.uchebka-lux .crm-feature-action.image-cta:hover{
  filter:none!important;
  transform:translateY(-1px)!important;
  border-color:#b3eb8e!important;
  box-shadow:0 7px 17px #0008!important;
}
body.uchebka-lux .crm-feature-action.image-cta:active{transform:translateY(1px)!important}
/* Compact controls: strong icon contrast; no bloom. */
body.uchebka-lux :is(.mobile-menu,.menu-toggle,.side-item,button.crm-mini-icon){
  background-image:linear-gradient(160deg,#23352f,#101d20)!important;
  color:#c4f9a1!important;
  border:1px solid #587863!important;
  border-radius:9px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.13),0 3px 10px #0005!important;
  filter:none!important;
  transition:border-color .16s,background .16s!important;
}
body.uchebka-lux :is(.mobile-menu,.menu-toggle,.side-item,button.crm-mini-icon):hover{
  background-image:linear-gradient(145deg,#2e4938,#162721)!important;
  border-color:#a4d98b!important;
  box-shadow:inset 0 1px rgba(255,255,255,.16),0 5px 12px #0006!important;
}
body.uchebka-lux .side-item.side-active{
  background:#295037!important;border-color:#a2dc87!important;
}
/* Status tags are statuses, not attention-grabbing plastic buttons. */
body.uchebka-lux :is(.chip,.tag,.crm-pill,.feature-chip,.cc-secure,.crm-screen-mark,.sales-stage-chip){
  background:#21342b!important;
  background-image:linear-gradient(180deg,#ffffff0a,transparent)!important;
  border:1px solid #537755!important;
  color:#c6e9bb!important;
  border-radius:18px!important;
  text-shadow:none!important;
  box-shadow:inset 0 1px #ffffff0e!important;
}
body.uchebka-lux :is(.tag.warn,.crm-pill.amber){
  border-color:#916f40!important;
  background:#352b1d!important;
  color:#f2d7a3!important;
}
body.uchebka-lux :is(.crm-control-input,.search-input,#topic-search){
  background:#111d22!important;
  border:1px solid #456450!important;
  border-radius:8px!important;
  box-shadow:inset 0 2px 5px #0006!important;
}
body.uchebka-lux :is(.crm-control-input,.search-input,#topic-search):focus{
  border-color:#a4e388!important;
  outline:1px solid #9dce80!important;
  box-shadow:inset 0 1px 5px #0006,0 0 0 2px #7ac65b18!important;
}
/* SEO directory has its own markup: real navigational links, not generated overlays. */
body.uchebka-lux header.top nav[aria-label="Навигация"]{
  display:flex;align-items:center;gap:8px;justify-content:flex-end;
}
body.uchebka-lux header.top nav[aria-label="Навигация"] a{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:41px;padding:9px 12px;
  white-space:nowrap;
  text-decoration:none!important;
  font-weight:700;
  border:1px solid #415e4e!important;
  border-radius:8px;
  background:linear-gradient(160deg,#1d2b2c,#101b20)!important;
  color:#e2eee2!important;
  text-shadow:none!important;
  box-shadow:inset 0 1px #ffffff10,0 3px 10px #0003!important;
  transition:background .16s,border-color .16s,transform .16s!important;
}
body.uchebka-lux header.top nav[aria-label="Навигация"] a:not([href="/login"]):hover{
  background:#254034!important;border-color:#92cc79!important;
  color:#d8fac8!important;transform:translateY(-1px);
}
body.uchebka-lux header.top nav[aria-label="Навигация"] a[href="/login"]{
  background:linear-gradient(180deg,#c3fa9e,#89d35f)!important;
  border-color:#b6eb95!important;color:#102015!important;
  font-weight:850;
  box-shadow:inset 0 1px #ffffff95,0 4px 12px #0005!important;
}
body.uchebka-lux header.top nav[aria-label="Навигация"] a[href="/login"]:hover{
  background:linear-gradient(180deg,#d2ffb0,#a6e784)!important;
  color:#102015!important;border-color:#d6ffc7!important;
}
/* The already connected sales demo gets identical buttons without altering its logic. */
body.uchebka-lux .sales-mode.active{background:#213c2c}
body.uchebka-lux .sales-no-live{color:#b6e7a9}
body.uchebka-lux .sales-rail-photo{border-color:#4a6b53}
/* Clear mobile dropdown, tight rows, no off-screen overlay. */
@media(max-width:900px){
 body.uchebka-lux :is(header.top .nav.open,.site-header #main-nav.open){
  background:#111b20!important;
  border:1px solid #537b59!important;
  box-shadow:0 15px 40px #000b!important;
  border-radius:10px!important;
 }
 body.uchebka-lux :is(header.top .nav.open a,.site-header #main-nav.open a){
  min-height:42px;border-radius:7px;text-shadow:none!important;
 }
 body.uchebka-lux :is(header.top .nav.open a,.site-header #main-nav.open a):hover{
  background:#234032!important;color:#e1ffd7!important;
 }
 body.uchebka-lux header.top nav[aria-label="Навигация"]{gap:6px;justify-content:flex-start}
 body.uchebka-lux header.top nav[aria-label="Навигация"] a{font-size:12px;padding:7px 9px;min-height:38px}
}
@media(prefers-reduced-motion:reduce){
 body.uchebka-lux :is(button,a){transition:none!important}
 body.uchebka-lux :is(button,a):is(:hover,:active){transform:none!important}
}
