body {
    font-family: 'Montserrat', sans-serif;
}
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}
.header-item {
    margin: 30px 0 10px;
    display: flex;
    align-items: center;
    gap: 1%;
}
.header-logo {
    display: inline-block;
    background-image: url(../images/Logotip.svg);
    width: 97px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: cover;
    transition: 0.5s;
}
.header-logo:hover {
    transform: scale(1.2);
}
.header-fitness {
    display: none;
}
.fitness {
    border: none;
    cursor: pointer;
    background-color: transparent;
}
nav { 
    flex-basis: 25%;   /*начало элемена флекс nav*/
    list-style-type: none;
    flex-grow: 1;
}
.header-nav {
    padding-left: 10%;
    list-style-type: none;
    display: flex;
    justify-content: flex-start;
    gap: 6%;
}
.header-nav a {
    font-weight: 400;
    font-weight: normal;
    font-size: 18px;
    color: #2B3541;
    text-decoration: none;   
    position: relative;                  
}
.header-nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    background: transparent;
    background: #2B3541; 
    border-radius: 1.5px;
    display: block; 
    opacity: 0.7;
    transition: 1s; 
}
.header-nav a:hover::after {
    background: #FBB731;
    width: 95%;
    transition: 0.5s; 
}
.head-btn {
    flex-basis: 12%;   /*начало элемена флекс nav*/
    display: flex;
    justify-content: start;
    gap: 13%;
}
.Instagramicon {float: left;} .Facebookicon {float: right;}
.Instagramicon,.Facebookicon {
width: 40px;
height: 50px;
border: none;
cursor: pointer;
background-color: transparent;
}
.Instagramicon img,.Facebookicon img {
width: 100%;
transition: 0.5s;
}
.Instagramicon:hover img, .Facebookicon:hover img {
    transform: scale(1.5);
}
/* блок майн с девушкой  *//* блок майн с девушкой  *//* блок майн с девушкой  */
 .bg {
    max-width: 1143px;
    padding-right: 10px;
    padding-left: 10px;
    margin: 0 auto;
    position: relative;
}
.bg-text {
    padding-top: 200px;
}
h1 {
    max-width: 676px;
    font-weight: 700;
    font-size: 48px;
    line-height: 125%;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2B3541;
    margin-top: 25px;
    margin-left: 2px;
    margin-bottom: 43px;
}
h2 {
    font-weight: 400;
    font-size: 40px;
    line-height: 125%;
    color: #2B3541;
    margin-bottom: 20px;
}
.box-text {
    padding-left: 93px;
    margin-bottom: 197px;
}
.box-text-p {
    max-width: 297px;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #2B3541;
    margin-bottom: 55px;
}
.box-text-btn {
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2b3541;
    background-color: #fbf138;
    padding: 20px 30px;
    border: 0;
    box-shadow: 0px 13px 24px rgba(251, 241, 56, 0.3);
    transition: .2s;
    cursor: pointer;
    z-index: 1;
}
.box-text-btn:hover {
    color: #FBF138;
    background-color: #2B3541;
    box-shadow: 0px 13px 24px rgba(43, 53, 65, 0.3);
}
.arrow {
    background-image: url(../images/icons/Arrow.svg);
    width: 52px;
    height: 55px;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    margin-top: 0;
    transition: 0.5s;
}
.arrow:hover {
    transform: scale(1.2);
}
.image-gradient-box {
    max-width: 790px;
    width: 100%;
    gap: 20px;
    position: absolute;
    top: 0;
    right: -64px;
}
.box-gradient {
    display: flex;
    max-width: 790px;
    width: 100%;
    gap: 20px;
    position: absolute;
    top: 0;
    z-index: -1;
}
.box-gradient-left {
    background: linear-gradient(90deg, #FBF138 0%, rgba(253, 249, 182, 0.45) 145.23%);
    opacity: 0.2;   
    flex-basis: 70%;
    height: 843px;
}
.box-gradient-right {
    background: linear-gradient(90deg, #FDF9B6 0%, rgba(253, 249, 182, 0.7) 166.81%);
    opacity: 0.2;
    flex-basis: 30%;
    height: 843px;
}
.box-image {
    position: absolute;
    top: 37px;
    width: 124%;
    right: -97px;
    z-index: -1;
}
:root {
    --margin-left-VAR: 20%;
    --S1: 0;
  }

.button-top {
    display: none;
    width: 62px;
    height: 64px;
    background-image: url(../images/icons/Arrow-up4.svg);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    background-color: transparent;
    border-radius: 50%;
    position: fixed;
    bottom: 10px;
    right: 10px;
    transition: 0.5s;
    }
    .button-top:hover {
        background-color: #FBF138;
        background-size: 92%;
    }
    .button-top.hidden {
        display: none;
    }
    .button-top.visible {
        display: inline;
    }

/* блок услуг меню*//* блок услуг меню*//* блок услуг меню*/
#menuFitness {
    margin-top: 50px;
    margin-bottom: 30px;
}
.menu-title {
    font-weight: 700;
    font-size: 40px;
    color: #2B3541;
    text-align: left;
    margin-bottom: 42px;
}
.menu-flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 3px;
}
.menu-flex-cover {
    position: relative;
    max-width: 367px;
    min-width: 140px;
    height: 600px;
    flex: 1 1 32%;
    background-position: center 0;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}
