@media screen and (max-width: 980px) {

    /* #region */
    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
        padding: 0px 0px 0px 0px;
    }


    br.d-br {
        display: none;
    }

    br.m-br {
        display: inline-block;
    }

    .m-hide {
        display: none !important;
    }

    .w-only {
        display: none !important;
    }

    .m-only {
        display: inline-block !important;
    }

    /* #endregion */
    /* #region */
    /* //////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////    MARGINS
    ///////////////////////////////////////////////////////////////*/
    .m-margin-top-0 {
        margin-top: 0px !important;
    }

    .m-margin-top-2 {
        margin-top: 2px !important;
    }

    .m-margin-top-4 {
        margin-top: 4px !important;
    }

    .m-margin-top-8 {
        margin-top: 8px !important;
    }

    .m-margin-top-16 {
        margin-top: 16px !important;
    }

    .m-margin-top-24 {
        margin-top: 24px !important;
    }

    .m-margin-top-32 {
        margin-top: 32px !important;
    }

    .m-margin-top-40 {
        margin-top: 40px !important;
    }

    .m-margin-top-48 {
        margin-top: 48px !important;
    }

    .m-margin-top-64 {
        margin-top: 64px !important;
    }

    .m-margin-top-80 {
        margin-top: 80px !important;
    }

    .m-margin-top-88 {
        margin-top: 88px !important;
    }

    .m-margin-top-96 {
        margin-top: 96px !important;
    }

    .m-margin-top-112 {
        margin-top: 112px !important;
    }

    .m-margin-top-124 {
        margin-top: 124px !important;
    }

    .m-margin-top-144 {
        margin-top: 144px !important;
    }

    .m-margin-top-188 {
        margin-top: 188px !important;
    }

    .m-margin-top-232 {
        margin-top: 232px !important;
    }

    .m-margin-top-320 {
        margin-top: 320px !important;
    }

    .m-margin-bottom-0 {
        margin-bottom: 0px !important;
    }

    .m-margin-bottom-2 {
        margin-bottom: 2px !important;
    }

    .m-margin-bottom-4 {
        margin-bottom: 4px !important;
    }

    .m-margin-bottom-8 {
        margin-bottom: 8px !important;
    }

    .m-margin-bottom-16 {
        margin-bottom: 16px !important;
    }

    .m-margin-bottom-24 {
        margin-bottom: 24px !important;
    }

    .m-margin-bottom-32 {
        margin-bottom: 32px !important;
    }

    .m-margin-bottom-40 {
        margin-bottom: 40px !important;
    }

    .m-margin-bottom-48 {
        margin-bottom: 48px !important;
    }

    .m-margin-bottom-64 {
        margin-bottom: 64px !important;
    }

    .m-margin-bottom-80 {
        margin-bottom: 80px !important;
    }

    .m-margin-bottom-96 {
        margin-bottom: 96px !important;
    }

    .m-margin-bottom-112 {
        margin-bottom: 112px !important;
    }

    .m-margin-bottom-124 {
        margin-bottom: 124px !important;
    }

    .m-margin-bottom-144 {
        margin-bottom: 144px !important;
    }

    .m-margin-left-16 {
        margin-left: 16px !important;
    }

    .padding-top-0 {
        padding-top: 16px !important;
    }


    /* //////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////// BUTTONS
    ///////////////////////////////////////////////////////////////////////*/
    .button {
        position: relative;
        display: inline-block;
        width: 100%;
        padding: 12px 32px 12px 32px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        text-align: center;
    }


    .button.halfwhite {
        background-color: #FFFFFF;
        color: #37352F !important;
        background-color: rgba(255, 255, 255, 0.32);
        max-width: 480px;
        padding-right: 0px;
        padding-left: 0px;
        text-decoration: none;
        margin-top: 24px;
        color: #FFFFFF !important;
    }


    /* //////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////// SIGNIN FORM
    ///////////////////////////////////////////////////////////////////////*/
    .layout-signin {
        display: block;
        height: auto;
        min-height: 100vh;
    }

    .layout-signin > div {
        display: block;
        padding: 32px 16px 32px 16px;
    }

    .layout-signin .content-box {
        max-width: 100%;
        width: 100%;
        padding: 24px 20px 28px 20px;
        margin: 0 auto;
    }

    .signin-logo {
        margin-bottom: 24px;
    }

    .signin-logo .m-logo {
        font-size: 28px !important;
        line-height: 32px !important;
    }

    /* Грид в колонку на мобильных */
    .layout-signin .content-box .grid.two {
        display: block !important;
    }

    .layout-signin .content-box .grid.two > *,
    .layout-signin .content-box .grid.two > label,
    .layout-signin .content-box .grid.two > div {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }

    .layout-signin .content-box .grid.two > label.input-box {
        margin-bottom: 0;
    }

    .layout-signin .content-box .grid.two .button {
        margin-bottom: 16px;
        text-align: center !important;
    }

    .layout-signin .content-box .grid.two .ta-right,
    .layout-signin .content-box .grid.two .m-ta-center {
        margin-top: 8px !important;
        text-align: center !important;
    }

    .layout-signin .content-box .grid.two .lnk {
        display: inline-block;
        padding: 8px 0;
    }

    /* Убираем gap для вертикального грида */
    .layout-signin .content-box .grid.gap-24 {
        grid-gap: 0 !important;
    }

    /* Кнопка регистрации */
    .layout-signin .button.halfwhite {
        width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
        max-width: none;
    }

    .signin-copy {
    margin-top: 24px;
    padding: 0 16px;
    }

  /* Тестовые задания на мобильных */
  .content-section .cr-container {
    padding: 14px 12px 14px 44px;
    margin-top: 8px;
    font-size: 16px;
    line-height: 22px;
  }

  .content-section .cr-container .radio {
    left: 12px;
  }


    /* //////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////// NAVIGATION
    ///////////////////////////////////////////////////////////////////////*/
    /* //////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////// GRID
    ///////////////////////////////////////////////////////////////////////*/
    /* START ******** CUSTOM GRID ******** */
    .m-responsive {
        width: 100%;
    }

    .m-fw {
        width: 100% !important;
    }

    .pl {
        padding-left: 0px;
    }

    .pr {
        padding-right: 0px;
    }

    .pl-large {
        padding-left: 0px;
    }

    .pr-large {
        padding-right: 0px;
    }

    .pl-normal {
        padding-left: 0px;
    }

    .pr-normal {
        padding-right: 0px;
    }

    .pl-small {
        padding-left: 0px;
    }

    .pr-small {
        padding-right: 0px;
    }


    .m-pl {
        padding-left: 16px;
    }

    .m-pr {
        padding-right: 16px !important;
    }

    .m-pl-normal {
        padding-left: 24px !important;
    }

    .m-pr-normal {
        padding-right: 24px;
    }

    .m-pl-large {
        padding-left: 32px !important;
    }

    .m-pr-large {
        padding-right: 32px !important;
    }

    .m-ta-left {
        text-align: left !important;
    }

    .m-ta-center {
        text-align: center !important
    }

    .m-ta-right {
        text-align: right !important;
    }

    .m-pl {
        padding-left: 30px;
    }

    .m-pr {
        padding-right: 30px;
    }

    .m-pl-normal {
        padding-left: 20px;
    }

    .m-pr-normal {
        padding-right: 20px;
    }

    .m-ml-none {
        margin-left: 0px;
    }

    .m-mr-none {
        margin-right: 0px;
    }


    .grid.two > div {
        position: relative;
        display: inline-block;
        width: 100%;
    }


    .grid-inline {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .grid-inline > div {
        position: relative;
        display: inline-block;
        width: 100%;
    }


    .m-grid-inline {
        width: auto;
    }

    .m-grid-inline > div {
        width: auto;
    }


    /* //////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////    CONTENT
    ///////////////////////////////////////////////////////////////*/
    .m-menu-icon {
        opacity: 1;
        pointer-events: auto;
    }

    .logo {
        font-size: 20px !important;
    }

    .m-logo {
        font-size: 32px !important;
    }

    .userbox > div:nth-child(2) {
        display: none;
    }

    .navigation {
        padding: 16px 4% 16px 4%;
    }

    .navigation-grid {
    }

    .navigation-grid > div:nth-child(3) {
        width: 40px;
        padding-right: 0px;
    }

    .navigation-grid > div:nth-child(2) {
        width: 48px;
        text-align: left;
    }

    .navigation-grid > div:nth-child(1) {
    }

    a.btn-logout {
        right: auto;
        left: 0px;
        margin-left: 0px;
    }


    .panel {
        position: fixed;
        width: 320px;
        height: calc(100vh - 72px);
        top: 72px;
        right: auto;
        left: -320px;
        bottom: 0px;
        border-left: 1px solid #DDDFE5;
        z-index: 10;
        background-color: #F6F6F9;
        opacity: 1;
        pointer-events: none;
        transition: .5s;
        box-shadow: 4px 0px 8px 0 rgba(0, 0, 0, 0);
    }

    .panel > div {
        position: absolute;
        display: inline-block;
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        overflow-y: scroll;
        padding: 24px 4% 124px 4%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }


    .panel.show {
        left: 0px;
        opacity: 1;
        pointer-events: auto;
        box-shadow: 4px 0px 8px 0 rgba(0, 0, 0, 0.08);
    }

    .floating-action.inline {
        margin-top: 56px;
    }


    .content {
        position: fixed;
        width: 100%;
        height: calc(100vh - 72px);
        left: 0px;
        top: 72px;
        bottom: 0px;
        z-index: 10;
    }

    .content > div {
        position: absolute;
        display: inline-block;
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        overflow-y: scroll;
        padding: 0px 0px 92px 0px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .content-section {
        position: relative;
        display: inline-block;
        width: 100%;
        overflow-x: auto;
        padding: 24px 4% 24px 4%;
        margin-top: 24px;
        margin-bottom: 24px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        border-radius: 16px;
        background-color: #FFFFFF;
    }


    .chat-grid {
        position: relative;
        display: inline-block;
        width: 100%;
        margin-top: 0px;
    }

    .chat-grid > div {
        position: relative;
        display: inline-block;
        vertical-align: bottom;
        width: 100%;
        padding-right: 0px;
        margin-top: 20px;
    }

    .chat-grid > div:nth-last-child(1) {
        padding-right: 0px;
    }


    .chat-left {
        position: relative;
        display: inline-block;
        width: 100%;
        margin-bottom: 48px;
    }

    .chat-left > div {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .chat-corner {
        right: auto;
        top: auto;
        left: 24px;
        bottom: -32px;
        width: 24px;
        height: 24px;
        background: url("../assets/ic_chat_corner.b2e98d424ae4.svg") center center no-repeat;
        background-size: 24px 24px;
        transform: rotate(180deg);
    }

    .chat-left > div:nth-child(1) {
        margin-bottom: 32px;
    }

    .chat-left > div:nth-child(2) {
        padding: 16px 16px 18px 16px;
        border-radius: 0px 16px 16px 16px;
    }


    .chat-right {
        position: relative;
        display: inline-block;
        width: 100%;
        margin-bottom: 48px;
    }

    .chat-right > div {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .chat-corner.right {
        right: 24px;
        top: -32px;
        left: auto;
        bottom: auto;
        width: 24px;
        height: 24px;
        background: url("../assets/ic_chat_corner.b2e98d424ae4.svg") center center no-repeat;
        background-size: 24px 24px;
        transform: rotate(0deg);
    }

    .chat-right > div:nth-child(1) {
        padding: 16px 16px 18px 16px;
        border-radius: 16px 16px 0px 16px;
    }

    .chat-right > div:nth-child(2) {
        margin-top: 32px;
        width: 100%;
        text-align: right;
    }


    .chat-person > div {
        position: relative;
        display: inline-block;
        width: 48px;
        height: 48px;
        border-radius: 48px;
        background: url("../assets/img_person01.38884513b190.jpg") center center no-repeat;
        background-size: 48px 48px;
    }

    .chat-person.second > div {
        background: url("../assets/img_person02.1f0a44cdf04e.jpg") center center no-repeat;
        background-size: 32px;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 1px solid var(--primary-grey);
    }


    .floating-action {
        position: fixed;
        display: inline-block;
        width: 262px;
        left: 50%;
        margin-left: -141px;
    }

    .floating-action.show {
        opacity: 1;
        pointer-events: auto;
        bottom: 32px;
    }

    .floating-action.lesson-loading {
        margin-left: 0px;
        font-size: 16px;
        line-height: 24px;
        padding: 13px 48px 15px 20px;
        transition: .6s;
        position: relative;
        display: inline-block;
        opacity: 1;
        pointer-events: none;
        bottom: auto;
        left: auto;
        width: auto;
    }

    .floating-action.lesson-loading > span {
        display: none;
    }

    .floating-action > div {
        right: 16px;
        top: 13px;
    }


    .ic-emptydata-complete {
        position: relative;
        display: inline-block;
        width: 240px;
        height: 172px;
        background: url("../assets/img_emptydata_complete.376c75f67403.svg") center center no-repeat;
        background-size: 240px 172px;
    }


    /* //////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////    POPUPS
    ///////////////////////////////////////////////////////////////*/
    .popup-container {
        width: 100%;
        min-height: 100%;
        background-color: rgba(36, 39, 59, 0.50);
        position: fixed;
        display: inline-block;
        top: 64px;
        bottom: 64px;
        z-index: 1000;

        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .popup-container .popup-content {
        margin: 16px 4% 48px 4%;
        width: 92%;
        left: 0;
        position: relative;
        display: inline-block;
    }

    .popup-container > div.popup-content > div.body {
        padding: 32px 6% 40px 6%;
        position: relative;
        display: inline-block;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .popup-container.ptb60 .popup-content > div.body {
        padding: 32px 6% 40px 6%;
    }

    .popup-container > div.popup-content > div.footer {
        width: 100%;
        padding: 32px 6% 32px 6%;
    }

    .popup-container.large .popup-content {
        width: 92%;
        left: 4%;
        margin-left: 0px;
    }

    .popup-container .popup-content.small {
        margin: 4% 4% 4% 4%;
        width: 92%;
    }

    .close-button {
        display: inline-block;
    }


    .fullscreen-page {
        position: relative;
        display: inline-block;
        width: 100%;
        height: auto;
        background-color: #FFFFFF;
    }

    .fullscreen-page > div {
        position: relative;
        display: table-cell;
        text-align: center;
        width: 100%;
        height: auto;
        vertical-align: middle;
    }

    .table-pay {
        position: relative;
        display: inline-block;
        width: 84%;
        padding-top: 112px;
        padding-bottom: 88px;
        text-align: center;
        margin: 0px 8% 0px 8%;
    }

    .table-pay > div {
        position: relative;
        display: inline-block;
        vertical-align: middle;
        width: 100%;
    }

    .table-pay > div:nth-child(2) {
        padding-left: 0px;
    }

    .table-pay-divider {
        border-right: 0px solid rgba(55, 53, 47, 0.08);
        padding-right: 0px;
        border-bottom: 2px solid rgba(55, 53, 47, 0.08);
        padding-bottom: 48px;
    }

    .box-pay {
        position: relative;
        display: inline-block;
        max-width: 100%;
        text-align: left;
    }


    .floating-action.lesson-pay {
        position: relative !important;
        display: inline-block;
        left: auto;
        width: auto;
        margin-left: 0px;
    }


    .grid-two {
        position: relative;
        display: inline-block;
    }

    .grid-two > div {
        position: relative;
        display: inline-block;
    }

    .grid-two > div:nth-child(1) {
        padding-right: 0px;
    }

    .grid-two > div:nth-child(2) {
        padding-left: 0px;
    }


    .promocode {
        font-size: 16px;
        line-height: 16px;
        word-wrap: break-word;
    }


    .m-tg {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    .telegram {
        position: relative;
        padding-left: 0px;
    }

    .telegram::before {
        content: '';
        position: absolute;
        display: inline-block;
        left: 0px;
        top: -3px;
        width: 48px;
        height: 48px;
        border-radius: 48px;
        background-size: cover;
    }


    .certificate-box {
        position: relative;
        display: inline-block;
        width: 100%;
        height: 220px;
        background: url("../assets/img_certificate.e5f6ecb9489b.jpg") center center no-repeat;
        background-size: cover;
        border-radius: 16px;
        padding: 16px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .you {
        padding-right: 12px;
    }

    .broker-grid {
        grid-template-columns: 1fr;
    }

    .rating-grid {
        flex-direction: column;
    }

    .rating-grid label {
        text-align: center;
    }

}


/* **************************************************************** */
/* iPad: */
/* **************************************************************** */


@media screen and (min-width: 900px) and (max-width: 1280px) {

    /* //////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////    CONTENT
    ///////////////////////////////////////////////////////////////*/


}


@media screen and (min-width: 800px) and (max-width: 1200px) {


}


/* **************************************************************** */
/* Small phone: */
/* **************************************************************** */


@media screen and (max-width: 340px) {


}


/* **************************************************************** */
/* Iphone5: */
/* **************************************************************** */

@media screen and (max-width: 360px) {


}


/* **************************************************************** */
/* Iphone6: */
/* **************************************************************** */

@media screen and (min-width: 375px) and (max-width: 400px) {


}


/* **************************************************************** */
/* Iphone6 Plus: */
/* **************************************************************** */

@media screen and (min-width: 414px) and (max-width: 560px) {


}


/* **************************************************************** */
/* Small Tablet: */
/* **************************************************************** */

@media screen and (min-width: 568px) and (max-width: 736px) {


}


/* **************************************************************** */
/* Tablet: */
/* **************************************************************** */

@media screen and (min-width: 768px) and (max-width: 980px) {


}

/* **************************************************************** */
/* iPad: */
/* **************************************************************** */

@media screen and (min-width: 980px) and (max-width: 1024px) {


}

/* **************************************************************** */
/* Small desktop height: */
/* **************************************************************** */

@media screen and (min-height: 600px) and (max-height: 740px) and (min-width: 980px) {


}

/* **************************************************************** */
/* Small desktop height: */
/* **************************************************************** */

@media screen and (min-height: 740px) and (max-height: 760px) and (min-width: 980px) {


}


/* **************************************************************** */
/* LockRotate: */
/* **************************************************************** */

@media screen and (min-width: 480px) and (max-width: 978px) {

    .layout {
        background-color: var(--primary-blue);
        position: fixed;
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
    }

    .layout > section {
        display: none;
    }

    .layout > div.navigation {
        display: none;
    }


    .rotate-hint {
        background-color: #FFFFFF;
        position: fixed;
        display: inline-block;
        text-align: center;
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        margin: 4% 4% 4% 4%;
        border-radius: 8px;
    }

    .rotate-hint > div {
        width: 360px;
        height: 184px;
        left: 50%;
        margin-left: -180px;
        top: 50%;
        margin-top: -92px;
        position: relative;
        display: block;
        text-align: center;
    }

    .rotate-hint > div > div:nth-child(1) {
        width: 112px;
        height: 112px;
        background: url("../assets/ic_rotate_mode.5964d0b51843.svg") top center no-repeat;
        position: relative;
        display: inline-block;
        background-size: contain;
    }

    .rotate-hint > div > div:nth-child(2) {
        line-height: 26px;
        font-size: 18px;
        color: #1F1E24;
        position: relative;
        display: inline-block;
        margin: 16px 0px 0px 0px;
        padding: 0px;
        vertical-align: top;
    }


}







