/*Specification*/
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
button:active, button:hover, button:focus,
input:active, input:hover, input:focus,
textarea:active, textarea:hover, textarea:focus{
    outline: 0;
    outline-offset: 0;
}
li{
	list-style-type: none;
}
body{
	font-family: "Tahoma";
	color: #323232;
    font-size: 18px;
}
ul{
	padding: 0;
	margin: 0;
}
input:-internal-autofill-selected {
    background-color: rgb(232, 240, 254) !important;
    background-image: none !important;
    color: -internal-light-dark-color(black, white) !important;
}
a,a:hover{
	text-decoration: none;
}
div, img, span{
    flex-shrink: 0;
}
::-webkit-input-placeholder {
	text-align:left;
}
:-moz-placeholder { /* Firefox 18- */
   text-align:left;
}
::-moz-placeholder {  /* Firefox 19+ */
   text-align:left;
}
:-ms-input-placeholder {
   text-align:left;
}
::-webkit-input-placeholder { /* WebKit browsers */
    color:    #2d2a38;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color:    #2d2a38;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color:    #2d2a38;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    color:    #2d2a38;
}



/*header*/
.header{
    padding-top: 50px;
}
.header__inner{
    display: flex;
    align-items: center;
}
.header__logo {
    background-color: var(--primary-color);
    border-radius: 40px;
    padding: 15px 35px;
    color: #fff;
    position: relative;
    margin-bottom: 30px;
    width: 329px;
}
.header__logo:after{
    /* width: 329px;
    height: 102px;
    display: flex;
    justify-content: center;
    font-size: 42px;
    color: white;
    position: relative;
    z-index: 1;
    padding-top: 18px;
    margin-right: 44px; */
    position: absolute;
    content: '';
    top: 35px;
    left: 0;
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 40px solid var(--primary-color);
}
.header__logo h1 {
    text-align: center;
}
/* .header__logo:before{
    content: "";
    background-image: url("../../../img/afisha/logo.png");
    background-repeat: no-repeat;
    background-size: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
} */
.header__logo img{}
.logo {
    display: flex;
    justify-content: center;
    padding: 0;
    width: 100px;
    height: 100px;
    margin-right: 5px;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header__box{
    font-size: 21px;
    display: flex;
    align-items: center;
}
.header__list{
    display: flex;
    align-items: center;
}
.header__list img{
    display: block;
    margin-right: 13px;
}
.header__list span{
    color: #1d9dd9;
}
.header__calendar{
    display: flex;
    align-items: center;
    margin: 0 36px;
}
.header__calendar img{
    margin-right: 13px;
}
.header__calendar span{
    color: #9a9a9a;
}
.header__directions{}
.ui-selectmenu-text{
    margin-right: 0;
}
.ui-selectmenu-button.ui-button{
    width: 240px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    border-radius: 52px;
    padding: 0;
    text-align: center;
    border: 1.5px solid var(--primary-color);
    background-color: white;
    color: #9a9a9a;
}
.ui-selectmenu-icon.ui-icon{
    position: absolute;
    right: 0;
}
.ui-icon-triangle-1-s{
    background-position: 0;
}
.ui-icon{
    text-indent: unset;
    overflow: visible;
}
.ui-icon{
    width: 15px;
    height: 7px;
}
.ui-selectmenu-icon.ui-icon:before{
    position: absolute;
    width: 100%;
    height: 100%;
    right: 10px;
    top: -12px;
    content: url("../img/arrow.png");
}
.ui-selectmenu-button-open .ui-selectmenu-icon{
    transform: rotate(180deg);
    right: 18px;
    top: 49%;
}



/*MAIN*/
main{
    padding-bottom: 135px;
}
.category{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 34px 0 25px 0;
}
.category__tab{
    font-size: 21px;
    color: var(--primary-color);
    padding: 15px 27px;
    cursor: pointer;
}
.category__tab.active{
    color: white;
    background-color: var(--primary-color);
    border-radius: 30px;
}

.courses{}
.course:first-child{
    border-top: 2px solid var(--primary-color);
}
.course{
    padding: 32px 0 28px 0;
    display: flex;
    box-sizing: border-box;
    border-bottom: 2px solid var(--primary-color);
}
.course__link{
    font-size: 16px;
    color: var(--primary-color);
}
.course__preview{
    border: 1.5px solid var(--primary-color);
    padding: 9px;
    display: block;
    width: max-content;
}
.course__preview img{
    display: block;
    width: 280px;
    /* height: 230px; */
    object-fit: cover;
}
.course__link span{
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 18px;
}
.course__main {
    width: 785px;
    margin-left: 2%;
}
.course__title{
    font-size: 25px;
    font-weight: bold;
}
.course__subtitle{}
.course__price{
    font-weight: bold;
    font-size: 23px;
    color: var(--primary-color);
    margin-top: 18px;
    margin-bottom: 4px;
}
.course__more{
    font-size: 16px;
    color: #323232;
    display: block;
    margin-bottom: 55px;
}
.course__groups{}
.course__group{
    border-top: 1px solid var(--primary-color);
    padding: 11px 0 14px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.group__left{}
.group__text{
    font-size: 16px;
    margin-bottom: 13px;
    line-height: 1.3em;
}
.group__time{
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 13px;
}
.group__time:last-child{
    margin-bottom: 0;
}
.group__day{
    background-color: var(--primary-color);
    width: 27px;
    height: 27px;
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    margin-right: 10px;
}
.group__time span{}
.group__right{
    display: flex;
    align-items: center;
}
.group__price{
    font-size: 23px;
    color: var(--primary-color);
    font-weight: bold;
}
.group__more{
    font-size: 14px;
    color: #323232;
    margin: 0 21px 0 14px;
}
.group__buy{
    background-color: var(--primary-color);
    color: white;
    /* width: 147px; */
    height: 45px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 45px;
    text-align: center;
    padding: 0 10px;
}

/*PAGE*/
.page__back{
    display: flex;
    align-items: center;
    margin: 38px 0 15px 0;
}
.page__back img{
    display: block;
    margin-right: 5px;
}
.page__back span{
    font-size: 21px;
    color: var(--primary-color);
}
.page__title{}
.page__gallery{
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
}
.page__img{
    width: 23.333333333333332%;
    height: 19.166666666666668%;
    margin-right: 2.166666666666667%;
    object-fit: cover;
    display: block;
}
.page__img:nth-of-type(4n){
    margin-right: 0;
}
.page__text{
    font-size: 21px;
    margin: 29px 0;
}
h1{
    font-size: 35px;
    margin: 0;
}
.modal{
    width: 100vw;
    height: 100vh;
    background-color: rgba(1,1,1,0.5);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
  }
  .modal form{
    max-width: 340px;
    width: 100%;
    background-color: white;
    padding: 20px;
    -webkit-transition: 0.7s;
    -moz-transition: 0.7s;
    -o-transition: 0.7s;
    transition: 0.7s;
    transform: translate(0, -100%);
  }
  .modal.active{
    opacity: 1;
    display: flex;
  }
  .modal.active form{
    transform: translate(0, 0);
  }
  .modal__close{
    margin-left: auto;
    display: block;
    cursor: pointer;
  }
  .modal__title{
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 20px;
  }
  .modal input{
    display: block;
    height: 40px;
    width: 100%;
    border: 1.5px solid #393634;
    padding: 0 10px;
    margin-bottom: 10px;
  }
  .modal select{
    border: 1.5px solid #393634;
    width: 100%;
    display: block;
    height: 40px;
    margin: 15px 0;
    padding-left: 10px;
  }
  .modal button{
    background-color: var(--primary-color);
    border: unset;
    color: white;
    height: 42px;
    width: 100%;
    cursor: pointer;
    -webkit-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    -o-transition: background-color 0.3s;
    transition: background-color 0.3s;
  }
  .modal button:hover{
    /* background-color: #2dbcff; */
  }

  .photo-preview-wrap {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
  }
  .photo-preview {
      padding: 5px;
      max-width: 200px;
      max-height: 200px;
  }
  .photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
