/********************************************************
    Personal Training, Group Classes & FAQ pages
    Built on the main theme (style.css): black & grey
    sections, orange accents, fit_btn buttons.
*******************************************************/
.mg-page {
    padding-top: var(--header-height);
    background-color: #000000;
}

/* Keep anchor targets clear of the fixed header (same as the home page anchors) */
:where(.mg-page [id], #personal-training, #group-classes, #faq) {
    scroll-margin-top: calc(var(--header-height) + 5px);
}

.mg-lead {
    font-size: 16px;
    line-height: 28px;
    color: var(--white-color);
    margin-bottom: 28px;
}

.mg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.mg-more {
    margin-top: 45px;
}

/* Sections */
.mg-section {
    position: relative;
    padding: 80px 0;
    background-color: #000000;
}

.mg-section--grey {
    background-color: var(--second-color);
}

.mg-section--brand {
    background-image: url("../images/orange_new.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

[dir="rtl"] .mg-section--brand {
    background-position: right center;
}

.mg-section--flush {
    padding-top: 0;
}

.mg-section--flush-top {
    padding-top: 30px;
}

.mg-section .fit_heading p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--white-color);
}

.mg-section .heading_title2 {
    margin-bottom: 25px;
}

[dir="rtl"] .heading_title2:after {
    left: auto;
    right: 0;
}

/********************************************************
    Banner
*******************************************************/
.mg-banner {
    position: relative;
    overflow: hidden;
    padding: 90px 0 120px;
    background-color: #000000;
}

.mg-banner:before {
    content: "";
    position: absolute;
    right: -6%;
    top: 8%;
    width: 52%;
    height: 100%;
    background: url("../images/orange_new.png") no-repeat left top;
    background-size: contain;
    opacity: .9;
}

[dir="rtl"] .mg-banner:before {
    right: auto;
    left: -6%;
    transform: scaleX(-1);
}

.mg-banner--compact {
    padding: 90px 0 150px;
}

.mg-banner--compact:before {
    display: none;
}

.mg-banner .container {
    position: relative;
    z-index: 1;
}

/* The theme's .fit_banner_text is offset for the home slider */
.mg-banner .fit_banner_text {
    left: 0;
    padding: 0;
}

.mg-banner .fit_banner_text.text-center {
    text-align: center;
}

.mg-banner__text p {
    max-width: 600px;
    font-size: 17px;
    line-height: 30px;
    color: var(--white-color);
    margin: 18px 0 34px;
}

.mg-banner__text.text-center p {
    margin: 18px auto 0;
}

.mg-banner__text h1 {
    font-size: 58px;
    line-height: 70px;
}

/* Page hero (personal training / group classes) */
.mg-hero {
    display: flex;
    align-items: center;
    min-height: 640px;
    padding: 110px 0 170px;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.mg-hero--photo:before {
    top: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .85) 40%, rgba(0, 0, 0, .4) 68%, rgba(0, 0, 0, .1) 100%),
                linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 30%);
    opacity: 1;
}

[dir="rtl"] .mg-hero--photo:before {
    left: 0;
    transform: scaleX(-1);
}

.mg-hero h1 {
    font-size: 64px;
    line-height: 74px;
}

.mg-hero .mg-banner__text p {
    font-size: 18px;
    line-height: 31px;
    margin: 22px 0 38px;
}

.mg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    color: var(--orange-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.mg-kicker:before,
.mg-kicker--center:after {
    content: "";
    width: 46px;
    height: 3px;
    background: var(--orange-color);
}

.mg-kicker--center {
    margin-right: -5px;
}

/********************************************************
    Statistics (orange working hours strip)
*******************************************************/
.mg-stats {
    position: relative;
    z-index: 2;
    margin-top: -70px;
    padding-top: 0;
    background: transparent;
}

/* Keep the orange strip off a grey section that follows it */
.mg-stats + .mg-section--grey {
    margin-top: 70px;
}

.mg-stats .worktime_inner {
    margin: 0;
}

.mg-stats .fit_worktime_box {
    padding: 38px 15px 34px;
}

.mg-stats .fit_worktime_box h2 {
    font-size: 34px;
    margin: 0 0 8px;
}

.mg-stats .col-lg-3:last-child .fit_worktime_box:after {
    display: none;
}

/********************************************************
    How it works (theme service boxes)
*******************************************************/
.fit_service_wrapper.mg-section {
    padding-bottom: 70px;
}

.fit_service_wrapper.mg-section .fit_heading {
    margin-bottom: 50px;
}

/* The theme box keeps 80px under it and floats its badge 40px above */
.fit_servicebox.mg-servicebox {
    height: calc(100% - 40px);
    margin: 40px 0 0;
    cursor: default;
}

.mg-servicebox p {
    color: var(--txt-color);
}

.mg-servicebox .mg-servicebox__number {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--white-color);
}

