@media (max-width: 1200px) {
  header .container {
    height: 68px;
  }
  header .logo img {
    height: 40px;
  }
  .board .content {
    height: calc(100% - 70px);
  }
  .cabinet .cabinet-box1 {
    width: calc(50% - 10px);
  }
  .cabinet .cabinet-box1:nth-child(2n+1) {
    margin-left: 0;
  }
  .classroom-page .cabinet-box1,
  .clubs-list ul li {
    width: calc(33% - 13px);
  }
  .classboard .chatroom-box {
    width: 245px;
  }
  .classboard .video-box .video-tools span {
    width: 44px;
    height: 44px;
    padding: 8px;
  }
  .settings-page .cabinet-box1 {
    padding: 25px;
  }
  form.profile-info .row {
    flex-wrap: wrap;
  }
  form.profile-info .row .form-box:first-child,
  form.profile-info .form-box {
    width: 100%;
  }
  form.profile-info .photo .button {
    display: none;
  }
  form.profile-info .mobile-show {
    display: block;
  }
  .settings-page .google-2fa-code {
    justify-content: center;
    flex-wrap: wrap;
  }
  .settings-page .google-2fa-code > div:first-child {
    order: 1;
    text-align: center;
  }
}
@media (max-width: 1000px) {
  header .container {
    height: 64px;
  }
  .board header .container {
    height: 56px;
  }
  header .logo img {
    height: 38px;
  }
  .board .content {
    height: calc(100% - 57px);
  }
  .h2 {
    font-size: 28px;
  }
  .content {
    padding: 20px 15px;
  }
  nav ul {
    padding: 0 15px 0 0;
  }
  nav li a {
    border-radius: 14px;
    padding: 20px;
    width: 240px;
  }
  .clubs-list ul li .more {
    width: 35px;
    height: 35px;
    line-height: 39px;
  }
  .cabinet .button-cancel, .cabinet .button-reschedule, .button {
    padding: 14px;
  }
  .settings-page .cabinet-box1 {
    padding: 20px;
  }
  form.alerts-settings .form-box .sub-box {
    padding: 0;
  }
  form.alerts-settings .form-box label {
    font-size: 14px;
  }
  .cabinet .lesson-info.cabinet-box1 {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 19px;
    max-width: 580px;
  }
  .cabinet .lesson-info .icon-alert {
    width: 52px;
    height: 52px;
    line-height: 47px;
    padding: 0;
  }
  .cabinet .button-reschedule, .cabinet .button-cancel {
    height: auto;
    padding: 14px;
    line-height: normal;
  }
  .cabinet .button-reschedule {
    margin: 0;
  }
  .classboard .class-board .add-custom-element {
    position: fixed;
    float: none;
    bottom: 15px;
    line-height: 40px;
    height: 40px;
    padding: 0px 12px;
    font-size: 17px;
  }
}
@media (max-width: 900px) {
  nav li a svg {
    margin: 0;
  }
  nav li a span {
    display: none;
  }
  nav li a {
    width: auto;
  }
/*}
@media (max-width: 780px) {*/
  .h2, .h3 {
    font-family: Rubik;
    font-size: 26px;
  }
  header .balance {
    font-size: 17px;
    margin: 0 16px;
    line-height: 120%;
  }
  /*header .container {
    height: 64px;
  }*/
  .board header .container {
    display: none;
  }
  header .logo {
    width: 60px;
    overflow: hidden;
  }
  header .logo img {
    height: 42px;
  }
  nav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    border-radius: 16px 16px 0px 0px;
    background: #fff;
    border-top: 2px solid #56a32d;
    box-sizing: border-box;
    z-index: 11;
  }
  nav ul {
    display: flex;
    width: 100%;
    justify-content: space-around;
  }
  nav li a {
    padding: 16px;
  }
  footer {
    background: none;
  }
  footer .container {
    display: none;
  }
  .content {
    padding: 15px;
    margin: 20px 0;
  }
  .content-page {
    padding: 0;
  }
  #showCustomElements:checked + .left-elements-panel {
    width: 22%;
  }
  .registration .content, .login .content {
    margin: 30px auto;
  }
  .clubs-list > .title {
    font-size: 22px;
  }
  .classroom-page .cabinet-box1, .clubs-list ul li {
    width: calc(50% - 10px);
  }
  .classroom-page .cabinet-box1:nth-child(2n+1) {
    margin-left: 0;
  }
  .cabinet .cabinet-box1.statistics {
    width: 100%;
    order: 1;
    margin: 0;
  }
  .board nav ul {
    padding: 0;
  }
  .classboard .chatroom-box {
    /*display: none;*/
    width: 0;
    padding: 0;
    overflow: hidden;
  }
  .classboard .class-board .add-custom-element {
    bottom: 70px;
  }
  #topToolsPanel div {
    margin: 0 2px;
  }
  .board .content {
    height: calc(100% - 60px);
  }
  .board.share-screen .content {
    height: 100% !important;
  }
  .board .mobile-buttons {
    display: block;
  }
  .board .mobile-buttons button.active {
    background: #56A32B;
  }
  .board .mobile-buttons button.active svg {
    width: 18px;
    height: 18px;
    margin: -2px 0 0;
  }
  #zoomToolsPanel {
    right: calc(50% - 130px);
  }
  #zoomToolsPanel div {
    font-size: 22px;
  }
  #zoomToolsPanel div svg {
    width: 23px;
    height: 24px;
  }
  #messagesMobile {
    height: calc(100% - 71px);
    overflow-y: scroll;
  }
  #videoCallMobile,
  #chatMessagesMobile {
    display: block;
    position: absolute;
    right: -510px;
    max-width: 450px;
    width: 100%;
    top: 0;
    border-radius: 0 0 16px 16px;
    background: #fef9ee;
    padding: 14px 15px 0;
    transition: right .35s;
    height: calc(100% - 57px);
    z-index: 12;
  }
  #videoCallMobile.active,
  #chatMessagesMobile.active {
    right: 0;
    box-sizing: border-box;
  }
  #chatMessagesMobile .row {
    margin: 8px -15px 0;
  }
  .currentFrame .corner {
    width: 12px;
    height: 12px;
  }
  #leftTopCorner {
    left: -8px;
    top: -8px;
  }
  #rightTopCorner {
    right: -8px;
    top: -8px;
  }
  #leftBottomCorner {
    left: -8px;
    bottom: -8px;
  }
  #rightBottomCorner {
    right: -8px;
    bottom: -8px;
  }
}
@media (max-width: 600px) {
  .cabinet .cabinet.container {
    padding: 0;
  }
  .cabinet .button-reschedule, .cabinet .button-cancel {
    margin-top: 15px;
  }
  .cabinet .cabinet-box1 {
    padding: 12px;
    margin-bottom: 15px;
  }
  .settings-page .cabinet-box1 {
    width: 100%;
    margin: 0;
  }
  .settings-page .google-2fa-code img {
    max-width: 150px;
  }
  .settings-page .secure-auth-button {
    text-align: center;
  }
  #mainPopUp.club-info .modal-box {
    padding: 30px 20px 20px;
  }
  .board .mobile-buttons .sendMessage {
    right: 16px;
  }
  .board .mobile-buttons .showVideoBox {
    right: 68px;
  }
  .classboard .class-board .add-custom-element {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0 none;
    line-height: 44px;
    background: #F3CB42;
    color: #F3CB42;
    padding: 0;
    overflow: hidden;
  }
  .classboard .class-board .add-custom-element::after {
    content: "+";
    position: absolute;
    top: 0;
    color: #0D5242;
    font-family: Rubik;
    font-size: 31px;
    width: 100%;
    text-align: center;
  }
  .classboard .class-board .add-custom-element svg {
    display: none;
  }
  #showCustomElements:checked + .left-elements-panel {
    width: 30%;
    position: absolute;
  }
  #showCustomElements:checked + .left-elements-panel + label {
    background: #56A32B;
    color: #56A32B;
  }
  #showCustomElements:checked + .left-elements-panel + label:after {
    color: #fff;
    transform: rotate(45deg);
  }
  #mainPopUp.lesson-report {
    padding-top: 3%;
  }
  #mainPopUp.lesson-report .row {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    line-height: normal;
  }
  #mainPopUp.lesson-report .form-box {
    padding: 3px 0;
  }
  #mainPopUp.lesson-report .row > div {
    width: 100% !important;
    padding: 0 !important;
  }
}
@media (max-width: 480px) {
  .h2 {
    font-size: 23px;
  }
  header .lang {
    padding: 0;
  }
  #showCustomElements:checked + .left-elements-panel {
    width: 40%;
    position: absolute;
  }
  .cabinet .cabinet-box1 .title {
    font-size: 17px;
  }
  .clubs-list ul li {
    padding: 8px 3px 16px;
  }
  .clubs-list ul li .title {
    font-size: 16px;
  }
  #topToolsPanel {
    left: calc(50% - 168px);
  }  
  #topToolsPanel div {
    margin: 0 1px;
  }

  #zoomToolsPanel {
    right: calc(50% - 80px);
  }
  #zoomToolsPanel div {
    font-size: 18px;
    padding: 0 5px;
  }
  #zoomToolsPanel div svg {
    width: 20px;
    height: 21px;
  }
  #zoomToolsPanel .scaleSelect {
    padding: 0 1px;
  }

  .board .mobile-buttons .sendMessage {
    right: 14px;
  }
  .board .mobile-buttons button.active svg {
    margin: -1px 0 0;
    width: 16px;
    font-size: 34px;
  }

  #mainPopUp.board-upload .modal-box {
    padding: 20px;
    box-sizing: border-box;
  }
  .board-upload .popup-content .row {
    padding: 0;
    flex-wrap: wrap;
  }
  .board-upload .popup-content .row > div {
    width: 100%;
    height: 160px;
    margin: 22px 0 0;
    padding: 25px 0 0;
  }
  .board-upload .popup-content .row svg {
    vertical-align: middle;
    width: 70px;
    height: 70px;
  }
}
@media (max-width: 360px) {
  #topToolsPanel {
    left: calc(50% - 147px);
  }
  #topToolsPanel div {
    width: 40px;
    height: 40px;
    padding: 7px;
  }
  #topToolsPanel div svg {
    width: 24px;
    height: 24px;
  }
  .classboard .class-board .add-custom-element {
    width: 39px;
    height: 39px;
    line-height: 38px;
  }
  .board .mobile-buttons .showVideoBox,
  .board .mobile-buttons .sendMessage {
    width: 39px;
    height: 39px;
    line-height: 36px;
  }
  .board .mobile-buttons .showVideoBox {
    right: 58px;
  }
  .board .mobile-buttons .showVideoBox svg,
  .board .mobile-buttons .sendMessage svg {
    width: 21px;
    height: 21px;
  }
  .board .mobile-buttons .showVideoBox svg {
    margin-top: -1px;
  }
}
