@media screen and (max-width: 1279px) {
  .main-section img {
    width: 100%;
  }

  .main-section h1 {
    height: 100px;
  }

  .landing-page .categories-wrapper .category {
    font-size: 24px;
    padding: 15px 20px;
  }

  .landing-page .categories-wrapper:nth-child(1) .category:nth-child(1) {
    display: inline;
    padding-left: 20px;
    background-position: calc(100% - 20px) calc(100% - 15px);
    background-size: auto 70%;
  }

  .landing-page .categories-wrapper:nth-child(1) .category:nth-child(2) {
    padding-top: 15px;
    padding-left: 20px;
    background-position: calc(100% - 20px) calc(100% - 15px);
    background-size: auto 50%;
  }

  .landing-page .categories-wrapper:nth-child(2) .category:nth-child(1) {
    background-size: auto 50%;
  }

  .landing-page .categories-wrapper:nth-child(2) .category:nth-child(2) {
    background-size: auto 60%;
  }

  .instructors .therapists-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-page .therapists-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* .landing-page .therapists-wrapper .therapist-card:nth-child(n + 4) {
        display: none;
    } */

  .instructors .therapist-card {
    width: unset;
    min-width: unset;
  }

  .instructor-profile .term-banner .title {
    font-size: 20px;
  }

  .blogs .blogs-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  nav .main-nav .profile-wrapper {
    padding-left: 24px;
  }

  nav ul {
    gap: 36px;
  }

  nav .items-wrapper > a img {
    height: 48px;
  }

  .auth-packages :is(.btn-prev, .btn-next) {
    top: -40px;
    -webkit-transform: unset;
    -ms-transform: unset;
    transform: unset;
  }

  .auth-packages .btn-prev {
    left: 0;
  }

  .auth-packages .btn-next {
    left: 40px;
  }

  .auth-packages .calendar .cal-header {
    margin-top: 40px;
    width: 100%;
  }

  .auth-packages .calendar .days .date {
    padding: 20px 10px 10px 10px;
    flex: 1;
  }
}

