*{
    box-sizing: border-box;
}

body{
    margin: 0;
    background-color: #F4F4F4;
    font-family: 'Roboto', sans-serif;
}

img{
    display: block;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 15px;
}

@media(max-width:1200px){
    .container{
        max-width: 880px;
    }
}
@media(max-width:879px){
    .container{
        max-width: 600px;
    }
}

.row{
    display: flex;
    justify-content: space-between;
}

.main{
    width: 870px;
}

.sidebar{
    min-width: 250px;
    width: 270px;
}
@media(max-width:879px){
    .sidebar{
        /* display: none; */
        width: auto;
        z-index: 0;
        margin-left: 0 !important;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        background-color: white;
        padding: 15px;
        box-shadow: 0px 0px 20px 4px rgb(0 0 0 / 37%);
        overflow-y: scroll;
        transform: translateX(-150%);
        transition: transform 0.4s ease-in;
    }
    .sidebar--mobile-active{
        transform: translateX(0%);
    }
}
.main + .sidebar{
    margin-left: 30px;
}
.cards-holder{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
@media(max-width:599px){
    .cards-holder{
        flex-direction: column;
        align-items: center;
    }
}
.cards-holder>.card-link{
    margin-bottom: 30px;
}

.card-link--hidden{
    display: none !important;
}

/* Card */

a.card-link{
    display: inline-block;
    text-decoration: none;
    transition: opacity,transform 0.2s ease-in;
}
a.card-link:hover{
    opacity: 0.8;
    transform: translateY(-5px);
}
.card{
    position: relative;
    width: 270px;
    background-color: #fff;
}
.card__badges{
    position: absolute;
    top: 10px;
    left: 15px;
    right: 15px;
    display: flex;
}
.card__badges>*+*{
    margin-left: 10px;
}
.card__badge{
    display: inline-block;
    
    border-radius: 4px;
    height: 22px;
    padding: 0px 10px;
    font-size: 14px;
    line-height: 23px;
    color: #000000;
}
.card__badge--class{
    background: #FFCF26;
}
.card__badge--credit{
    background: #11BE75;
    color: white;
}
.card__img{

}
.card__content{
    padding: 16px 15px 20px;
}
.card__title{
    margin: 0;
    margin-bottom: 11px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.17;

    color: #000000;
}
.card__term{
    font-weight: normal;
    font-size: 14px;
    line-height: 1.14;
    color: #000000;
    margin-bottom: 11px;
}
.card__metro{
    font-weight: normal;
    font-size: 14px;
    line-height: 1.14;
    color: #000000;
    margin-bottom: 11px;
}
.card__metro::before{
    content: "";
    margin-right: 10px;
    display: inline-block;
    vertical-align: baseline;
    width: 16px;
    height: 11px;
    background-image: url('./../img/icons/Moscow_Metro\ 1.svg');
    background-repeat: no-repeat;
    background-size: initial;
}
.card__address{
    font-weight: normal;
    font-size: 14px;
    line-height: 1.14;
    color: #777777;
}

/* Button more */

.btn-more{
    width: 100%;
    height: 80px;
    background-color: #E5E5E5;
    border-radius: 4px;
    border: none;
    text-align: center;
    font-size: 18px;
    line-height: 21px;
    /* identical to box height */
    color: #4290C9;
    cursor: pointer;
    transition: background-color 0.2s ease-in;
}
.btn-more:hover{
    background-color: #d8d8d8;
}
.btn-more img{
    display: inline-block;
    margin-right: 10px;
    vertical-align: bottom;
}

/* Sidebar */

.widget+.widget{
    margin-top: 33px;
}
.widget--top-30{
    margin-top: 30px !important;
}
.widget__title{
    position: relative;
    margin-bottom: 21px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.17;
    color: #000000;

    cursor: pointer;
}
.widget__title::after{
    content: "";
    width: 20px;
    height: 20px;
    
    position: absolute;
    right: 1px;
    top: -1px;
    background-image: url('./../img/icons/chevron-up.svg');
    background-repeat: no-repeat;
    background-size: initial;
    background-position: center;
}
.widget__title--active::after{
    transform: rotate(180deg);
}
.widget__body{

}
.widget__body--hidden{
    display: none;
}

/* location buttons group */

.location{

}
.location__row{
    display: flex;
}
.location__row:first-child{
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    border: 1px solid #d6d6d6;
}
.location__row:last-child{
    overflow: hidden;
    border-radius: 0 0 4px 4px;
    border: 1px solid #d6d6d6;
    border-top: none;
}
.location__btn{
    flex-grow: 1;
    font-family: inherit;
    height: 48px;
    padding: 0 15px;
    background-color: transparent;
    border: none;
    text-align: center;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 50px;
    color: #3C3C3C;

    cursor: pointer;
    transition: background-color 0.2s ease-in;
}
.location__btn:hover{
    background-color: #fff0bb;
}
.location__checkbox{
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    appearance: none;
}
.location__checkbox:checked+.location__btn{
    background-color: #FFCF26;
}
.location__checkbox:checked+.location__btn:hover{
    background-color: #e4b50b;
}

/* Radio */

.radio{    
    display: block;
    cursor: pointer;
}
.radio + .radio{
    margin-top: 15px;
}
.radio__real{
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    appearance: none;
}
.radio__fake{
    position: relative;
    display: inline-block;
    margin-right: 7px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    
    border: 1px solid #777777;
    border-radius: 50%;
    vertical-align: bottom;
}
.radio__real:checked + .radio__fake::before{
    position: absolute;
    top: 50%;
    left: 50%;
    content: "";
    width: 8px;
    height: 8px;
    background: #3C3C3C;
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

.radio__real:checked + .radio__fake{
    background-color: #FFE074;
}
.radio__real:checked ~.radio__title{
    font-weight: 500;
}

.radio__title{
    font-weight: 400;
    font-size: 16px;
    line-height: 1.19;
    color: #000000;
}

/* Checkbox */

.checkbox{
    display: block;
    cursor: pointer;
}
.checkbox--hidden{
    display: none;
}
.checkbox + .checkbox{
    margin-top: 15px;
}
.checkbox__real{
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    appearance: none;
}
.checkbox__fake{
    position: relative;
    display: inline-block;
    margin-right: 7px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    
    border: 1px solid #777777;
    border-radius: 2px;
    vertical-align: bottom;
}
.checkbox__real:checked + .checkbox__fake{
    background-color: #FFE074;
}
.checkbox__real:checked + .checkbox__fake::before{
    position: absolute;
    top: 50%;
    left: 50%;
    content: "";
    width: 18px;
    height: 18px;
    background-image: url('./../img/icons/check.svg');
    background-size: initial;
    background-position: center;
    transform: translate(-50%,-50%);
}
.checkbox__real:checked ~.checkbox__title{
    font-weight: 500;
}
.checkbox__title{
    font-weight: 400;
    font-size: 16px;
    line-height: 1.19;
    color: #000000;
}

/* Hidden elements widget*/
.widget__hidden{
    display: none;
}
.widget__show-hidden{
    display: inline-block;
    margin-top: 15px;
    background: transparent;
    padding: 0;
    border: none;
    font-family: inherit;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 1.19;
    color: #4290C9;
    cursor: pointer;
    transition: all 0.2s ease-in;
}
.widget__show-hidden:hover{
    opacity: 0.8;
    text-decoration: underline;
}

/* Toggle */

.toggle{
    cursor: pointer;
}
.toggle__real{
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    appearance: none;
}
.toggle__fake{
    display: inline-block;
    position: relative;
    margin-right: 7px;
    width: 37px;
    height: 20px;
    background: #C4C4C4;
    border-radius: 10px;
    vertical-align: bottom;
}
.toggle__fake::before{
    content: "";
    top: 2px;
    left: 2px;
    position: absolute;
    width: 16px;
    height: 16px;
    background: #3C3C3C;
    border-radius: 50%;
    transition: all 0.2s ease-in;
}
.toggle__real:checked + .toggle__fake{
    background: #FFE074;
}
.toggle__real:checked + .toggle__fake::before{
    left: 19px;
    /* right: 2px; */
}
.toggle__title{
    font-weight: 400;
    font-size: 16px;
    line-height: 1.19;
    color: #000000;
}
.toggle__real:checked ~.toggle__title{
    font-weight: 500;
}

/* Form buttons */

.form-btn{
    width: 100%;
    height: 50px;

    border: 1px solid #D6D6D6;
    border-radius: 4px;
    background-color: transparent;

    font-family: inherit;
    text-align: center;    
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    color: #3C3C3C;

    cursor: pointer;
    transition: background-color 0.3s ease-in;
}
.form-btn img{
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    margin-top: -2px;
}
.form-btn:hover{
    background-color: rgb(230, 230, 230);
}
.form-btn + .form-btn{
    margin-top: 10px;
}

.form-btn--submit{
    background: #FFCF26;
    border: none;
    color: #000000
}
.form-btn--submit:hover{
    background: #ffe071;
}

/* Button Toggle Sidebar */

.toggle-sidebar{
    display: none;
    z-index: 1;
    position: fixed;
    right: 15px;
    top: 8px;
    width: 45px;
    height: 45px;
    background-color: rgb(48, 114, 190);
    border: none;
    justify-content: center;
    align-items: center;
}
@media(max-width:879px){
    .toggle-sidebar{
        display: flex;
    }
}
.menu-icon-wrapper {
    /*   background: red;*/
      width: 30px;
      height: 30px;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0;
      border: none;
      background-color: transparent;
    }
    
.menu-icon {
    position: relative;
    width: 30px;
    height: 5px;
    background-color: #fff;
}
    
.menu-icon::before {
    position: absolute;
    left: 0;
    top: -10px;
    content: '';
    width: 30px;
    height: 5px;
    background-color: #fff;
    transition: transform 0.2s ease-in, top 0.2s linear 0.2s;

}

.menu-icon::after {
    position: absolute;
    left: 0;
    top: 10px;
    content: '';
    width: 30px;
    height: 5px;
    background-color: #fff;
    transition: transform 0.2s ease-in, top 0.2s linear 0.2s;

}

.menu-icon.menu-icon-active {
    background-color: transparent;
}

.menu-icon.menu-icon-active::before {
    transform: rotate(45deg);
    top: 0;
    transition: top 0.2s linear, transform 0.2s ease-in 0.2s;
}

.menu-icon.menu-icon-active::after {
    transform: rotate(-45deg);
    top: 0;
    transition: top 0.2s linear, transform 0.2s ease-in 0.2s;
}
    