@import url('../css/normalize.css');

@font-face {
    font-family: Roboto;
    src: url(../ttf/Roboto-Regular.ttf) format('truetype');
}

@font-face {
    font-family: Ledger;
    src: url(../ttf/Ledger-Regular.ttf) format('truetype');
}

@font-face {
    font-family: ProximaNova;
    src: url(../ttf/ProximaNova-Regular.ttf) format('truetype');
}

@font-face {
    font-family: Montserrat;
    src: url(../ttf/Montserrat-VariableFont_wght.ttf) format('truetype');
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --head-shadow: 0 .5rem 1rem rgba(0,0,0,0.5);
    --btn-shadow: 0 .3rem .5rem rgba(0,0,0,0.5);
    --dark: #0D0D0D;
    --dark-b: rgba(22, 34, 57, 0.95);
    --dark-mob: rgba(37, 54, 88, 0.95);
    --lite-b: #48799c;
    --hover: #8f4365;
    --tr: 0.3s;
    --bg1: url(../img/bg1.jpg);
    --m-font-phone: 1.5rem;
    --m-font-links: 16px;
}

html,
body{
height: 100%;
}

body{
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: normal;
}

.no_scroll{
    overflow: hidden;
  }

span,
a,
p,
ul,
H1,
H2,
H3{
    transform: scaleY(0.9);
}

a{
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
}

.wrapper{
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.top-container {
    min-width: 100%;
    margin: auto;
    padding: 0 15px;
}

.header{
    height: 100px;
    -webkit-background-color: var(--dark-b);
    -moz-background-color: var(--dark-b);
    -o-background-color: var(--dark-b);
    -ms-background-color: var(--dark-b);
    background-color: var(--dark-b);
    position: sticky; /* Привязали хедер 1 */
    top: 0; /* Привязали хедер 2 */
    border-bottom: #232323 3px solid;
    -moz-box-shadow: var(--head-shadow);
    -webkit-box-shadow: var(--head-shadow);
    box-shadow: var(--head-shadow);
    z-index: 10;
}

.header .top-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    margin-left: 10px;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
}

.logo img{
    max-width: 210px;
    padding-bottom: 5px;
}

.logo_top{
    font-size: 0.7rem;
    display: block;
    margin: 5px 0 5px 5px;
}

.logo .bottom{
    font-size: 0.65rem;
    margin: 0 0 5px 15px;
}

.logo span{
    margin-left: 15px;
}

.header .header-right{
    display: none;
}

.header .top_nav .head{
    display: none;
}

.header .top_nav ul{
    list-style: none;
}

.header .top_nav > ul > li{
    display: inline-block;
}

.header .top_nav > ul > li:not(:last-child){
    margin-right: 40px;
}

.header .top_nav .down{
    position: relative;
}

.header .top_nav a{
    display: block;
    font-size: 14px;
}

.header .top_nav > ul > li > a{
    padding: 42px 0;
}

.header .top_nav > ul> .down > a{
    padding-right: 15px;
}

.header .top_nav i{
    pointer-events: none;
    user-select: none;
    position: absolute;
    width: 35px;
    height: 35px;
    background-image: url(../img/down.png);
    background-repeat: no-repeat;
    background-position: center;
    top: calc(50% - 18px);
}

.header .top_nav .sub-nav i{
    top: calc(50% - 18px);
}

.header .top_nav > ul > li > i{
    right: -20px;
}

.header .top_nav .sub-nav{
    position: absolute;
    top: 100%;
    left: 0;
    width: 230px;
    padding: 15px 0;
    background-color: #1c1c24;
    box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.5);
    z-index: 1;
    transform-origin: top;
    transform: scaleY(0);
    visibility: hidden;
    opacity: 0;

}

.header .top_nav .sub-nav-r{
    left: 100%;
    top: 0;
}

.header .top_nav .sub-nav-l{
    left: auto;
    top: 0;
    right: 100%;
}

.header .top_nav li:hover > .sub-nav{
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: all 0.5s ease;
}

.header .top_nav .sub-nav a{
    padding: 10px 20px;

}

.header .top_nav .sub-nav .down > a{
    padding-right: 20px;
} 

.header .top_nav .sub-nav span{
    background-image: linear-gradient(hsl(0, 0%, 100%), hsl(0, 0%, 100%));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    -webkit-transition: background-size 0.5s ease;
    -moz-transition: background-size 0.5s ease;
    -o-transition: background-size 0.5s ease;
    transition: background-size 0.5s ease;
}

.header .top_nav .sub-nav li:hover > a > span{
    background-size: 100% 2px;
}

.header .top_nav .sub-nav i{
    transform: rotate(-90deg);
    right: 5px;


}

.btn{
    border:#ccc 1px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
    padding: 10px;
}

.btn._icon{
    display: flex;
    align-items: center;

}

.btn._icon:hover{
    background-color: #325269;
    -webkit-transition: var(--tr);
    -moz-transition: var(--tr);
    -o-transition: var(--tr);
    transition: var(--tr);
}

.btn._icon::before{
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    background-image: url(../img/phone.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 10px;
}

.btn-phone{
    background-color: var(--dark-b);
    font-size: 18px;
    margin: 20px;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
}

.header-right{
    display: flex;
}

.header-right > *{
    margin-left: 25px;
}

.header-right .icon-btn{
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: hsl(0, 0%, 100%);
    font-size: 16px;
}

.header-right .close-menu-btn,
.header-right .open-menu-btn{
    display: none;
}

.box_info_bottom{
    display: none;
}
/* -- HEADER END -- */

.index_accord{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
 /*   gap: calc(10% + 30 * (100vw / 1000)); */
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #fff;
}

.index_accord_item{
    border: 1px solid black;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    background-color: var(--dark-b);
    width: calc(100vw / 4);
    min-width: 210px;
    cursor: pointer;

}

.index_accord_trigger{
    display: flex;
    justify-content: space-between;
    padding: 20px;
    
}
.index_accord_title{
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    background-repeat: no-repeat;
    background-size: 25px;
    padding-left: 35px;
    height: 30px;
}
.index_accord_title.first{
    background-image: url(../img/trophy.png);
}
.index_accord_title.second{
    background-image: url(../img/build.png);
}
.index_accord_title.third{
    background-image: url(../img/group.png);
}

.index_accord_item.active .index_accord_icon{
    transform: rotate(180deg);
}

.index_accord_icon{
    -webkit-transition: rotate 0.3s;
    -moz-transition: rotate 0.3s;
    -o-transition: rotate 0.3s;
    transition: rotate 0.3s;
}

.index_accord_content{
    display: none;
}

.index_accord_content .active{
    display: block;
}

.index_accord_text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    text-align:justify;
    padding: 0 20px 20px 20px;
}