@media screen and (max-width: 991px) {
  .main-section h1 {
    height: 84px;
  }

  nav {
    padding: 25px;
    z-index: 1000;
  }

  nav .items-wrapper > a img {
    height: 40px;
    width: auto;
    z-index: 1001;
  }

  nav .main-nav .profile-wrapper {
    padding-left: 0;
    border-left: none;
  }

  nav .main-nav .profile-wrapper {
    gap: 15px;
  }

  nav .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 100001;
  }

  nav ul {
    gap: 25px;
  }

  nav .hamburger span {
    display: block;
    width: 20px;
    height: 1px;
    background-color: var(--font-colour);
    border-radius: 3px;
  }

  nav .profile-actions {
    z-index: 100001;
  }

  nav .mobile-navigation {
    background-color: #fff;
    position: absolute;
    top: -475px;
    left: -25px;
    width: calc(100% + 50px);
    height: 410px;
    display: block;
    z-index: 1000;
    box-shadow: 0 2px 4px 0 rgba(232, 232, 232, 0.5);
    border-bottom: 1px solid #e6e6e6;
    transition: all 400ms ease;
  }

  .body-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 999;
    transition: all 400ms ease;
  }

  .body-blur.active {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .login-header {
    z-index: 100002;
  }

  nav .mobile-navigation.expanded {
    top: -65px;
  }

  html.fixed,
  html.fixed body {
    overflow: hidden;
  }

  nav .mobile-navigation ul {
    position: absolute;
    top: 150px;
    width: 100%;
    flex-direction: column;
    font-family: var(--font-bold);
  }

  .subtitle-text {
    font-size: 18px;
  }

  .link.link-large {
    font-size: 18px;
  }

  .section {
    padding: 80px 0;
  }

  .landing-page .section,
  .page .section {
    padding: 80px 0;
  }

  .section.main-section {
    padding-top: 160px;
    padding-bottom: 100px;
  }

  .section.large-section {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .section.thin-bottom {
    padding-bottom: 60px;
  }

  .section.thin-top {
    padding-top: 60px;
  }

  .section.tight-bottom {
    padding-bottom: 30px;
  }

  .section.tight-top {
    padding-top: 30px;
  }

  .main-section img {
    margin-top: 50px;
    position: relative;
  }

  .categories .category {
    font-size: 12px;
  }

  .oval {
    margin-top: 0;
    margin-bottom: 50px;
    width: 60%;
  }

  .landing-page .therapists-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
    gap: 5px;
  }

  /* .landing-page .therapists-wrapper .therapist-card:nth-child(n + 3) {
        display: none;
    } */

  .bullet-points-wrapper {
    margin-top: 40px;
    gap: 5px;
  }

  .bullet-point {
    padding: 25px 20px;
  }

  .bullet-point .title {
    font-size: 20px;
    padding-left: 70px;
    margin-bottom: 30px;
    padding-top: 7px;
  }

  .bullet-point:before {
    top: 25px;
    transform: unset;
  }

  .videolibrary-wrapper {
    gap: 5px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    overflow-x: hidden; /* TODO: switch to auto */
    margin-top: 40px;
  }

  .video-card {
    min-width: 100%;
  }

  .coming-soon-title {
    font-size: 40px;
  }

  .coming-soon-text {
    font-size: 18px;
    top: 50%;
  }

  .masonry-wrapper {
    margin-top: 40px;
    gap: 5px;
  }

  .landing-page .categories-wrapper {
    gap: 5px;
  }

  .landing-page .categories-wrapper .category {
    font-size: 20px;
    padding: 15px 20px;
  }

  .landing-page .categories-wrapper:nth-child(1) .category:nth-child(1) {
    display: inline;
    padding-left: 20px;
    background-position: calc(100% - 20px) calc(100% - 15px);
    background-size: auto 60%;
  }

  .landing-page .categories-wrapper:nth-child(1) .category:nth-child(2) {
    padding-top: 15px;
    padding-left: 20px;
    background-position: calc(100% - 20px) calc(100% - 15px);
    background-size: auto 30%;
  }

  .landing-page .categories-wrapper:nth-child(2) .category:nth-child(1) {
    background-size: auto 40%;
  }

  .landing-page .categories-wrapper:nth-child(2) .category:nth-child(2) {
    background-size: auto 50%;
  }

  .landing-page .blogs-wrapper {
    margin-top: 40px;
    gap: 5px;
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .landing-page .blog-card {
    min-width: calc(50% - 2.5px);
    width: calc(50% - 2.5px);
  }

  .blog-card .data {
    padding: 0 12px 40px 12px;
  }

  .blog-card .data .title {
    font-size: 20px;
  }

  .features-wrapper {
    margin-top: 40px;
  }

  .features-wrapper.non-mobile {
    display: none;
  }

  .features-wrapper.mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .features-wrapper .comparison {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
  }

  .features-wrapper .comparison img {
    padding-left: 10px;
  }

  .faq-wrapper {
    margin-top: 40px;
  }

  .faq-header {
    font-size: 18px;
    padding: 20px 30px;
  }

  .faq-content {
    padding: 10px 30px;
    font-size: 16px;
  }

  footer {
    padding-top: 80px;
    padding-bottom: 160px;
  }

  .follow-container {
    margin-top: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  @property --start-gradient {
    syntax: "<color>";
    inherits: false;
    initial-value: #000;
  }

  @property --end-gradient {
    syntax: "<color>";
    inherits: false;
    initial-value: #0000;
  }

  .fade-scrollable {
    --start-gradient: #000;
    --end-gradient: #000;
    -webkit-mask-image: linear-gradient(
      to right,
      var(--start-gradient),
      black 5%,
      black 95%,
      var(--end-gradient)
    );
    mask-image: linear-gradient(
      to right,
      var(--start-gradient),
      black 5%,
      black 95%,
      var(--end-gradient)
    );
  }

  .fade-scrollable.start {
    --start-gradient: #000;
    --end-gradient: #0000;
    transition: --start-gradient 300ms, --end-gradient 300ms;
  }

  .fade-scrollable.end {
    --start-gradient: #0000;
    --end-gradient: #000;
    transition: --start-gradient 300ms, --end-gradient 300ms;
  }

  .fade-scrollable.middle {
    --start-gradient: #0000;
    --end-gradient: #0000;
    transition: --start-gradient 300ms, --end-gradient 300ms;
  }

  .filters-wrapper .title {
    font-size: 18px;
  }

  .filters-wrapper .filters {
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .auth-registration .filters-wrapper .filters {
    flex-wrap: wrap;
    overflow-x: initial;
  }

  .filters-wrapper .filters > div {
    font-size: 18px;
    text-wrap: nowrap;
  }

  .auth-registration .filters-wrapper .filters > div {
    font-size: 16px;
  }

  .filters-wrapper .filters > div.active {
    font-size: 18px;
  }

  .filters-wrapper
    .filters
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    font-size: 18px;
  }

  .auth-registration .filters-wrapper .filters > div.active {
    font-size: 16px;
  }

  .instructors-select2 .select2-results__option {
    font-size: 18px;
  }

  .instructors .therapists-wrapper {
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instructor-profile .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .instructor-profile .term-banner.mobile-banner {
    display: flex;
    margin: 20px 0;
  }

  .instructor-profile .term-banner.desktop-banner {
    display: none;
  }

  .instructor-profile .mobile-profile .data {
    display: block;
  }

  .instructor-profile .desktop-profile {
    display: none;
  }

  .instructor-profile .pricelist .tab-pane .difficulties-wrapper {
    gap: 5px;
  }

  .instructor-profile
    .pricelist
    .tab-pane
    .difficulties-wrapper
    .difficulty-card
    .subtitle {
    font-size: 14px;
  }

  .instructor-profile
    .pricelist
    .tab-pane
    .difficulties-wrapper
    .difficulty-card
    .rate {
    font-size: 14px;
  }

  .instructor-profile
    .pricelist
    .tab-pane
    .difficulties-wrapper
    .difficulty-card
    .price {
    font-size: 20px;
  }

  .instructor-profile .card {
    margin-bottom: 0;
  }

  .instructor-profile .term-banner {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .instructor-profile .term-banner .buttons {
    margin-left: 0;
  }

  .instructor-profile .term-banner .time-wrapper .time {
    padding: 15px 30px;
  }

  .auth-packages .types-wrapper {
    gap: 5px;
    flex-wrap: wrap;
  }

  .auth-packages .card {
    margin-bottom: 60px;
    display: none;
  }

  .m-col-reverse {
    flex-direction: column-reverse;
  }

  .blogs .slider-wrapper .slide-items > * .title {
    font-size: 20px;
  }

  .filters-wrapper {
    margin-top: 40px;
  }

  .blog .blog-body .share-links {
    flex-direction: row;
  }

  .blog .author {
    display: none;
  }

  .landing-page .therapy-info-img {
    display: none;
  }

  .for-instructors .therapists-info-wrapper .title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .for-instructors .therapists-info-img {
    display: none;
  }

  .for-instructors .join-us-img {
    bottom: -80px;
    width: 200px;
    height: auto;
  }

  .auth-registration .wizard .steps {
    display: none;
  }

  .profile.instructor.terms .terms-wrapper .term {
    width: 100%;
    flex-direction: column;
    align-items: unset;
    gap: 20px;
  }

  .profile.instructor.terms .terms-wrapper .term .instructor .name {
    font-size: 20px;
  }

  .profile.instructor.terms .terms-wrapper .term .therapy {
    margin-top: 0;
  }

  .btn-slider > button[data-format="week"] {
    display: none;
  }

  .calendar-wrapper .calendar-body .grid .grid-row.year-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .calendar-wrapper .calendar-body .grid .grid-row.year-grid .grid-cell .month {
    font-size: 18px;
  }

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

  .header-controls .page-control {
    flex: unset;
  }

  .header-controls .action-control {
    flex: unset;
  }

  .profile.availability .availability-wrapper {
    flex-direction: column;
  }

  .profile.availability .days-wrapper {
    width: 100%;
  }

  .profile.availability .term-generation-wrapper {
    gap: 20px;
    flex-direction: column;
    align-items: unset;
  }

  .profile.availability .days-wrapper .day-content .schedule {
    gap: 8px;
  }

  .profile.chat .chats {
    margin-bottom: 20px;
    margin-top: 10px;
    gap: 5px;
  }

  .profile.students .customers-wrapper {
    gap: 5px;
  }

  .profile.students .customers-wrapper .customer {
    flex-direction: column;
    gap: 20px;
    align-items: unset;
  }

  .profile.students .customers-wrapper .customer .user {
    width: 100%;
  }

  .profile.students .customers-wrapper .customer .user .name {
    font-size: 20px;
  }

  .profile.students .customers-wrapper .customer .buttons a:last-child {
    flex: 1;
  }

  .profile.students.folder .header-image {
    width: 200px;
  }

  .profile.students.folder .notes-wrapper {
    margin-top: 50px;
  }

  .profile.ratings .ratings-wrapper {
    margin-top: 50px;
  }

  .profile.ratings .rating-header .title {
    font-size: 20px;
  }

  .profile.instructor.tariffs .tariff {
    padding-top: 15px;
  }

  .profile.tariffs table {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .profile.tariffs table tr {
    display: flex;
    flex-direction: column;
  }

  .profile.instructor.tariffs .tariff :is(td, th) {
    text-align: right;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .profile.instructor.tariffs .tariff tr td:nth-child(1) {
    width: unset;
    text-align: right;
  }

  .profile.instructor.tariffs .tariff tr td:nth-child(2) {
    width: unset;
  }

  .profile:is(.payments, .payouts) .balance-wrapper {
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }

  .profile:is(.payments, .payouts) .balance-wrapper .balance-card.wide {
    width: calc((100% - 5px) / 2);
  }

  .profile:is(.payments, .payouts) .balance-wrapper .balance-card .amount {
    font-size: 20px;
  }

  .profile .row.padded {
    margin-top: 40px;
  }

  .profile.my-terms .terms-wrapper .term {
    flex-direction: column;
    gap: 20px;
    align-items: unset;
  }

  .profile.my-terms .terms-wrapper .term .instructor .name {
    font-size: 20px;
  }

  .profile.my-terms .terms-wrapper .term .buttons button:last-child {
    flex: 1;
  }

  .profile:is(.payments, .payouts) .balance-wrapper .balance-card {
    width: calc((100% - 5px) / 2);
  }

  .profile:is(.payments, .payouts) .balance-wrapper .balance-card .name {
    font-size: 20px;
  }

  .profile.payments .invoices-wrapper .invoice {
    flex-direction: column;
    gap: 20px;
  }

  .profile.payments .invoices-wrapper .invoice .instructor {
    width: 100%;
  }

  .profile.payments .invoices-wrapper .invoice .instructor .name {
    font-size: 20px;
  }

  .profile.payments .invoices-wrapper .invoice .payment-data {
    width: 100%;
  }

  .profile.payments .invoices-wrapper .invoice .buttons {
    display: flex;
  }

  .profile.payments .invoices-wrapper .invoice .buttons a {
    flex: 1;
  }

  .profile.payments
    .invoices-wrapper
    .invoice
    .payment-data
    :is(.date, .method, .status, .unused) {
    display: flex;
    justify-content: space-between;
  }

  .profile.payments
    .invoices-wrapper
    .invoice
    .payment-amount
    :is(.amount, .rate) {
    display: flex;
    justify-content: space-between;
  }

  .profile.payments .invoices-wrapper {
    gap: 5px;
  }

  .profile.my-terms .terms-wrapper {
    gap: 5px;
  }

  .btn.btn-large {
    font-size: 18px;
  }

  .auth-registration table {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .auth-registration table tr {
    display: flex;
    flex-direction: column;
  }

  .auth-registration table tbody tr:first-child td {
    width: unset;
    padding: 0;
  }

  .auth-registration table td {
    width: unset;
    padding: 0;
    height: 50px;
    display: flex;
    align-items: center;
  }

  .auth-registration table th {
    width: unset;
    background-color: transparent;
    padding: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
  }

  .auth-registration .tariffs input.tariff {
    width: 80px;
  }

  .auth-packages .calendar .days .date {
    padding: 20px 15px 10px 15px;
  }

  .card.floating {
    position: relative;
    top: unset;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 767px) {
  .main-section {
    text-align: center;
  }

  .landing-page .blogs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
  }

  .landing-page .blog-card {
    min-width: 90%;
    width: 90%;
  }

  .carousel {
    margin-bottom: 0;
  }

  .carousel-item {
    width: 100%;
  }

  .auth-packages .items-wrapper {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .auth-packages .calendar .cal-header {
    width: 100%;
  }

  .auth-packages .calendar .days {
    flex-direction: column;
    width: 100%;
  }

  .auth-packages .calendar .days .date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 10px;
  }

  .auth-packages .calendar .days .date .status {
    text-wrap: nowrap;
    font-size: 14px;
    margin-top: 0;
    margin-left: auto;
  }

  .auth-packages .calendar .days .date .day {
    font-variant-numeric: tabular-nums;
    margin-left: 5px;
  }

  .auth-packages .calendar .terms .week {
    width: 100%;
  }

  .auth-packages .locations-wrapper label.radio {
    width: 100%;
  }

  .auth-packages .calendar .terms .week .day .term {
    padding: 20px 25px 20px 25px;
  }

  .auth-packages .items-wrapper .item .discount-badge {
    top: 10px;
    -webkit-transform: unset;
    -ms-transform: unset;
    transform: unset;
  }

  :is(.auth-registration-data, .auth-registration, .profile.settings, .modal)
    .row
    :is(.col-md-8, .col-md-6, .col-md-4):first-child {
    padding-right: 15px;
  }

  :is(.auth-registration-data, .auth-registration, .profile.settings, .modal)
    .row
    :is(.col-md-8, .col-md-6, .col-md-4):last-child {
    padding-left: 15px;
  }

  :is(.auth-registration-data, .auth-registration, .profile.settings, .modal)
    .row
    .col-md-4:not(:first-child, :last-child) {
    padding-left: 15px;
    padding-right: 15px;
  }

  .blogs .blogs-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  .modal .modal-content {
    padding: 40px 20px 20px;
  }

  .modal-dialog {
    margin: 0.5rem;
  }

  .calendar-wrapper .calendar-body .grid .grid-row.year-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .calendar-wrapper .calendar-body .grid .grid-row.year-grid .grid-cell {
    height: unset;
  }

  .header-controls .page-control {
    justify-content: space-between;
  }

  .header-controls {
    flex-direction: column;
    gap: 5px;
  }

  .header-controls .view-control {
    display: flex;
    justify-content: space-between;
  }

  .header-controls .action-control {
    display: none;
  }

  .header-controls .action-control button {
    display: none;
  }

  .header-controls .view-control > button {
    display: block;
  }

  .profile.chat .chat-container .messages {
    padding: 0;
  }

  .profile:is(.payments, .payouts) .balance-wrapper {
    flex-direction: column;
  }

  .profile:is(.payments, .payouts) .balance-wrapper .balance-card.wide {
    width: 100%;
  }

  .profile:is(.payments, .payouts) .balance-wrapper .balance-card {
    width: 100%;
  }

  .therapist-card .data .categories {
    height: 64px;
  }

  .auth-registration [id^="attachments-"] .attachment-wrapper > img {
    display: none;
  }

  .auth-registration [id^="attachments-"] .horizontal img {
    display: block;
    width: 25%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    background-color: var(--tertiary-background-colour);
    border-radius: 3px;
  }

  .auth-registration [id^="attachments-"] li .title-wrapper {
    gap: 10px;
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 575px) {
  .instructors .therapists-wrapper {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .therapist-card .avatar:not(.mobile-avatar) {
    display: none;
  }

  .therapist-card .avatar.mobile-avatar {
    display: block;
    width: 90px;
    height: 90px;
  }

  .therapist-card .data {
    flex-direction: row;
    gap: 20px;
  }

  .therapist-card .data > div:last-child {
    flex: 1;
  }

  .therapist-card .data .categories {
    height: unset;
    margin-bottom: 20px;
  }

  .landing-page .therapists-wrapper {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .landing-page
    .therapists-wrapper
    .therapist-card:is(:nth-child(n + 3), :nth-child(n + 3)) {
    display: flex;
  }

  .profile.chat .input-container textarea {
    padding: 12px 75px 12px 30px;
  }

  .profile.chat .input-container button img {
    height: 50%;
  }

  .profile.students.folder .header-image {
    width: 120px;
    top: 20px;
  }

  .profile.students.folder .note-header > span:nth-child(1) {
    display: none;
  }

  .profile.students.folder .note-header {
    padding: 25px;
  }

  .profile.students.folder .note-content {
    padding: 0 25px 25px 25px;
  }

  .sm-hidden {
    display: none;
  }

  .profile.ratings .rating-header {
    padding: 25px;
  }

  .profile.ratings .rating-content {
    padding: 0 25px 25px 25px;
  }

  .profile.instructor.tariffs input {
    width: 80px;
  }

  .profile.instructor.payouts .request {
    align-items: start;
    flex-direction: column-reverse;
    gap: 10px;
  }

  #ChatPopup {
    width: calc(100% - 30px);
    right: 15px;
  }

  #ChatPopup .header .title {
    font-size: 18px;
  }

  #CookiesPopup {
    bottom: 15px;
    left: 15px;
    width: calc(100% - 30px);
  }

  #CookiesPopup .header {
    font-size: 18px;
  }

  .otp-container {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }

  .otp-container input {
    flex: 1;
    width: unset;
    max-width: calc((100% - (6 * 5px)) / 6);
    font-size: 100%;
  }

  .btn.w-100 {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 383px) {
  .main-section h1 {
    height: 120px;
  }
}
