html, body {
    font-family: "Gilroy";
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

/* для Chrome/Edge/Safari */
*::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

*::-webkit-scrollbar-track {
    background: #F6F8F9;
}

*::-webkit-scrollbar-thumb {
    background: #EBF3FD;
    border-radius: 22px;
}

a {
    text-decoration: none;
}

.btn {
    background-color: #2E8CFF;
    --bs-btn-disabled-bg: #2E8CFF;
    color: #fff;
    --bs-btn-disabled-color: #fff;
    border-radius: 6px;
    height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    white-space: nowrap;
}

.btn-sm {
    height: 36px;
}

.btn:hover,
.btn:active,
.btn:focus,
.btn:first-child:hover,
.btn:first-child:active,
.btn:first-child:focus,
.btn-check:checked + .btn,
:not(.btn-check) + .btn:active,
.btn:first-child:active,
.btn.active,
.btn.show {
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), #448BE2;
    border-color: transparent;
}

.btn-alt {
    background-color: #77B4FF;
    color: #fff;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.12);
    max-width: 350px;
    width: 100%;
    height: 61px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    outline: none;
    border-radius: 10px;
}

.btn-alt:hover,
.btn-alt:active,
.btn-alt:focus,
.btn-alt:first-child:hover,
.btn-alt:first-child:active,
.btn-alt:first-child:focus,
.btn-alt-check:checked + .btn-alt,
:not(.btn-alt-check) + .btn-alt:active,
.btn-alt:first-child:active,
.btn-alt.active,
.btn-alt.show {
    background-color: #8BBFFF;
}

.btn.btn-white {
    border: 1px solid #E1E1E1;
    background: #fff;
    color: #373530;
}

.btn.btn-white.btn-icon svg {
    stroke: #1c1c1c;
}

.btn.btn-white:hover {
    border: 1px solid #C3C3C3;
    background: #fff;
    color: #373530;
}

.btn.btn-white:active,
.btn.btn-white:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: #AEAEAE;
    color: #373530;
}

.btn.wait,
.btn.wait:hover,
.btn.wait:active,
.btn.wait:focus,
.btn.wait:first-child:hover,
.btn.wait:first-child:active,
.btn.wait:first-child:focus,
.btn-check:checked + .btn.wait,
:not(.btn-check) + .btn.wait:active,
.btn.wait:first-child:active,
.btn.wait.active,
.btn.wait.show {
    color: transparent;
    background-image: url("../img/wait-hover.svg");
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 50%;
}

.btn.wait svg {
    visibility: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px .5em 10px;
    align-items: baseline;
    max-width: 1110px;
    margin: 0 auto 1em;
}

header ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 1em;
}

header ul li a {
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1c;
    text-decoration: none;
    border-bottom: 1px dashed #1c1c1c50;
}

header ul li.active > a,
header ul li a:hover {
    color: #448BE2;
    border-color: #448BE250;
}

header > div:last-of-type {
    position: relative;
}

header ul li > ul {
    display: none;
    position: absolute;
    z-index: 2;
    right: 0;
    gap: 0;
    text-align: right;
    white-space: nowrap;
}

header ul li:hover > ul {
    display: flex;
    flex-direction: column;
}

.teacher-promo-hint {
    position: fixed;
    z-index: 11;
    visibility: hidden;
    opacity: 0;
    transition: opacity ease .5s, visibility linear 0s .5s;
    max-width: 420px;
}

.teacher-promo-hint.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity ease .5s;
}

.teacher-promo-hint ul {
    background-color: #fff;
    z-index: 12;
    position: relative;
    padding: 28px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    border-radius: 24px;
    margin-top: 1em;
    text-align: center;
}

.teacher-promo-hint ul li a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: 0;
}

.teacher-promo-hint:before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .3);
    z-index: 11;
}

