/* Redesign Theme Styles - Адаптивные стили для темы .redesign */
/* Основные цвета */
:root {
    --primary-bg: #4F5277;
    --primary-text: #FFFFFF;
    --accent-color: #FEBE98;
    --link-color: #1B65C0;
    --link-hover: #FEBE98;
    --button-primary: #1B65C0;
    --button-warn: #D54747;
    --error-color: #FEBE98;
    --success-color: #219653;
    --border-color: #C4C4C4;
    --sidebar-bg: #F7F7F7;
    --footer-bg: #4F5277;
    --footer-text: #FFFFFF;
    --logo-orange: #FFB23E;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
    color: rgba(52, 52, 52, 0.87);
}

.redesign {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
}


/* Заголовки */
.redesign h1,
.redesign h2,
.redesign h3,
.redesign h4,
.redesign h5 {
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #000000;
    font-size: 20px;
}

.redesign h5 {
    font-size: 17px;
}

/* Ссылки */
.redesign a,
.redesign .btn-link {
    cursor: pointer;
    font-style: normal;
    font-weight: normal;
    line-height: 26px;
    font-size: 16px;
    text-decoration-line: none;
    color: var(--link-color);
}

.header-menu__item-redesign:first-child {
    border-left: 1px solid #fff;
}

.header-menu__item-redesign {
    color: #fff !important;
    border-right: 1px solid #fff;
    padding: 0px 10px;
    display: inline-block;
}

.redesign a:hover,
.redesign a:hover * {
    color: var(--link-hover);
}

.redesign .btn-link-red {
    color: var(--accent-color);
}

/* Кнопки */
.redesign .btn {
    margin: 5px 0;
    border: none;
    outline: none;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
    color: rgba(52, 52, 52, 0.87);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    width: 139px;
    height: 32px;
    cursor: pointer;
    background: #F4F4F4;
}

.redesign .btn-primary {
    color: #FFFFFF;
    background: var(--button-primary);
}

.redesign .btn-warn {
    color: #FFFFFF;
    background: var(--button-warn);
}

