/* Small adaptations to the approved October19 layout, not a redesign. */
html { scroll-padding-top:104px; }
#formats, #booking, #first-meeting, #parents { scroll-margin-top:0!important; }
@media(max-width:1199px) { html { scroll-padding-top:72px; } }
/* Keep the original one-line header with the added training navigation item. */
@media(min-width:1200px) {
 body .mainHeader .port { display:flex!important;align-items:center;gap:24px; }
 body .mainHeader .port:before,body .mainHeader .port:after { display:none!important; }
 body .mainHeader .logo { flex:0 0 150px;float:none!important; }
 body .mainHeader .menuPort { flex:1;min-width:0;display:flex!important;align-items:center;justify-content:flex-end;gap:24px; }
 body .mainHeader .menuPort:after { display:none!important; }
 body .mainHeader .menuPort nav { order:1;float:none!important;padding:0!important; }
 body .mainHeader .menuPort .topBarInMenu { order:2;float:none!important;position:static!important; }
 body .mainHeader .menuPort nav>ul { display:flex;flex-wrap:nowrap;gap:16px; }
 body .mainHeader .menuPort nav>ul>li { float:none!important;padding-left:0!important; }
}
@media(min-width:1200px) {
 body .mainHeader .port { height:80px!important; }
 body .mainHeader .logo { display:flex!important;align-items:center;justify-content:flex-start;height:80px!important;line-height:normal!important; }
 body .mainHeader .logo a { display:flex;align-items:center;height:80px; }
 body .mainHeader .logo img { max-height:64px!important;width:auto!important;max-width:150px!important;vertical-align:middle!important; }
 body .mainHeader .menuPort nav { flex-shrink:0; }
 body .mainHeader .menuPort nav>ul>li>a { white-space:nowrap!important;font-size:14px!important;letter-spacing:0!important; }
 body .mainHeader .menuPort .topBarInMenu,body .mainHeader .topBarInMenuCell { display:flex!important;align-items:center;height:80px!important;line-height:normal!important; }
 body .mainHeader .topBarInMenu .bt_bb_button { margin:0!important; }
 body .mainHeader .topBarInMenu .bt_bb_button a { display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important;height:44px!important;padding:0 22px!important;line-height:normal!important;margin:0!important; }
}
@media(min-width:1200px) {
 html body:is(.page,.blog,.single,.archive) .mainHeader .menuPort nav>ul>li>a { padding:0!important;line-height:80px!important;white-space:nowrap!important;color:#252525!important; }
 html body:is(.page,.blog,.single,.archive) .mainHeader .logo img { max-height:64px!important;width:auto!important;max-width:150px!important; }
 html body:is(.page,.blog,.single,.archive) .mainHeader .topBarInMenu .btButtonWidget.bt_bb_button a.bt_bb_link { min-height:44px!important;height:44px!important;padding:0 22px!important; }
 html body:is(.page,.blog,.single,.archive) .mainHeader .menuPort { width:auto!important;margin:0!important;left:auto!important;right:auto!important;transform:none!important; }
}

/* Let the desktop photograph follow the full content height instead of ending at 720px. */
@media(min-width:768px) {
 .home .slider-bg > .bt_bb_background_image_holder_wrapper { height:100%!important; }
}

/* Mobile navigation overlays the page; it never pushes the content sideways. */
body.btMenuVertical .bt-content-wrap,
body.btMenuVertical .bt-site-footer,
body.btMenuVertical .bt-vertical-header-top {
 transform:none!important; transition:none!important;
}
body.btMenuVertical .bt-vertical-header-top {z-index:10003!important;}
body.btMenuVertical .bt-vertical-header-top {display:flex!important;align-items:center;justify-content:space-between;padding:0 20px!important;height:48px;}
body.btMenuVertical .bt-vertical-header-top .logo {opacity:1!important;order:0;float:none!important;}
body.btMenuVertical .bt-vertical-header-top .bt-vertical-menu-trigger {order:1;float:none!important;margin:0!important;}
body.btMenuVertical .mainHeader {
 top:48px!important;bottom:0!important;left:0!important;right:0!important;
 width:100%!important;height:calc(100vh - 48px)!important;height:calc(100dvh - 48px)!important;
 padding:20px 24px calc(24px + env(safe-area-inset-bottom))!important;
 background:#fff!important;text-align:left!important;box-sizing:border-box;
 transform:translateX(-100%)!important;transition:transform .15s ease-out!important;
 overscroll-behavior:contain;z-index:10002!important;
}
body.btMenuVertical.btMenuVerticalOn .mainHeader {transform:translateX(0)!important;}
body.btMenuVertical.btMenuVerticalOn {overflow:hidden!important;}
body.btMenuVertical .mainHeader .logo {display:none!important;}
body.btMenuVertical .mainHeader .main-header-inner {justify-content:flex-start!important;}
body.btMenuVertical .mainHeader .port,
body.btMenuVertical .mainHeader .menuScrollPort {width:100%!important;max-width:none!important;padding:0!important;margin:0!important;}
body.btMenuVertical .mainHeader .menuPort {display:flex!important;flex-direction:column!important;width:100%!important;padding:0!important;}
body.btMenuVertical .mainHeader .menuPort nav {order:0;width:100%;}
body.btMenuVertical .mainHeader .menuPort nav>ul>li {padding:0!important;float:none!important;text-align:left!important;}
body.btMenuVertical .mainHeader .menuPort nav>ul>li>a {display:block;padding:14px 0!important;line-height:1.3!important;font-size:18px!important;text-align:left!important;}
body.btMenuVertical .mainHeader .topBarInMenu {order:1;width:100%;margin:20px 0 0!important;text-align:left!important;}
body.btMenuVertical .mainHeader .topBarInMenuCell {display:block!important;text-align:left!important;}
body.btMenuVertical .mainHeader .topBarInMenu .bt_bb_button {margin:0!important;float:none!important;}
body.btMenuVertical .mainHeader .topBarInMenu .bt_bb_button a {margin:0!important;}
@media(prefers-reduced-motion:reduce){body.btMenuVertical .mainHeader{transition:none!important;}}

body.btMenuVertical .bt-vertical-header-top .bt-logo-area {order:0;flex:1;text-align:left!important;padding:0!important;}
body.btMenuVertical .bt-vertical-header-top .logo {margin:0!important;padding:0!important;}

html body.btMenuVertical:is(.btMenuVerticalLeft,.btMenuVerticalRight).btMenuVerticalOn .bt-vertical-header-top {transform:none!important;}
body.btMenuVertical .bt-vertical-menu-trigger .bt_bb_icon::before,
body.btMenuVertical .bt-vertical-menu-trigger .bt_bb_icon::after,
body.btMenuVertical .bt-vertical-menu-trigger .bt_bb_icon_holder::before {transition-duration:.15s!important;transition-delay:0s!important;}

/* Keep the mobile close control in the viewport in every sticky/scroll state. */
html body.btMenuVertical .bt-vertical-header-top {
 left:0!important;right:0!important;width:100%!important;max-width:100%!important;
 box-sizing:border-box!important;background:#fff!important;
 -webkit-transform:none!important;transform:none!important;
}

/* The parent theme has a more specific !important rule for the scrolled/open menu. */
html body.btMenuVertical.btStickyHeaderActive.btMenuVerticalOn.btStickyHeaderOpen .bt-vertical-header-top,
html body.btMenuVertical.btMenuVerticalLeft.btStickyHeaderActive.btMenuVerticalOn.btStickyHeaderOpen .bt-vertical-header-top,
html body.btMenuVertical.btMenuVerticalRight.btStickyHeaderActive.btMenuVerticalOn.btStickyHeaderOpen .bt-vertical-header-top,
html body.btStickyHeaderClosed.btMenuVertical.btStickyHeaderActive.btMenuVerticalOn.btStickyHeaderOpen .bt-vertical-header-top {
 -webkit-transform:none!important;transform:none!important;
 left:0!important;right:0!important;width:100%!important;background:#fff!important;
}

/* Tablets (768-1199px): the parent theme paints the menu icon white for the transparent header,
   but the mobile top bar here is white, so the icon was invisible. */
html body.btMenuVertical .bt-vertical-header-top .bt-vertical-menu-trigger,
html body.btMenuVertical .bt-vertical-header-top .bt-vertical-menu-trigger .bt_bb_icon {color:#252525!important;}
html body.btMenuVertical .bt-vertical-header-top .bt-vertical-menu-trigger .bt_bb_icon::before,
html body.btMenuVertical .bt-vertical-header-top .bt-vertical-menu-trigger .bt_bb_icon::after,
html body.btMenuVertical .bt-vertical-header-top .bt-vertical-menu-trigger .bt_bb_icon_holder::before {border-top-color:#252525!important;}

/* 404 page: no theme demo photo; the "На главную" button was white on white. */
.bt-error-page {background-image:none!important;background-color:#f6f4f1!important;}
.bt-error-page .bt_bb_button a {background:#252525!important;color:#fff!important;box-shadow:none!important;}
.bt-error-page .bt_bb_button a:hover {background:#000!important;}

/* 404: the parent theme hides the header on error pages; keep normal navigation there. */
body.error404 .mainHeader {display:block!important;}
@media(min-width:1200px){ body.error404 .mainHeader {position:relative!important;background:#fff!important;} }
@media(min-width:1200px){
 html body.error404 .mainHeader .menuPort nav>ul>li>a {color:#252525!important;line-height:80px!important;padding:0!important;white-space:nowrap!important;}
 html body.error404 .mainHeader .topBarInMenu .bt_bb_button a {background:#252525!important;color:#fff!important;box-shadow:none!important;}
 html body.error404 .mainHeader .logo img.btMainLogo {display:none!important;}
 html body.error404 .mainHeader .logo img.btAltLogo {display:inline-block!important;}
}

/* Same body text size everywhere (17px): payment info captions and the /pay/ page were 16px. */
body.page-id-3004 .bt-content .figcaption,
body.page-id-3012 .bt-content .bt_bb_text p {font-size:17px!important;line-height:1.6!important;color:#252525!important;}

/* /pay/ form in the site style (was the old theme's pill input and pill button). */
.identity-pay-form .bp_form {max-width:420px;}
.identity-pay-form .bp_label {font-size:17px;color:#252525;margin:0 0 8px;}
.identity-pay-form .bp_input input[type=text] {width:100%!important;height:48px!important;border:1px solid #d6d1c8!important;border-radius:5px!important;padding:0 14px!important;font-size:17px!important;background:#fff!important;box-shadow:none!important;}
.identity-pay-form input.bp_submit {display:inline-block!important;width:auto!important;height:48px!important;margin:16px 0 8px!important;padding:0 32px!important;background:#252525!important;color:#fff!important;border:0!important;border-radius:5px!important;font-size:16px!important;font-weight:500!important;cursor:pointer;box-shadow:none!important;}
.identity-pay-form input.bp_submit:hover {background:#000!important;}
.identity-pay-form .bp_loader {display:none;}
.identity-pay-logos {max-width:100%;height:auto;}
body.page-id-3012 .identity-services-intro .bt_bb_text + .bt_bb_text {margin-top:16px;}

/* HTML sitemap as a plain link list in the site style. */
.identity-sitemap {list-style:none;margin:0;padding:0;}
.identity-sitemap li {margin:0 0 14px;padding:0;font-size:17px;}
.identity-sitemap li::before {display:none!important;content:none!important;}
/* Long single-word H1 ("конфиденциальности") must not break mid-word on phones. */
@media(max-width:480px){ body.page-id-3 .identity h1 {font-size:34px!important;} }
.bt-content ul.identity-sitemap, .bt_bb_text ul.identity-sitemap {padding-left:0!important;margin-left:0!important;}
@media(max-width:480px){ html body.page-id-3 .identity .bt_bb_headline h1.bt_bb_headline_tag, html body.page-id-3 .identity .bt_bb_headline h1 .bt_bb_headline_content {font-size:32px!important;line-height:1.15!important;} }
@media(max-width:480px){ html body.page-id-3 .identity .bt_bb_headline h2.bt_bb_headline_tag, html body.page-id-3 .identity .bt_bb_headline h2 .bt_bb_headline_content, html body.page-id-3 .identity h2, html body.page-id-3 .identity h3 {font-size:24px!important;line-height:1.2!important;} }
