* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #F4F4F4;
    font-family: 'Roboto', sans-serif;
}

button {
    margin: 0;
    background: transparent;
    display: inline-block;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

img {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 15px;
}

@media (max-width: 1200px) {
    .container {
        max-width: 830px;
    }
}

@media (max-width: 829px) {
    .container {
        max-width: 600px;
    }
}

.row {
    display: flex;
    justify-content: space-between;
}

.main {
    width: 870px;
}

.sidebar {
    min-width: 200px;
    width: 270px;
}

@media (max-width: 829px) {
    .sidebar {
        position: fixed;
        margin-left: 0!important;
        top: 0;
        left: 0;
        bottom: 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.3s 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: all 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;
    display: flex;
    top: 10px;
    left: 15px;
    right: 15px;
}

.card__badges>*+* {
    margin-left: 10px;
}

.card__badge {
    display: inline-block;
    height: 22px;
    padding: 0 10px;
    background-color: #a3a3a3;
    border-radius: 4px;
    font-size: 14px;
    line-height: 23px;
    color: #000;
}

.card__badge--class {
    background-color: #FFCF26;

}

.card__badge--credit {
    background-color: #11BE75;
    color: #fff;
}

.card__content {
    padding: 15px 15px 20px;
}

.card__title {
    margin: 0;
    margin-bottom: 10px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.16;
}

.card__term {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.14;
    color: #000;
}

.card__metro {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.14;
    color: #000;
}

.card__metro::before {
    content: "";
    margin-right: 10px;
    display: inline-block;
    vertical-align: baseline;
    width: 16px;
    height: 11px;
    background-image: url(./../img/icons/metro.svg);
    background-repeat: no-repeat;
    background-size: initial;
}

.card__address {
    font-size: 14px;
    line-height: 1.14;
    color: #777777;
}


/* Button more */

.btn-more {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 80px;

    border-radius: 4px;
    background-color: #E5E5E5;

    color: #4290C9;
    text-align: center;
    font-size: 18px;
    line-height: 21px;


    transition: background-color 0.2s ease-in;
}

.btn-more:hover {
    background-color: #cccccce3;
}

.btn-more img {
    margin-right: 10px;
}

/* sidebar */

.widget+.widget {
    margin-top: 33px;
}

.widget--top-30 {
    margin-top: 30px !important;
}

.widget__title {
    margin-bottom: 21px;
    position: relative;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.16;
    color: #000;
    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--hidden {
    display: none;
}

/* location buttons group */


.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;
    height: 48px;
    padding: 0 15px;

    background-color: transparent;
    border: none;

    color: #3C3C3C;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 50px;

    cursor: pointer;
    transition: background-color .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: #e0b000;
}

/* radio */

.radio {
    display: block;
    cursor: pointer;
}

.radio+.radio {
    margin-top: 15px;
}

.radio__real {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    appearance: none;
}

.radio__real:checked+.radio__fake {
    background-color: #ffe074;
}

.radio__real:checked+.radio__fake::before {
    position: absolute;
    top: 50%;
    left: 50%;
    content: "";
    width: 8px;
    height: 8px;
    background-color: #3C3C3C;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.radio__real:checked~.radio__title {
    font-weight: 500;
}

.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__title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.18;
}

/* checkbox */

.checkbox {
    display: block;
    cursor: pointer;
}

.checkbox+.checkbox {
    margin-top: 15px;
}

.checkbox--hidden {
    display: none;
}

.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;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.checkbox__title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.18;
}

.checkbox__real:checked~.checkbox__title {
    font-weight: 500;
}

/* widget hidden elements  */

.widget__hidden {
    display: none;
}

.widget__btn-show-hidden {
    margin-top: 15px;
    padding: 0;
    color: #4290C9;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.19;
    transition: color 0.2s ease-in;
}

.widget__btn-show-hidden:active, .widget__btn-show-hidden:focus {
	outline: none;
}

.widget__btn-show-hidden:hover {
    color: #187cc4;
    text-decoration: underline;
}

/* toggle */

.toggle {
    cursor: pointer;
}

.toggle__real {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    appearance: none;
}

.toggle__fake {
    position: relative;
    display: inline-block;
    margin-right: 7px;
    width: 37px;
    height: 20px;
    background-color: #c4c4c4;
    border-radius: 10px;
    vertical-align: bottom;
}

.toggle__fake::before {
    position: absolute;
    top: 2px;
    left: 2px;
    content: "";
    width: 16px;
    height: 16px;
    background-color: #3c3c3c;
    border-radius: 50%;
    transition: all 0.2s ease-in;
}

.toggle__real:checked+.toggle__fake {
    background-color: #FFE074;
}

.toggle__real:checked+.toggle__fake::before {
    left: 19px;
}

.toggle__title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.18;
}

.toggle__real:checked~.toggle__title {
    font-weight: 500;
}

/* form buttons */

.form-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 50px;
    text-align: center;

    border-radius: 4px;
    border: 1px solid #D6D6D6;

    color: #3C3C3C;
    font-size: 16px;
    line-height: 1;

    transition: background-color 0.2s ease-in;
}

.form-btn img {
    margin-right: 6px;
}

.form-btn:hover {
    background-color: #e7e7e7;
}

.form-btn+.form-btn {
    margin-top: 10px;
}

.form-btn--submit {
    background-color: #FFCF26;
    color: #000;
}

.form-btn--submit:hover {
    background-color: #e0b000;
}

/* Button Toggle Sidebar */

.toggle-sidebar {
	display: none;
	position: fixed;
	z-index: 9;
	right: 15px;
	top: 8px;
	width: 45px;
	height: 45px;
	background-color: rgb(71, 71, 71);
	justify-content: center;
	align-items: center;
}

@media (max-width: 829px) {
	.toggle-sidebar {
		display: flex;
	}
}

.menu-icon-wrapper {
	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;
}