/*
Theme Name: GymBalance International
Theme URI: https://gymbalance.net/
Description: Тема международного представительства школы художественной гимнастики GymBalance. Сделана на основе темы msk-gymbalance: те же стили и вёрстка, плюс страницы городов, блог, контакты, микроразметка для Google и установщик структуры сайта. Весь контент редактируется в редакторе WordPress.
Author: GymBalance
Author URI: https://gymbalance.net/
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gymbalance-net
Tags: education, sports, blog, custom-menu, translation-ready
*/






/* ============ начало перенесено из gym.min ============ */
@font-face {
    font-family: 'Comfortaa';
    src: url('Comfortaa-subset.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}
body{overflow-x:hidden;font-family:'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif}p{line-height:1.75}a{color:#a247b2}a:hover{color:#fec503}h1,h2,h3,h4,h5,h6{font-weight:700;font-family:'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif}section{padding:50px 0}section h2.section-heading{font-size:24px;margin-top:0;margin-bottom:15px;color:#5a4bb0;}section h3.section-subheading{font-size:16px;font-weight:400;font-style:italic;margin-bottom:75px;text-transform:none;font-family:'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif} @media (min-width:768px){section{padding:50px 0}}.btn{font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:700}.btn-xl{font-size:18px;padding:20px 40px}.btn-primary:active,.btn-primary:focus,.btn-primary:hover{background-color:#fec810!important;border-color:#fec810!important;color:#fff}.btn-primary:active,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(254,209,55,.5)!important}::-moz-selection{background:#fed136;text-shadow:none}::selection{background:#fed136;text-shadow:none}img::selection{background:0 0}img::-moz-selection{background:0 0}#mainNav .navbar-toggler{font-size:12px;right:0;padding:13px;text-transform:uppercase;color:#fff;border:0;background-color:#fed136;font-family:'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;}#mainNav .navbar-brand{color:#da518a;font-family:'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;}#mainNav .navbar-brand.active,#mainNav .navbar-brand:active,#mainNav .navbar-brand:focus,#mainNav .navbar-brand:hover{color:#fec503}#mainNav .navbar-nav .nav-item .nav-link{font-size:90%;font-weight:400;padding:.75em 0;letter-spacing:1px;color:#fff;font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif}#mainNav .navbar-nav .nav-item .nav-link.active,#mainNav .navbar-nav .nav-item .nav-link:hover{color:#fed136}@media (min-width:992px){#mainNav{padding-top:25px;padding-bottom:25px;-webkit-transition:padding-top .3s,padding-bottom .3s;-moz-transition:padding-top .3s,padding-bottom .3s;transition:padding-top .3s,padding-bottom .3s;border:none;}#mainNav .navbar-brand{font-size:1.75em;-webkit-transition:all .3s;-moz-transition:all .3s;transition:all .3s}#mainNav .navbar-nav .nav-item .nav-link{padding:1.1em .6em!important}#mainNav.navbar-shrink{padding-top:0;padding-bottom:0;}#mainNav.navbar-shrink .navbar-brand{font-size:1.25em;padding:12px 0}}

#mainNav.fixed-top.navbar-shrink {
 background:#fff;
 box-shadow:0 0 5px #d3d3d3
}
header.masthead{color:#5849ae;background-attachment:scroll;background-position:center center;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover}
header.masthead .intro-text .intro-lead-in{font-size:18px;font-style:italic;line-height:22px;padding-bottom:25px;font-family:'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;}
header.masthead .intro-text .intro-heading{font-size:28px;font-weight:700;line-height:50px;padding:8rem 0 1rem 0;font-family:'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; margin-top: 0;}
@media (min-width:768px)
{h2{font-size: 3rem;}
header.masthead .intro-text .intro-lead-in{font-size:20px;font-style:italic;line-height:40px;margin-bottom:25px;font-family:'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;}
header.masthead .intro-text .intro-heading{font-size:55px;font-weight:700;line-height:75px;font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif; margin-top: 0;}}
.service-heading{margin:15px 0;text-transform:none}#portfolio .portfolio-item{right:0;margin:0 0 15px}#portfolio .portfolio-item .portfolio-link{position:relative;display:block;max-width:400px;margin:0 auto;cursor:pointer}#portfolio .portfolio-item .portfolio-link .portfolio-hover{position:absolute;width:100%;height:100%;-webkit-transition:all ease .5s;-moz-transition:all ease .5s;transition:all ease .5s;opacity:0;background:rgba(254,209,54,.9)}#portfolio .portfolio-item .portfolio-link .portfolio-hover:hover{opacity:1}#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content{font-size:20px;position:absolute;top:50%;width:100%;height:20px;margin-top:-12px;text-align:center;color:#fff}#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content i{margin-top:-12px}#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content h3,#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content h4{margin:0}#portfolio .portfolio-item .portfolio-caption{max-width:400px;margin:0 auto;padding:25px;text-align:center;background-color:#fff}#portfolio .portfolio-item .portfolio-caption h4{margin:0;text-transform:none}#portfolio .portfolio-item .portfolio-caption p{font-size:16px;font-style:italic;margin:0;font-family:'Droid Serif','Helvetica Neue',Helvetica,Arial,sans-serif}#portfolio *{z-index:2}@media (min-width:767px){#portfolio .portfolio-item{margin:0 0 30px}}.portfolio-modal{padding-right:0!important}.portfolio-modal .modal-dialog{margin:1rem;max-width:100vw}.portfolio-modal .modal-content{padding:100px 0;text-align:center}.portfolio-modal .modal-content h2{font-size:3em;margin-bottom:15px}.portfolio-modal .modal-content p{margin-bottom:30px}.portfolio-modal .modal-content p.item-intro{font-size:16px;font-style:italic;margin:20px 0 30px;font-family:'Droid Serif','Helvetica Neue',Helvetica,Arial,sans-serif}.portfolio-modal .modal-content ul.list-inline{margin-top:0;margin-bottom:30px}.portfolio-modal .modal-content img{margin-bottom:30px}.portfolio-modal .modal-content button{cursor:pointer}.portfolio-modal .close-modal{position:absolute;top:25px;right:25px;width:75px;height:75px;cursor:pointer;background-color:transparent}.portfolio-modal .close-modal:hover{opacity:.3}.portfolio-modal .close-modal .lr{z-index:1051;width:1px;height:75px;margin-left:35px;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);background-color:#212529}.portfolio-modal .close-modal .lr .rl{z-index:1052;width:1px;height:75px;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);background-color:#212529}.timeline{position:relative;padding:0;list-style:none}.timeline:before{position:absolute;top:0;bottom:0;left:40px;width:2px;margin-left:-1.5px;content:'';background-color:#e9ecef}.timeline>li{position:relative;min-height:50px;margin-bottom:50px}.timeline>li:after,.timeline>li:before{display:table;content:' '}.timeline>li:after{clear:both}.timeline>li .timeline-panel{position:relative;float:right;width:100%;padding:0 20px 0 100px;text-align:left}.timeline>li .timeline-panel:before{right:auto;left:-15px;border-right-width:15px;border-left-width:0}.timeline>li .timeline-panel:after{right:auto;left:-14px;border-right-width:14px;border-left-width:0}.timeline>li .timeline-image{position:absolute;z-index:100;left:0;width:80px;height:80px;margin-left:0;text-align:center;color:#fff;border:7px solid #e9ecef;border-radius:100%;background-color:#fed136}.timeline>li .timeline-image h4{font-size:10px;line-height:14px;margin-top:12px}.timeline>li.timeline-inverted>.timeline-panel{float:right;padding:0 20px 0 100px;text-align:left}.timeline>li.timeline-inverted>.timeline-panel:before{right:auto;left:-15px;border-right-width:15px;border-left-width:0}.timeline>li.timeline-inverted>.timeline-panel:after{right:auto;left:-14px;border-right-width:14px;border-left-width:0}.timeline>li:last-child{margin-bottom:0}.timeline .timeline-heading h4{margin-top:0;color:inherit}.timeline .timeline-heading h4.subheading{text-transform:none}.timeline .timeline-body>p,.timeline .timeline-body>ul{margin-bottom:0}@media (min-width:768px){.timeline:before{left:50%}.timeline>li{min-height:100px;margin-bottom:100px}.timeline>li .timeline-panel{float:left;width:41%;padding:0 20px 20px 30px;text-align:right}.timeline>li .timeline-image{left:50%;width:100px;height:100px;margin-left:-50px}.timeline>li .timeline-image h4{font-size:13px;line-height:18px;margin-top:16px}.timeline>li.timeline-inverted>.timeline-panel{float:right;padding:0 30px 20px 20px;text-align:left}}@media (min-width:992px){.timeline>li{min-height:150px}.timeline>li .timeline-panel{padding:0 20px 20px}.timeline>li .timeline-image{width:150px;height:150px;margin-left:-75px}.timeline>li .timeline-image h4{font-size:18px;line-height:26px;margin-top:30px}.timeline>li.timeline-inverted>.timeline-panel{padding:0 20px 20px}}@media (min-width:1200px){.timeline>li{min-height:170px}.timeline>li .timeline-panel{padding:0 20px 20px 100px}.timeline>li .timeline-image{width:170px;height:170px;margin-left:-85px}.timeline>li .timeline-image h4{margin-top:40px}.timeline>li.timeline-inverted>.timeline-panel{padding:0 100px 20px 20px}}.team-member{margin-bottom:50px;text-align:center}.team-member img{width:225px;height:225px;border:7px solid #fff}.team-member h4{margin-top:25px;margin-bottom:0;text-transform:none}.team-member p{margin-top:0}section#contact{background-color:#212529;background-repeat:no-repeat;background-position:center}section#contact .form-group{margin-bottom:25px}section#contact .form-group input,section#contact .form-group textarea{padding:20px}section#contact .form-group input.form-control{height:auto}section#contact .form-group textarea.form-control{height:248px}section#contact .form-control:focus{border-color:#fed136;box-shadow:none}section#contact ::-webkit-input-placeholder{font-weight:700;color:#ced4da;font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif}section#contact :-moz-placeholder{font-weight:700;color:#ced4da;font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif}section#contact ::-moz-placeholder{font-weight:700;color:#ced4da;font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif}section#contact :-ms-input-placeholder{font-weight:700;color:#ced4da;font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif}footer{padding:25px 0;text-align:center}footer span.copyright{font-size:90%;line-height:20px;text-transform:none;font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif}footer ul.quicklinks{font-size:90%;line-height:40px;margin-bottom:0;text-transform:none;font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif}ul.social-buttons{margin-bottom:0}ul.social-buttons li a{font-size:20px;line-height:40px;display:block;width:40px;height:40px;-webkit-transition:all .3s;-moz-transition:all .3s;transition:all .3s;color:#fff;border-radius:100%;outline:0;background-color:#212529}ul.social-buttons li a:active,ul.social-buttons li a:focus,ul.social-buttons li a:hover{background-color:#fed136}

@media (max-width: 992px) {
	.card-deck .card {display: block  !important;flex:unset !important;margin-bottom:15px;}

}

@media (max-width: 768px) {

    .wp__gallery-item {flex: 0 0 50% !important;}
}

.mt-3 {
  margin-top: 1rem !important;
}

.wp__gallery {display:flex;justify-content: space-between;flex-wrap: wrap;margin:0 -5px;}
.wp__gallery-item {flex: 0 0 33%;padding: 0 5px;margin-bottom: 20px;}
.wp__gallery-item br {display: none;}
.wp__gallery-item-cont {padding-top: 70%;position: relative;}
.wp__gallery-item-preview {display: block;width:100%;position: absolute;top:0;left:0;overflow: hidden;border: 1px solid #ccc;border-radius: 5px;box-shadow: 0 0 3px #ccc;}
.wp__gallery-item-preview img {width: 100%;position: relative;}

.otzyvi .wp__gallery-item-cont {padding-top: 150%;}
.otzyvi .wp__gallery-item-preview img {top: -15%;}




html{overflow-x: hidden;}

/* CARDS
----------------------------------------------------------------------- */

.card {
    display: inline-block;
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 6px;
    color: rgba(0, 0, 0, 0.87);
    background: #fff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.card .card-image {
    height: 60%;
    position: relative;
    overflow: hidden;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: -30px;
    border-radius: 6px;
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.card .card-image img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    pointer-events: none;
}

.card .card-image .card-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 1.3em;
    text-shadow: 0 2px 5px rgba(33, 33, 33, 0.5);
}

.list-inline {
  padding-left: 0;
  list-style: none;
}

.list-inline-item {
  display: inline-block;
}
.list-inline-item:not(:last-child) {
  margin-right: 0.5rem;
}

.initialism {
  font-size: 0.875em;
  text-transform: uppercase;
}


.card img {
    width: 100%;
    height: auto;
}

.img-raised {
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.card .ftr {
    margin-top: 15px;
}

.card .ftr div {
    display: inline-block;
}

.card .ftr .author {
    color: #888;
}

.card .ftr .stats {
    float: right;
    line-height: 30px;
}

.card .ftr .stats {
    position: relative;
    top: 1px;
    font-size: 14px;
}


/* ============ Card Table ============ */

.table {
    margin-bottom: 0px;
}

.card .table {
    padding: 15px 30px;
}

.card .table-primary {
    background: linear-gradient(60deg, #ab47bc, #7b1fa2);
}

.card .table-info {
    background: linear-gradient(60deg, #26c6da, #0097a7);
}

.card .table-success {
    background: linear-gradient(60deg, #66bb6a, #388e3c);
}

.card .table-warning {
    background: linear-gradient(60deg, #ffa726, #f57c00);
}

.card .table-danger {
    background: linear-gradient(60deg, #C37AD0, #a247b2);
}

.card .table-rose {
    background: linear-gradient(60deg, #ec407a, #c2185b);
}

.card [class*="table-"] {
    color: #FFFFFF;
    border-radius: 6px;
}

.card [class*="table-"] .card-caption a,
.card [class*="table-"] .card-caption,
.card [class*="table-"] .icon i {
    color: #FFFFFF;
}

.card [class*="table-"] .icon i {
    border-color: rgba(255, 255, 255, 0.25);
}

.card [class*="table-"] .author a,
.card [class*="table-"] .ftr .stats,
.card [class*="table-"] .category,
.card [class*="table-"] .card-description {
    color: rgba(255, 255, 255, 0.8);
}

.card [class*="table-"] .author a:hover,
.card [class*="table-"] .author a:focus,
.card [class*="table-"] .author a:active {
    color: #FFFFFF;
}

.card [class*="table-"] h1 small,
.card [class*="table-"] h2 small,
.card [class*="table-"] h3 small {
    color: rgba(255, 255, 255, 0.8);
}


/* ============ Card Blog ============ */

.card-blog {
    margin-top: 30px;
}

.card-blog .card-caption {
    margin-top: 5px;
}

.card-blog .card-image + .category {
    margin-top: 20px;
}

.card-raised {
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.imggal img {width:100%}

/* ============ конец перенесено из gym.min ============ */



/* ============ начало перенесено из style ============ */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */


h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}



/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* ============ конец перенесено из style ============ */



/* ============ начало перенесено из css ============ */
.navbar-nav {font-size:14px;text-transform: uppercase;}
.navbar-nav .nav-item:last-child {padding-right: 0;}


.sub-nav {display:flex;}
.sub-nav__content {padding:0;margin:0;list-style: none;display:flex;justify-content: flex-end;}
.sub-nav__content .sub-nav__content-item, .sub-nav__content-item2 {padding:10px;margin:0;list-style: none;position: relative;}

.sub-nav__content .sub-nav__content-item a, .sub-nav__content-item2 a {font-family: 'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;color:#a247b2;text-decoration: none;text-transform: uppercase;font-size: 90%;}
.sub-nav__content .sub-nav__content-item a:hover {color:#ffc107;text-decoration: none;}
.sub-nav__content .sub-nav__content-item2 a:hover {color:#212529;text-decoration: none;}
.sub-nav__content .sub-nav__dropdown {display:none;position: absolute;z-index: 10;top:40px;left:-5px;padding:12px 0 0;margin: 0;list-style: none;background: #fff;}
.sub-nav__content .sub-nav__content-item:hover .sub-nav__dropdown {display: block;z-index: 10;}
.sub-nav__content .sub-nav__dropdown li {font-family: Montserrat,'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;;padding:0;margin:0;list-style: none;text-decoration: none;white-space: nowrap;}
.sub-nav__content .sub-nav__dropdown li:hover {background:#fff;}
.sub-nav__content .sub-nav__dropdown li a {color:#a247b2;text-decoration: none;padding:5px 15px;display: inline-block;}
.sub-nav__content .sub-nav__dropdown li:hover a {color:#343a40;}


@media (max-width: 992px ){


    .sub-nav__mobile {display: block;width:25px;height:20px;position: relative;cursor: pointer;z-index: 100;}
    .sub-nav__mobile:before {transition: all .1s;border-top:2px solid #a247b2;border-bottom: 2px solid #a247b2;position: absolute;top:0;left:0;content: '';width:22px;height:18px;}
    .sub-nav__mobile:after {transition: all .1s;border-bottom: 2px solid #a247b2;width:25px;height:10px;position: absolute;top:0;left:0;content: '';}
    .sub-nav__mobile.close {position: fixed;top:18px;right: 130px;}
    .sub-nav__mobile.close:before {transform: rotate(45deg);border-top:0;top:-6px;left:4px;}
    .sub-nav__mobile.close:after {transform: rotate(-45deg);left:-5px;top:0;}

    .sub-nav__content {display: none;}
    .sub-nav__content.mobile-nav {display: block;position: fixed;top:0;right:-375px;transition: right .3s;z-index: 20;height: 100%;background:#fff;padding: 25px 140px 40px 20px;}
    .sub-nav__content.mobile-nav.active {right:0;overflow-y:scroll;display: block; box-shadow:-5px 0 5px -5px #333;}
    .sub-nav__content.mobile-nav .sub-nav__content-item {display: block;padding: 5px 10px;}
    .sub-nav__content.mobile-nav ul {display: block;position: relative;top:0;left:0;}

}
@media (max-width: 768px ){
  .sub-nav__content.mobile-nav {padding: 25px 25px 40px 20px;}
  /*.sub-nav__content.mobile-nav {right:-220px;}*/
  .sub-nav__mobile.close {right: 15px;}
}
    
    

   
    .stories.carousel .story>.item-link>.info .name{
      font-size: 14px;
    }
    #zuck-modal-content .story-viewer .head .left .info .time{
      display: none;
    }
    #zuck-modal-content .story-viewer .tip.muted{
      bottom: 80px;
    }
    #zuck-modal-content .story-viewer .tip.link{
      text-transform: none;
      text-decoration: underline;
    }
    #zuck-modal-content .story-viewer .head .back, #zuck-modal-content .story-viewer .head .right .close {
      color: #fff;
      opacity: 1;
      font-weight: 300;
      text-shadow: 1px 1px 1px rgba(0,0,0,.35), 1px 0 1px rgba(0,0,0,.35)
    }
    @media (max-width: 1024px) {
      #zuck-modal-content .story-viewer .head .left .time, #zuck-modal-content .story-viewer .head .right .close{
        display: block;
      }
      #zuck-modal-content .story-viewer .head .right .time{
        display: none
      }
    }
    #parent_frame{
      z-index: 2000!important
    }
      
      .video1 {
    width: 100%;
    padding-bottom: 65%;
    position: relative;
}
      
      .video2 {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
}
.video1 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}
      
      .video2 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}



.video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background-color: #000000;
}

/*.video__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}*/

.video__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video__button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: none;
    padding: 0;
    width: 68px;
    height: 48px;
    border: none;
    background-color: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.video__button-shape {
    fill: #212121;
    fill-opacity: 0.8;
}

.video__button-icon {
    fill: #ffffff;
}

.video__button:focus {
    outline: none;
}

.video:hover .video__button-shape,
.video__button:focus .video__button-shape {
    fill: #ff0000;
    fill-opacity: 1;
}

/* Enabled */

.video--enabled {
    cursor: pointer;
}

.video--enabled .video__button {
    display: block;
}

.mt-3 {
  margin-top: 1rem !important;
}

/* ============ конец перенесено из css ============ */

.text-wrap {
  white-space: normal !important;
}

.text-nowrap {
  white-space: nowrap !important;
}

.btn-smaller-text {
    font-size: 0.8rem;
  }
  
@media (min-width: 576px) {
  .btn-smaller-text {
    font-size: inherit;
  }
}


/* ============ начало вертикальной шапки страниц залов в мобильном виде ============ */
.page-intro{
	position: relative;
	display: flex;
	width: 100%;
	height: 100vh;
}


.page-intro .page-intro-image,
.page-intro .page-intro-content{
	width: 50%;
}


.page-intro .page-intro-image img{
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
}


.page-intro .page-intro-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	box-sizing: border-box;
	padding: 40px;
	text-align: center;
}

.page-intro .page-intro-content h1 {
	color: #da0063;
font-family: Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif;
}




@media only screen and (max-width: 768px) {


	.page-intro .page-intro-image,
	.page-intro .page-intro-content{
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0;
	}


	.page-intro .page-intro-content h1 {
		color: #fff;
text-shadow: 0 0 10px #000;
	}


	.page-intro .page-intro-content p {
		color: #fff;
		text-shadow: 0 0 5px #000;
	}
}


/* ============ конец вертикальной шапки страниц залов в мобильном виде ============ */

/* ============ для ценников ============ */
.cena-text {
font-weight: bold; font-size: 1.75rem; 
font-family: Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;}

.lh-1 {line-height: 1;}

.pos {position: relative; height: 0; padding-bottom: 56.25%;}
.hund {position:absolute;width:100%;height:100%;left:0;}

.warning-color {color: #ffc107;}
.bg-focus {--bg-focus: 50% 50%;}
.fs-14 {font-size: 14px;}
.fs-22 {font-size: 22pt; font-weight: 400;}

.button-wrapper{
  display: flex;	
  justify-content: center;	
}

.text-s {text-shadow: 0.01em 0.01em 0.5em rgba(90, 90, 90, 1); margin: 5vh 0 0 0;}

.fiftypx {margin: 50px auto; display: block;}

header.masthead {
text-align: center;
color: #fff;
 background-attachment:scroll;
 background-position:center center;
 -webkit-background-size:cover;
 -moz-background-size:cover;
 -o-background-size:cover;
 background-size:cover
}
header.masthead .intro-text .intro-lead-in {
 font-size:18px;
 font-style:italic;
 line-height:22px;
 padding-bottom:25px;
 font-family:'Comfortaa',system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
 text-align:left
}
header.masthead .intro-text .intro-heading {
 font-size:26px;
 font-weight:700;
 line-height:50px;
 padding:10rem 0 1rem 0;
 font-family:'Comfortaa',system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
 text-align:left
}
@media (min-width:768px) {

 header.masthead .intro-text .intro-lead-in {
  font-size:40px;
  font-style:italic;
  line-height:40px;
  margin-bottom:25px;
  font-family:'Comfortaa',system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif
 }
 header.masthead .intro-text .intro-heading {
  font-size:55px;
  font-weight:700;
  line-height:75px;
  font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif
 }
}

.button-wrapper {
	display: flex;
	justify-content: center;
}
/* Сетка колонок */
.geo-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.geo-column {
    flex: 1;
    min-width: 280px; /* Чтобы на телефонах не сжималось слишком сильно */
}

/* Заголовки колонок */
.geo-column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ae4a84; /* Цвет бренда (примерный розовый/фиолетовый) */
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

/* Списки */
.geo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.geo-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

/* Маркеры списка (галочки) */
.geo-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #ae4a84; /* Тот же акцентный цвет */
    font-weight: bold;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {

    .geo-columns {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}

.branch-seo-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.seo-block {
  padding: 20px;
  background: #f9f9f9;
  border-left: 4px solid #e91e63; /* Цвет бренда */
  border-radius: 8px;
}

.seo-block h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.seo-block p {
  line-height: 1.6;
  color: #666;
}

.location-note {
  font-style: italic;
  margin-top: 10px;
}

.social-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.social-buttons li a {
    width: 44px;
    height: 44px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.social-buttons li a:hover {
    transform: translateY(-3px);
    background: #ff4da6; /* можно поставить фирменный GymBalance */
}

.social-buttons svg {
  vertical-align: top;
  width: 30px;
  height: 30px;
}

footer {
 padding:25px 0;
 text-align:center
}
footer span.copyright {
 font-size:90%;
 line-height:20px;
 text-transform:none;
 font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif
}
footer ul.quicklinks {
 font-size:90%;
 line-height:40px;
 margin-bottom:0;
 text-transform:none;
 font-family:Montserrat,'Helvetica Neue',Helvetica,Arial,sans-serif
}
ul.social-buttons {
 margin-bottom:0
}
ul.social-buttons li a {
 font-size:20px;
 line-height:40px;
 display:block;
 width:40px;
 height:40px;
 -webkit-transition:all .3s;
 -moz-transition:all .3s;
 transition:all .3s;
 color:#fff;
 border-radius:100%;
 outline:0;
 background-color:#212529
}
ul.social-buttons li a:active,
ul.social-buttons li a:focus,
ul.social-buttons li a:hover {
 background-color:#fed136
}

@media (max-width: 600px) {
    .social-buttons {
        padding-left: 0;
        text-align: center;
    }
}

.geo-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.geo-column {
    flex: 1;
    min-width: 280px; /* Чтобы на телефонах не сжималось слишком сильно */
}

/* Заголовки колонок */
.geo-column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ae4a84; /* Цвет бренда (примерный розовый/фиолетовый) */
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

/* Списки */
.geo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.geo-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

/* Маркеры списка (галочки) */
.geo-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #ae4a84; /* Тот же акцентный цвет */
    font-weight: bold;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {

    .geo-columns {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}


.imggal a {
    display: block;
    aspect-ratio: 3 / 4;      /* все превью одинаковой формы */
    overflow: hidden;
    border-radius: 8px;        /* необязательно */
}

.imggal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.imggal a:hover img {
    transform: scale(1.05);
}

/* ============ добавлено при оптимизации загрузки ============ */

/* ВНИМАНИЕ: здесь раньше стоял content-visibility: auto для .imggal.
   Именно он ломал галерею — при пропуске отрисовки размеры .imggal a
   (aspect-ratio) и img (height:100%) не могли разрешиться, и широкие
   фото раскрывались до натурального размера, вылезая за экран.
   Правило удалено. */

/* --- Галерея .imggal: защита от переполнения --- */
.imggal {
    min-width: 0;          /* иначе flex-колонка растягивается под картинку */
    max-width: 100%;
    overflow: hidden;
}

.imggal a {
    display: block;
    aspect-ratio: 3 / 4;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.imggal img,
.imggal video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;      /* горизонтальные фото кадрируются, а не ломают сетку */
    background: #f2f2f2;    /* серая подложка вместо прыжка вёрстки */
    transition: transform .3s ease;
}

/* Видео в галерее не обрезаем — показываем целиком */
.imggal video {
    object-fit: contain;
    height: auto;
    aspect-ratio: auto;
}

.imggal:has(video) a,
.imggal video {
    aspect-ratio: auto;
}

/* Резервируем место под картинки второй галереи */
.wp__gallery-item-preview img {
    background: #f2f2f2;
}

/* Никакая картинка в контенте не должна вылезать за свой контейнер */
.main img,
section img,
.container img {
    max-width: 100%;
}

/* Логотип в шапке лежит внутри .container, поэтому попадает под правило выше.
   Колонка .col-3 внутри inline-block navbar-brand схлопывается до ~29px,
   и max-width:100% обрезает логотип по ней. Снимаем ограничение. */
#mainNav img {
	max-width: none;
}

/* =========================================================================
   ДОПОЛНЕНИЯ МЕЖДУНАРОДНОЙ ТЕМЫ gymbalance-net
   Всё, что ниже, добавлено поверх стилей московского сайта.
   ========================================================================= */

:root {
	--gbn-violet: #5849ae;
	--gbn-purple: #a247b2;
	--gbn-pink: #da518a;
	--gbn-yellow: #fed136;
	--gbn-light: #f7f2fb;
	--gbn-header-h: 74px;
}

@media (min-width: 992px) {
	:root { --gbn-header-h: 86px; }
}

/* Шапка фиксированная — освобождаем под неё место */
body {
	padding-top: var(--gbn-header-h);
}

#mainNav {
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
	padding-top: 8px;
	padding-bottom: 8px;
}

#mainNav .navbar-brand {
	display: inline-block;
	max-width: 320px;
}

#mainNav .navbar-brand img {
	height: 45px;
	width: auto;
}

.gbn-brand-title {
	margin: 0;
	font-weight: 700;
	color: #a247b2;
	font-size: 1.15rem;
	line-height: 1.1;
}

.gbn-brand-sub {
	margin: 0;
	font-size: .62rem;
	line-height: 1.2;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ---------- Ширина контента и выравнивания блоков Гутенберга ---------- */
.gbn-main {
	min-height: 40vh;
}

.gbn-content {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.gbn-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.gbn-content > .alignwide {
	width: min(calc(100vw - 30px), 1320px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.gbn-content > * {
	margin-top: 1.2rem;
	margin-bottom: 1.2rem;
}

.gbn-content h2 {
	font-size: 1.7rem;
	margin-top: 2.2rem;
	color: #5a4bb0;
}

.gbn-content h3 {
	font-size: 1.25rem;
	margin-top: 1.6rem;
	color: #a247b2;
}

@media (min-width: 768px) {
	.gbn-content h2 { font-size: 2.1rem; }
	.gbn-content h3 { font-size: 1.45rem; }
}

.gbn-content ul,
.gbn-content ol {
	line-height: 1.75;
}

.gbn-content table {
	width: 100%;
}

.gbn-content .wp-block-table td,
.gbn-content .wp-block-table th {
	border: 1px solid #e6e0ee;
	padding: .6rem .8rem;
}

.gbn-content .wp-block-table th {
	background: var(--gbn-light);
	color: #5a4bb0;
}

.gbn-content .wp-block-image img {
	border-radius: 12px;
}

.gbn-content .wp-block-button__link {
	border-radius: 40px;
	padding: .9rem 2rem;
	font-weight: 700;
}

.gbn-content .wp-block-quote {
	border-left: 4px solid var(--gbn-purple);
	padding-left: 1.1rem;
	font-style: italic;
}

/* ---------- Заголовочный блок страницы ---------- */
.gbn-page-hero {
	background: linear-gradient(135deg, #a247b2 0%, #5849ae 100%);
	color: #fff;
	padding: 2.6rem 0 2.2rem;
	margin-bottom: 1.5rem;
}

.gbn-page-hero h1 {
	font-size: 1.6rem;
	margin: 0 0 .6rem;
	color: #fff;
}

@media (min-width: 768px) {
	.gbn-page-hero { padding: 3.6rem 0 3rem; }
	.gbn-page-hero h1 { font-size: 2.4rem; }
}

.gbn-page-hero p {
	margin: 0;
	opacity: .92;
	max-width: 760px;
}

.gbn-page-hero a {
	color: #fed136;
}

/* ---------- Хлебные крошки ---------- */
.gbn-breadcrumbs {
	font-size: .8rem;
	padding: .7rem 0;
	color: #6c757d;
}

.gbn-breadcrumbs a {
	color: #6c757d;
	text-decoration: none;
}

.gbn-breadcrumbs a:hover {
	color: var(--gbn-purple);
	text-decoration: underline;
}

.gbn-breadcrumbs span[aria-current] {
	color: #343a40;
}

/* ---------- Карточки городов и записей ---------- */
.gbn-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 576px) {
	.gbn-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
	.gbn-cards { grid-template-columns: repeat(3, 1fr); }
}

.gbn-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ece5f3;
	border-radius: 14px;
	padding: 1.2rem 1.2rem 1.4rem;
	height: 100%;
	transition: box-shadow .25s, transform .25s;
}

.gbn-card:hover {
	box-shadow: 0 12px 28px rgba(88, 73, 174, .14);
	transform: translateY(-3px);
}

.gbn-card__title {
	font-size: 1.1rem;
	margin: 0 0 .4rem;
}

.gbn-card__title a {
	color: #5a4bb0;
	text-decoration: none;
}

.gbn-card__title a:hover {
	color: var(--gbn-purple);
}

.gbn-card__meta {
	font-size: .82rem;
	color: #8a8a8a;
	margin-bottom: .5rem;
}

.gbn-card__text {
	font-size: .92rem;
	color: #555;
	margin: 0 0 .9rem;
}

.gbn-card__more {
	margin-top: auto;
	font-weight: 700;
	font-size: .9rem;
	text-decoration: none;
}

.gbn-card--photo {
	padding: 0;
	overflow: hidden;
}

.gbn-card--photo .gbn-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #ede7f6, #f8e6f0);
}

.gbn-card--photo .gbn-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gbn-card--photo .gbn-card__body {
	padding: 1rem 1.1rem 1.3rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ---------- Секции архивов ---------- */
.gbn-archive-head {
	text-align: center;
	padding: 2rem 0 1rem;
}

.gbn-archive-head h1 {
	font-size: 1.6rem;
	color: #5a4bb0;
}

.gbn-archive-head p {
	color: #6c757d;
	max-width: 720px;
	margin: 0 auto;
}

.gbn-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding: 2rem 0;
}

.gbn-pagination .page-numbers {
	display: inline-block;
	padding: .45rem .85rem;
	border-radius: 8px;
	background: var(--gbn-light);
	color: #5a4bb0;
	text-decoration: none;
	font-size: .9rem;
}

.gbn-pagination .page-numbers.current,
.gbn-pagination .page-numbers:hover {
	background: var(--gbn-purple);
	color: #fff;
}

/* ---------- Блок «другие города» ---------- */
.gbn-other-cities {
	background: var(--gbn-light);
	padding: 2.2rem 0 2.4rem;
	margin-top: 2.5rem;
}

.gbn-other-cities h2 {
	font-size: 1.3rem;
	text-align: center;
	color: #5a4bb0;
	margin-bottom: 1.2rem;
}

.gbn-city-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
}

.gbn-city-links a {
	display: inline-block;
	background: #fff;
	border: 1px solid #e2d7ec;
	border-radius: 30px;
	padding: .45rem 1.1rem;
	font-size: .9rem;
	text-decoration: none;
	color: #5a4bb0;
}

.gbn-city-links a:hover {
	background: var(--gbn-purple);
	border-color: var(--gbn-purple);
	color: #fff;
}

/* ---------- Контакты городов на странице контактов ---------- */
.gbn-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 1.5rem 0;
}

@media (min-width: 768px) {
	.gbn-contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
	.gbn-contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.gbn-contact-card {
	border: 1px solid #ece5f3;
	border-radius: 14px;
	padding: 1.1rem 1.2rem;
	background: #fff;
}

.gbn-contact-card h3 {
	font-size: 1.05rem;
	margin: 0 0 .5rem;
	color: #5a4bb0;
}

.gbn-contact-card p {
	margin: 0 0 .35rem;
	font-size: .92rem;
	line-height: 1.55;
}

.gbn-contact-card .gbn-contact-card__link {
	font-weight: 700;
	font-size: .88rem;
	text-decoration: none;
}

/* ---------- Подвал ---------- */
.footer {
	background: #2b2440;
	color: #d9d3e8;
	padding: 2.5rem 0 1.5rem;
	margin-top: 3rem;
}

.footer a {
	color: #d9d3e8;
	text-decoration: none;
	font-size: .92rem;
}

.footer a:hover {
	color: var(--gbn-yellow);
}

.footer p {
	margin-bottom: .35rem;
	line-height: 1.5;
}

.footer h3 {
	font-size: 1rem;
	color: #fff;
	margin-bottom: .9rem;
}

.gbn-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	margin-top: 1.6rem;
	padding-top: 1rem;
	font-size: .82rem;
	text-align: center;
	opacity: .8;
}

.footer .social-buttons .list-inline-item a {
	background: rgba(255, 255, 255, .12);
}

.footer .social-buttons .list-inline-item a:hover {
	background: var(--gbn-purple);
}

/* ---------- Запись блога ---------- */
.gbn-post-meta {
	font-size: .85rem;
	color: #8a8a8a;
	margin-bottom: 1.2rem;
}

.gbn-post-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: .3rem .8rem;
	background: var(--gbn-light);
	border-radius: 20px;
	font-size: .82rem;
	text-decoration: none;
}

.gbn-related {
	margin-top: 2.5rem;
}

.gbn-related h2 {
	font-size: 1.3rem;
	color: #5a4bb0;
	margin-bottom: 1rem;
}

/* ---------- Форма поиска ---------- */
.gbn-searchform {
	display: flex;
	gap: 8px;
	max-width: 420px;
	margin: 0 auto 1.5rem;
}

.gbn-searchform input[type="search"] {
	flex: 1;
	border: 1px solid #ded5e8;
	border-radius: 30px;
	padding: .55rem 1rem;
	outline: none;
}

.gbn-searchform button {
	border: 0;
	border-radius: 30px;
	padding: .55rem 1.2rem;
	background: var(--gbn-purple);
	color: #fff;
	cursor: pointer;
}

/* ---------- Мелочи ---------- */
.gbn-skip-link {
	position: absolute;
	left: -9999px;
}

.gbn-skip-link:focus {
	left: 10px;
	top: 10px;
	z-index: 9999;
	background: #fff;
	padding: .5rem 1rem;
	border-radius: 6px;
}

img {
	max-width: 100%;
	height: auto;
}

.sub-nav__content .sub-nav__content-item .gbn-nav-current {
	color: #fec503;
}

/* ---------- Соцкнопки и уведомление о cookie (перенесено из подвала) ---------- */
.social-buttons .list-inline-item a {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #000;
}

.social-buttons svg {
	width: 28px;
	height: 28px;
}

.social-buttons .whatsapp svg {
	transform: translate(2px, 1.5px);
}

.social-buttons .tg svg {
	transform: translate(1px, 1.7px);
}

.warning {
	position: fixed;
	bottom: 0;
	left: 0;
	display: none;
	align-items: center;
	justify-content: center;
	width: 92%;
	margin: 0 4% 10px;
	padding: 14px 18px;
	box-sizing: border-box;
	border-radius: 15px;
	background-color: #a247b1;
	z-index: 1030;
	font-size: .8rem;
}

.warning--active {
	display: flex;
}

.warning__text {
	margin-right: 12px;
	color: #fff;
}

@media (min-width: 768px) {
	.warning {
		width: 32%;
		margin: 0 0 15px 15px;
		font-size: .9rem;
	}
}

.footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer li {
	margin-bottom: .35rem;
}

/* ---------- Блок «Города»: карточки создаются автоматически ---------- */
.gbn-city-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 1.5rem 0;
}

@media (min-width: 576px) {
	.gbn-city-cards--2,
	.gbn-city-cards--3,
	.gbn-city-cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
	.gbn-city-cards--3 { grid-template-columns: repeat(3, 1fr); }
	.gbn-city-cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.gbn-city-card {
	background: var(--gbn-light);
	border: 1px solid #ece5f3;
	border-radius: 14px;
	padding: 1.4rem;
	transition: box-shadow .25s, transform .25s;
}

.gbn-city-card:hover {
	box-shadow: 0 12px 28px rgba(88, 73, 174, .14);
	transform: translateY(-3px);
}

.gbn-city-card__title {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
}

.gbn-city-card__title a {
	color: #a247b2;
	text-decoration: none;
}

.gbn-city-card__title a:hover {
	color: #5a4bb0;
}

.gbn-city-card__country {
	margin: 0 0 .8rem;
	color: #6c6c7a;
	font-size: .92rem;
}

.gbn-city-card__more {
	margin: 0;
}

.gbn-city-card__more a {
	text-decoration: none;
	font-weight: 600;
	font-size: .92rem;
}