/********************************************************
    Lists
*******************************************************/
/* Orange tick list */
.mg-ticks li {
    position: relative;
    padding-inline-start: 26px;
    margin-bottom: 10px;
    color: var(--white-color);
}

.mg-ticks li:before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 6px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--orange-color);
    border-bottom: 2px solid var(--orange-color);
    transform: rotate(-45deg);
}

.mg-ticks--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 26px;
    margin-top: 22px;
}

.mg-ticks--inline li {
    margin: 0;
    font-weight: 600;
}

/* Numbered list */
.mg-numbered li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--main-border-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--white-color);
}

.mg-numbered li:first-child {
    border-top: 1px dashed var(--main-border-color);
}

.mg-numbered li span {
    font-size: 26px;
    color: var(--orange-color);
}

/********************************************************
    Specializations ribbons
*******************************************************/
.mg-tapes {
    overflow: hidden;
    padding-bottom: 60px;
}

.mg-tapes .fit_heading {
    margin-bottom: 30px;
}

.mg-tapes__stage {
    position: relative;
    height: 300px;
}

.mg-tape {
    position: absolute;
    left: -5%;
    width: 110%;
    overflow: hidden;
    padding: 20px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
}

.mg-tape--orange {
    top: 115px;
    z-index: 2;
    background: var(--orange-color);
    transform: rotate(-5deg);
}

.mg-tape--dark {
    top: 115px;
    z-index: 1;
    background: #000000;
    transform: rotate(5deg);
}

.mg-tape__track {
    display: flex;
    width: max-content;
    animation: mgTape 45s linear infinite;
}

.mg-tape--reverse .mg-tape__track {
    animation-direction: reverse;
}

.mg-tape:hover .mg-tape__track {
    animation-play-state: paused;
}

.mg-tape__group {
    display: flex;
    flex-shrink: 0;
}

.mg-tape__item {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--white-color);
}

.mg-tape__item:after {
    content: "";
    width: 14px;
    height: 14px;
    margin: 0 34px;
    transform: rotate(45deg);
    background: #000000;
}

.mg-tape--dark .mg-tape__item:nth-child(odd) {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--white-color);
}

.mg-tape--dark .mg-tape__item:after {
    background: var(--orange-color);
}

@keyframes mgTape {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

[dir="rtl"] .mg-tape__track {
    animation-direction: reverse;
}

[dir="rtl"] .mg-tape--reverse .mg-tape__track {
    animation-direction: normal;
}

@media (prefers-reduced-motion: reduce) {
    .mg-tape__track {
        animation: none;
    }
}

/********************************************************
    Elite trainer
*******************************************************/
.mg-elite__emblem {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.mg-elite__diamond {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    border-radius: 30px;
    background: var(--orange-color);
    outline: 2px dashed var(--orange-color);
    outline-offset: 18px;
    animation: mgPulse 3s ease-in-out infinite;
}

.mg-elite__mark {
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white-color);
    text-align: center;
}

.mg-elite__mark strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 6px;
}

.mg-elite__mark small {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes mgPulse {
    0%, 100% { outline-offset: 18px; }
    50% { outline-offset: 26px; }
}

/********************************************************
    Feature blocks (more about training)
*******************************************************/
.mg-feature {
    position: relative;
    height: 100%;
    padding: 45px 40px 40px;
    border: 2px dashed var(--main-border-color);
    border-radius: 20px;
    background: #080808;
    overflow: hidden;
}

.mg-feature p {
    color: var(--txt-color);
    line-height: 26px;
}

.mg-feature__index {
    position: absolute;
    top: -10px;
    inset-inline-end: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 110px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(232, 107, 62, .45);
}

/********************************************************
    Filters
*******************************************************/
.mg-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}

.mg-switch button {
    border: 2px solid var(--orange-color);
    background: transparent;
    color: var(--white-color);
    border-radius: 10px;
    padding: 11px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all .3s linear;
}

.mg-switch button:hover,
.mg-switch button.is-active {
    background: var(--orange-color);
}