.teachers-promo-1 {
    background-image: url("../img/teachers.webp");
    mask-image: url("../img/path.svg");
    mask-repeat: no-repeat;
    mask-position: 50%;
    background-size: 75%;
    background-position: 0 50%;
    background-repeat: repeat-x;
    height: 305px;
    mask-size: 710px;
    margin: 0 0 40px;
    background-color: #F5FCFF;
    opacity: 0;
}

html.loaded .teachers-promo-1 {
    opacity: 1;
    animation: zoom-mask 3s ease-in, move-background 2000s linear infinite;
}

.teachers-promo-2 {
    max-width: 600px;
    text-align: center;
    margin: 0 auto 10em;
    color: #1c1c1c;
}

.teachers-promo-2 h1 {
    font-size: 62px;
    line-height: 108%;
    font-weight: 600;
    margin: 0 0 40px;
}

.teachers-promo-2 h1 span {
    background-color: #FFF3D5;
    padding: 0 10px 5px;
    border-radius: 10px;
    display: inline-block;
}

.teachers-promo-2 p {
    font-size: 22px;
    line-height: 148%;
    font-weight: 500;
    margin: 0 0 40px;
}

.teachers-promo-2 p a {
    border-bottom: 1px dashed #1c1c1c50;
    text-decoration: none;
    color: #1c1c1c;
}

.teachers-promo-2 p a:hover {
    color: #448BE2;
    border-color: #448BE250;
}

.teachers-promo-3 {
    max-width: 920px;
    margin: 0 auto 10em;
}

.teachers-promo-3 h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 108%;
    text-align: center;
    margin: 0 0 1em;
}

.teachers-promo-3 > div {
    display: grid;
    gap: 2em;
    grid-template-columns: 1fr 1fr 1fr;
}

.teachers-promo-3 > div > div {
    color: #777777;
    font-size: 16px;
    font-weight: 500;
}

.teachers-promo-3 > div > div a {
    color: #777777;
    text-decoration: none;
    border-bottom: 1px dashed #77777750;
}

.teachers-promo-3 > div > div a:hover {
    color: #448BE2;
    border-color: #448BE250;
}

.teachers-promo-3 > div > div img {
    width: 100%;
    margin: 0 0 1em;
}

.teachers-promo-3 > div > div p {
    font-size: 22px;
    font-weight: bold;
    color: #1c1c1c;
}

.teachers-promo-4 {
    max-width: 1110px;
    border-radius: 34px;
    background-color: #F4F9FF;
    padding: 3em;
    margin: 0 auto 80px;
}

.teachers-promo-4 h2 {

    font-size: 48px;
    font-weight: 600;
    line-height: 108%;
    text-align: center;
    margin: 0 0 1em;
}

.teachers-promo-4 img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    margin: 0 0 1em;
}

.teachers-promo-4 > div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.teachers-promo-4 > div > div {
    background: #FFFFFF;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.06), 0px 3px 6px rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 1em;
}

.teachers-promo-4 > div > div p:first-of-type {
    font-size: 22px;
    font-weight: bold;
    color: #1c1c1c;
    margin-bottom: 5px;
}

.teachers-promo-4 > div > div p:last-of-type {
    color: #777777;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.teachers-promo-4 > div > div a {
    color: #777;
    text-decoration: none;
    border-bottom: 1px solid #77777750;
    font-size: 16px;
    font-weight: 500;
}

.teachers-promo-4 > div > div a:hover {
    color: #448BE2;
    border-color: #448BE250;
}

.teachers-promo-6--container {
    background-image: url("../img/background-6.svg");
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    padding: 10em 0 12em;
}

.teachers-promo-6 {
    max-width: 735px;
    margin: 0 auto;
}

.teachers-promo-6 h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 108%;
    text-align: center;
    margin: 0 0 1em;
}