.break {
    display: none;
    flex-basis: 100%;
    height: 0;
  }
.menu-flex-cover:hover button:nth-child(3) {
    opacity: 1;
}
.menu-flex-cover p {
    margin-left: 30px;
}
.menu-flex-cover p:nth-child(1) {
    font-weight: 700;
    font-size: 18px;
    color: #2B3541;
    opacity: 0.6;
    margin-top: 37px;
}
.menu-flex-cover p:nth-child(2) {
    font-weight: 700;
    font-size: 28px;
    color: #2B3541;
    margin-top: 25px;
}
.menu-flex-cover button:nth-child(3) {
    position: absolute;
    font-weight: 700;
    font-size: 16px;
    color: #FBF138;
    text-transform: uppercase;
    text-align: center;
    padding: 20px 37px;
    background: #2B3541;
    transition: 0.5s;
    border: 1px solid #2B3541;
    cursor: pointer;
    left: 50%;
    transform: translate(-50%, 10%);
    opacity: 0;
}
.menu-flex-cover button:nth-child(3):hover {
    color: #2B3541;
    background:  rgba(251, 241, 56, .5);
    transition: 0.5s;
    border: 1px solid #fbf138;
}
.menu-flex-cover p:nth-child(4) {
    position: absolute;
    display: inline-block;
    font-weight: 400;
    font-size: 18px;
    color: #2B3541;
    text-align: center;
    padding: 12px 20px;
    background: #FBF138; 
    bottom: 0;
    right: 0;
    margin: 0;
}
.menu-flex-cover img:nth-child(5) {
    position: absolute;
    display: none;
    bottom: 0;
    right: 0;
}
#id_div1 {background-image: linear-gradient(180deg, rgba(251,241,56,.3) 0%, rgba(253, 249, 182, 0) 100%), url("../images/menu/01.png");}  
#id_div2 {background-image: linear-gradient(180deg, rgba(251,241,56,.3) 0%, rgba(253, 249, 182, 0) 100%), url("../images/menu/02.jpg");}
#id_div3 {background-image: linear-gradient(180deg, rgba(251,241,56,.3) 0%, rgba(253, 249, 182, 0) 100%), url("../images/menu/03.jpg"); background-position: right;}
#id_div1:hover {background-image: linear-gradient(180deg, rgba(251,241,56,.6) 0%, rgba(253, 249, 182, 0) 100%), url("../images/menu/01.png");}
#id_div2:hover {background-image: linear-gradient(180deg, rgba(251,241,56,.6) 0%, rgba(253, 249, 182, 0) 100%), url("../images/menu/02.jpg");}
#id_div3:hover {background-image: linear-gradient(180deg, rgba(251,241,56,.6) 0%, rgba(253, 249, 182, 0) 100%), url("../images/menu/03.jpg");}
/*блок деталей*//*блок деталей*//*блок деталей*/
.workout-header p:nth-child(1) {
    width: min-content;
}
.workout-header p:nth-child(2) {
   margin-top: 36px;
}
.p1 {
    display: inline-block;
    font-weight: 700;
    font-size: 40px;
    color: #2B3541;
    text-align: left;
}
.p2 {
    display: inline;
    float: right;
    font-weight: 700;
    font-size: 28px;
    color: #2B3541;  
}
.workout  {
    display: flex;
    flex-flow: column wrap;
    height: 728px;
    margin-bottom: 140px;
    gap: 1.6%;
}
.workout div {
    border: 3px solid gray;
    max-width: 367px;
    min-width: 0;
    position: sticky;
    overflow: hidden;
    flex-grow: 1;
    flex-shrink: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 31.6%;
}
.workout div p:nth-child(1) {
    position: absolute;
    top: 0;
    font-weight: 400;
    font-size: 18px;
    color: #010101;
    opacity: 0.7;
    width: 85%;
    right: 0;
    text-align: end;
    padding-right: 5%;
}
.workout div img {
   width: fit-content;
   object-fit: none;
   transition: 0.5s;
   margin-left: 10%;
   margin-top: 30%;
}
.workout div p:nth-child(3) {
   font-weight: 700;
   font-size: 18px;
   color: #2B3541; 
   transition: 0.5s;
   margin-left: 10%;
}
.workout div p:nth-child(4) {
    font-weight: 400;
    font-size: 18px;
    color: #2B3541;
    transition: 1s;
    margin: 0 2%;
    margin-left: 10%;
    position: absolute;
    top: -105%;
    opacity: 0;
 }
 .workout div:hover {
    box-shadow: 0px 4px 30px rgba(43, 53, 65, 0.2);
 }