.mg-switch button small {
    display: inline-block;
    min-width: 24px;
    margin-inline-start: 8px;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .15);
    font-size: 12px;
    text-align: center;
}

/********************************************************
    Trainers & instructors
*******************************************************/
.mg-coaches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.mg-section--grey .mg-coach {
    background: #000000;
}

.mg-coach {
    position: relative;
    padding: 10px 10px 22px;
    border-radius: 20px;
    background: var(--second-color);
    text-align: center;
}

.mg-coach[hidden] {
    display: none;
}

.mg-coach__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 15px;
    background: #2b2d31;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mg-coach__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .5s;
}

.mg-coach:hover .mg-coach__photo img {
    transform: scale(1.05);
}

.mg-coach__initials {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--txt-color);
}

.mg-coach__ribbon {
    position: absolute;
    z-index: 2;
    top: 14px;
    inset-inline-start: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px 6px 12px;
    border-radius: 0 50px 50px 0;
    background: var(--orange-color);
    color: var(--white-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

[dir="rtl"] .mg-coach__ribbon {
    border-radius: 50px 0 0 50px;
}

.mg-coach__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .78);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s linear;
}

.mg-coach:hover .mg-coach__overlay,
.mg-coach:focus-within .mg-coach__overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mg-coach__label {
    color: var(--orange-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mg-coach__overlay ul {
    margin-bottom: 20px;
}

.mg-coach__overlay li {
    color: var(--white-color);
    font-size: 14px;
    line-height: 24px;
}

.mg-coach__overlay .fit_btn {
    min-width: 150px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
}

.mg-coach__link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.mg-coach__info h3 {
    font-size: 20px;
    margin: 18px 0 4px;
    position: relative;
    padding-bottom: 10px;
}

.mg-coach__info h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 46px;
    height: 3px;
    background: var(--orange-color);
}

.mg-coach__role {
    display: block;
    margin-top: 10px;
    color: var(--orange-color);
    font-size: 14px;
    font-weight: 600;
}

.mg-coach__exp {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 20px;
    color: var(--white-color);
    opacity: .8;
}

/* Profile dialog */
.mg-dialog {
    width: min(960px, calc(100% - 30px));
    max-height: calc(100vh - 60px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: var(--second-color);
    color: var(--white-color);
    text-align: start;
}

.mg-dialog::backdrop {
    background: rgba(0, 0, 0, .8);
}

.mg-dialog__close {
    position: absolute;
    top: 15px;
    inset-inline-end: 15px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--orange-color);
    color: var(--white-color);
    font-size: 28px;
    line-height: 40px;
}

.mg-dialog__grid {
    display: grid;
    grid-template-columns: 38% 1fr;
}

.mg-dialog__photo {
    background: #000000;
}

.mg-dialog__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mg-dialog__body {
    padding: 40px 40px 36px;
}

.mg-dialog__body .mg-coach__role {
    margin: 0 0 6px;
}

.mg-dialog__body p {
    color: var(--white-color);
    line-height: 24px;
}

.mg-dialog__exp {
    margin-bottom: 18px;
}

.mg-dialog__label {
    color: var(--orange-color) !important;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

.mg-dialog__bio {
    margin: 10px 0 26px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, .3);
}

.mg-dialog__bio p {
    margin-bottom: 12px;
    font-size: 14px;
}

.mg-dialog__bio strong {
    color: var(--orange-color);
}

.mg-dialog__bio ul {
    list-style: disc;
    padding-inline-start: 18px;
    margin-bottom: 12px;
}

.mg-dialog__bio ul li {
    list-style: disc;
}

/********************************************************
    About group classes
*******************************************************/
.mg-about__lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 44px;
    color: var(--white-color);
    margin-bottom: 22px;
}

.mg-about .mg-lead {
    margin-bottom: 0;
}

.mg-figures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.mg-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 170px;
    padding: 26px 24px;
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, .25);
    background: #000000;
    color: var(--white-color);
    overflow: hidden;
    transition: transform .3s, border-color .3s;
}

.mg-figure:hover {
    color: var(--white-color);
    border-color: var(--orange-color);
    transform: translateY(-5px);
}

.mg-figure strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--orange-color);
}

.mg-figure span {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
}

.mg-figure--main {
    grid-row: span 2;
    border: 0;
    background: var(--orange-color);
}

.mg-figure--main:before {
    content: "";
    position: absolute;
    top: -30px;
    right: -60px;
    width: 230px;
    height: 230px;
    background: url("../images/orange_new.png") no-repeat center / contain;
    filter: brightness(0);
    opacity: .12;
}