.teachers-promo-6 > div {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.teachers-promo-6 > div > div {
    background: #FFFFFF;
    box-shadow: 0px 5px 50px rgba(0, 0, 0, 0.05), 0px 4.68189px 13.1108px rgba(0, 0, 0, 0.0184), 0px 0.557351px 2.99px rgba(0, 0, 0, 0.0454);
    border-radius: 32px;
    padding: 1.5em 2em;
    text-align: center;
}

.teachers-promo-6 > div > div img {
    width: 100%;
    margin: 0 0 1em;
}

.teachers-promo-6 > div > div p:first-of-type {
    font-size: 22px;
    font-weight: bold;
    color: #1c1c1c;
    margin: 0 0 10px;
}

.teachers-promo-6 > div > div p:last-of-type {
    color: #777777;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 2em;
}

.teachers-promo-7 {
    background-color: #2E8CFF;
    max-width: 1110px;
    border-radius: 34px;
    margin: 0 auto 10em;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.teachers-promo-7:before {
    content: '';
    position: absolute;
    left: 0;
    top: -100px;
    right: 0;
    bottom: -100px;
    background-image: url("../img/background-7.svg");
    animation: move-background-inverse 20s linear infinite;
}

.teachers-promo-7 > div {
    max-width: 560px;
    text-align: center;
    position: relative;
}

.teachers-promo-7 h3 {
    color: #fff;
    font-size: 46px;
    font-weight: bold;
    line-height: 120%;
    margin: 0 0 1em;
}

footer {
    max-width: 1110px;
    margin: 0 auto 3em;
}

footer > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 2em;
}

footer p {
    font-size: 22px;
    font-weight: bold;
}

footer ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: .5em;
}

footer ul li a {
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1c;
    text-decoration: none;
    border-bottom: 1px dashed #1c1c1c50;
}

footer ul li a:hover {
    color: #448BE2;
    border-color: #448BE250;
}

footer ul.categories-list {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 5px 20px;
}


.new-modal {
    color: #1c1c1c;
}

.new-modal--gallery .modal-body {
    padding: 0;
}

.new-modal--gallery .gallery {
    padding: 1rem;
}

.new-modal .modal-dialog:not(.modal-xl) {
    max-width: 400px;
}

.new-modal .modal-dialog.modal-lg {
    max-width: 420px;
}

.new-modal .modal-dialog.modal-fullscreen {
    max-width: none;
}

.new-modal .modal-header {
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
    display: block;
    padding: 0;
    z-index: 1;
}

.new-modal .modal-dialog.modal-fullscreen .modal-header {
    top: 12px;
    right: 2px;
    z-index: 5;
}

.new-modal .modal-header .btn-close {
    background: transparent url("../img/modal-close.svg") no-repeat 50%;
    outline: none;
    width: 12px;
    height: 12px;
    position: relative;
    display: block;
    margin: 0;
    padding: 1rem;
    box-shadow: none;
}

.new-modal .modal-content {
    border-radius: 24px;
}

.new-modal .modal-body {
    padding: 26px 16px;
}

.new-modal-title {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 25px;
}

.new-modal-title.new-modal-title--small {
    font-size: 16px;
}

.new-modal-title svg {
    margin-right: 5px;
}

.new-modal-message {
    font-size: 18px;
    line-height: 138%;
    font-weight: 500;
}

.alert {
    font-size: 16px;
    line-height: 138%;
    font-weight: 500;
    background-color: #FFF3D5;
    border-radius: 10px;
    padding: 14px 12px;
    border: 0;
    color: #704E1A;
    margin: 0 20px;
}

.teachers-container {
    max-width: 1110px;
    display: flex;
    margin: 0 auto;
    gap: 15px;
}

.teachers-container > div:last-of-type {
    width: 100%;
    padding-top: 10px;
}

.teachers-container h1 {
    font-size: 24px;
    color: #1C1C1C;
    font-weight: bold;
    line-height: normal;
}

.teachers-container h2 {
    font-size: 20px;
    font-weight: bold;
}

.teachers-side {
    min-width: 230px;
    max-width: 230px;
}