.workout div:hover img:nth-child(2) {margin-top: 0;}
.workout div:hover p:nth-child(4) {position: inherit; opacity: 1;}
.workout div:nth-child(4) img:nth-child(2) {margin-top: 0;}
.workout div:nth-child(4) p:nth-child(4) {position: inherit; opacity: 1;}
.part1 {
    height: 250px;
    order: 1;
}
.part2 {
    height: 402px;
    order: 3;
}
.part3 {
    height: 309px;
    order: 5;
}
.part4 {
    height: 433px;
    order: 2;
    background: linear-gradient(180deg, rgba(251,241,56,.6) 0%, rgba(253, 249, 182, .2) 100%);
}
.part5 {
    height: 281px;
    order: 4;
}
.part6 {
    height: 374px;
    order: 6;
}
 /*Блок подписки*/ /*Блок подписки*/ /*Блок подписки*/
.subscription {
    background: #F3F3F3;
    width: 100%; 
 }
.e-mail {
    height: 348px;
    margin-bottom: 155px;
    display: flex;
}
.wrap {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    margin: auto auto;
    position: relative;
}
.e-mail-title {
    display: flex;
    margin: 0 auto;
}
.e-mail-title p {
    font-weight: 700;
    color: #2B3541;
    position: -webkit-sticky;
    position: sticky; 
    text-align: center;
    flex: 1 0 25%;
    align-self: center;
    z-index: 1;
}
.e-mail-title p::before {
    content: '';
    position: absolute; 
    width: 45px;
    height: 45px;
    background: #FBF138;
    border-radius: 50%;
    display: block; 
    top: -15px;
    left: -5px;
    z-index: -1; 
    box-shadow: 0px 13px 24px rgb(251 241 56 / 30%);
}
.e-mail-enter {
    display: flex;
    gap: 45px;
}
.e-mail-enter p .e-mail-enter input {
    margin: 0;
}
.e-mail-enter input {
    width: 340px;
    height: 65px;
    background: #ffffff;
    font-weight: 400;
    font-size: 18px;
    color: #2B3541;
}
.e-mail-enter input:disabled {
    border: 1px solid #F3F3F3;
    background: #F3F3F3;
 }
 .e-mail-enter input:focus {
    border: 2px solid #F3F3F3;
    outline: 1px solid #F3F3F3;
 }
 .e-mail-enter input:invalid {
    border: 2px solid #AE0303;
    color: #AE0303;
 }
 .e-mail-enter input::placeholder {
    color: rgba(43, 53, 65, .3);
    padding-left: 10%;
  }