.mg-figure--main strong {
    position: relative;
    font-size: 110px;
    color: var(--white-color);
    -webkit-text-stroke: 0;
}

.mg-figure--main span {
    position: relative;
    font-size: 18px;
    line-height: 25px;
}

.mg-figure--main:hover {
    border: 0;
}

/********************************************************
    Studios
*******************************************************/
.mg-framed {
    position: relative;
    aspect-ratio: 3 / 2;
    margin: 0 25px 25px 0;
}

.mg-framed:before {
    content: "";
    position: absolute;
    inset: 25px -25px -25px 25px;
    border-radius: 20px;
    background: var(--orange-color);
}

.mg-framed img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.mg-framed.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mg-framed.is-empty:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: var(--second-color) url("../images/about_bg_black.png") center / cover;
}

.mg-framed__logo {
    z-index: 1;
    width: 60% !important;
    height: auto !important;
    border-radius: 0 !important;
    opacity: .8;
}

/********************************************************
    How to book (timeline)
*******************************************************/
.mg-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.mg-timeline:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 86px;
    border-top: 2px dashed var(--main-border-color);
}

.mg-timeline__step {
    position: relative;
}

.mg-timeline__number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 70px;
    color: transparent;
    -webkit-text-stroke: 2px var(--orange-color);
}

.mg-timeline__dot {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    margin: 6px 0 24px;
    border-radius: 50%;
    background: var(--orange-color);
    box-shadow: 0 0 0 6px #000000, 0 0 0 8px var(--orange-color);
}

.mg-timeline__step h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.mg-timeline__step p {
    color: var(--txt-color);
    line-height: 25px;
}

/********************************************************
    App download buttons
*******************************************************/
.mg-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mg-apps-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.mg-apps-inline span {
    color: var(--white-color);
    font-size: 14px;
    font-weight: 600;
}

.mg-apps-inline a {
    display: inline-flex;
    color: var(--white-color);
}

.mg-apps-inline a:hover,
.mg-apps-inline a:focus {
    color: var(--orange-color);
}

.mg-app {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    padding: 8px 18px 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: #000000;
    color: var(--white-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
}

.mg-app:hover,
.mg-app:focus {
    border-color: var(--orange-color);
    background: var(--orange-color);
    color: var(--white-color);
}

.mg-app span {
    display: flex;
    flex-direction: column;
}

.mg-app small {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .5px;
}

/********************************************************
    Classes directory
*******************************************************/
.mg-switch--scroll button small {
    background: rgba(255, 255, 255, .15);
}

.mg-classes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mg-classes[hidden] {
    display: none;
}

.mg-class {
    position: relative;
    padding: 28px 26px 26px;
    border-radius: 20px;
    background: #080808;
    border: 2px dashed var(--main-border-color);
    transition: all .3s linear;
}

.mg-class:hover {
    border-color: var(--orange-color);
    transform: translateY(-4px);
}

.mg-class h3 {
    position: relative;
    font-size: 19px;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.mg-class h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 3px;
    background: var(--orange-color);
}

.mg-class p {
    color: var(--txt-color);
    line-height: 24px;
}

/********************************************************
    FAQ
*******************************************************/
/* Topic tiles (theme service boxes) */
.mg-topics-wrap {
    position: relative;
    z-index: 2;
    margin-top: -70px;
    padding-bottom: 10px;
}

.mg-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 30px;
}

.fit_servicebox.mg-topic {
    width: 100%;
    margin: 0;
    padding: 58px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--white-color);
    background-color: #080808;
    transition: border-color .3s;
}

.fit_servicebox.mg-topic strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    line-height: 26px;
}

.fit_servicebox.mg-topic small {
    color: var(--txt-color);
    font-size: 14px;
}

.mg-topic__icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--orange-color);
    color: var(--white-color);
}

.fit_servicebox.mg-topic .mg-topic__icon {
    position: absolute;
    left: 0;
    right: 0;
    top: -38px;
    margin: 0 auto;
}

.fit_servicebox.mg-topic.is-active {
    border-color: var(--orange-color);
    border-style: solid;
}

.fit_servicebox.mg-topic.is-active:after {
    top: -10px;
    bottom: -10px;
}

/* Groups */
#faq-list {
    padding-top: 30px;
}

.mg-faq-group {
    padding-top: 40px;
}

.mg-faq-group[hidden],
.mg-qa[hidden] {
    display: none;
}