.teachers-side > div:first-of-type {
    max-height: calc(100vh - 142px);
    overflow: hidden auto;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

.hidden-header .teachers-side > div:first-of-type {
    max-height: calc(100vh - 73px);
}

.teachers-side > div > div {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin: 0;
}

.teachers-side > div > div:first-of-type {
    padding-left: 10px;
}

.teachers-side > div > div {
    padding-top: 10px;
}

.teachers-side > div > div:last-of-type {
    margin: 0;
}

.teachers-side > div > div > div {
    margin-bottom: 15px;
}

.teachers-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teachers-side ul li {
}

.teachers-side ul li > div {
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
    gap: .5rem
}

.teachers-side ul li > div a {
    color: #1C1C1C;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: baseline;
    padding: 6px 0;
    line-height: normal;
}

.teachers-side ul li > div i {
    font-size: 12px;
    width: auto;
}

.teachers-side ul li.active > div a,
.teachers-side ul li:hover > div a {
    color: #2E8CFF;
}

.teachers-side ul li div > span {
    color: #7D7C78;
    font-weight: 500;
    font-size: 13px;
    margin-left: auto;
    padding: 0 10px 0 0;
}

.teachers-side ul ul {
    margin: 0;
    padding: 0 0 8px 10px;
}

.teachers-side ul ul li {
    display: flex;
    align-items: center;
    border-radius: 10px;
}

.teachers-side ul ul li > div a {
    padding: 8px 10px 8px 10px;
    width: 100%;
}

.teachers-side ul ul li:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.teachers-side ul ul li.active {
    background-color: rgba(46, 140, 255, 0.08);
}

.teachers-side ul ul li:not(.active):hover > div a {
    color: #1c1c1c;
}

.teachers-side ul ul li > div a {
    font-size: 14px;
}

.teachers-side .circle {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 100%;
    border: 1px solid #1c1c1c;
}

.teachers-side ul li:last-of-type ul {
    border-bottom: 0;
    margin-bottom: 0;
}

.teacher {
    display: block;
    border-radius: 24px;
    padding: 20px;
}

.teacher:hover {
    background-color: #F6F6F6;
}

.teacher .document-item:last-of-type {
    margin: 0;
}

.teacher h2 {
    font-size: 22px;
    color: #1C1C1C;
    font-weight: 600;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 10px;
}

.teacher h4 {
    font-size: 18px;
    color: #1C1C1C;
}

.teacher-main {
    display: flex;
    gap: 20px;
    align-items: start;
    justify-content: start;
    margin: 0;
}

.teacher-bio {
    width: 100%;
}

.teacher-bio > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.teacher-bio .teacher-photo {
    display: none;
    position: relative;
}

.teacher-bio p {
    display: flex;
    gap: .5em;
    align-items: center;
    margin: 0 0 .25em;
}

.teacher-name {
    margin-bottom: 8px;
}

.teacher-name p span {
    font-size: 20px;
    line-height: 32px;
    color: #1c1c1c;
    font-weight: 600;
}

.teacher-name p span.certified:after {
    content: '';
    width: 20px;
    height: 20px;

    background-color: rgba(57, 187, 117, 0.1);
    border-radius: 5px;
    display: inline-block;
    background-image: url("../img/check-green.svg");
    background-repeat: no-repeat;
    background-position: 4px 50%;
    background-size: 18px;
    position: relative;
    top: 3px;
    margin-left: 2px;
}

.teacher-name p:last-of-type {
    font-size: 14px;
    line-height: 14px;
    color: #8C8C8C;
    font-weight: 500;
}

.teacher-price--container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-basis: content;
    flex-direction: column;
}

.filter-button,
.teacher-price--container button {

    border: 0;
    outline: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;

    margin: 0 auto;
    height: 37px;

    background: rgba(140, 140, 140, 0.08);
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    line-height: 15px;

    color: #1C1C1C;
    text-align: center;
    white-space: nowrap;
    width: 100%;

}

