/* tambov-kardio restore v3 - SPPB + Helix */
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#243342;margin:0;line-height:1.6;background:#fff;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:#c62828;text-decoration:none}a:hover{text-decoration:underline}
h1,h2,h3,h4{color:#1f2d3a;line-height:1.25;margin:.5em 0 .5em;font-weight:700}
h1{font-size:32px}h2{font-size:26px}h3{font-size:21px}h4{font-size:18px}
p{margin:0 0 1em}
.container,.container-inner,.sppb-container-inner{max-width:1170px;margin:0 auto;padding:0 15px}
.container-fluid{width:100%;padding:0 15px}
.row,.sppb-row{display:flex;flex-wrap:wrap;margin:0 -15px}
.row>[class*=col]{padding:0 15px}
.d-flex{display:flex!important}.align-items-center{align-items:center}.justify-content-between{justify-content:space-between}.justify-content-center{justify-content:center}
.col-auto,.flex-auto{flex:0 0 auto}
.sppb-section{padding:44px 0}
.sppb-row-container{max-width:1170px;margin:0 auto;padding:0 15px;width:100%}
.sppb-row{align-items:stretch}
.sppb-column{padding:0 15px;margin-bottom:20px;flex:1 1 0}
.sppb-column-addons{height:100%}
.sppb-col-md-12{flex:0 0 100%;max-width:100%;padding:0 15px}
.sppb-col-md-8{flex:0 0 66.66%;max-width:66.66%;padding:0 15px}
.sppb-col-md-6{flex:0 0 50%;max-width:50%;padding:0 15px}
.sppb-col-md-4{flex:0 0 33.33%;max-width:33.33%;padding:0 15px}
.sppb-col-md-3{flex:0 0 25%;max-width:25%;padding:0 15px}
@media(max-width:767px){.sppb-col-md-8,.sppb-col-md-6,.sppb-col-md-4,.sppb-col-md-3{flex:0 0 100%;max-width:100%}.sppb-row{display:block}}
.sppb-addon{margin-bottom:0}.sppb-addon-content{font-size:16px}
.sppb-img-responsive,.sppb-addon-single-image-container img{border-radius:10px;width:100%;object-fit:cover}
.sppb-addon-title{font-size:22px;margin:0 0 14px;color:#1f2d3a}
.sppb-btn,.btn,button.sppb-btn{display:inline-block;padding:11px 26px;background:#c62828;color:#fff!important;border:0;border-radius:30px;cursor:pointer;font-weight:600;font-size:15px;margin-top:8px}
.sppb-btn:hover,.btn:hover{background:#a91f1f;text-decoration:none}
.sppb-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;list-style:none;padding:0;margin:0}
.sppb-gallery li,.sppb-gallery-item{margin:0}.sppb-gallery img{border-radius:10px;width:100%;height:220px;object-fit:cover}
@media(max-width:767px){.sppb-gallery{grid-template-columns:repeat(2,1fr)}}
.sppb-nav-tabs,.sppb-nav{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0 0 18px;border-bottom:2px solid #eceff3}
.sppb-nav-tabs>li>a,.sppb-nav>li>a{display:block;padding:10px 18px;color:#243342;font-weight:600;border-radius:8px 8px 0 0}
.sppb-nav-tabs>li.sppb-active>a,.sppb-nav>li.active>a{background:#c62828;color:#fff}
.sppb-tab-pane{display:none}.sppb-tab-pane.sppb-active,.sppb-tab-pane.active,.sppb-tab-pane.sppb-in{display:block}
#sp-header,.sp-header{background:#fff;border-bottom:1px solid #eceff3}
.full-header{padding:8px 0}
.sticky-header .full-header{position:sticky;top:0;z-index:1000;box-shadow:0 2px 10px rgba(0,0,0,.07);background:#fff}
.logo,.sp-logo{display:flex;align-items:center}
.logo img,.sp-logo img,.logo_header img{max-height:60px;width:auto}
.sp-megamenu-parent{list-style:none;margin:0;padding:0}
.sp-megamenu-parent>li{position:relative}
.sp-megamenu-parent>li>a{display:block;padding:14px 10px;color:#243342;font-weight:600;font-size:15px}
.sp-megamenu-parent>li>a:hover,.sp-megamenu-parent>li.active>a,.sp-megamenu-parent>li.current-item>a{color:#c62828}
.sp-megamenu-parent .sp-dropdown{position:absolute;left:0;top:100%;min-width:230px;background:#fff;border:1px solid #eceff3;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:8px 0;display:none;z-index:1001;border-radius:0 0 8px 8px}
.sp-megamenu-parent>li:hover>.sp-dropdown{display:block}
.sp-dropdown ul{list-style:none;margin:0;padding:0}
.sp-dropdown a{display:block;padding:9px 20px;color:#243342}
.sp-dropdown a:hover{background:#f6f8fa;color:#c62828}
@media(min-width:992px){.sp-megamenu-parent{display:flex!important;flex-wrap:wrap;align-items:center}.d-lg-block{display:block!important}.d-lg-none{display:none!important}.burger-icon{display:none}}
@media(max-width:991px){.sp-megamenu-parent{display:none}.d-none{display:none}}
.sp-module{margin-bottom:20px}.sp-module-title{font-size:20px;margin:0 0 12px;color:#1f2d3a}
.sp-section-2,.sp-section-3{background:#f6f8fa}
#sp-footer,.sp-footer{background:#1f2d3a;color:#c9d2dc;padding:28px 0}
#sp-footer a,.sp-footer a,.sp-copyright a{color:#fff}
.sp-copyright{color:#9fb0c0;font-size:14px;padding-top:10px}
.body-wrapper,#sp-main-body{padding:0}
.sp-scroll-up{background:#c62828!important}
.sppb-text-center{text-align:center}.sppb-addon-image{text-align:center}
.offcanvas-menu{background:#fff;padding:20px}
.burger-icon{cursor:pointer;width:30px;height:22px;position:relative;display:inline-block}
.burger-icon>span{display:block;height:3px;background:#243342;border-radius:2px;margin:4px 0}
ul.menu,ul.nav-pills{list-style:none;padding:0;margin:0}
.image-wrap{position:relative;border-radius:12px;overflow:hidden;margin-bottom:12px}
.image-wrap .image,.image-wrap .front{position:relative;width:100%;height:220px}
.image-wrap .front{background-size:cover!important;background-position:center!important;background-repeat:no-repeat;border-radius:12px}
.image-lay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.35));z-index:1;border-radius:12px}
.sppb-addon-single-image-container{text-align:center}
.sppb-addon-image img,.sppb-img-responsive{margin:0 auto}
/* v5 header/footer polish */
.full-header{padding:0}
.full-header .container-inner{padding-top:10px;padding-bottom:10px}
.full-header .row{flex-wrap:nowrap;justify-content:space-between;align-items:center;margin:0}
.logo_header,.sp-module.logo_header{margin:0}
.logo_header .sppb-img-responsive,.logo img{max-height:56px;width:auto;margin:0}
.menu-with-social,.menu-with-offcanvas{margin:0}
@media(min-width:992px){.sp-megamenu-parent{gap:0 2px}.sp-megamenu-parent>li>a{padding:18px 12px;white-space:nowrap}}
.sp-megamenu-parent>li.current-item>a,.sp-megamenu-parent>li.active>a{color:#c62828}
#sp-footer,.sp-footer{background:#1a2733;color:#c9d2dc;padding:0}
#sp-footer .container,.sp-footer .container{padding-top:28px;padding-bottom:20px}
#sp-footer h3,#sp-footer .sp-module-title,.sp-footer h3{color:#fff;font-size:17px;margin:0 0 14px;text-transform:uppercase;letter-spacing:.4px}
#sp-footer a,.sp-footer a{color:#c9d2dc}#sp-footer a:hover,.sp-footer a:hover{color:#fff;text-decoration:none}
#sp-footer ul,.sp-footer ul{list-style:none;padding:0;margin:0}
#sp-footer li,.sp-footer li{padding:5px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.sp-copyright{color:#8ea0b2;font-size:13px;border-top:1px solid rgba(255,255,255,.12);padding:16px 0;text-align:center;margin-top:10px}
.tk-foot-wrap{display:flex;flex-wrap:wrap;gap:30px;justify-content:space-between}
.tk-foot-col{flex:1 1 220px;min-width:200px}
.tk-foot-col .lbl{color:#fff;font-size:16px;font-weight:700;margin:0 0 12px;text-transform:uppercase;letter-spacing:.4px}
.tk-foot-col p{margin:0 0 8px;font-size:14px;line-height:1.5}
.tk-foot-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;color:#fff;margin-bottom:10px}

/* ===== MENU BAR (single clean block, replaces v6-v11) ===== */
@media(min-width:992px){
  /* menu column takes its own full row so bar spans full width same on all pages */
  #sp-menu{flex:0 0 100%!important;max-width:100%!important;width:100%!important;padding:0!important}
  #sp-menu .sp-column{width:100%!important;justify-content:center!important}
  .sp-megamenu-wrapper{width:100%!important;background:#1f2d3a!important;border-radius:6px!important;display:flex!important;justify-content:center!important;align-items:center!important;padding:0!important;margin:6px 0!important}
  ul.sp-megamenu-parent{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:1140px!important;margin:0 auto!important;padding:0!important;list-style:none!important;gap:2px!important}
  ul.sp-megamenu-parent>li{margin:0!important}
  ul.sp-megamenu-parent>li>a,ul.sp-megamenu-parent>li>span{display:block!important;color:#fff!important;padding:14px 18px!important;font-weight:600!important;font-size:15px!important;white-space:nowrap!important;border-radius:4px!important;text-decoration:none!important}
  ul.sp-megamenu-parent>li>a:hover,ul.sp-megamenu-parent>li.active>a,ul.sp-megamenu-parent>li.current-item>a{color:#fff!important;background:#c62828!important}
  /* dropdown readable */
  .sp-megamenu-parent .sp-dropdown{background:#fff!important}
  .sp-megamenu-parent .sp-dropdown a{color:#243342!important}
  .sp-megamenu-parent .sp-dropdown a:hover{color:#c62828!important;background:#f6f8fa!important}
}

/* ===== MENU hard-guard (beat template justify-between & red) ===== */
@media(min-width:992px){
  #sp-header #sp-menu .sp-column.justify-content-between{justify-content:center!important}
  body #sp-menu ul.sp-megamenu-parent>li>a,
  body #sp-menu ul.sp-megamenu-parent>li>span{color:#fff!important}
  body #sp-menu ul.sp-megamenu-parent>li.active>a,
  body #sp-menu ul.sp-megamenu-parent>li.current-item>a,
  body #sp-menu ul.sp-megamenu-parent>li>a:hover{color:#fff!important;background:#c62828!important}
}

/* v14 keep logo visible above full-width menu */
@media(min-width:992px){
  #sp-header .row,#sp-header>.container>.row{flex-wrap:wrap!important;align-items:center!important}
  #sp-logo{flex:0 0 100%!important;max-width:100%!important;width:100%!important;order:1!important;text-align:center!important;padding:8px 0!important}
  #sp-logo .logo,#sp-logo .sp-module{display:inline-flex!important;justify-content:center!important;align-items:center!important}
  #sp-logo img,.logo img,.logo-image{display:inline-block!important;max-height:64px!important;width:auto!important;visibility:visible!important;opacity:1!important}
  #sp-menu{order:2!important}
}

/* v15 logo LEFT + menu LEFT, hide empty logo placeholder */
@media(min-width:992px){
  /* hide empty logo image container (mod-custom147 leftover, no img) */
  #sp-logo #mod-custom147{display:none!important}
  #sp-logo{flex:0 0 100%!important;max-width:100%!important;width:100%!important;order:1!important;text-align:left!important;padding:10px 15px 0!important}
  #sp-logo .sp-column{width:100%!important;justify-content:flex-start!important;align-items:center!important;display:flex!important}
  #sp-logo .logo{display:inline-flex!important;align-items:center!important}
  #sp-logo .logo a{display:inline-block!important}
  #sp-logo img,.logo img,.logo-image{display:inline-block!important;max-height:70px!important;width:auto!important;height:auto!important;visibility:visible!important;opacity:1!important}
  /* menu LEFT */
  #sp-menu{order:2!important}
  .sp-megamenu-wrapper{justify-content:flex-start!important;padding:0 15px!important}
  ul.sp-megamenu-parent{justify-content:flex-start!important;margin:0!important;max-width:1140px!important}
}

/* v16 dark header bg so white logo is visible; logo+menu left */
@media(min-width:992px){
  #sp-header,#sp-header .row{background:#1f2d3a!important}
  #sp-logo{background:#1f2d3a!important;padding:12px 15px 6px!important;text-align:left!important}
  #sp-logo .sp-column{justify-content:flex-start!important}
  #sp-logo img,.logo img,.logo-image{max-height:74px!important;width:auto!important;filter:none!important}
  .sp-megamenu-wrapper{background:#1f2d3a!important;border-radius:0!important;justify-content:flex-start!important;margin:0!important;padding:0 15px 8px!important}
  ul.sp-megamenu-parent{justify-content:flex-start!important}
}