.mg-faq-group__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mg-faq-group__head .heading_title2 {
    margin: 0;
}

.mg-faq-group__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px dashed var(--white-color);
    color: var(--orange-color);
}

/* Question cards */
.mg-qa {
    margin-bottom: 14px;
    border: 1px dashed var(--main-border-color);
    border-radius: 15px;
    background: #080808;
    transition: border-color .3s, background-color .3s;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.mg-qa:hover {
    border-color: rgba(232, 107, 62, .6);
}

.mg-qa.is-open {
    border: 1px solid var(--orange-color);
    background: #111111;
}

.mg-qa__question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 26px;
    border: 0;
    background: transparent;
    color: var(--white-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 26px;
    text-align: start;
}

.mg-qa__number {
    flex-shrink: 0;
    width: 38px;
    font-size: 22px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--orange-color);
    transition: color .3s;
}

.mg-qa.is-open .mg-qa__number {
    color: var(--orange-color);
}

.mg-qa__text {
    flex: 1;
}

.mg-qa__icon {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 2px solid var(--orange-color);
    transition: all .3s;
}

.mg-qa__icon:before,
.mg-qa__icon:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    background: var(--white-color);
    transition: transform .3s;
}

.mg-qa__icon:after {
    transform: rotate(90deg);
}

.mg-qa.is-open .mg-qa__icon {
    background: var(--orange-color);
    transform: rotate(180deg);
}

.mg-qa.is-open .mg-qa__icon:after {
    transform: rotate(0deg);
}

.mg-qa__answer {
    padding: 0 82px 24px 26px;
}

.mg-qa__number ~ .mg-qa__text {
    min-width: 0;
}

.mg-qa:has(.mg-qa__number) .mg-qa__answer {
    padding-inline-start: 86px;
}

.mg-qa__answer p {
    color: var(--txt-color);
    line-height: 27px;
}

/* Contact strip */
.mg-faq-contact {
    padding: 40px 0 80px;
}

.mg-faq-contact .fit_heading p {
    color: var(--white-color);
}

.mg-contact-box {
    display: block;
    color: var(--white-color);
}

.mg-contact-box span {
    display: inline-flex;
    transition: transform .3s;
}

.mg-contact-box:hover {
    color: var(--white-color);
}

.mg-contact-box:hover span {
    transform: translateY(-5px) rotate(-8deg);
}

.mg-faq-contact .col-lg-4:last-child .fit_worktime_box:after {
    display: none;
}

/********************************************************
    Closing call strip
*******************************************************/
.mg-call {
    padding: 0 0 70px;
    background: #000000;
}

.mg-section--grey + .mg-call {
    padding-top: 70px;
}

.mg-call__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 45px 50px;
    border: 2px dashed var(--orange-color);
    border-radius: 20px;
}

.mg-call__inner .heading_title2 {
    margin-bottom: 18px;
}

.mg-call__inner p {
    color: var(--white-color);
    max-width: 620px;
}

.mg-call .mg-actions {
    flex-shrink: 0;
}

/********************************************************
    Home page: personal training
*******************************************************/
.mg-home-pt {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: #000000;
}

.mg-home-pt__title {
    font-size: 40px;
    line-height: 50px;
    margin-bottom: 20px;
}

.mg-home-pt__counts {
    display: flex;
    gap: 34px;
    margin-bottom: 34px;
}

.mg-home-pt__counts li {
    display: flex;
    flex-direction: column;
}

.mg-home-pt__counts strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--orange-color);
}

.mg-home-pt__counts span {
    margin-top: 8px;
    font-size: 13px;
    color: var(--txt-color);
}

.mg-home-pt__actions,
.mg-home-gc__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.mg-slider-nav {
    display: flex;
    gap: 10px;
}

.mg-slider-nav button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--orange-color);
    background: transparent;
    color: var(--white-color);
    transition: all .3s;
}

.mg-slider-nav button:hover {
    background: var(--orange-color);
}

[dir="rtl"] .mg-slider-nav svg {
    transform: scaleX(-1);
}

/* The slider runs off the right edge of the page, but not over the intro */
.mg-squad.swiper {
    overflow: visible;
    clip-path: inset(-20px -100vw -20px 0);
}

[dir="rtl"] .mg-squad.swiper {
    clip-path: inset(-20px 0 -20px -100vw);
}

.mg-squad__card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 20px;
    background: var(--second-color);
}

.mg-squad__card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .6s;
}