.teacher-price {
    white-space: nowrap;
    font-size: 18px;
    font-weight: bold;
    color: #111111;
    text-align: right;
}

.teacher-price span {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

.teacher-rating {
    display: flex;
    gap: .5rem;
}

.teacher-rating > div:first-of-type {
    position: relative;
}

.teacher-rating > div:first-of-type div {
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    position: absolute;
    overflow: hidden;
}

.teacher-rating > div:first-of-type div:first-of-type {
    width: 100%;
    position: relative;
}

.teacher-rating > div:first-of-type div svg {
    stroke: #FFB628;
    fill: #FFB628;
    width: 14px;
    min-width: 14px;
}

.teacher-rating > div:first-of-type div:first-of-type svg {
    stroke: #FFB628;
    fill: transparent;
}

.teacher-rating > div:last-of-type {
    color: #2E8CFF;
    font-size: 13px;
}

.teacher-rating > div.empty:last-of-type {
    color: #333;
}

.teacher-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 18px;
    width: 100%;
}

.teacher-subjects span {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAEFD4;
    border-radius: 4px;
    height: 25px;
    font-size: 13px;
    font-weight: 500;
    color: #755F3D;
    padding: 0 .5rem;
}

.teacher-modes {
    margin-bottom: 0;
    font-size: 13px;
    line-height: normal;
    color: #767676;
    font-weight: 500;
    width: 100%;
}

.teacher-modes p {
    margin-bottom: 10px;
}

.teacher-modes strong {
    color: #1c1c1c;
}

.teacher-photo {
    width: 160px;
    min-width: 160px;
    height: 160px;
    border-radius: 16px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50%;
    font-size: 52px;
    line-height: 160px;
    text-align: center;
    color: #448BE2;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    background-color: #fff;
}

.teacher-photo.teacher-photo--image {
    color: transparent;
    border: 0;
}

.teacher-contacts {
    display: flex;
    gap: 1em;
    margin: 1rem 0 0;
}

.teacher-contacts > div {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.teacher-contacts > div:first-of-type {
    min-width: 160px;
}

.teacher-contacts a {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teacher-contacts i {
    color: #3F51B5;
    font-size: 22px;
}

.teacher-text {
    margin: 0;
    text-align: justify;
    max-height: 92px;
    overflow: hidden;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
}

.teacher-text.visible {
    max-height: none;
}

.teacher-text :first-of-type {
    flex: 1 auto;
}

.teacher-text :last-of-type {
    display: flex;
    align-items: end;
}

.teacher h3 {
    font-size: 14px;
    font-weight: 500;
}

.teachers-sort {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 0 20px 10px;
}

.teachers-sort form > div {
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
}

.btn-collapse {
    text-align: center;
    border: 0;
    margin: 0;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;

    width: 14px;
    height: 14px;

    background: rgba(46, 140, 255, 0.08);
    border-radius: 4px;

    padding: 0;

}

.btn-collapse svg {
    width: 100%;
    stroke: #2E8CFF;
}

.btn-collapse.collapsed svg {
    transform: rotate(90deg);
}


.filter-select {
    visibility: hidden;
}

.filter-select ~ .select2-container--default {
    width: auto !important;
}

.filter-select ~ .select2-container--default .select2-selection--single {
    border: 0;
    background: transparent;
}

.filter-select ~ .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2E8CFF;
    font-weight: 500;
    font-size: 16px;
    text-transform: lowercase;
}

.filter-select ~ .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #2E8CFF transparent transparent transparent;
}

.filter-select ~ .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #2E8CFF transparent;
}

.filter-select ~ .select2-container--open + .select2-container--open {
    position: absolute;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
}

.filter-select ~ .select2-container--open .select2-dropdown--below {
    width: auto !important;
    left: auto;
    right: 0;
    border: 0;
    background: transparent;
}