.e-mail-enter button {
    border: none;
    background-color: transparent;
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    color: #2B3541;
    text-align: center; 
    align-self: center;
    padding: 24px 45px;
    background-color: #FBF138;
    transition: 0.5s;
    cursor: pointer;
    box-shadow: 0px 13px 24px rgba(251, 241, 56, 0.3);
}
.e-mail-enter button:hover {
    color: #FBF138;
    background-color: #2B3541;
    box-shadow: 0px 13px 24px rgba(43, 53, 65, 0.3);
}
.e-mail-jackdaw {
    display: flex;
    padding-bottom: 38px;
}
.e-mail-jackdaw .checkbox {
    appearance: none;
    display: inline-block;
	width: 25px;
	height: 22px;
	margin: 6px 5px 0 3px;
	outline: none;
    outline: #666 solid 3px; /* Параметры рамки */
	transition: 0.3s ease;
	cursor: pointer;
    opacity: .5;
}
.checkbox:checked {
    background-image: url(../images/icons/check_box.svg);
    background-repeat: no-repeat;  
    background-size: 100%;
    opacity: 1;
}
.e-mail-jackdaw label {
    align-self: center;
    margin-left: 5px;
    font-weight: 400;
    font-size: 11px;
    color: #2B3541;
    background-color: var(--V3);
    text-align: center;
    opacity: 0.5;
    cursor:pointer;
}
.e-mail-jackdaw a {
    font-weight: 400;
    font-size: 11px;
    color: #2B3541;
    opacity: 0.5;
}
.e-mail-jackdaw a:hover {
    opacity: 1;
}
/* Блок о компании */ /* Блок о компании */ /* Блок о компании */
.company-grid {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 0.5fr 0.5fr;
    grid-template-rows: 1fr 1fr;
    margin-bottom: 10px;
}
.company-grid div:nth-child(-n+2) {
    grid-column: span 2;
}
.company-grid div:nth-child(1) p:nth-child(1) {
    font-weight: 700;
    font-size: 40px;
    color: #2B3541;
    margin-top: 0;
    margin-bottom: 25px;
}
.company-grid div:nth-child(1) p:nth-child(2) {
    font-weight: 400;
    font-size: 18px;
    color: #2B3541;
    line-height: 150%;
    margin-bottom: 31px;
}
.company-grid div:nth-child(1) button:nth-child(3) {
    background-color: #FBF138;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: #2B3541;
    padding: 22px 50px;
    border: none;
    cursor: pointer;
    transition: 0.5s;
    box-shadow: 0px 13px 24px rgba(251, 241, 56, 0.3);
}
.company-grid div button:nth-child(3) {
    transition: 0.5s;
}
.company-grid div button:nth-child(3):hover {
    background-color:#2B3541;
    color: #FBF138;
    box-shadow: 0px 13px 24px rgba(43, 53, 65, 0.3);
}
.company-grid div:nth-child(6)  button {
    display: none;
    }