.mg-squad__card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .35) 38%, rgba(0, 0, 0, 0) 60%);
    transition: background .4s;
}

.mg-squad__card:hover img {
    transform: scale(1.06);
}

.mg-squad__card:hover:after {
    background: linear-gradient(0deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, .2) 100%);
}

.mg-squad__info {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mg-squad__info strong {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    line-height: 26px;
    color: var(--white-color);
    padding-bottom: 8px;
}

.mg-squad__info strong:after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 34px;
    height: 3px;
    background: var(--orange-color);
}

.mg-squad__info small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    color: var(--txt-color);
}

.mg-squad__info em {
    max-height: 0;
    overflow: hidden;
    font-style: normal;
    font-size: 13px;
    line-height: 19px;
    color: var(--orange-color);
    opacity: 0;
    transition: max-height .4s, opacity .4s, margin .4s;
}

.mg-squad__card:hover .mg-squad__info em {
    max-height: 60px;
    margin-top: 6px;
    opacity: 1;
}

/********************************************************
    Home page: group classes
*******************************************************/
.mg-home-gc {
    padding: 100px 0;
    background: var(--second-color);
}

.mg-home-gc__photo {
    aspect-ratio: 4 / 5;
}

.mg-home-gc__photo.is-empty:after {
    background-color: #000000;
}

.mg-home-gc__badge {
    position: absolute;
    z-index: 2;
    right: -45px;
    bottom: 40px;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 50%;
    border: 6px solid var(--second-color);
    background: #000000;
    text-align: center;
}

.mg-home-gc__badge strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--orange-color);
}

.mg-home-gc__badge small {
    margin-top: 6px;
    font-size: 12px;
    line-height: 15px;
    color: var(--white-color);
}

.mg-index {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    margin-bottom: 34px;
}

.mg-index a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .3);
    color: var(--white-color);
}

.mg-index__count {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #000000;
}

.mg-index__name {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

.mg-index__arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all .3s;
}

.mg-index a:hover {
    color: var(--white-color);
    border-bottom-color: var(--orange-color);
}

.mg-index a:hover .mg-index__count,
.mg-index a:hover .mg-index__arrow {
    color: var(--orange-color);
}

.mg-index a:hover .mg-index__arrow {
    opacity: 1;
    transform: translateX(0);
}

[dir="rtl"] .mg-index__arrow {
    transform: scaleX(-1) translateX(-8px);
}

[dir="rtl"] .mg-index a:hover .mg-index__arrow {
    transform: scaleX(-1);
}

.mg-home-gc__actions .mg-apps-inline {
    margin-top: 0;
}

@media (max-width: 991px) {
    .mg-home-pt, .mg-home-gc { padding: 70px 0; }
    .mg-home-pt .col-lg-8 { margin-top: 40px; }
    .mg-home-pt__title { font-size: 32px; line-height: 42px; }
    .mg-home-gc .col-lg-6 { margin-top: 60px; }
    .mg-home-gc__photo { aspect-ratio: 4 / 3; }
    .mg-home-gc__badge { right: -10px; }
}

@media (max-width: 575px) {
    .mg-index { grid-template-columns: 1fr; }
    .mg-home-gc__badge { width: 120px; height: 120px; bottom: -30px; }
    .mg-home-gc__badge strong { font-size: 28px; }
    .mg-home-pt__counts strong { font-size: 38px; }
}

/********************************************************
    Footer
*******************************************************/
.mg-foot {
    background: #000000;
    color: var(--white-color);
}

/* Join us */
.mg-foot__join {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: var(--second-color);
    scroll-margin-top: var(--header-height);
}

.mg-foot__join:before {
    content: "";
    position: absolute;
    left: -8%;
    bottom: -25%;
    width: 42%;
    height: 120%;
    background: url("../images/orange_new.png") no-repeat left bottom / contain;
    opacity: .14;
}

.mg-foot__join .container {
    position: relative;
}

.mg-foot__headline {
    font-size: 44px;
    line-height: 54px;
    margin-bottom: 18px;
}

.mg-foot__intro {
    font-size: 16px;
    line-height: 27px;
    margin-bottom: 28px;
}

.mg-foot__quick li + li {
    margin-top: 14px;
}

.mg-foot__quick a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
}

.mg-foot__quick a > span:first-child {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #000000;
    color: var(--orange-color);
    transition: all .3s;
}

.mg-foot__quick a:hover > span:first-child {
    background: var(--orange-color);
    color: var(--white-color);
}