.filter-select ~ .select2-container--default .select2-results > .select2-results__options {
    background: #fff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 1px 5px 2px rgba(0, 0, 0, .05);
    overflow: hidden;
    border: 0;
}

.filter-select ~ .select2-container--default .select2-results > .select2-results__options li {
    white-space: nowrap;
    padding: 10px 15px;
    color: #1C1C1C;
    font-size: 14px;
    font-weight: 500;
}

.filter-select ~ .select2-container--default .select2-results__option--selected,
.filter-select ~ .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: rgba(0, 0, 0, .025);
    color: #1C1C1C;
}

.filter-checkbox-list input {
    width: 1px;
    height: 1px;
    visibility: hidden;
    opacity: 0;
    display: none;
}

.filter-checkbox-list label {
    cursor: pointer;
    display: block;
}

.filter-checkbox-list span {
    color: #1c1c1c;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 12px;
}

.filter-checkbox-list label:hover span {
    background-color: #F7F7F7;
}

.filter-checkbox-list span:before {
    content: '';
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 18px;
    height: 18px;
    display: block;
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: 50%;
}

.filter-checkbox-list input:checked + span:before {
    border-color: #448BE2;
    background-color: #448BE2;
    background-image: url("../img/check.svg");
}

.justify-content-space-between {
    justify-content: space-between;
}

.teachers-title {
    position: relative;
    margin: 0 20px 30px;
    height: 122px;
    background-image: url("../img/teachers-header.svg");
    border-radius: 26px;
    background-repeat: repeat-x;
    background-position: 50%;
}

.teachers-title > div {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    padding: 0 40px;
    display: flex;
    height: 122px;
    align-items: center;
    gap: 40px;
}

.teachers-title > div h2 {
    color: #1c1c1c;
    font-size: 36px;
    font-weight: bold;
    margin: 0;
}

.teachers-title > div span {
    font-size: 16px;
    font-weight: 500;
}

.teachers-title svg {
    width: 100%;
}

.form-label {
    font-size: 16px;
    font-weight: 600;
    color: #1C1C1C;
    margin: 0 0 5px 10px;
}

.filter-prices {
    display: flex;
    margin: 0 10px;
    gap: 10px;
}

.form-submit {
    padding: 10px 0;
    position: sticky;
    top: calc(100vh - 73px);
    border-top: 1px solid #eee;
    margin-top: 5px;
    transition: top ease .3s;
}

.show-more {
    padding: 0 20px;
}

.overflow-hidden {
    overflow: hidden;
}

.teacher-rating--mobile {

    display: none;

    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2px;

    position: absolute;
    left: 50%;
    margin-left: -20px;
    top: 100%;
    margin-top: -10px;

    background: #FFFFFF;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 6px;

    z-index: 1;

    font-size: 11px;
    line-height: 11px;
    font-weight: bold;

    color: #1c1c1c;

    width: 40px;
    height: 20px;

}

.teacher-rating--mobile svg {
    fill: #FFB628;
    width: 16px;
}

.filter-checkbox-list {
    display: flex;
    flex-wrap: wrap;
}

.filter-checkbox-list.filter-checkbox-list--stages label:nth-child(2) {
    width: 100%;
}

.sort-container {
    position: relative;
}

.teacher-status {
    font-size: 13px;
    color: #1c1c1c;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.teacher-status:before {
    content: '';
    background-color: #FFB628;
    border-radius: 100%;
    width: 6px;
    height: 6px;
    display: inline-block;
}

.teacher.online .teacher-status:before {
    background-color: #39BB75;
}

.teachers-list {
    margin-bottom: 30px;
}

.teachers-side ul li.more-subjects {
    color: #2E8CFF;
    background: transparent;
    border-bottom: 1px dashed;
    display: inline-block;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
}

.teachers-side ul li.more-subjects:hover {
    color: #448BE2;
    background: transparent;
}

.teachers-side ul li.more-subjects.show {
    display: none;
}

