/* v8.17 final corrections */
:root{--saysay-wine:#4d0e12;--saysay-wine2:#b3212a;--saysay-cream:#fff7e3}

/* One compact, clickable white submenu everywhere (the pre-v8.15 geometry). */
.v82-services-wrap{position:relative!important}
.v82-services-wrap::after{content:"";position:absolute;left:-16px;right:-16px;top:17px;height:18px;background:transparent}
.v82-services-menu{
  position:absolute!important;left:50%!important;top:27px!important;
  transform:translateX(-50%) translateY(-4px)!important;
  width:205px!important;padding:12px!important;background:#fff!important;
  border-radius:10px!important;box-shadow:0 8px 24px rgba(0,0,0,.08)!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transition:opacity .18s ease,transform .18s ease!important;z-index:40000!important;
}
.v82-services-menu::before{content:""!important;display:block!important;position:absolute!important;top:-8px!important;left:50%!important;margin-left:-13px!important;border-left:13px solid transparent!important;border-right:13px solid transparent!important;border-bottom:9px solid #fff!important}
.v82-services-wrap:hover .v82-services-menu,.v82-services-wrap:focus-within .v82-services-menu,.v82-services-menu:hover{
 opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateX(-50%) translateY(0)!important;
}
.v82-services-menu a{display:block!important;padding:5px 4px!important;color:#000!important;text-decoration:none!important;text-align:center!important;font-family:"TikTok Sans",Arial,sans-serif!important;font-size:11px!important;font-weight:400!important;line-height:1.35!important}
.v82-services-menu a:hover{text-decoration:underline!important;text-underline-offset:3px!important}
.services-dropdown{display:none!important}

/* Never show the legacy exported header under the real shared header. */
.v817-old-exported-header{display:none!important}

/* Buttons: keep original transforms/labels, only give homepage hover and correct colours. */
.fig-ui-button,.course-v814-cta,.v82-format-btn{font-family:"TikTok Sans",Arial,sans-serif!important;font-synthesis:none!important;text-decoration:none!important}
.fig-ui-button.button-hover-ready,.course-v814-cta,.v82-format-btn{position:relative;isolation:isolate;overflow:hidden}
.fig-ui-button.button-hover-ready::before,.course-v814-cta::before,.v82-format-btn::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,var(--saysay-wine),var(--saysay-wine2));opacity:0;transition:opacity .3s cubic-bezier(.22,1,.36,1);z-index:-1;pointer-events:none}
.fig-ui-button.button-hover-ready:hover::before,.course-v814-cta:hover::before,.v82-format-btn:hover::before{opacity:1}
.fig-ui-button.button-hover-ready:hover,.course-v814-cta:hover,.v82-format-btn:hover{color:#fff!important;text-decoration:none!important}
.fig-ui-button.button-hover-ready:hover .fig-button-label,.fig-ui-button.button-hover-ready:hover .fig-text-node,.course-v814-cta:hover span{color:#fff!important}

/* About: labels must stay centered; do not touch exported text weights. */
body[data-page="about"] .v813-about-button-label{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;font-family:"TikTok Sans",Arial,sans-serif!important;font-size:16px!important;font-weight:500!important;line-height:1!important;color:var(--btn-text-color)!important;white-space:nowrap!important;transform:none!important}
body[data-page="about"] .fig-button-dark .v813-about-button-label{color:#fff!important}
body[data-page="about"] .fig-button-light .v813-about-button-label{color:#301016!important}
body[data-page="about"] .fig-button-light:hover .v813-about-button-label{color:#fff!important}
/* Keep the old three-visible-certificate composition; remove the distracting morph animation. */
body[data-page="about"] .about-cert-card{transition:none!important}

/* Services: browser fallback metrics must not wrap the one-line prices into the discount line. */
body[data-page^="services"] .fig-desktop-wrap .fig-text-node[data-text$="за занятие"]{width:360px!important;white-space:nowrap!important}
body[data-page^="services"] .fig-desktop-wrap .fig-text-node[data-text*="при оплате от 8 занятий"]{white-space:nowrap!important}
/* Button labels come from Figma; preserve their inline Regular/Medium and transforms. */
body[data-page^="services"] .fig-instance-node[role="button"] .fig-text-node,
body[data-page^="services"] .fig-instance-node[role="link"] .fig-text-node{overflow:visible!important;white-space:nowrap!important;font-weight:400!important}

/* Course CTA colours and exact plain text. */
body[data-page="course"] .course-v814-cta{font-family:"TikTok Sans",Arial,sans-serif!important;font-size:16px!important;font-weight:500!important;line-height:1!important;white-space:nowrap!important}
body[data-page="course"] .course-v814-cta:not(.light),body[data-page="course"] .course-v814-cta:not(.light) span{color:#fff!important}
body[data-page="course"] .course-v814-cta.light,body[data-page="course"] .course-v814-cta.light span{color:#000!important}
body[data-page="course"] .course-v814-cta:hover span{color:#fff!important}
/* Dynamic FAQ restored; static Figma rows hidden only where the interactive version overlays them. */
body[data-page="course"] .desktop-course-faq{left:130px!important;top:3798px!important;width:1180px!important}
body[data-page="course"] .desktop-course-faq h2{font-weight:500!important}
body[data-page="course"] .desktop-course-faq .v82-faq-q{font-weight:400!important}
body[data-page="course"] .desktop-course-faq .v82-faq-a>div{font-weight:400!important}

@media(max-width:700px){
 .v82-services-menu{display:none!important}
 body[data-page="about"] .v813-about-button-label{font-size:12px!important}
}