.mg-foot__form {
    padding: 40px;
    border-radius: 20px;
    background: #000000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.mg-foot__form .contact-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mg-foot__form .contact-form-fields > div:nth-child(n+3) {
    grid-column: 1 / -1;
}

.mg-foot__form .contact-form-fields input,
.mg-foot__form .contact-form-fields textarea {
    width: 100%;
    background: #111111;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

.mg-foot__form .contact-form-fields input {
    height: 50px;
    line-height: 50px;
}

.mg-foot__form .contact-form-fields textarea {
    height: 130px;
}

.mg-foot__form .contact-form-fields input:focus,
.mg-foot__form .contact-form-fields textarea:focus {
    box-shadow: 0 0 0 2px var(--orange-color);
}

.mg-foot__form .contact-form-fields .fit_btn.btn2 {
    width: auto;
    min-width: 200px;
}

.mg-foot__form .contact-form-success {
    width: 100%;
}

/* Map */
.mg-foot__map {
    position: relative;
    height: 380px;
}

.mg-foot__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(1) invert(.92) contrast(.9);
}

.mg-foot__map .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.mg-foot__visit {
    width: 340px;
    padding: 30px;
    border-radius: 20px;
    border-top: 4px solid var(--orange-color);
    background: #000000;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .5);
    pointer-events: auto;
}

.mg-foot__visit-icon {
    display: inline-flex;
    color: var(--orange-color);
    margin-bottom: 10px;
}

.mg-foot__visit h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.mg-foot__visit p {
    line-height: 24px;
    margin-bottom: 22px;
}

/* Links */
.mg-foot__main {
    padding: 75px 0 30px;
}

.mg-foot__main .row > div {
    margin-bottom: 40px;
}

.mg-foot__logo img {
    width: 210px;
}

.mg-foot__social {
    display: flex;
    gap: 10px;
    margin: 26px 0 30px;
}

.mg-foot__social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, .4);
    color: var(--white-color);
}

.mg-foot__social a:hover {
    border: 1px solid var(--orange-color);
    background: var(--orange-color);
    color: var(--white-color);
}

.mg-foot__title {
    position: relative;
    font-size: 18px;
    padding-bottom: 12px;
    margin-bottom: 22px;
}

.mg-foot__title:after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 36px;
    height: 3px;
    background: var(--orange-color);
}

.mg-foot__links li + li {
    margin-top: 10px;
}

.mg-foot__links a {
    position: relative;
    font-size: 15px;
    color: var(--txt-color);
}

.mg-foot__links a:hover {
    color: var(--white-color);
    padding-inline-start: 14px;
}

.mg-foot__links a:before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--orange-color);
    transition: width .3s;
}

.mg-foot__links a:hover:before {
    width: 8px;
}

.mg-foot__hours li {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px dashed var(--main-border-color);
}

.mg-foot__hours li:first-child {
    padding-top: 0;
}

.mg-foot__hours span {
    color: var(--txt-color);
    font-size: 14px;
}

.mg-foot__hours strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--white-color);
}

.mg-foot__contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mg-foot__contact li > span {
    flex-shrink: 0;
    display: inline-flex;
    margin-top: 2px;
    color: var(--orange-color);
}

.mg-foot__contact a {
    font-size: 15px;
    line-height: 22px;
    color: var(--txt-color);
    word-break: break-word;
}

.mg-foot__contact a:hover {
    color: var(--white-color);
}

/* Copyright */
.mg-foot__copy {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--main-border-color);
}

.mg-foot__copy p,
.mg-foot__copy a {
    font-size: 14px;
    color: var(--txt-color);
}

.mg-foot__copy p a {
    color: var(--orange-color);
}

.mg-foot__copy a:hover {
    color: var(--white-color);
}

@media (max-width: 991px) {
    .mg-foot__join { padding: 65px 0; }
    .mg-foot__form { margin-top: 40px; }
    .mg-foot__headline { font-size: 34px; line-height: 44px; }
    .mg-foot__map { height: auto; }
    .mg-foot__map iframe { position: relative; display: block; height: 280px; }
    .mg-foot__map .container { height: auto; display: block; margin-top: -60px; }
    .mg-foot__visit { width: auto; }
    .mg-foot__main { padding-top: 60px; }
}

@media (max-width: 575px) {
    .mg-foot__form { padding: 26px 20px; }
    .mg-foot__form .contact-form-fields { grid-template-columns: 1fr; }
    .mg-foot__form .contact-form-fields > div { grid-column: 1 / -1; }
    .mg-foot__copy { flex-direction: column; text-align: center; }
}