.more-subjects:not(.show) ~ li {
    display: none !important;
}


.error-page {
    text-align: center;
    position: relative;
    display: flex;
    padding: 1rem;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.error-page span {
    color: #448BE2;
    font-size: 10rem;
    line-height: 10rem;
    font-family: "monospace";
}

.error-page h1 {
    margin: 0 0 1rem;
    font-size: 24px;
    font-weight: 500;
}

.error-page h2 {
    margin: 0 0 2rem;
    font-size: 16px;
    font-weight: 500;
}

.text-page {
    background: #fff;
    max-width: 1100px;
    margin: 20px auto;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
}

@keyframes zoom-mask {
    0% {
        mask-size: 100px;
    }
    100% {

        mask-size: 710px;
    }
}

@keyframes zoom-mask-mini {
    0% {
        mask-size: 100px;
    }
    100% {

        mask-size: 650px;
    }
}

@keyframes zoom-mask-mobile {
    0% {
        mask-size: 10%;
    }
    100% {
        mask-size: 100%;
    }
}

@keyframes move-background {
    0% {
        background-position-x: 10000%;
    }
    100% {
        background-position-x: 20%;
    }
}

@keyframes move-background-inverse {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 100%;
    }
}

@media (max-width: 1399px) {
    .teacher-promo-hint {
        right: 20px;
    }
}

@media (max-width: 1129px) {

    header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .teachers-promo-1 {
        mask-size: 650px;
    }

    html.loaded .teachers-promo-1 {
        animation: zoom-mask-mini 3s ease-in, move-background 2000s linear;
    }

    .teachers-promo-3 > div {
        gap: 20px;
    }

    .teachers-promo-4 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .teachers-promo-4 > div {
        grid-template-columns: 1fr 1fr;
        gap: 2em;
    }

    .teachers-promo-3,
    .teachers-promo-7,
    .teachers-promo-4,
    footer {
        margin-left: 20px;
        margin-right: 20px;
    }


}