.index_accord_text img{
    width: 100%;
}

/* -- PAGE ACCORD -- */
.page_accord{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    margin-top: 20px;
}

.page_accord_item{
    background-color: #1c1c24;
    width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.page_accord_trigger{
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
}
H2.page_accord_title{
    font-size: 16px;
    color: #FFF;
}
.page_accord_title{
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    background-position-y: 50%;
    background-repeat: no-repeat;
    background-size: 17px;
    padding-left: 35px;
    height: 30px;
}
.page_accord_title.info{
    background-image: url(../img/important.png);
}

.page_accord_trigger::after{
    content: "\002B";
    right: 20px;
    margin-top: 5px;
    color: #fff;
    font-size: 18px;
}

.page_accord_item.active .page_accord_trigger::after{
    transform: rotate(45deg);
}

/* -- Если нужна галочка с переворотом в коде страницы.. --
.page_accord_item.active .page_accord_icon{
    transform: rotate(180deg);
} */

.page_accord_icon,
.page_accord_trigger{
    -webkit-transition: rotate 0.3s;
    -moz-transition: rotate 0.3s;
    -o-transition: rotate 0.3s;
    transition: rotate 0.3s;
}

.page_accord_content{
    display: none;
}

.page_accord_content .active{
    display: block;
}

.page_accord_text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    text-align:justify;
    padding: 0 20px 20px 20px;
    background-color: #151517;
}

.page_accord_text img{
    max-width: 100%;
    border: 3px solid #7bbdfb0f;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
    margin-top: 10px;
}

/* -- FOOTER -- */
.footer_box{
    display: flex;
    justify-content: center;
}

.grid{
    display: grid;
    gap: 1.5rem;
}

.footer_container{
    margin: 0 2rem;
    max-width: 1200px;
    grid-template-columns: repeat(3, 1fr);
    letter-spacing: normal;
}

.footer_data{
    grid-template-columns: repeat(4, max-content);
    gap: 2.5rem 3.5rem;
}


.footer{
    padding-block: 2rem;
    background-color: #1f1f21;
}

.footer ul{
    list-style: none;
    font-size: 12px;
}

.footer_content{
    row-gap: 0.5rem;
    color: #fff;
}

.footer_logo{
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    background: url(../img/time.svg) 0 center no-repeat;
    padding-left: 80px;
    /*margin-top: 1.5rem; для меньшего */
}

p.footer_desc{
    font-size: 12px;
    margin-bottom: 35px;
}

.footer_title{
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

.footer_links{
    display: grid;
    row-gap: 0.75rem;
}

.menu_adress_bottom,
.footer_adress{
    background: url(../img/adr.svg) 0 center no-repeat;
    padding-left: 25px;
}

.menu_phone_bottom,
.footer_phone{
    background: url(../img/tel.svg) 0 center no-repeat;
    padding-left: 25px;
}

.menu_mail_bottom,
.footer_mail{
    background: url(../img/mail.svg) 0 center no-repeat;
    padding-left: 25px;
}

.footer_logo,
.footer_info H3{
    color: #b8b8b8;
}

.footer_link{
    color: #b8b8b8;
    background: url(../img/arw.png) 0 center no-repeat;
    padding-left: 15px;
    -webkit-transition: color 0.4s;
    -moz-transition: color 0.4s;
    -o-transition: color 0.4s;
    transition: color 0.4s;
}

.footer_link:hover{
    color: #fff;
}

.footer_group,
.footer_social{
    display: flex;
}

.footer_group{
    margin: 3rem 2rem 0 2rem;
    flex-direction: row-reverse; /* column для меньшего экрана */
    align-items: center;
    row-gap: 2rem;
    justify-content: space-between;
    border-top: 1px solid #a8a8a8;
    letter-spacing: normal;
}

.footer_social{
    column-gap: 1.5rem;
}

.footer_social img{
    max-height: 30px;
    padding: 5px 5px 0 5px;
}

a.social-icon{
    border: 4px solid #2A2A2C;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    margin-top: 1rem;
}

a.social-icon:hover{
    border: 4px solid #21213d;
    transform: translateY(-0.25rem);
}

.footer_copy{
    font-size: 12px;
    color: #fff;
}

.main{
    display: flex;
    justify-content: center;
    background-color: #151517;
    flex-grow: 1; /* Занимает всё пространство */
}

.page{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 1200px;
    height: auto;
    margin: 10px 0;
    
}

.content{
    background-color: #151517;
    width: 66%;
    padding: 25px 30px;
    position: relative;
}

.content H1{
    color: #fff;
    font-size: 20px;
    border-bottom: 2px solid #1f1f21;
    padding: 0 0 15px 20px;
    /*max-width: 390px;*/
    -moz-box-shadow: 0px 2px #7bbdfb40;
    -webkit-box-shadow: 0px 2px #7bbdfb40;
    box-shadow: 0px 2px #7bbdfb40;
}

.content p{
    color: #a8a8a8;
    font-size: 13px;
    margin: 0 0 0 0;
    transform-origin: 0 0;  /* -- Убрали отступы от p scaleY() --*/
    margin: 10px 0 0 0;
    /* text-indent: 3px;  Отступ первой строки <p> */
    display: block;
    transform: scaleY(0.95);
}

.low_text p{
    font-size: 11px;
}

.pay_img,
.first_img{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.first_img{
    margin-top: 15px;
}

.pay_img img,
.content .first_img img{
    border: 3px solid #7bbdfb0f;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    box-shadow: var(--btn-shadow);
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    height: 9vw;
    max-height: 53px;
}

.content .anchor{
    z-index: -1;
    scroll-margin-top: 100px;
}

.higher{
    color: #FFF;
    font-size: 1.1em;
}

.brighter{
    color: #7bbdfb79;
    font-size: .9em;
    font-weight: bold;
}

.new_pay_box,
.first_box{
    margin-top: 0px;
    margin-left: 10px;
    margin-right: 10px;
    align-content: center;
}

img.center{
    max-width: 100%;
}

.inner_box{
    margin: 0 10px;
}

.new_pay_box img,
.first_box img{
    border: 2px solid #7bbdfb0f;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    margin-top: 10px;
}

.two-box{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
    padding: 10px 0;
    width: 97%;
    min-height: 188px;
    margin: 10px 20px 0 10px;
    position: relative;
}

.box-img{
    background-repeat: no-repeat;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;
    width: 100%;
}

.two-box .maslovskaya{
    height: 40vw;
}

.box-text{
    -moz-box-shadow: inset 0px 0px 20px #7bbdfb40;
    -webkit-box-shadow: inset 0px 0px 20px #7bbdfb40;
    box-shadow: 0px 0px 20px #7bbdfb40;
    background-color: #151517e6;
    border: 2px solid #7bbdfb0f;
    width: 48%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    padding: 5px 10px;
    background-position: left;
    position: absolute;
    z-index: 3;
    top: 10%;
}

.box-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin: 0 15px;
}

.info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0px 0px 20px #7bbdfb40;
    background-color: #151517e6;
    border: 2px solid #7bbdfb0f;
    width: 48%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 15px;
}