/* Хедер */
.redesign .header-container-redesign {
    display: flex;
    background: var(--primary-bg);
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.redesign .header-container-redesign .logo {
    display: flex;
    align-items: center;
    height: 50px;
    justify-content: start;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.redesign .header-container-redesign .header-outer {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: row;
    justify-content: end;
    margin: 5px 0;
}

.redesign .header-container-redesign .header-outer .header {
    width: 100%;
    display: flex;
    float: right;
    flex-direction: column;
}

.redesign .logo-img {
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: 0;
    background-image: url(../img/logo.png);
}

.redesign .logo__text {
    margin-left: 14px;
    padding: 0;
    font-size: 18px;
    color: var(--primary-text);
}

.redesign .logo__orange {
    color: var(--logo-orange);
}

.redesign .header__main {
    padding: 0;
    height: 27px;
    display: flex;
    overflow: hidden;
    color: var(--primary-text);
    font-size: 16px;
    align-items: center;
}

.redesign .ext-link-container {
    width: 100%;
    height: 26px;
    display: flex;
    flex-direction: row;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    justify-content: center;
    background: var(--primary-bg);
}

.redesign .ext-link-outer {
    display: flex;
    width: 100%;
    max-width: 720px;
    flex-direction: row;
    justify-content: end;
}

.redesign .external-link {
    display: flex;
    margin-top: 0;
    width: 100%;
    max-width: 720px;
    color: #F58522;
    font-size: 16px;
    align-items: center;
}

.redesign .external-link a {
    color: #F58522;
    text-decoration: none;
}

.redesign .external-link:hover,
.redesign .external-link:hover a {
    color: #FFFFFF;
}

/* Контент */
.redesign .wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 15px auto;
    width: 100%;
    max-width: 1024px;
    padding: 0 10px;
}

.redesign .content-main {
    min-height: unset;
    width: 100%;
    max-width: 720px;
    float: none;
    display: flex;
    flex-direction: column;
}

.redesign .left-sidebar {
    width: 260px;
    float: left;
    height: 395px;
    padding: 10px 0;
    background: var(--sidebar-bg);
    box-shadow: 6px 6px 0px #E1E1E1;
    position: relative;
    margin-right: 20px;
}

.redesign .nav-link {
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 20px;
    padding: 10px 10px 12px 20px;
    display: block;
    width: 100%;
    color: #000000;
}

.redesign .nav-link.active {
    color: var(--link-color);
    border-left: 5px solid var(--link-color);
    padding-left: 15px;
}

/* Футер */
.redesign footer {
    background-color: var(--footer-bg);
    border-top: 1px solid #B3C0D2;
    clear: both;
    width: 100%;
}

.redesign .footer__main {
    display: flex;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto;
    padding: 20px 0;
    justify-content: space-between;
}

.redesign .footer__main-col1,
.redesign .footer__main-col2,
.redesign .footer__main-col3 {
    float: none;
    flex: 1;
    margin: 0 10px;
}

.redesign .footer__col-heading {
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    font-size: 14px;
    letter-spacing: 0.15px;
    margin: 16px 0 0;
    color: var(--footer-text);
}

.redesign .footer__main p,
.redesign .footer__main a {
    color: var(--footer-text);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    font-size: 14px;
    letter-spacing: 0.15px;
    margin-top: 8px;
}

.redesign .footer__main a {
    text-decoration: underline;
}

.redesign .logo-footer {
    font-size: 20px;
    color: var(--footer-text);
}

.redesign .logo-footer .logo__orange {
    color: #F58522;
}

.redesign .copyright {
    color: var(--footer-text);
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 7px 10px;
    font-size: 12px;
}

/* Формы */
.redesign input,
.redesign select,
.redesign .select,
.redesign textarea {
    padding-left: 10px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    border-radius: 4px;
    font-style: normal;
    font-weight: normal;
    line-height: 20px;
    font-size: 14px;
    color: #000000;
}


.redesign textarea {
    background: rgba(0, 0, 0, 0.02);
    padding: 5px;
}

/* Таблицы */
.redesign table tr td:first-child {
    border-left: 1px solid var(--border-color);
}

.redesign table tr td:last-child {
    border-right: 1px solid var(--border-color);
}

.redesign table tr:first-child td {
    border-top: 1px solid var(--border-color);
    padding: 0 10px;
}

.redesign table tr td {
    height: 40px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    padding: 0 10px;
}

.redesign table tr th:first-child{
    border-left: 1px solid var(--border-color);
}
.redesign table tr th:last-child{
    border-right: 1px solid var(--border-color);
}
.redesign table tr th {
    height: 60px;
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
    padding: 0 10px;
}

.redesign .table {
    width: 100%;
}

.redesign table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

.checkbox .check {
    float: left;
    margin-right: 16px;
    width: 20px;
    height: 20px;
}

.checkbox .label,
.radio .label {
    height: 32px;
    font-style: normal;
    font-weight: normal;
    line-height: 23px;
    font-size: 16px;
}

/* Чекбоксы и радиокнопки */
.redesign .checkbox .check {
    background: url(../img/checkbox.png);
}

.checkbox input:checked~.check {
    background: url(../img/checkbox-checked.png);
}

.checkbox input:checked~.label {
    color: var(--link-color);
}

` .checkbox-red input:checked~.label {
    color: var(--accent-color);
}


.redesign .radio .check {
    background: url(../img/radiobutton.png);
}

.redesign .radio input:checked~.check {
    background: url(../img/radiobutton-checked.png);
}

/* Иконки */
.redesign .fa-trash-alt {
    color: var(--accent-color);
}

.redesign .fa-edit,
.redesign .fa-sign-in-alt {
    color: var(--link-color);
}

.redesign .errors-heading {
    color: var(--accent-color);
}

/* Медиа-запросы для адаптивности */

/* Большие экраны (1200px и выше) */
@media all and (min-width: 1200px) {
    .redesign .wrapper {
        max-width: 1024px;
    }

    .redesign .content-main {
        max-width: 720px;
    }

    .redesign .left-sidebar {
        display: block;
    }
}

/* Планшеты горизонтальные (992px - 1199px) */
@media all and (min-width: 992px) and (max-width: 1199px) {
    .redesign .wrapper {
        max-width: 984px;
        padding: 0 15px;
    }

    .redesign .content-main {
        max-width: 680px;
    }

    .redesign .left-sidebar {
        width: 240px;
    }
}

/* Планшеты вертикальные (768px - 991px) */
@media all and (max-width: 991px) {
    .redesign .wrapper {
        flex-direction: column;
        align-items: center;
    }

    .redesign .left-sidebar {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
        height: auto;
    }

    .redesign .content-main {
        max-width: 100%;
        float: none;
    }

    .redesign .footer__main {
        flex-wrap: wrap;
    }

    .redesign .footer__main-col1,
    .redesign .footer__main-col2,
    .redesign .footer__main-col3 {
        flex: 100%;
        margin-bottom: 20px;
    }
}

/* Мобильные (575px - 767px) */
@media all and (max-width: 767px) {
    .redesign .header-container-redesign .logo {
        height: 40px;
    }

    .redesign .logo-img {
        width: 36px;
        height: 36px;
    }

    .redesign .logo__text {
        font-size: 20px;
    }

    .redesign .header__main {
        font-size: 14px;
        height: auto;
        padding: 5px 0;
    }

    .redesign .ext-link-container {
        height: auto;
        padding: 5px 0;
    }

    .redesign .external-link {
        font-size: 14px;
    }

    .redesign .btn {
        width: 120px;
        height: 30px;
        font-size: 13px;
    }

    .redesign input,
    .redesign select,
    .redesign .select {
        width: 150px;
    }
}

/* Маленькие мобильные (до 575px) */
@media all and (max-width: 575px) {
    .redesign .wrapper {
        padding: 0 5px;
    }

    .redesign .left-sidebar {
        display: none;
    }

    .redesign .left-sidebar.shown {
        display: block;
        width: 100%;
        box-shadow: 0px 6px 0px #E1E1E1;
    }

    .redesign .sidebar-toggler {
        display: block;
        height: 30px;
        text-align: center;
        padding-top: 5px;
        background: #F7F7F7;
        cursor: pointer;
    }

    .redesign .footer__main {
        flex-direction: column;
    }

    .redesign .footer__main-col1,
    .redesign .footer__main-col2,
    .redesign .footer__main-col3 {
        margin-bottom: 15px;
    }

    .redesign .logo-footer {
        font-size: 18px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media all and (max-width: 360px) {
    .redesign .header__main {
        display: none;
    }

    .redesign .logo__text {
        font-size: 18px;
    }

    .redesign .external-link {
        font-size: 12px;
    }

    .redesign .btn {
        width: 100px;
        height: 28px;
        font-size: 12px;
    }

    .redesign .copyright {
        font-size: 10px;
    }
}

.row {
    font-size: 16px;
    margin: 5px 0 10px;
}

.fb,
.vk,
.max,
.telegram,
.ok {
    display: block;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin: auto;
}

.fb {
    background: url("../img/fb.png");
}

.vk {
    background: url("../img/vk.png");
}

.max {
    background: url("../img/max.png");
}

.telegram {
    background: url("../img/telegram.png");
}

.fb-colored {
    background: url("../img/fbc.png");
}

.vk-colored {
    background: url("../img/vkc.png");
}

.telegram-colored {
    background: url("../img/telegramc.png");
}

.socials {
    display: flex;
}

.social {
    margin: 10px 10px 0 0;
}

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

.tickets li {
    list-style: none;
}

.question {
    border: 1px solid #C4C4C4;
    box-sizing: border-box;
    padding: 10px 20px 20px;
    position: relative;
    margin-bottom: 24px;
}

.question__number {
    width: 146px;
    height: 30px;
    font-style: normal;
    font-weight: normal;
    line-height: 17px;
    font-size: 12px;
    color: #1B65C0;

}

.question.has-errors {
    background: #FFEEEE;
    border: 1px solid #E5C2C2;
}

.question.no-errors {
    background: #EEFFF5;
    border: 1px solid #ABD6BD;
}

.question__remove {
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 5px;
}

.question__answers-list-item {
    position: relative;
    width: 100%;
}

.question__answers-list-item:hover>.question__answers-list-item__remove {
    display: block;
}

.question__answers-list-item__remove {
    color: #C4C4C4;
    position: absolute;
    left: 55px;
    top: 5px;
    cursor: pointer;
}

.question__additional-answer input {
    display: inline-block;
    width: 572px;
}

.question__additional-answer .btn {
    display: inline-block;
    width: 136px;
    margin: 0;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
}

.question .question__text {
    font-style: normal;
    font-weight: bold;
    line-height: 23px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.87);
}

form small {
    font-style: italic;
    font-weight: normal;
    line-height: 17px;
    font-size: 12px;
    color: rgba(52, 52, 52, 0.87);
}

label {
    font-style: normal;
    font-weight: normal;
    line-height: 17px;
    font-size: 12px;
    color: rgba(52, 52, 52, 0.87);
    margin: 5px 0px;
}

.checkbox input,
.radio input {
    display: none;
}

input,
select,
.select {
    width: 170px;
    height: 32px;
}

.question__answers-list-item {
    position: relative;
    width: 100%;
}

.question.has-errors {
    background: #FFEEEE;
    border: 1px solid #E5C2C2;
}

.checkbox-green-checked input:checked~.label,
.checkbox-green-checked .label {
    color: #219653;
}

.checkbox .check {
    float: left;
    margin-right: 16px;
    width: 20px;
    height: 20px;
    background: url(../img/checkbox.png);
}

.checkbox input:checked~.check {
    width: 20px;
    height: 20px;
    background: url(../img/checkbox-checked.png);
}

.checkbox input:checked~.label,
.radio input:checked~.label {
    color: #1B65C0;
}

.checkbox-green input:checked~.check,
.checkbox-green-checked input:checked~.check {
    background: url(../img/checkbox-checked-green.png);
}

.checkbox-green input:checked~.label {
    color: #219653;
}

.checkbox-green-checked input:checked~.label,
.checkbox-green-checked .label {
    color: #219653;
}

.checkbox-red input:checked~.check {
    background: url(../img/checkbox-checked-red.png);
}

.checkbox-red input:checked~.label {
    color: #EB5757;
}

.form-control-inline,
.form-field-inline {
    display: inline-block;
}

.form-field-framed {
    background: rgba(0, 0, 0, 0.03);
    /* Border color */
    border: 1px solid #C4C4C4;
    box-sizing: border-box;
    border-radius: 4px;
}

.form-field-inline {
    padding: 0 12px 0 0;
    margin-bottom: 8px;
    vertical-align: top;
}

.form-field-inline .btn {
    margin: 27px 0 0;
}

.form-field-inline input {
    width: 100%;
}

input.is-invalid {
    background: rgba(255, 0, 0, 0.4);
    border-color: red;
}

form small {
    font-style: italic;
    font-weight: normal;
    line-height: 17px;
    font-size: 12px;
    color: rgba(52, 52, 52, 0.87);
}

.answer-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.new-course-form,
.edit-section-form,
.new-question-form,
.form-frame {
    padding: 19px 17px 22px 20px;
    border: 1px solid #C4C4C4;
}

.new-course-form.fancybox-content {
    width: 762px;
}

.new-question-form__answer-textarea {
    width: 520px;
    display: block;
    float: left
}

.new-question-form__checkbox {
    float: right;

}

.new-question-form__textarea {
    width: 100%;
}

.new-course-form__heading,
.edit-section-form__heading,
.docs-form__heading {
    font-style: normal;
    font-weight: 500;
    line-height: 27px;
    font-size: 18px;
    color: #000000;
}

.add-img {
    float: left;
    margin: 10px 5px 0;
    width: 28px;
    height: 24px;
    background: url(../img/add-photo.png);
}

.file-input-wrapper {
    position: relative;
    padding: 25px 0px 29px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-input-wrapper * {
    margin: 0 auto;
    text-align: center;

}

.file-input-wrapper input[type='file'] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.file-input-wrapper small.info {
    display: block;
    margin-top: 10px;
}

.file-input-wrapper small.load,
.file-input-wrapper .loader {
    display: none;
}

.file-input-wrapper.loading .btn,
.file-input-wrapper.loading small.info {
    display: none;
}

@-webkit-keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(359deg);
    }
}

.loader {
    width: 30px;
    height: 30px;
    background: url(../img/loader.png);
    display: block;
    -webkit-animation: rotation 2s infinite linear;

}

.file-input-wrapper.loading .loader,
.file-input-wrapper.loading small.load {
    display: block;
}

/*pagination*/
.page-item {
    list-style: none;
    border-top: 1px solid #C4C4C4;
    border-right: 1px solid #C4C4C4;
    border-bottom: 1px solid #C4C4C4;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    display: block;
    float: left
}

.pagination .page-item:first-child {
    border-left: 1px solid #C4C4C4;
}

.page-link {
    width: 100%;
    height: 100%;
    display: block;
    font-style: normal;
    font-weight: 500;
    line-height: 27px;
    font-size: 18px;
    text-align: center;
    color: #828282;
    padding-top: 8px;
    text-decoration: none;
    vertical-align: middle;
}

.tickets .list {
    width: 232px;
    float: left;
    margin-right: 11px;
}

.tickets .list:last-child {
    margin-right: 0;
}

.tickets .list.double-col {
    width: 354px;
}

.tickets .list .list__item {
    height: auto;
    padding: 7px 35px;
}

.list .list__item:first-child {
    border-top: 1px solid #C4C4C4;
}

.list__item {
    padding-top: 18px;
    list-style-type: none;
    height: 60px;
    border-left: 1px solid #C4C4C4;
    border-right: 1px solid #C4C4C4;
    border-bottom: 1px solid #C4C4C4;
    /*padding-left: 58px;*/
    text-align: center;
}

.row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}


.redesign .question__text, .checkbox, .redesign p{
    margin-bottom: 10px;
}