@media (max-width: 1023px) {

    .teachers-side {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        background: #fff;
        z-index: 3;
        padding: 10px 0 70px;
        display: none;
        max-width: none;
        width: 100%;
        max-height: none;
        overflow: visible;
    }

    .teachers-side > div:not(.form-submit) {
        overflow: hidden auto;
        border-top: 1px solid #ddd;
        padding-top: 10px;
        background: #fff;
        z-index: 1;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 70px;
        max-height: none;
    }

    .teachers-side.visible {
        display: block;
    }

    .form-submit {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px;
        z-index: 1;
        display: flex;
        gap: 10px;
        top: auto !important;
    }

    .form-submit:before {
        content: '';;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 5px;
        width: 100%;
        background: linear-gradient(to bottom, transparent, #00000015);
    }

    .filter-prices {
        margin-right: 0;
    }

    .teachers-side > div > div {
        padding-top: 0;
        padding-bottom: 10px;
    }

    .teachers-side > div > div > div {
        margin-bottom: 10px;
    }

}

@media (max-width: 767px) {

    .teachers-promo-1 {
        mask-size: 100%;
        background-size: 170%;
        height: 200px;
        margin-left: 20px;
        margin-right: 20px;
    }

    html.loaded .teachers-promo-1 {
        animation: zoom-mask-mobile 3s ease-in, move-background 2000s linear;
    }

    .teachers-promo-2 {
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 5em;
    }

    .teachers-promo-2 h1 {
        font-size: 36px;
    }

    .teachers-promo-3 h2,
    .teachers-promo-4 h2,
    .teachers-promo-6 h2 {
        font-size: 32px;
    }

    .teachers-promo-2 p {
        font-size: 16px;
    }

    header {
        padding-top: 15px;
        padding-bottom: 5px;
    }

    header > div:last-of-type {
        display: none;
    }

    .teachers-promo-3 {
        margin-bottom: 5em;
    }

    .teachers-promo-3 > div > div {
        text-align: center;
    }

    .teachers-promo-4 {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        margin-bottom: 0;
    }

    .teachers-promo-4 > div > div {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
    }

    .teachers-promo-4 img,
    .teachers-promo-4 > div > div p:first-of-type,
    .teachers-promo-4 > div > div p:last-of-type {
        margin: 0;
    }

    .teachers-promo-4 > div > div p:last-of-type {
        max-width: 220px;
    }

    .teachers-promo-3 > div,
    .teachers-promo-4 > div,
    .teachers-promo-6 > div {
        grid-template-columns: 100%;
        gap: 3em;
    }

    .teachers-promo-6--container {
        padding: 5em 0;
    }

    .teachers-promo-7 {
        height: 400px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        margin-bottom: 5em;
    }

    .teachers-promo-7 h3 {
        font-size: 36px;
    }

    footer > div {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    footer ul {
        text-align: center;
    }

    footer ul.categories-list {
        display: none;
    }

    .teacher-promo-hint {
        left: 20px;
    }

    .teacher-promo-hint ul {
        grid-template-columns: auto auto;
        justify-content: center;
    }

    .teachers-sort {
        margin: 0 10px 10px;
    }

    .teacher {
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0px 5px 50px rgba(0, 0, 0, 0.05), 0px 4.68189px 13.1108px rgba(0, 0, 0, 0.0184), 0px 0.557351px 2.99px rgba(0, 0, 0, 0.0454);
        border-radius: 24px;
    }

    .teacher,
    .teacher:hover {
        background: #fff;
    }

    .teachers-list {
        padding: 0 10px;
        margin-bottom: 0;
    }

    .teacher-photo {
        display: none;
    }

    .teacher-bio .teacher-photo {
        display: block;
        width: 65px;
        height: 65px;
        min-width: 65px;
        line-height: 65px;
        margin-bottom: 10px;
        position: relative;
    }

    .teacher-bio .teacher-photo:before {
        content: '';
        position: absolute;
        right: -4px;
        top: -4px;
        width: 14px;
        height: 14px;
        background-color: #FFB628;
        border-radius: 100%;
        border: 2px solid #fff;
    }

    .teacher.online .teacher-bio .teacher-photo:before {
        background-color: #39BB75;
    }

    .teacher-bio {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }

    .teacher-bio > div {
        max-width: calc(100% - 80px);
    }

    .teacher-bio > div.teacher-price,
    .teacher-bio > div:last-child {
        max-width: none;
    }

    .teacher-price {
        text-align: left;
    }

    .teacher-bio p:last-of-type {
        margin: 0;
    }

    .teacher-main {
        flex-direction: column;
    }

    .teachers-title {
        margin: 0 10px 10px;
    }

    .teachers-sort form {
        width: 100%;
    }

    .teachers-sort form > div {
        flex-wrap: wrap;
        gap: 5px;
    }

    .filter-select ~ .select2-container--default .select2-selection--single .select2-selection__rendered {
        text-transform: none;
        padding-left: 0;
    }

    .teachers-title > div {
        padding: 0 20px;
        gap: 20px;
    }

    .teacher-modes p {
        flex-direction: column;
        align-items: start;
    }

    .show-more {
        padding: 0 10px;
    }

    .teachers-title > div h2 {
        font-size: 28px;
    }

    .alert {
        margin: 0;
    }

    .filter-select ~ .select2-container--open .select2-dropdown--below {
        left: 0;
        right: auto;
    }

    .teacher-name p span {
        line-height: normal;
    }

    .teacher-rating {
        display: none;
    }

    .teacher-rating--mobile {
        display: flex;
    }

    .teachers-sort form > div,
    .filter-select ~ .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 13px;
    }

    .teacher-status {
        display: none;
    }

    .teacher-price--container {
        flex-direction: row;
    }

}

@media (max-width: 479px) {
    .teacher-price--container {
        flex-direction: column;
        align-items: start;
    }
}