/********************************************************
    Header menu: keep the links and social icons on one row
*******************************************************/
@media (min-width: 1200px) {
    .main_menu_wrapper > ul > li > a {
        margin: 0 14px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .main_menu_wrapper > ul > li > a {
        margin: 0 5px;
        font-size: 13px;
    }

    .header_social > li {
        margin: 0 6px;
    }
}

/********************************************************
    Responsive
*******************************************************/
@media (max-width: 1199px) {
    .mg-coaches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mg-banner__text h1 { font-size: 46px; line-height: 58px; }
}

@media (max-width: 991px) {
    .mg-section { padding: 65px 0; }
    .mg-banner { padding: 60px 0 110px; }
    .mg-banner:before { width: 90%; top: 45%; right: -20%; }
    .mg-hero { min-height: 0; padding: 80px 0 150px; }
    .mg-hero--photo:before { top: 0; right: 0; width: 100%; background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, .7) 40%, rgba(0, 0, 0, .55) 100%); }
    .mg-hero h1 { font-size: 46px; line-height: 56px; }
    .mg-stats .fit_worktime_box:after { display: none; }
    .mg-coaches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mg-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 45px; }
    .mg-timeline:before { display: none; }
    .mg-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mg-call__inner { flex-direction: column; align-items: flex-start; padding: 35px 30px; }
    .mg-section .col-lg-4 + .col-lg-8,
    .mg-section .col-lg-5 + .col-lg-7,
    .mg-section .col-lg-6 + .col-lg-6 { margin-top: 35px; }
    .mg-section .col-lg-6 + .col-lg-5 { margin-top: 55px; }
    .mg-about__lead { font-size: 28px; line-height: 37px; }
    .mg-faq-contact .fit_worktime_box:after { display: none; }
    .mg-dialog__grid { grid-template-columns: 1fr; }
    .mg-dialog__photo { max-height: 340px; overflow: hidden; }
}

@media (max-width: 767px) {
    .mg-banner__text h1 { font-size: 34px; line-height: 44px; }
    .mg-hero h1 { font-size: 36px; line-height: 46px; }
    .mg-hero .mg-banner__text p { font-size: 16px; line-height: 27px; }
    .mg-kicker { font-size: 13px; letter-spacing: 3px; }
    .mg-stats .fit_worktime_box h2 { font-size: 26px; }
    .mg-feature { padding: 35px 25px 30px; margin-bottom: 25px; }
    .mg-classes { grid-template-columns: 1fr; }
    .mg-switch { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .mg-switch button { flex-shrink: 0; }
    .mg-elite__diamond { width: 190px; height: 190px; }
    .mg-elite__mark strong { font-size: 30px; }
    .mg-figure { min-height: 140px; padding: 20px 18px; }
    .mg-figure strong { font-size: 48px; }
    .mg-figure--main strong { font-size: 80px; }
    .fit_servicebox.mg-servicebox { height: auto; margin-top: 60px; }
    .mg-tapes__stage { height: 130px; }
    .mg-tape { padding: 14px 0; }
    .mg-tape--orange, .mg-tape--dark { top: 40px; }
    .mg-tape--orange { transform: rotate(-7deg); }
    .mg-tape--dark { transform: rotate(7deg); }
    .mg-tape__item { font-size: 20px; }
    .mg-tape__item:after { width: 10px; height: 10px; margin: 0 22px; }
    .mg-dialog__body { padding: 30px 22px; }
    .mg-topic-grid { grid-template-columns: 1fr 1fr; gap: 50px 14px; }
    .fit_servicebox.mg-topic { padding: 50px 12px 22px; }
    .fit_servicebox.mg-topic strong { font-size: 15px; line-height: 20px; }
    .mg-qa__question { padding: 18px; gap: 14px; font-size: 15px; line-height: 23px; }
    .mg-qa__number { width: 28px; font-size: 18px; }
    .mg-qa__answer, .mg-qa:has(.mg-qa__number) .mg-qa__answer { padding: 0 18px 20px; }
}

@media (max-width: 575px) {
    .mg-coaches { grid-template-columns: 1fr 1fr; gap: 14px; }
    .mg-coach__info h3 { font-size: 16px; }
    .mg-timeline { grid-template-columns: 1fr; }
    .mg-actions .fit_btn { width: 100%; }
}