.company-grid div:nth-child(2) {
    background: linear-gradient(180deg, #FBF138 0%, rgba(253, 249, 182, 0.45) 100%);
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
}
.company-grid div:nth-child(2) img {
    width: 100%;
    opacity: 0.7;
    box-shadow: 0px 4px 0px 0px #ffffff;
}
.company-grid div:nth-child(n+3) p:nth-child(1) {
    font-weight: 700;
    font-size: 18px;
    color: #2B3541;
    margin-top: 80px;
    margin-bottom: 25px;
}
.company-grid div:nth-child(n+3) p:nth-child(2) {
    font-weight: 400;
    font-size: 18px;
    color: #2B3541;
    line-height: 150%;
    opacity: 0.6;
}
.company-grid div:nth-child(n+3) { /*О компании*/
    max-width: 92%;
    width: fit-content;
}
.company-grid div:nth-child(n+5) {
    justify-self: end;
}
/*Блок подвала */ /*Блок подвала*/ /*Блок подвала*/ /*Блок подвала*/
footer {
    background: #F3F3F3;
    width: 100%;
    padding-top: 5px;
    height: 100%;
 }
 .header-one {
    display: flex;
    justify-content: space-between;
    align-items: center;
    display: none;
 }
 .header-one .header-nav {
    justify-content: flex-end;
}
 footer .header-item {
     height: 60px;
     margin-bottom: 5px;
 }
footer .header-nav a {
    font-size: 14px;                
}
.e-mail-fit {
    font-weight: 700;
    font-size: 16px;
    color: #2B3541;
    position: relative;
     z-index: 1;
     cursor: pointer; 
}
.e-mail-fit::before {
    content: '';
    position: absolute; 
    width: 25px;
    height: 25px;
    background: #FBF138;
    border-radius: 50%;
    display: block; 
    top: -12px;
    left: -16px; 
    z-index: -1; 
}
footer .head-btn {
    justify-content: center;
    margin-left: 20px;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    background: #F3F3F3;
}
.footer-row p {
    font-weight: 400;
    font-size: 14px;
    color: #2b35414d;
}
.footer-row a {
    font-weight: 400;
    font-size: 14px;
    color: #2B3541;
    opacity: 0.3;
}
.footer-row a:hover {
    opacity: 1;
}
/*Modal*/ /*Modal*/ /*Modal*/ /*Modal*/ /*Modal*/

.modal {
    position: absolute;
    display: none;
    left: 50%;
    transform: translate(-50%, 0);    /*смещаем блок влево на расстояние, равное половине его ширины*/
    max-width: 800px;
    width: 100%;
    height: 246px;
    background: #F3F3F3;
    top: -460px;
    text-align: left;    
    transition: 0.5s;
    z-index: 30;
}
.modal .header-logo {
    position: absolute;
    top: 20px;
    left: 2%;
}
.gym-close {
    position: absolute;
    top: 20px;
    right: 5%;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.modal .header-nav {
    flex-direction: column;
    margin-top: 70px;
    row-gap: 20px;
}
.modal .header-nav li {
    position: relative;
}
.modal .header-nav li:nth-child(-n+2):before {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 94%;
    height: 1px;
    background-color: rgba(43, 53, 65, 0.4);
    display: block; 
}
.modal .head-btn {
    flex-basis: 12%;   /*начало элемена флекс nav*/
    display: flex;
    justify-content: flex-end;
    gap: 5%;
    margin-right: 5%;
}
.modal-box {
    display: block;
    margin-top: 8px;
    width: 100%;
    height: 135px;
    background: rgba(43, 53, 65, 0.4);
    position: relative;
}
#id_box-text-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);   
}
/* Modal - registration */ /* Modal - registration */ /* Modal - registration */
#modal-reg {
    position: relative;
    z-index: 10;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #000000ab;
    position: fixed;
    top: 0;
    left: 0;
}
.modal-reg-box {
    width: 600px;
    height: 577px;
    background: #F3F3F3;
    margin: 0 auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.reg-header {
    max-width: 410px;
    text-align: center;
    margin: 0 auto;
    padding-top: 60px;
}
.reg_title {
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.reg_title::before {
    content: '';
    width: 53px;
    height: 53px;
    border-radius: 100%;
    background: #FBF138;
    box-shadow: 0px 13px 24px rgba(251, 241, 56, 0.3);
    position: absolute;
    left: 30px;
    top: -35px;
    z-index: -1;
}
.reg_text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}
.modal-reg-form {
    max-width: 500px;
    margin: 0 auto;
}
.reg-mail [placeholder] {
    color: rgba(43, 53, 65, .3);
}
.reg-mail,
.reg-tel {
    font-size: 18px;
    font-weight: 400;
    padding: 19px 0 19px 19px;
    border: none;
    background: #FFFFFF;
    align-items: center;
    outline: none;
    display: block;
    margin: 0 auto 20px;
    width: 96%;
}   
.reg-mail:focus,
.reg-tel:focus {
    background: #F3F3F3;
    color: #2B3541;
    border: 1px solid #FBF138;
}
.modal-reg-form button {
    font-size: 16px;
    font-weight: 700;
    background: #FBF138;
    border: none;
    text-transform: uppercase;
    display: block;
    padding: 20px;
    margin: 40px auto 0;
    width: 100%;
    cursor: pointer;
    transition: all .2s ease;
    width: 96%;
    box-shadow: 0px 13px 24px rgba(251, 241, 56, 0.3);
}
.modal-reg-form button:hover {
    background: #2B3541;
    color: #FBF138;
    box-shadow: 0px 13px 24px rgba(43, 53, 65, 0.3);
}
.reg-close {
    width: 20px;
    height: 20px;
    border: none;
    background-image: url(../images/icons/close.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: transparent;
    cursor: pointer;
}
/* Responsive  *//* Responsive  *//* Responsive  *//* Responsive  */
@media (max-width: 1500px) {
    .image-gradient-box {
        right: -44px;
    }
    .box-image {
        right: 5px;
    }
}
@media (max-width: 1268px) {
    .box-text {
        margin-bottom: 105px;
    }
    .image-gradient-box {
        max-width: 700px;
        right: -5px;
    }
    .box-gradient-left, .box-gradient-right {
        height: 752px;
    }
}
@media (max-width: 1200px) {
.bg {
    max-width: 892px;
}
.bg-text {
    padding-top: 116px
}
.box-text {
    margin-bottom: -34px;
}
.box-gradient {
    max-width: 530px;
    top: 14px;
    right: 18px;
}
.box-gradient-left, .box-gradient-right {
    height: 512px;
}
.box-image {
    right: -80px;
    top: 54px;
    width: 82%;
}
}
@media (max-width: 1100px) {
    .bg {
        max-width: 890px;
    }
    .bg-text h1 {
        font-size: 39px;
        margin-bottom: 66px;
    }
    .image-gradient-box {
        right: -7px;
    }
    .box-image {
        right: 31px;
    }
}
@media (max-width: 960px) {
    .header-nav {
        padding-left: 5%;
        gap: 3%;
    }    
}
@media (max-width: 942px) {
    .bg-text {
        padding-top: 18px;
        padding-left: 0;
        margin-bottom: 20px;
    }
    .bg-text h1 {
        font-size: 3.3vw;
        max-width: 342px;
        margin-bottom: 25px;
    }
    .bg-text h2 {
        font-size: 3.3vw;
        margin-bottom: 17px;
    }
    .box-text-p {
        font-size: 16px;
        margin-bottom: 49px;
    }
    .box-text {
        padding-left: 0;
        max-width: 600px;
        margin-bottom: 71px;
    }
    .arrow {
        width: 41px;
        height: 43px;
    }
    .image-gradient-box {
        max-width: 360px;
        margin-top: -4px;
        right: 18px;
    }
    .box-gradient {
        height: 427px;
    }
    .box-gradient-left, .box-gradient-right {
        height: 100%;
    }
    .box-image {
        top: 115px;
        right: 0;
        width: 110%;
    }
}
@media (max-width: 769px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .p1 { /*Расписание тренировок*/
        font-size: 26px;
    }
    .p2 {
        /* padding-top: 10px; */
        /* height: 50px; */
        font-size: 16px;
        /* margin: 28px 0; */
    }

    .header-fitness {
        display: block;
        flex-basis: 60%;
        flex-shrink: 10;
    }
    .header-item {
        margin: 30px 0 10px;
        justify-content: space-between;
    }
    .header-logo {
        background-position: center;
        background-size: 75%;
    }
    nav { 
        display: none;
    }
 
    :root {
        --margin-left-VAR: 0%;
      }
    .menu-flex {
        flex-wrap: wrap;
    }
    .break {
        display: block;
      }
    #id_div1,#id_div2 {height: 309px;}
    #id_div3  {background-image: linear-gradient(180deg, rgba(251,241,56,.3) 0%, rgba(253, 249, 182, 0) 100%), url(../images/yoga.png);   flex-grow: 1;  max-width: 745px;  }
    #id_div3:hover {background-image: linear-gradient(180deg, rgba(251,241,56,.6) 0%, rgba(253, 249, 182, 0) 100%), url("../images/yoga.png");}
    .menu-flex-cover p:nth-child(4) {
        right: auto;
    }
    .menu-flex-cover img:nth-child(5) {        
        display: block;    
    }
    /* Расписание тренировок */
    .workout {
        display: flex;
        flex-flow: row wrap;
        height: 820px;
        gap: 20px; 
    }
    .part1,.part4 {
        order: 0;
        height: 332px; 
    }
    .part2,.part5 {
        order: 1;
        height: 224px;
    }
    .part3,.part6 {
        height: 224px;
    }
    .workout div p:nth-child(3) {
        margin-top: 0;
        margin-bottom: 0;
    }
    .workout div p:nth-child(4) {
        font-size: 12px;
    }
    .workout div p:nth-child(3) {
        font-size: 16px;
    }
    /*Подписка*/
    .wrap {
        width: 340px;
        height: 80%;
        margin: auto auto;
        position: relative;
    }
    .e-mail-title {
        margin-bottom: 28px;
     }
    .e-mail-title p {
       margin: 20px 0;
    }
    .e-mail-title p::before {
        transform: scale(0.70);
        left: 27px;
        top: -22px;
    }
    .e-mail-enter {
        display: block;
        padding-left: 0%;
        gap: 0px;
    }
    .e-mail-enter button {
        position: absolute;
        margin: 0 auto;
        bottom: 0%;
        padding: 24px 105px;
    }
    .e-mail {
        height: 416px;
        margin-bottom: 80px;
    }
    .e-mail-enter input {
        padding-left: 0%;
    }
    .e-mail-jackdaw {
        padding-left: 0;
    }
    input::-webkit-input-placeholder {
        padding-left: 10%;
      }
    input::-moz-placeholder {
        padding-left: 10%;
      }
    input:-ms-input-placeholder {
        padding-left: 10%;
      }
    input::-ms-input-placeholder {
        padding-left: 10%;
      }
    input::placeholder {
        padding-left: 10%;
      }
    /* О компании */
    .company-grid {
        grid-template-rows: 1fr 0.5fr 0.8fr;
    }
    .company-grid div:nth-child(n+3) {
        grid-column: span 2;
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
        justify-self: start;
        align-self: start;
        margin-left: 10%;
    }

    /* Подвал */ /* Подвал */ /* Подвал */ /* Подвал */ /* Подвал */
    .header-one {
        display: flex;
     }
    .header-one nav {
        display: block;
    }
    .e-mail-fit {
        margin-left: auto;
    }
    footer .header-item .header-logo {
        display: none;
    }
    .header-one {
     padding-top: 40px;
     }
     .modal {  /*modal*/
        display: block;
    }
    }
    @media (max-width: 600px) {
        .bg-text h1 {
            font-size: 6.8vw;
            margin-bottom: 44px;
        }
        .bg-text h2 {
            font-size: 7vw;
        }
        .box-text {
            margin-bottom: 45px;
        }
        .box-text-p {
            margin-bottom: 38px;
        }
        .box-text-btn {
            display: block;
            text-align: center;
            max-width: 100%;
        }
        .arrow {
            display: none;
        }
        .image-gradient-box {
            position: static;
            max-width: 100%;
            height: 82vw;
        }
        .box-gradient {
            position: static;
            height: 100%;
        }
        .box-gradient-left, .box-gradient-right {
            position: static;
        }
        .box-image {
            width: 93%;
            height: auto;
            right: auto;
            bottom: 0;
            top: auto;
            z-index: 0;
        }
    @media (max-height: 550px) {
        :root { --S1: 1;}
    }
    @media (max-width: 530px) {
        .menu-flex-cover p:nth-child(2) { /* меню */
           margin-left: 10px; 
   }
   .menu-flex-cover p:nth-child(1) { /* меню */
        margin-left: 10px; 
    }
        .menu-flex-cover p:nth-child(2) span { /* меню */
            font-size: 5vw;  
   }
    #id_div3  {background-position: 75%; } /*Меню*/
    #id_div3:hover {background-image: linear-gradient(180deg, rgba(251,241,56,.6) 0%, rgba(253, 249, 182, 0) 100%), url("../images/yoga.png");}
    .company-grid { /*О компании*/
        grid-template-rows: 1fr 0.3fr 0.3fr 0.3fr min-content min-content;
        grid-template-columns: 1fr;
        }
    .company-grid div:nth-child(2) {
        order: 2;
        margin-top: 20px;
        margin-bottom: 20px;
        }
    .company-grid div:nth-child(n+3) p:nth-child(1) {
        margin-top: 15px;
        margin-bottom: 0px;
    }
     .company-grid div:nth-child(n+3) {
        margin-left: 0;
    }
    .separator {
        display: none;
    } 
    .company-grid div:nth-child(1) button:nth-child(3) {
        display: none;
        }
    .company-grid div:nth-child(-n+6)   {
        width: 100%;
    } 
    .company-grid div:nth-child(6) {
        max-width: 100%
    }
    .company-grid div:nth-child(6)  button {
        display: block;
        background-color: #FBF138;
        font-weight: 700;
        font-size: 16px;
        text-transform: uppercase;
        color: #2B3541;
        padding: 22px;
        border: none;
        cursor: pointer;
        width: 100%;
        background-color: #FBF138;
        }
    .modal-reg-box { /* Popup Window */
        min-width: 0;
        min-height: 0;
        width: 98%;
        }
    .modal-reg-form {
        min-width: 0;
        }
    .reg-mail,.reg-tel {
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        }
    }
    @media (max-width: 470px) {
    .header-nav { /*Подвал*/
            padding-left: 0;
            gap: 1%;
    }    
    footer .header-nav a {   
            font-size: 12px;
    }      
    ul {
            -webkit-padding-start: 0px;
                    padding-inline-start: 0px;
    }
    .p1 {  /*Тренировки*/
            /* width: -webkit-min-content;
            width: -moz-min-content;
            width: min-content; */
    }
    /* Расписание тренировок    Расписание тренировок    Расписание тренировок */
    .workout {
        flex-wrap: nowrap;
        flex-direction: column;
        height: auto;
        margin-bottom: 60px;
        --S: hidden;
        transition: 0.5s;
    }
    .workout div {
        max-width: 452px;
        flex: 0 0 auto;
        height: 94px;
        transition: 0.5s;
        width: 100%;
    }
    .workout div img:nth-child(2) {
        position: absolute;
        top: 5%;
        left: 1%;
        transform: scale(0.6);
        margin-left: 0%;
        margin-top: 0%;
    }
    .workout div p:nth-child(n+3) {
        margin-left: 20%;
    }

     .workout div:nth-child(4) {
        height: 208px;
    }
    .workout div:hover {
        height: 208px;
        --S: visible;
    }
    .header-one {    /*подвал*/
                flex-direction: column;  
    }
    .footer-row  {
                flex-direction: column;
                justify-content: flex-end;
                align-items: center;
    } 
    .footer-row p {        
                    font-size: 10px;
    }
    .footer-row a {
                    font-size: 10px;       
    } 
}
@media (max-width: 360px) {
.separator {
    display: block;
} 
}
    @media (max-width: 320px) {
        .menu-flex-cover p:nth-child(2) span { /* меню */
            font-size: 10vw;  
   }
    /* .p2 {
                display: block;
                float: left;   
                margin: 0;
                padding: 0;           
    } */
    .workout-header {
           height: 175px;
    }
}
@media (max-width: 301px) {
    .workout-header p:nth-child(2) {
        margin-top: 0px;
     }
}
@media (max-height: 280px) {
    :root { --S1: 2;}
    .reg-close::after {
        content: "";
        width: 20px;
        height: 20px;
        border: none;
        background-image: url(../images/icons/close.svg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        position: absolute;
        top: 126px;
        right: 250px;
        background-color: transparent;
        cursor: pointer;
    }
}