.info-card img{
    width: 100%;
}

.info-card .content-btn {
    bottom: 5px;
}

.info-card H3,
.box-text H3{
    max-width: 55%;
    color: #FFF;
    font-size: 12px;
    padding: 5px;
    border-bottom: 2px solid #1f1f21;
    -moz-box-shadow: 0px 2px #7bbdfb40;
    -webkit-box-shadow: 0px 2px #7bbdfb40;
    box-shadow: 0px 2px #7bbdfb40;
    margin-bottom: 10px;
}

.new_pay_box H2,
.first_box H2,
.inner_box H2,
.gallery-box H2 {
    color: #fff;
    font-size: 14px;
    text-align: center;
    background-color: #1c1c24;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 10px;
    border-bottom: 2px solid #42426240;
    border-top: 2px solid #42426240;
    padding: 15px 25px;

}

.video-box {
    position: relative;
    padding-bottom: 56.25%; /* задаёт высоту контейнера для 16:9 (если 4:3 — поставьте 75%) */
    height: 0;
    overflow: hidden;
    margin: 10px 0;
  }

  .video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-width: 0;
    outline-width: 0;
  }

.gallery-box{
    margin: 10px;
}

.gallery{
    text-align: center;
    width: 100%;
    margin: 10px 0;
}

.gallery-box img{
    /*width: minmax(24% 0.49fr);*/
    max-width: 24%;
    max-height: 8vw;
    border: 5px solid #2b2b2db5;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: 0 1px 5px rgba(48, 18, 97, 0.5);
    -webkit-box-shadow: 0 1px 5px rgba(48, 18, 97, 0.5);
    box-shadow: 0 1px 5px rgba(48, 18, 97, 0.5);
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    opacity: 0.7;
}

.gallery-box img:hover{
    border: 5px solid var(--dark-mob);
    -moz-box-shadow: 0 1px 5px rgba(79, 62, 138, 0.5);
    -webkit-box-shadow: 0 1px 5px rgba(79, 62, 138, 0.5);
    box-shadow: 0 1px 5px rgba(79, 62, 138, 0.5);
    opacity: 1;
}

.contact_card{
    color: #fff;
    font-size: 14px;
    margin: 20px 0;
}

.contact_item{
    padding-left: 35px;
    margin-bottom: 10px;
    transform: scaleY(0.9);
}

.contact_card .phone{
    background: url(../img/tel.svg) 0 center no-repeat;
}
.contact_card .mail{
    background: url(../img/mail.svg) 0 center no-repeat;
}
.contact_card .adress{
    background: url(../img/adr.svg) 0 center no-repeat;
}
.contact_card .metro{
    background: url(../img/metro-red.png) 0 center no-repeat;
    background-size: 17px;
}
.contact_card .metro img{
    vertical-align: bottom;
}
.contact_card .bus{
    background: url(../img/bus-blue.png) 0 center no-repeat;
    background-size: 17px;
}


/*TABS 2022*/
.acor-container {
    margin: 0px 0; /*Верхний отступ всего блока*/
    transition-property: all;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
.acor-container .acor-body {
    width: calc(100% - 0px);
    margin: 0 auto;
    height: 0;
    color: rgba(0, 0, 0, 0);
    line-height: 18px;
    padding: 0 0px;
    box-sizing: border-box;
    overflow: hidden; 
    font-size: 12px;
}
.acor-container .acor-body p {
    margin: 0 0 10px;
}
.acor-container label {
    cursor: pointer;
    background-color: #1f1f21; /*Цвет фона закрытого таба*/
    display: block;
    padding: 15px 20px;
    width: 100%;
    color: #FFF;
    font-weight: normal;
    box-sizing: border-box;
    z-index: 100;
    font-size: 14px;
	font-weight: bold;
	letter-spacing: 0,5px;
    margin: 0 0 5px;
    -moz-box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 16px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 16px rgba(0,0,0,0.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 10px 16px rgba(0,0,0,0.2);
}
.acor-container label:hover {
    color: #FFF;
}
/*.acor-container input{
    display: none;
}*/
input[type=“radio”] {
    position: fixed !important;
    }
.acor-container label:before {
    content: '\276F';
    float: right;
}
.acor-container input:checked + label {
    background-color: #1f1f21; /*Цвет фона открывшегося таба*/
    color: #FFF;
    -moz-box-shadow: 0 8px 26px rgba(0,0,0,0.4), 0 28px 30px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 8px 26px rgba(0,0,0,0.4), 0 28px 30px rgba(0,0,0,0.3);
    box-shadow: 0 8px 26px rgba(0,0,0,0.4), 0 28px 30px rgba(0,0,0,0.3);
}
.acor-container input:checked + label:before {
    -webkit-transition: transform .35s;
    -moz-transition: transform .35s;
    -o-transition: transform .35s;
    transition: transform .35s;
    transform: rotate(90deg);
}
.acor-container input:checked + label + .acor-body {
    height: auto;
    margin-top: -5px;
    color: #000;
    padding: 10px 5px 0px; /*Отступы текста внутри*/
}


.sidebar{
    background-color: #151517;
    -moz-box-shadow: 0px 0px 20px #7bbdfb40;
    -webkit-box-shadow: 0px 0px 20px #7bbdfb40;
    box-shadow: 0px 0px 20px #7bbdfb40;
    width: 33%;
    padding: 0px 10px;
    border-left: 2px solid #7bbdfb0f;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    margin: 25px 10px 25px 1px;
    position: relative;
    overflow: hidden;
}

.sidebar_box{
    margin: 15px 5px;
    position: relative;
}

.sidebar_box h4{
    color: #fff;
    font-size: 14px;
    background-color: #1c1c24;
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 10px;
    border-bottom: 2px solid #42426240;
    border-top: 2px solid #42426240;
    padding: 15px 0;
    opacity: 0.6;
}

.sidebar_box h4.start{
    background-image: url(../img/pen.png);
}

.sidebar_box h4.social{
    background-image: url(../img/groups.png);
}

.sidebar_box h4.photo{
    background-image: url(../img/galery.png);
}

.sidebar_box h4.how-pay{
    background-image: url(../img/mir.png);
}

.sidebar_box h4.hends{
    background-image: url(../img/hends.png);
}

.sidebar_box h4::before{
    content: "";
    margin-left: 45px;
}

.sidebar_content{
    margin: 8px 0 0 5px;
}

.sidebar_content p{
    color: #a8a8a8;
    font-size: 14px;
    margin: 0 10px 15px;
}

.social-frame,
.sidebar_social img,
.sidebar_content img{
    border: 2px solid #7bbdfb0f;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.sidebar_content img{
    max-height: 35px;
    height: 3.7vw;
    margin: 0 0 5px;
}

.sidebar_social{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 5px;
}

.sidebar_social img{
    max-height: 58px;
    width: auto;
}

.social-frame{
    padding: 2px 2px 0px 2px;
    filter: brightness(70%);
    width: 157px;
    height: 58px;
}

.social-buttons{
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: 5px;
    width: calc(90% - 160px);
    min-width: 120px;
    max-width: 200px;
}

.social-frame:hover,
.social-buttons a:hover{
    box-shadow: 0px 0px 20px #7bbdfb40;
}

@media(((min-width: 668px) and (max-width: 955px))){
    .social-buttons{
        justify-content: space-between;
        min-width: 158px;
    }
}

@media(max-width:371px){
    .social-buttons{
        justify-content: space-between;
        min-width: 158px;
    }
}

img.sidebar_logo{
    width: 100%;
    height: 12vw;
}

.sidebar_friends {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 15px;
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.friend-card {
    background-color: transparent;
    aspect-ratio: 16 / 9;
    width: 46%;
    /*perspective: 1000px;*/
  }

  .friend-card img{
    height: 100%;
    width: 100%;
  }
  
  .friend-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    -webkit-transition: transform 0.6s;
    -moz-transition: transform 0.6s;
    -o-transition: transform 0.6s;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
  }
  
  .friend-card:hover .friend-card-inner {
    transform: rotateY(180deg);
  }
  
  .friend-card-front, .friend-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .friend-card-front {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    color: black;
  }
  
  .friend-card-back {
    background-color: #1c1c24;
    opacity: 0.8;
    color: white;
    transform: rotateY(180deg);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
  }

  .friend-card-back p{
    font-size: 10px;
    margin-top: 10px;
  }

img.friends{
    height: 6.8vw;
    width: 46%;
    margin: 10px 0 0 8px;
}

@media(max-width:888px){
    .sidebar_friends {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    .friend-card {
        width: 95%;
        height: 12vw;  
    }
    .friend-card-back p{
        font-size: 12px;
        margin: 10px 5px;
    }
    .gallery-box img{
        max-height: 10vw;
    }
}
/*
@media(max-width:480px){
    .friend-card {
        flex-wrap: wrap;
        height: 15vw;
        width: 43%;
    }
    .friend-card-back p{
     font-size: 8px;
     margin: 5px;
}
.gallery-box img{
    max-height: 22vw;
}
}
*/
.content-phone-btn,
.content-btn{
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.content-phone-btn a,
.content-btn a{
    background-color: #1c1c24;
    color: #afafaf;
    font-size: 12px;
    font-weight: bold;
    padding: 15px 70px 15px 20px;
    margin-right: 5px;
    margin-bottom: 5px;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    overflow: hidden;
}

.content-phone-btn a::after,
.content-btn a::after{
    content: "";
    position: absolute;
    width: 50px;
    height: 100%;
    top: 0;
    right: 0;
    background-color: #171720;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 9;
    -webkit-transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -o-transition: 0.2s ease all;
    transition: 0.2s ease all;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.content-phone-btn a::after{
    background-image: url(../img/phone-blue.png);
}
.content-btn a::after{
    background-image: url(../img/arrow_right.svg);
}

.content-phone-btn a:hover::after{
    background-color: #325269;
    background-image: url(../img/phone-black.png);
}
.content-btn a:hover::after{
    background-color: #325269;
    background-image: url(../img/arrow_black.svg);
}

.test{
    background-color: #325269;
}

/* SLIDER Sidebar */

.slider_container{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-height: 270px;
    margin-top: 15px;
}

.slider{
    /*inset: 80px 200px 80px 80px;*/
    display: block;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -o-border-radius: 20px;
    border-radius: 20px;
}

.slider_bottom{
    margin: 0px 5px 0 0;
}

.slider .slides{
    position: absolute;
    top: 60%;
    transform: translateY(0%);
    width: 50px;
    height: 80px;
    background: var(--img);
    background-position: center;
    background-size: cover;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -webkit-transition: 0.5s;;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    -moz-box-shadow: 0 1px 3px rgba(48, 18, 97, 0.5);
    -webkit-box-shadow: 0 1px 3px rgba(48, 18, 97, 0.5);
    box-shadow: 0 1px 3px rgba(48, 18, 97, 0.5);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.slider .slides:nth-child(1),
.slider .slides:nth-child(2)
{
    position: absolute;
    top: 70px;
    left: 0;
    width: 85%;
    height: 60%;
    transform: translateY(0);
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
    background-size: cover;
    border: 2px solid #2b2b2db5;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.slider .slides:nth-child(3)
{
    background-size: cover;
    left: calc(50% + 25px);
}
.slider .slides:nth-child(4)
{
    background-size: cover;
    left: calc(50% + 80px);
}
.slider .slides:nth-child(5)
{
    background-size: cover;
    left: calc(50% + 135px);
}
.slider .slides:nth-child(6)
{
    background-size: cover;
    left: calc(50% + 190px);
}
.slider .slides:nth-child(7)
{
    background-size: cover;
    left: calc(50% + 245px);
}
.slider .slides:nth-child(8)
{
    background-size: cover;
    left: calc(50% + 300px);
}

.slider_buttons{
    position: absolute;
    bottom: 3px;
    display: flex;
    gap: 20px;
    margin-right: 38%;

}

.slider_buttons span{
    position: relative;
    width: 50px;
    height: 30px;
    background: #0e0e0e;
    border: 3px solid #2b2b2db5;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.slider_buttons span::before{
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: rotate(315deg) translate(2px,2px);
}

.slider_buttons span:nth-child(2):before{
    transform: rotate(135deg) translate(2px,2px);
}

.slider_buttons span:active{
    opacity: 0.5;
}

.slider_content{
    position: relative;
    padding: 8px;
    margin: 0 0 5px 5px;
    max-width: 200px;
    -webkit-transition: 0.25s;
    -moz-transition: 0.25s;
    -o-transition: 0.25s;
    transition: 0.25s;
    -webkit-transition-delay: 0s;
    -moz-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
    transform: translateY(40px);
    z-index: 100;
    opacity: 0;
}

.slider .slides:nth-child(1) .slider_content,
.slider .slides:nth-child(2) .slider_content
{
    opacity: 1;
    transform: translateY(0px);
    -webkit-transition-delay: 0.5s;
    -moz-transition-delay: 0.5s;
    -o-transition-delay: 0.5s;
    transition-delay: 0.5s;
    background-color: #0d0d0da6;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.slides H5{
    color: #c7c7c7;
    font-size: 10px;
}

@media(max-width:668px){
    .page{
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .content{
        width: 100%;
        padding: 25px 5px;
    }
    .content H1{
        font-size: 16px;
        padding-left: 5px;
    }
    .sidebar{
        -moz-box-shadow: 0px 0px 20px #7bbdfb40;
        -webkit-box-shadow: 0px 0px 20px #7bbdfb40;
        box-shadow: 0px 0px 20px #7bbdfb40;
        width: 90%;
        padding: 0px 20px;
        border-left: 2px solid #7bbdfb0f;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -o-border-radius: 5px;
        border-radius: 5px;
        margin: 10px;
    }
    .sidebar_content img{
        height: 10vw;
    }
    .slider_container{
        min-height: 330px;
        margin-top: 15px;
    }
    .slider .slides{
        top: 69%;
    }
    .slider .slides:nth-child(1),
    .slider .slides:nth-child(2){
    height: 70%;
    }
    .slider_buttons{
        bottom: 1px;
        gap: 20px;
        margin-right: calc(47vw - 35px);
    }
    .friend-card {
        flex-wrap: wrap;
        height: 15vw;
        width: 43%;
    }
    .gallery-box img{
        max-height: 17vw;
    }
}

/* END SLIDER Sidebar */

.main_top {
    max-height: 100%;
    overflow: hidden;
    margin-bottom: -7px;
}

.index_top {
    min-height: 100vh;
    overflow: hidden;
    background-image: url(../img/foto/bg12.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -100px;
    position: relative;
    animation: changing 19s infinite; /* Для смены картинок фона */
}

@keyframes changing {
    0% {
        background-image: url(../img/foto/bg12.jpg);
    }
    14.3% {
        background-image: url(../img/foto/bg3.jpg);
    }
    28.6% {
        background-image: url(../img/foto/bg7.jpg);
    }
    42.9% {
        background-image: url(../img/foto/bg5.jpg);
    }
    57.2% {
        background-image: url(../img/foto/bg2.jpg);
    }
    71.5% {
        background-image: url(../img/foto/bg15.jpg);
    }
    85.8% {
        background-image: url(../img/foto/bg6.jpg);
    }
    100% {
        background-image: url(../img/foto/girl_flowers.jpg);
    }
}

.index_change {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.index_change H2{
    width: 95%;
    min-width: 320px;
    transform: scaleY(0.75);
    font-size: calc(18px + 4 * (100vw / 1000));
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffffa8;
    text-transform: uppercase;
    line-height: calc(34px + 16 * (100vw / 1000));
    margin: 0 20px;
}

.index_change a {
    width: 200px;
    background-color: #23407799;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 500;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
}

video {
    object-fit: contain;
}

#bg-video {
    min-width: 100%;
    min-height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* -- Таблица РАСПИСАНИЯ -- */

.class_schedule,
.class_price{
    width: 100%;
    color: #d8d8d8;
    font-size: 11px;
    margin: 20px 0px;
}
.class_schedule table,
.class_price table{
    width: 100%;
    text-align: center;
    border-spacing: 3px;
    table-layout: fixed;
}
.class_schedule H2,
.class_price H2{
    text-align: center;
    padding: 15px 0px;
    margin: 0 3px 0 3px;
    font-size: 14px;
    height: 50px;
}
.class_schedule th,
.class_price th,
.class_schedule H2,
.class_price H2{
    background-color: #1c1c24;
    border: 1px solid #7bbdfb40;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}
.class_schedule th,
.class_price th,
.class_schedule td,
.class_price td{
    border: 1px solid #7bbdfb40;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    padding: 10px 0;
    height: 35px;
    text-transform: scaleY(0.9);  
}
.class_schedule th.direction,
.class_schedule td.direction,
.class_price th.direction,
.class_price td.direction{
    width: 35%;
    cursor: pointer; 
}
.class_price th.to_pay,
.class_price td.to_pay{
    width: 20%;
}
.first_box a,
.inner_box a,
.class_price .price a,
.class_price .to_pay a{
    color: #7bbdfb79;
    text-transform: none;
    font-weight: bold;
    margin: 3px;
    padding: 15px 1px 2px 1px;
    border-bottom: 1px #7bbdfb79 solid;
}

/*--Стиль Подсказки--*/
.td_dir .descr{
	display: none;
	color: #fff;
	background: #222d43;
	padding: 10px 15px;
    border: 1px solid #7bbdfb40;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
	border-radius: 5px;
	width: 300px;
    font-size: 12px;
	text-align: justify;
	position: absolute;
	z-index: 10;
    margin-top: 8px;
}
/* Tooltip arrow */
.td_dir .descr::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    margin-top: -18px;
    border-width: 8px;
    border-style: solid;
    border-color:  transparent transparent #7bbdfb40 transparent;
  }
div .direction:hover .descr{
    display: block;
}

@media(max-width:1150px){
    /*
    .footer_container{
        grid-template-columns: repeat(2, 1fr);
    }
    .footer_data{
        gap: 2.5rem 5rem;
    }
    */
    .footer_container{
        grid-template-columns: repeat(2, minmax(230px, 1fr));
        gap: 2.5rem 1fr;
    }

    .footer_data{
        grid-template-columns: repeat(3, max-content);
        gap: 2.5rem 43%;
        padding-top: 2rem;
        border-top: 1px solid var(--lite-b);
    } 
    p.footer_desc{
        font-size: 12px;
        margin-bottom: 5px;
    }
/*.header{
    padding: 12px 0;
}*/
.header .header-right{
    display: inline-flex;
}
.head-phone{
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: var(--dark-mob);
    border: hsla(0, 0%, 100%, 0.25);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    padding: 10px 20px;
}
.top_nav .head a{
    font-size: var(--m-font-phone);
}

.head-phone{
    text-align: center;
}

.head-phone span{
    margin-left: 40px;
}

.head-phone._img:before{
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    background-image: url(../img/phone.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 7px;
    margin-top: -3px;
    position: absolute;
}
.header .top_nav{
    position: fixed;
    left: 0;
    top: 0;
    width: 420px;
    min-width: 320px; /* -= Ширина моб. меню =- */
    height: calc(100vh - 99px);
    background-color: #1c1c24;
    padding: 15px 30px 30px;
    overflow-y: auto;
    z-index: 1;
    transform: translateX(1100%);
    border-bottom: 2px solid black;
    box-shadow: 0px 0px 20px #7bbdfb40;
}
.header .top_nav{
    top: 100px;
}
.header .top_nav.open{
    transform: none;
}
.header .top_nav .head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.header .close-menu-btn{
    height: 40px;
    width: 40px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    border: none;
}
.header .close-menu-btn:after,
.header .close-menu-btn:before{
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: hsl(0, 0%, 100%);
}
.header .close-menu-btn::after{
    transform: rotate(-45deg);
}
.header .close-menu-btn::before{
    transform: rotate(45deg);
}
.header .top_nav ul a{
    font-size: var(--m-font-links);
}
.header .top_nav > ul > li{
    display: block;
}
.header .top_nav > ul > li:not(:last-child){
    margin-right: 0;
}
.header .top_nav li{
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.25);
}
.header .top_nav li:first-child{
    border-top: 1px solid hsla(0, 0%, 100%, 0.25);
}
.header .top_nav > ul > li a{
    padding: 10px 0; 
}
.header .top_nav > ul .down > a{
    padding-right: 34px;
}
.header .top_nav i{
    height: 34px;
    width: 34px;
    border: 1px solid hsla(0, 0%, 100%, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    top: 2px;
    margin-right: 20px;
}
.header .top_nav .sub-nav i{
    top: 3px;
    margin-right: 30px;
}
.header .top_nav .down.active > i{
    background-color: rgba(37, 54, 88, 0.141);;
    transform: rotate(180deg);
}
.header .top_nav .sub-nav{
    position: static;
    opacity: 1;
    transform: none;
    visibility: visible;
    padding: 0;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    width: 100%;
    display: none;
}
.header .top_nav .down.active > .sub-nav{
    display: block;
    background-color: rgba(37, 54, 88, 0.086);
}
/*.header .top_nav .sub-nav li:last-child{
    border: none; /* Убираем накладывающуюся линию, но если в подменю есть 1 ссылка, она отделена не будет!
}*/
.header .top_nav .sub-nav a{
    padding: 12px 0 12px 15px;
}
.header .top_nav .sub-nav .sub-nav a{
    padding-left: 30px;
}
.header .top_nav .sub-nav .sub-nav .sub-nav a{
    padding-left: 45px;
}
.header .top_nav .sub-nav span{
    background-image: none;
}
.header .top_nav .sub-nav i{
    transform: none;
    right: 0;
}
.header-right .open-menu-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    border: none;
}
.header-right .open-menu-btn .line{
    height: 4px;
    width: 40px;
    background-color: hsl(0, 0%, 100%);
    position: absolute;
}
.header-right .open-menu-btn .line-top{
    transform: translateY(-15px);
}
.header-right .open-menu-btn .line-bottom{
    transform: translateY(15px);
}
.box_info_bottom{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}
.menu_info_bottom{
    display: flex;
    flex-direction: column;
    text-align: left;
    width: auto;
    box-shadow: 0px 0px 20px #7bbdfb40;
    border-radius: 5px;
    padding: 10px;
}

.menu_info_bottom H3{
    border-bottom: 1px solid #7bbdfb79;
    color: #fff;
    font-size: 15px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    width: 200px;
}
.menu_info_bottom span{
    font-size: 13px;
    color: #b8b8b8;
    margin-top: 5px;
}
span.menu_hello_bottom{
    color: #fff;
    font-size: 15px;
    margin-top: 10px;
    padding-bottom: 5px;
}
}

@media(max-width:580px){
    .footer_group{
        margin: 3rem 2rem 0 2rem;
        flex-direction: column;
    }
}

@media(max-width:668px){
    .index_accord{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
    }

    .index_accord_item{
        width: 100%;
    
    }

    .index_accord_title{
        height: 25px;
    }

    .footer_data{
        grid-template-columns: repeat(3, max-content);
        gap: 2.5rem 12vw;
    }
    .footer_group{
        grid-template-columns: repeat(2, minmax(230px, 1fr));
        gap: 10px;
    }    
    .phone span{
        display: none;
      }
      .btn-phone{
        padding: 7px;
    }
    .btn._icon::before {
        margin-right: 0;
    }
}

@media(max-width:520px){
.footer_container{
    grid-template-columns: repeat(1, minmax(230px, 1fr));
    gap: 2.5rem 1fr;
}

.footer_data{
    grid-template-columns: repeat(2, max-content);
    gap: 2.5rem 15vw;
}
.footer_info{
    padding-top: 1rem;
    border-top: 1px solid var(--lite-b);
}
.footer_group{
    margin: 3rem 2rem 0 2rem;
    flex-direction: column; 
}
}

@media(max-width:480px){
    .header .top_nav{
        width: 100%;
    }
    .header-right .open-menu-btn{
        height: 30px;
        width: 30px;
    }
    .header-right .open-menu-btn .line{
        height: 3px;
        width: 30px;
    }
    .header-right .open-menu-btn .line-top{
        transform: translateY(-10px);
    }
    .header-right .open-menu-btn .line-bottom{
        transform: translateY(10px);
    }
    .header .close-menu-btn{
        height: 30px;
        width: 30px;
    }
    .header .close-menu-btn:after,
    .header .close-menu-btn:before{
    height: 3px;
    }
    .logo{
        font-size: 0.40rem;
    }

    .logo_top{
        font-size: 0.48rem;
        display: block;
        margin: 18px 0 5px 8px;
    }

    .logo .bottom{
        font-size: 0.46rem;
        display: block;
        margin: 0px 0 5px 14px;
    }
    
    .logo img{
        max-width: 150px;
        padding-bottom: 5px;
    }
    .btn-phone{
        padding: 2px;
    }
    .content {
        width: 100%;
        padding: 25px 15px;
    }
    .two-box{
        flex-direction: column;
    }

    .two-box .foto{
        height: 40vw;
    }

    .two-box .instructor{
        height: 130vw;
    }
    
    .box-img{
        width: 97%;
        border: 5px solid #2b2b2db5;
        background-size: contain;
        background-position: center;
        /*box-shadow: 0px 0px 20px #7bbdfb40;
        background-color: #151517e6;
        border: 2px solid #7bbdfb0f;*/
    }
    
    .box-text{
       /* box-shadow: 0px 0px 20px #7bbdfb40;
        background-color: #151517e6;
        border: 2px solid #7bbdfb0f;*/
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        background-color: none;
        border: none;
        width: 97%;
        padding: 5px 10px;
        position: relative;
    }

    .gallery-box img {
        max-width: 31%;
        max-height: 20vw;
    }

    .box-cards {
        flex-direction: column;
    }
    
    .info-card {
        width: 100%;
    }
    .friend-card {
        flex-wrap: wrap;
        height: 15vw;
        width: 43%;
    }
    .friend-card-back p{
     font-size: 8px;
     margin: 5px;
    }
	
	.pay_card_box{
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
    }

    .pay_card{
        width: 100%;
    }
}

@media(max-width:350px){
    .footer_link {
      font-size: 0.9em;
    }
}

@media(((min-width: 480px) and (max-width: 668px))){
    .two-box .instructor{
        height: 60vw;
    }
}

@media(((min-width: 668px) and (max-width: 808px))){
    .two-box{
        flex-direction: column;
    }

    .two-box .foto{
        height: 25vw;
    }

    .two-box .instructor{
        height: 80vw;
    }
    
    .box-img{
        width: 97%;
        border: 5px solid #2b2b2db5;
        background-size: contain;
        background-position: center;
    }
    
    .box-text{
        box-shadow: none;
        background-color: none;
        border: none;
        width: 97%;
        padding: 5px 10px;
        position: relative;
    }

    .gallery-box img {
        max-width: 31%;
        max-height: 12vw;
    }

    .box-cards {
        flex-direction: column;
    }
    
    .info-card {
        width: 100%;
    }
	
	.pay_card_box{
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
    }

    .pay_card{
        width: 100%;
    }
}

.form{
    position: relative;
    padding: 10px;
    background: #1f1f20;
    border: 1px solid #2b2b2d;
}	
.first_box input[type=text]{
  background: #1f1f20;
  border: 1px solid #2b2b2d;
  color: #fff;
  width: 100%;
  height: 35px;
  padding: 0 35px 0 15px ;
  margin: 5px 0 10px 0;
}

 .first_box select{
    display: block;
    width: 100%; /* от ширины блока div */
    padding: .75rem 2.5rem .75rem 1rem;/* отступы от текста до рамки */
	margin:5px 0 10px 0; /* внешние отступы от блока */
    background: #1f1f20;/* убираем фон */
    border: 3px solid #42426240; /* рамка */
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;/* скругление полей формы */
    -webkit-appearance: none;/* Chrome */
    -moz-appearance: none;/* Firefox */
    appearance: none;/* убираем дефолнтные стрелочки */
    font-family: inherit;/* наследует от родителя */
    font-size: 8pt;
    color: #fff;
}

 .first_box select > option{
    display: block;
    width: 100%; /* от ширины блока div */
    padding: .75rem 2.5rem .75rem 1rem;/* отступы от текста до рамки */
	margin: 5px 0 10px 0; /* внешние отступы от блока */
    background: #1f1f20;/* убираем фон */
    border: 3px solid #42426240; /* рамка */
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;/* скругление полей формы */
    -webkit-appearance: none;/* Chrome */
    -moz-appearance: none;/* Firefox */
    appearance: none;/* убираем дефолнтные стрелочки */
    font-family: inherit;/* наследует от родителя */
    font-size: 8pt;
    color: #fff;
    text-overflow: ellipsis;
}

.first_box select:focus{
    -webkit-appearance: none;/* Chrome */
    -moz-appearance: none;/* Firefox */
    appearance: none;/* убираем дефолнтные стрелочки */
    border: none; /* рамка */
}

/* Вставляем картинку стрелки справа в выпадающий список */
 .first_box select:not([multiple]) {
  padding-right: 1.2em;
  background-repeat: no-repeat;
  background-position: calc(100% - 0.45em) 0.55em;
  background-image: url(../img/down.png);
}

/* скроет иконку стрелки в IE *//*
select::-ms-expand {
  display: none;
}
*/

.client_data{
    color: #fff;
    font-size: 12px;
    margin-top: 10px;
}

.red{
    color: red;
}

select:-moz-focusring {
    color: transparent;  /* Сделаем текст прозрачным при активации рамки фокуса */
    text-shadow: 0 0 0 #000;  /* Используем цвет тени текста вместо его основного цвета */
  }
  select:focus {
    outline: 3px solid #42426240; /* рамка */  /* none - Уберём рамку фокуса */
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;/* скругление полей формы */
  }

  IMG.noram{
    float: left;
    MARGIN-RIGHT: 10px; 
    MARGIN-BOTTOM: 0;
    margin-top: 0;
    border: none;
    width: 30px;
  }

  .error_box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 10px 0px 10px;
    gap: 30px;
  }
  .error_block{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    box-shadow: 0px 0px 20px #7bbdfb40;
    border-radius: 5px;
    padding: 20px 30px;
    color: var(--lite-b);
    
  }
  .error_block .notfound{
    font-size: 88px;
    font-weight: bold;
  }
  .error_block .notfound-text{
    font-size: 14px;
  }

 /* Оформление карточек оплаты (2253 и 2318) */

  .pay_card_box{
    display: flex;
    flex-direction: row;
  }

  .pay_card{
    display: flex;
    flex-direction: column;
    background-color: #151517;
    -moz-box-shadow: 0px 0px 20px #7bbdfb40;
    -webkit-box-shadow: 0px 0px 20px #7bbdfb40;
    box-shadow: 0px 0px 20px #7bbdfb40;
    min-width: 48%;
    border-left: 2px solid #7bbdfb0f;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    padding: 10px;
    margin: 25px 10px 25px 1px;
    position: relative;
    overflow: hidden;
  }

  .pay_card H3 {
    color: #fff;
    font-size: 14px;
    text-align: center;
    background-color: #1c1c24;
    border-bottom: 2px solid #42426240;
    border-top: 2px solid #42426240;
    padding: 15px 0;
    opacity: 0.6;
  }

  .lessons_qty{
    color: #FFF;
    font-size: 14px;
    margin: 10px 10px 0 0;
  }

  .select_lessons{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    font-size: 12px;
  }

  .select_lessons span{
    font-size: 12px;
    margin-top: 17px;
  }

  .pay_card select{
        display: block;
        min-width: 110px; /* от ширины блока div */
        padding: .75rem 2.5rem .75rem 1rem;/* отступы от текста до рамки */
        margin:5px 0 10px 0; /* внешние отступы от блока */
        background: #1f1f20;/* убираем фон */
        border: 3px solid #42426240; /* рамка */
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        -o-border-radius: 3px;
        border-radius: 3px;/* скругление полей формы */
        -webkit-appearance: none;/* Chrome */
        -moz-appearance: none;/* Firefox */
        appearance: none;/* убираем дефолнтные стрелочки */
        font-family: inherit;/* наследует от родителя */
        font-size: 8pt;
        color: #fff;
  }
  .pay_card select > option{
    display: block;
    width: 110px; /* от ширины блока div */
    padding: .75rem 2.5rem .75rem 1rem;/* отступы от текста до рамки */
	margin: 5px 0 10px 0; /* внешние отступы от блока */
    background: #1f1f20;/* убираем фон */
    border: 3px solid #42426240; /* рамка */
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;/* скругление полей формы */
    -webkit-appearance: none;/* Chrome */
    -moz-appearance: none;/* Firefox */
    appearance: none;/* убираем дефолнтные стрелочки */
    font-family: inherit;/* наследует от родителя */
    font-size: 8pt;
    color: #fff;
    text-overflow: ellipsis;
}
.pay_card select:focus{
    -webkit-appearance: none;/* Chrome */
    -moz-appearance: none;/* Firefox */
    appearance: none;/* убираем дефолнтные стрелочки */
    /*border: none;  рамка */
}

/* Вставляем картинку стрелки справа в выпадающий список */
.pay_card select:not([multiple]) {
  padding-right: 1.2em;
  background-repeat: no-repeat;
  background-position: calc(100% - 0.45em) 0.55em;
  background-image: url(../img/down.png);
}

.agree_check input{
    margin-right: 10px;
}

.agree_check a{
    color: #7bbdfb79;
    text-decoration: underline;
    text-transform: none;
    font-weight: bold;
}

.pay_card_btn{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 176px;
    background-color: var(--dark-b);
    font-size: 18px;
    margin: 20px 20px 10px;
    -moz-box-shadow: var(--btn-shadow);
    -webkit-box-shadow: var(--btn-shadow);
    box-shadow: var(--btn-shadow);
    border: #ccc 1px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
}

.pay_card_btn:hover,
.pay_card_btn:active{
    background-color: #325269;
    -webkit-transition: var(--tr);
    -moz-transition: var(--tr);
    -o-transition: var(--tr);
    transition: var(--tr);
    
}

.pay_card_btn:hover > .pay_card_btn span{
    color: #151517;
}

.pay_card_btn span,
.pay_card_btn a{
    font-size: 12px;
    font-weight: bold;
    padding: 20px 20px;
    text-align: center;
}

.pay_card_btn a{
    color: #FFF;
	border-bottom: none;
}

.pay_card_btn span{
    color: #787878;
    text-transform: uppercase;
}

.yes_agree {
    color: #FFF;
    font-size: 10px;
}
