/* ==========  Desktop First Method  ========== */

/* Large Devices, Wide Screens */

@media only screen and (max-width : 1200px) {
  /* Главная страница начало */

  .vk {
    text-align: center;
  }

  .vk img {
    margin-top: 10px;
  }

  .created {
    margin-top: 20px;
  }

  /* Главная страница конец */

  .subjects_wrap .sub {
    width: 200px;
    height: 150px;
  }
}

/* Medium Devices, Desktops */

@media only screen and (max-width : 992px) {
  /* Главная страница начало */

  .main {
    margin-left: 25px;
  }

  .main_wrap .main a {
    margin-right: 4px;
  }

  .invk {
    display: none;
  }

  .created {
    margin-top: 30px;
  }

  .subjects {
    margin-top: 20px;
  }

  /* Главная страница конец */

  /* Страница курсов начало */

  .args_bot {
    margin-top: 15px;
  }

  /* Страница курсов конец */

  /* Страница выбора теста work начало */

  .test_img_wrap img {
    width: 100%;
    height: auto;
  }

  .job_img_warp_c img {
    width: auto !important;
  }

  .help img {
    width: auto !important;
  }

  .subject_cover_wrap {
    max-width: 70%;
  }

  /* Страница выбор тестка work конец */

  /* Страница прохождения теста job начало */

  #toTop {
    left: 10px;
  }

  #toTop.active {
    bottom: 10px;
  }

  .question {
    padding: 10px 30px;
  }

  .row.varis .col-md-6:nth-child(2) {
    margin-top: 15px;
  }

  /* Страница прохождения теста job конец */

  .logo_wrap img {
    margin-bottom: 10px;
    max-width: 230px;
  }

  .menu_for_tablet a {
    margin-right: 10px;
  }

  .menu_for_tablet {
    display: block;
  }

  .menu_for_pc {
    display: none;
  }

  .subjects_wrap .sub {
    width: 180px;
    height: 140px;
  }
}

/* Small Devices, Tablets */

@media only screen and (max-width : 768px) {
  .subject_decision .choice_de ul {
    padding: 0px;
  }

  .vk img {
    display: none;
  }

  .stud_question_img {
    display: none;
  }

  .univer {
    margin: 20px;
  }

  footer .univer img {
    margin: 0;
  }

  .paket_descr {
    font-size: 0.8em;
    line-height: 1.13;
  }

  .choice_de ul.sublines_list_wrap li {
    margin: 0 0 0 15px;
  }

  .elem_wrap {
    min-height: 190px;
  }

  .subjects_wrap_for_pc {
    display: none;
  }

  .subjects_wrap_for_mobile {
    display: block;
  }

  .container.kurs_wrap.mtb a:nth-child(2) {
    display: inline-block;
    margin-top: 36px;
  }

  #basket_mini_page {
    right: 40px;
  }

  .progr_wrap_l {
    margin: 20px;
  }
}

/* Extra Small Devices, Phones */

@media only screen and (max-width : 480px) {
  /* Главная страница начало */

  .menu_for_mobile {
    display: block;
  }

  .menu_for_tablet {
    display: none;
  }

  .only-mob {
    display: block;
    margin-top: 10px;
  }

  .logo_wrap img {
    max-width: 150px;
  }

  .menumob_wrap {
    margin-top: 25px;
    border: 1px solid #000;
    border-radius: 10px;
    text-align: center;
  }

  .main_wrap .main {
    width: 120px;
    margin-top: 25px;
    margin-left: 30px;
  }

  .main_mob_wrap {
    display: inline-block;
  }

  .vk_wrap_top {
    display: none;
  }

  .created,
  .created span,
  .kurs {
    margin-top: 20px;
  }

  .created span {
    margin-left: 0px;
  }

  .created_m {
    margin-bottom: 10px;
  }

  .subjects {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .im_wrap {
    margin-bottom: 20px;
  }

  .univer {
    text-align: center;
    margin-bottom: 20px;
  }

  /* Главная страница конец */

  /* Страница курсов начало */

  .animated {
    margin-bottom: 10px;
  }

  .form {
    margin-top: 5px;
    margin-left: 15px;
  }

  .form input {
    width: 244px;
  }

  /* Страница курсов конец */

  /* Страница выбор тестка work начало */

  .subject_decision .choice_de ul {
    padding: 0px;
  }

  .created.format {
    margin-bottom: 15px;
  }

  .subjects.work {
    margin-bottom: 10px;
  }

  .ts.sub_wrapper {
    margin-bottom: 30px;
  }

  .test_img_wrap img {
    max-width: 100%;
    max-height: 250px;
  }

  .test_img_wrap {
    max-width: 150px;
  }

  .choice_de ul {
    padding: 0px;
    margin: 10px 0;
  }

  .choice_de a {
    margin-top: 6px;
  }

  .testvar {
    width: 150px;
  }

  /* Страница выбор тестка work конец */

  /* Страница прохождения теста job начало */

  .elements_chem span {
    margin-left: 10px;
  }

  .job_img_warp_c img {
    max-width: 100%;
    max-height: 250px;
  }

  .container.conta {
    padding: 5px;
  }

  .question {
    padding: 7px;
  }

  #toTop {
    left: 10px;
  }

  #toTop.active {
    bottom: 10px;
  }

  .question.type_3 > .row > .col-md-6:nth-child(2) {
    margin-top: 20px;
  }

  .help {
    padding: 5px;
  }

  /* Страница прохождения теста job конец */

  /* Страница статьи начало */

  .img_warp_c img {
    width: 100% !important;
  }

  .list_theme li {
    float: none;
  }

  .list_theme_wrap {
    width: 100%;
  }

  .main_a_wrap_new {
    margin-top: 7px;
    text-align: center;
  }

  .main_a_wrap_new {
    margin-right: 10px;
  }

  .stud_question_img_table {
    display: none;
  }

  .question_item {
    margin-top: 10px;
  }

  /* Страница статьи конец */

  .arg_wrap_2 {
    display: none;
  }

  .paket_descr {
    font-size: 0.5em;
    line-height: 1.13;
  }

  .paket span:first-child {
    font-size: 0.75em;
  }

  .paket span:last-child {
    font-size: 0.70em;
  }

  /* пджинатор начало */

  .pagination {
    padding: 0;
  }

  .pagination li {
    margin-right: 2px;
  }

  /* паджинатор конец */

  /* подлинии старт */

  .choice_de ul.sublines_list_wrap li {
    margin: 0 0 0 10px;
  }

  /* подлинни конец */

  /* личный кабинет старт */

  .enter_input {
    margin-bottom: 7px;
  }

  h3.tac {
    font-size: 1em;
  }

  .cabinet_video_wrap iframe {
    width: 320px;
    height: 165.2px;
  }

  .elem_wrap {
    min-height: auto;
  }

  /* личный кабинет конец */

  /* new! */

  .help img,
  .varis img {
    max-width: 100%;
  }

  .help img {
    width: auto !important;
  }

  .subjects_wrap .sub {
    width: 150px;
    height: 110px;
  }

  .show_deatil_wrap div:nth-child(2) {
    margin-left: 0px;
  }
}

@media only screen and (max-width : 400px) {
  .main {
    width: 95px;
    margin-left: 40px !important;
  }
}

/* Custom, iPhone Retina */

@media only screen and (max-width : 340px) {
  .subjects .sub {
    width: 100%;
  }
}

/* ==========  Mobile First Method  ========== */

/* Custom, iPhone Retina */

@media only screen and (min-width : 320px) {
  body {
    font-size: 1.7em;
  }

  .create,
  .soc {
    font-size: 0.8em;
  }

  .subject_desk_sub span {
    font-size: 0.9em;
  }

  .themes_subject {
    font-size: 0.7em;
  }

  #otvet {
    margin-bottom: 18px;
  }

  .job_img_warp_c img {
    max-width: 80%;
  }
}

/* Extra Small Devices, Phones */

@media only screen and (min-width : 480px) {
  body {
    font-size: 1.7em;
  }
}

/* Small Devices, Tablets */

@media only screen and (min-width : 768px) {
  body {
    font-size: 1.6em;
  }

  .search {
    margin-top: 15px;
  }

  .stud_question_img {
    display: none;
  }

  .menu_mob_new {
    display: none;
  }

  .paket_descr {
    font-size: 0.8em;
    line-height: 1.2;
  }
}

/* Medium Devices, Desktops */

@media only screen and (min-width : 992px) {
  body {
    font-size: 2em;
  }

  .search {
    margin-top: 10px;
  }

  .menu_for_tablet {
    display: none;
  }

  .logo_wrap img {
    max-width: 220px;
  }

  .main_a_wrap a {
    margin-right: 10px;
  }
}

/* Large Devices, Wide Screens */

@media only screen and (min-width : 1200px) {
  .search {
    margin-top: 35px;
  }

  .vk a img {
    display: inline-block;
  }
}

/* ===== Курсы: мягкое освежение, адаптив ===== */

@media only screen and (max-width : 768px) {
  body.kurs-soft-refresh .subject_kurs_wrap {
    min-height: auto;
    padding: 12px 8px;
  }

  body.kurs-soft-refresh .progr {
    padding: 16px 12px;
    border-radius: 20px;
  }

  body.kurs-soft-refresh .progr_wrap_l {
    margin: 10px 15px;
  }

  body.kurs-soft-refresh .show_deatil_wrap div {
    display: inline-block;
    max-width: 280px;
    min-width: 210px;
    margin: 7px auto;
  }

  body.kurs-soft-refresh .show_deatil_wrap div:nth-child(2) {
    margin-left: 8px;
  }

  body.kurs-soft-refresh .kurs_wrap span.studarium_wrap {
    margin: 6px 8px;
  }
}

@media only screen and (max-width : 480px) {
  body.kurs-soft-refresh .subject_kurs_wrap {
    min-height: auto;
    padding: 12px 8px;
  }

  body.kurs-soft-refresh .progr {
    padding: 14px 10px;
    border-radius: 18px;
  }

  body.kurs-soft-refresh .progr_wrap_l {
    margin: 8px 6px;
  }

  body.kurs-soft-refresh .progr_wrap_l span {
    line-height: 1.45;
  }

  body.kurs-soft-refresh .show_deatil_wrap div {
    display: block;
    max-width: 100%;
    min-width: 0;
    margin: 8px auto;
  }

  body.kurs-soft-refresh .show_deatil_wrap div:nth-child(2) {
    margin-left: auto;
  }

  body.kurs-soft-refresh .basket-img-kurs {
    max-width: 22px;
  }

  body.kurs-soft-refresh .price_for_one_kurs {
    display: block;
    margin: 8px auto 0;
  }

  body.kurs-soft-refresh .kurs_wrap span.studarium_wrap {
    display: block;
    margin: 8px auto;
    max-width: 260px;
  }
}


/* ===== Курсы: компактнее блок предметов после цветного обновления ===== */

@media only screen and (max-width : 768px) {
  body.kurs-soft-refresh .subject_kurs_wrap {
    margin: 5px 0 8px;
  }

  body.kurs-soft-refresh .subject_kurs_wrap a.universal {
    min-height: 46px;
    padding: 7px 8px;
  }
}

@media only screen and (max-width : 480px) {
  body.kurs-soft-refresh .subject_kurs_wrap {
    border-radius: 16px;
    margin: 5px 0 7px;
  }

  body.kurs-soft-refresh .subject_kurs_wrap a.universal {
    min-height: 42px;
    padding: 7px 8px;
  }

  body.kurs-soft-refresh .subject_kurs_wrap::before {
    left: -70%;
    right: -70%;
  }
}


/* ===== Настройки оформления и авторская подпись: адаптив ===== */

@media only screen and (max-width : 992px) {
  .site-settings {
    top: 12px;
    right: 12px;
  }
}

@media only screen and (max-width : 480px) {
  .site-settings {
    top: 18px;
    right: 64px;
    font-size: 13px;
  }

  .site-settings__toggle {
    width: 31px;
    height: 31px;
  }

  .site-settings__panel {
    top: 38px;
    right: -52px;
    width: 216px;
  }

  .author-note {
    margin-top: 10px;
    font-size: 0.74em;
    text-align: left;
  }
}

@media only screen and (max-width : 360px) {
  .site-settings {
    right: 56px;
  }

  .site-settings__panel {
    right: -45px;
    width: 205px;
  }
}
/* ===== Work и Subject: адаптив мягкого редизайна ===== */

@media only screen and (max-width : 992px) {
  body.work-soft-refresh .created.format.work-hero__title {
    margin-top: 22px;
  }

  body.work-soft-refresh .subjects .sub_wrapper.work-subject-card {
    min-height: 210px;
    border-radius: 24px;
  }

  body.work-soft-refresh .work-subject-picture {
    min-height: 140px;
    border-radius: 20px;
  }

  body.work-soft-refresh .subjects .sub {
    max-height: 118px;
  }

  body.subject-soft-refresh .subject-action-card .test_img_wrap {
    min-height: 146px;
    max-width: 205px;
    border-radius: 24px;
  }

  body.subject-soft-refresh .subject-action-card .test_img_wrap img {
    max-height: 112px;
  }

  body.subject-soft-refresh .choice_de {
    padding: 18px;
    border-radius: 26px;
  }
}

@media only screen and (max-width : 768px) {
  body.work-soft-refresh .subjects {
    margin-top: 8px;
    margin-bottom: 18px;
  }

  body.work-soft-refresh .subjects .row.mto {
    margin-top: 14px;
  }

  body.work-soft-refresh .subjects .sub_wrapper.work-subject-card {
    min-height: 186px;
    padding: 10px 8px 12px;
    border-radius: 22px;
  }

  body.work-soft-refresh .work-subject-picture {
    min-height: 116px;
    border-radius: 18px;
  }

  body.work-soft-refresh .subjects .sub {
    max-height: 94px;
  }

  body.work-soft-refresh .subjects span.work-subject-title {
    margin-top: 9px;
    font-size: 0.86em;
  }

  body.subject-soft-refresh .subject-hero__title {
    margin-top: 18px;
  }

  body.subject-soft-refresh .subject-hero__lead {
    margin-top: 8px;
    padding: 0 16px;
    font-size: 0.82em;
  }

  body.subject-soft-refresh .subject-action-card {
    padding-left: 7px;
    padding-right: 7px;
  }

  body.subject-soft-refresh .subject-action-card .test_img_wrap {
    min-height: 126px;
    max-width: 180px;
  }

  body.subject-soft-refresh .subject-action-card .test_img_wrap img {
    max-height: 96px;
  }

  body.subject-soft-refresh .subject-action-card__title {
    min-height: 0;
    margin-top: 9px;
    font-size: 0.82em;
  }

  body.subject-soft-refresh .choice_de.themes > ul.subject-themes-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.subject-soft-refresh .choice_de.tests .testvar a {
    min-width: 145px;
  }
}

@media only screen and (max-width : 480px) {
  body.work-soft-refresh .created.format.work-hero__title {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 22px;
    line-height: 1.35;
  }

  body.work-soft-refresh .work-hero__subline {
    margin-top: 4px;
  }

  body.work-soft-refresh .subjects_wrap_for_mobile .row {
    margin-left: -6px;
    margin-right: -6px;
  }

  body.work-soft-refresh .subjects_wrap_for_mobile [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  body.work-soft-refresh .subjects .row.mto {
    margin-top: 12px;
  }

  body.work-soft-refresh .subjects .sub_wrapper.work-subject-card {
    min-height: 158px;
    padding: 8px 6px 10px;
    border-radius: 19px;
  }

  body.work-soft-refresh .work-subject-picture {
    min-height: 94px;
    border-radius: 15px;
  }

  body.work-soft-refresh .subjects .sub {
    max-width: 92%;
    max-height: 76px;
  }

  body.work-soft-refresh .subjects span.work-subject-title {
    margin-top: 7px;
    font-size: 0.72em;
    line-height: 1.22;
  }

  body.subject-soft-refresh .subject-hero__title {
    padding: 0 10px;
    font-size: 1.08em;
    line-height: 1.38;
  }

  body.subject-soft-refresh .subject-hero__title::after {
    width: 72px;
    margin-top: 9px;
  }

  body.subject-soft-refresh .subject-hero__lead {
    font-size: 0.72em;
  }

  body.subject-soft-refresh .subject_desk > .row:first-child {
    display: block;
  }

  body.subject-soft-refresh .subject-action-card,
  body.subject-soft-refresh .subject_desk_sub {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 13px;
  }

  body.subject-soft-refresh .subject-action-card .test_img_wrap {
    min-height: 112px;
    max-width: 100%;
    border-radius: 20px;
  }

  body.subject-soft-refresh .subject-action-card .test_img_wrap img {
    max-height: 82px;
  }

  body.subject-soft-refresh .subject-action-card__title {
    margin-top: 7px;
    font-size: 0.82em;
  }

  body.subject-soft-refresh .subject_decision {
    margin-top: 2px;
  }

  body.subject-soft-refresh .choice_de {
    padding: 12px;
    border-radius: 22px;
  }

  body.subject-soft-refresh .subject-choice-head {
    margin-bottom: 12px;
  }

  body.subject-soft-refresh .subject-choice-head > span {
    padding: 4px 12px;
  }

  body.subject-soft-refresh .subject-choice-head small {
    font-size: 0.58em;
  }

  body.subject-soft-refresh .choice_de.tests .testvar {
    display: block;
    width: 100%;
    margin: 7px 0;
  }

  body.subject-soft-refresh .choice_de.tests .testvar a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
  }

  body.subject-soft-refresh .choice_de.themes a.themes_subject,
  body.subject-soft-refresh .choice_de.themes a.themes_subject:visited {
    padding: 8px 32px 8px 10px;
    border-radius: 14px;
    font-size: 0.86em;
  }

  body.subject-soft-refresh .choice_de.themes a.themes_subline_no_arrow {
    padding-right: 10px;
  }

  body.subject-soft-refresh .sublines_list_wrap {
    margin-left: 7px;
    padding-left: 8px;
  }

  body.subject-soft-refresh .choice_de.themes .sublines_list_wrap a.themes_subject,
  body.subject-soft-refresh .choice_de.themes .sublines_list_wrap a.themes_subject:visited {
    padding: 5px 7px;
    font-size: 0.80em;
  }

  body.subject-soft-refresh .subject_caption {
    margin-top: 10px;
    border-radius: 22px;
  }

  body.subject-soft-refresh .subject_caption p {
    margin: 10px;
    line-height: 1.35;
  }
}

@media only screen and (max-width : 340px) {
  body.work-soft-refresh .subjects .sub_wrapper.work-subject-card {
    min-height: 148px;
  }

  body.work-soft-refresh .work-subject-picture {
    min-height: 86px;
  }

  body.work-soft-refresh .subjects .sub {
    width: auto;
    max-height: 68px;
  }
}

/* ===== Work и Subject: адаптивные правки по обратной связи, версия 2 ===== */

@media only screen and (max-width : 768px) {
  body.work-soft-refresh .work-hero > .row {
    margin-left: 0;
    margin-right: 0;
  }
}

@media only screen and (max-width : 480px) {
  body.work-soft-refresh .created.format.work-hero__title {
    width: calc(100% - 18px);
  }

  body.subject-soft-refresh .subject-tests-grid {
    display: block;
  }

  body.subject-soft-refresh .choice_de.tests .testvar {
    width: 100%;
    margin: 7px 0;
  }

  body.subject-soft-refresh .subject_desk > .row:first-child.js-subject-action-carousel {
    display: block;
    margin-left: -8px;
    margin-right: -8px;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized {
    padding-bottom: 28px;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-list {
    overflow: visible;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-slide {
    height: auto;
    outline: none;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-card,
  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject_desk_sub {
    float: none !important;
    margin: 0 !important;
    padding-left: 6px;
    padding-right: 6px;
    box-sizing: border-box;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-card .test_img_wrap {
    min-height: 126px;
    max-width: 100%;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots li {
    display: inline-block;
    margin: 0 4px;
    border: 0;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.78);
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots .slick-active button {
    border-color: var(--subject-page-accent, #00d119);
    background-color: var(--subject-page-accent, #00d119);
  }

  html.theme-dark body.subject-soft-refresh .js-subject-action-carousel .slick-dots button {
    border-color: rgba(238, 248, 242, 0.24);
    background-color: rgba(255, 255, 255, 0.08);
  }
}

/* ===== Work/Subject: мобильная карусель без наложений, версия 3 ===== */

@media only screen and (max-width : 480px) {
  body.subject-soft-refresh .subject_desk > .row:first-child.js-subject-action-carousel {
    margin-left: 0;
    margin-right: 0;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized {
    padding: 0 0 30px;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-list {
    overflow: hidden;
    margin: 0;
    padding: 0 !important;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-track {
    display: flex;
    align-items: stretch;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-slide {
    height: auto;
    outline: none;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-card,
  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject_desk_sub {
    float: none !important;
    margin: 0 !important;
    padding-left: 7px;
    padding-right: 7px;
    box-sizing: border-box;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-card .test_img_wrap {
    max-width: 100%;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots li {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    padding: 0;
    border: 0;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots button {
    position: relative;
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.20);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.86);
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  /* У slick-theme есть своя точка через псевдоэлемент. Убираем ее,
     чтобы не было второго большого кружка рядом с нашим индикатором. */
  body.subject-soft-refresh .js-subject-action-carousel .slick-dots button::before {
    content: none !important;
    display: none !important;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots .slick-active button {
    border-color: var(--subject-page-accent, #00d119);
    background-color: var(--subject-page-accent, #00d119);
  }

  html.theme-dark body.subject-soft-refresh .js-subject-action-carousel .slick-dots button {
    border-color: rgba(238, 248, 242, 0.28);
    background-color: rgba(255, 255, 255, 0.09);
  }

  html.theme-dark body.subject-soft-refresh .js-subject-action-carousel .slick-dots .slick-active button {
    border-color: var(--subject-page-accent, #7ee887);
    background-color: var(--subject-page-accent, #7ee887);
  }
}


/* ===== Work/Subject: исправление ширины slick-слайдов, версия 4 =====
   Важно: slick сам проставляет inline width на .slick-slide. Его нельзя
   перебивать width:auto !important, иначе 2-й/3-й слайд уезжает в пустоту. */
@media only screen and (max-width : 480px) {
  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-slide {
    box-sizing: border-box;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-card,
  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject_desk_sub {
    max-width: none;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .test_img_wrap {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ===== Subject: стабильная мобильная карусель как на главной, версия 5 ===== */
@media only screen and (max-width : 992px) {
  body.subject-soft-refresh .subject-action-slide,
  body.subject-soft-refresh .subject-action-carousel--items-2 .subject-action-slide {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media only screen and (max-width : 480px) {
  body.subject-soft-refresh .subject-action-row {
    margin-left: 0;
    margin-right: 0;
  }

  body.subject-soft-refresh .subject-action-row > .col-md-12 {
    padding-left: 0;
    padding-right: 0;
  }

  body.subject-soft-refresh .subject-action-carousel {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  body.subject-soft-refresh .js-subject-action-carousel:not(.slick-initialized) {
    visibility: hidden;
    min-height: 172px;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized {
    visibility: visible;
    padding: 0 0 30px !important;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-list {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .slick-track {
    display: block !important;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-slide {
    display: block !important;
    max-width: none !important;
    padding-left: 7px;
    padding-right: 7px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-slide .subject-action-card,
  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-slide .subject_desk_sub {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.subject-soft-refresh .js-subject-action-carousel.slick-initialized .subject-action-slide .test_img_wrap {
    min-height: 126px;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots li {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    padding: 0;
    border: 0;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots button {
    position: relative;
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.20);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.86);
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots button::before {
    content: none !important;
    display: none !important;
  }

  body.subject-soft-refresh .js-subject-action-carousel .slick-dots .slick-active button {
    border-color: var(--subject-page-accent, #00d119);
    background-color: var(--subject-page-accent, #00d119);
  }

  html.theme-dark body.subject-soft-refresh .js-subject-action-carousel .slick-dots button {
    border-color: rgba(238, 248, 242, 0.28);
    background-color: rgba(255, 255, 255, 0.09);
  }

  html.theme-dark body.subject-soft-refresh .js-subject-action-carousel .slick-dots .slick-active button {
    border-color: var(--subject-page-accent, #7ee887);
    background-color: var(--subject-page-accent, #7ee887);
  }
}

/* ===== Knowledge: адаптив мягкого обновления ===== */

@media only screen and (max-width : 992px) {
  body.knowledge-soft-refresh .knowledge-hero {
    margin-top: 20px;
  }

  body.knowledge-soft-refresh .knowledge-hero__card {
    padding: 20px 22px;
    border-radius: 26px;
  }

  body.knowledge-soft-refresh .knowledge-question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.knowledge-answer-soft-refresh .knowledge-answer-card {
    padding: 22px 24px 26px;
    border-radius: 26px;
  }

  body.knowledge-answer-soft-refresh .knowledge-related-card {
    min-height: 118px;
  }
}

@media only screen and (max-width : 768px) {
  body.knowledge-soft-refresh .knowledge-hero__row {
    display: block;
  }

  body.knowledge-soft-refresh .knowledge-hero__image {
    margin-bottom: 18px;
  }

  body.knowledge-soft-refresh .knowledge-hero__image img {
    max-width: 58%;
  }

  body.knowledge-soft-refresh .knowledge-hero__card {
    text-align: center;
  }

  body.knowledge-soft-refresh .knowledge-hero__card h1::after {
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  body.knowledge-answer-soft-refresh .knowledge-related-row .col-sm-6 + .col-sm-6 {
    margin-top: 14px;
  }
}

@media only screen and (max-width : 480px) {
  body.knowledge-soft-refresh .knowledge-hero {
    margin-top: 14px;
  }

  body.knowledge-soft-refresh .knowledge-hero__image img {
    max-width: 74%;
  }

  body.knowledge-soft-refresh .knowledge-hero__card,
  body.knowledge-answer-soft-refresh .knowledge-answer-intro,
  body.knowledge-answer-soft-refresh .knowledge-answer-card,
  body.knowledge-answer-soft-refresh .knowledge-related-card,
  body.knowledge-answer-soft-refresh .knowledge-copyright {
    border-radius: 22px;
  }

  body.knowledge-soft-refresh .knowledge-hero__card {
    padding: 16px 15px;
  }

  body.knowledge-soft-refresh .knowledge-hero__card h1 {
    font-size: 1.08em;
  }

  body.knowledge-soft-refresh .knowledge-hero__card p {
    font-size: 0.78em;
    line-height: 1.55;
  }

  body.knowledge-soft-refresh .knowledge-random-section {
    margin-top: 22px;
  }

  body.knowledge-soft-refresh .knowledge-section-head {
    margin-bottom: 14px;
  }

  body.knowledge-soft-refresh .knowledge-section-head small {
    font-size: 0.58em;
  }

  body.knowledge-soft-refresh .knowledge-question-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body.knowledge-soft-refresh .question_item.knowledge-question-card {
    min-height: 0;
    padding: 14px 14px 15px;
    border-radius: 19px;
  }

  body.knowledge-soft-refresh .knowledge-question-number {
    font-size: 0.58em;
  }

  body.knowledge-soft-refresh .knowledge-question-title {
    font-size: 0.78em;
    line-height: 1.42;
  }

  body.knowledge-answer-soft-refresh .knowledge-answer-intro {
    margin-top: 18px;
    margin-bottom: 16px;
    padding: 13px 14px;
  }

  body.knowledge-answer-soft-refresh .knowledge-answer-intro p {
    font-size: 0.76em;
    line-height: 1.5;
  }

  body.knowledge-answer-soft-refresh .knowledge-answer-card {
    padding: 16px 13px 18px;
  }

  body.knowledge-answer-soft-refresh .knowledge-answer-title {
    font-size: 1.04em;
    line-height: 1.38;
  }

  body.knowledge-answer-soft-refresh .knowledge-answer-content,
  body.knowledge-answer-soft-refresh .knowledge-answer-content p {
    line-height: 1.58;
  }

  body.knowledge-answer-soft-refresh .knowledge-related-card {
    min-height: 0;
    padding: 14px;
  }

  body.knowledge-answer-soft-refresh .knowledge-related-card span {
    font-size: 0.58em;
  }

  body.knowledge-answer-soft-refresh .knowledge-related-card b {
    font-size: 0.82em;
  }

  body.knowledge-answer-soft-refresh .knowledge-related-card small {
    font-size: 0.62em;
  }

  body.knowledge-answer-soft-refresh .knowledge-copyright {
    padding: 12px;
    font-size: 0.72em;
  }
}

@media only screen and (max-width : 340px) {
  body.knowledge-soft-refresh .knowledge-hero__image img {
    max-width: 82%;
  }

  body.knowledge-soft-refresh .knowledge-hero__card,
  body.knowledge-answer-soft-refresh .knowledge-answer-card {
    padding-left: 10px;
    padding-right: 10px;
  }
}
/* ===== Test pages: responsive refresh ===== */
@media only screen and (max-width : 992px) {
  body.test-soft-refresh .test-hero {
    margin-top: 20px;
  }

  body.test-soft-refresh .test-hero__card {
    padding: 21px 23px;
    border-radius: 26px;
  }

  body.test-soft-refresh .question.test-card {
    padding: 22px 64px 22px 24px;
    border-radius: 26px;
  }

  body.test-soft-refresh .test-card-wrap {
    margin-top: 20px;
  }

  body.test-soft-refresh .test-help-card,
  body.test-soft-refresh .test-related-card,
  body.test-soft-refresh .test-submit-panel {
    border-radius: 24px;
  }
}

@media only screen and (max-width : 768px) {
  body.test-soft-refresh .test-hero__card h1 {
    font-size: 1.12em;
  }

  body.test-soft-refresh .test-hero__lead,
  body.test-soft-refresh .test-hero__meta,
  body.test-soft-refresh .test-hero__note {
    font-size: 0.82em;
  }

  body.test-soft-refresh .test-related .col-sm-6 + .col-sm-6 {
    margin-top: 14px;
  }

  body.test-soft-refresh .test-pagination {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media only screen and (max-width : 480px) {
  body.test-soft-refresh .test-hero {
    margin-top: 14px;
  }

  body.test-soft-refresh .test-hero__card {
    padding: 16px 14px;
    border-radius: 22px;
  }

  body.test-soft-refresh .test-hero__kicker {
    font-size: 0.58em;
  }

  body.test-soft-refresh .test-hero__card h1 {
    font-size: 1.03em;
    line-height: 1.36;
  }

  body.test-soft-refresh .test-hero__card h1::after {
    width: 72px;
  }

  body.test-soft-refresh .test-hero__lead,
  body.test-soft-refresh .test-hero__meta,
  body.test-soft-refresh .test-hero__note {
    font-size: 0.74em;
    line-height: 1.5;
  }

  body.test-soft-refresh .test-pagination-container {
    margin-top: 12px;
  }

  body.test-soft-refresh .test-pagination {
    padding: 8px;
    border-radius: 18px;
  }

  body.test-soft-refresh .pagination li a {
    padding: 3px 8px;
  }

  body.test-soft-refresh .test-soft-list {
    margin-top: 12px;
  }

  body.test-soft-refresh .test-card-wrap {
    margin-top: 14px;
  }

  body.test-soft-refresh .question.test-card {
    padding: 16px 12px 17px;
    border-radius: 22px;
  }

  body.test-soft-refresh .test-question-title {
    margin-bottom: 12px;
    font-size: 0.82em;
    line-height: 1.52;
  }

  body.test-soft-refresh .test-question-number {
    padding: 1px 8px;
    font-size: 0.72em;
  }

  body.test-soft-refresh .test-option {
    margin: 8px 0;
    padding: 9px 10px 9px 38px;
    border-radius: 15px;
  }

  body.test-soft-refresh .test-option input[type="checkbox"] {
    left: 12px;
    top: 13px;
  }

  body.test-soft-refresh .test-option span {
    font-size: 0.82em;
    line-height: 1.38;
  }

  body.test-soft-refresh textarea.test-answer-textarea,
  body.test-soft-refresh .question textarea,
  body.test-soft-refresh .type_3 textarea {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 14px;
    font-size: 0.82em;
  }

  body.test-soft-refresh .home textarea.test-answer-textarea,
  body.test-soft-refresh .home textarea {
    min-height: 112px;
  }

  body.test-soft-refresh .test-actions,
  body.test-soft-refresh .show_wrap.test-actions {
    margin-top: 12px;
  }

  body.test-soft-refresh .question_check,
  body.test-soft-refresh .show_help,
  body.test-soft-refresh .btn-job-success,
  body.test-soft-refresh .btn-success {
    width: 100%;
    min-height: 36px;
    margin: 5px 0;
    padding: 7px 10px;
    font-size: 0.78em;
  }

  body.test-soft-refresh .test-favorite.puls_wrap {
    position: static;
    width: 40px;
    height: 40px;
    margin: 7px auto 0;
  }

  body.test-soft-refresh .test-favorite img,
  body.test-soft-refresh .puls img,
  body.test-soft-refresh .puls_yet img {
    max-width: 23px;
    max-height: 23px;
  }

  body.test-soft-refresh .test-help-card,
  body.test-soft-refresh .help.test-help-card {
    padding: 13px 12px;
    border-radius: 19px;
    font-size: 0.78em;
    line-height: 1.5;
  }

  body.test-soft-refresh .test-related {
    margin-top: 0;
  }

  body.test-soft-refresh .test-related-card {
    min-height: 0;
    padding: 14px;
    border-radius: 19px;
  }

  body.test-soft-refresh .test-related-card span {
    font-size: 0.58em;
  }

  body.test-soft-refresh .test-related-card b {
    font-size: 0.82em;
  }

  body.test-soft-refresh .test-related-card small {
    font-size: 0.62em;
  }

  body.test-soft-refresh .test-submit-panel {
    margin: 22px 10px 20px;
    padding: 15px 12px;
    border-radius: 21px;
  }

  body.test-soft-refresh .result1,
  body.test-soft-refresh .result2 {
    font-size: 0.78em;
    line-height: 1.45;
  }

  body.test-soft-refresh .test-finish-note {
    margin-top: 18px;
    padding: 13px;
    border-radius: 19px;
    font-size: 0.76em;
  }
}

@media only screen and (max-width : 340px) {
  body.test-soft-refresh .question.test-card,
  body.test-soft-refresh .test-hero__card,
  body.test-soft-refresh .test-submit-panel {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===== Article test / Cabinet tests: мобильная доводка ===== */
@media only screen and (max-width : 480px) {
  body.test-soft-refresh .assessment,
  body.test-soft-refresh .answer_done,
  body.test-soft-refresh .decision_true,
  body.test-soft-refresh .decision_false {
    width: 100%;
    min-height: 36px;
    margin: 5px 0;
    padding: 7px 10px;
    font-size: 0.78em;
  }

  body.article-test-soft-refresh .show_wrap.test-actions .test-favorite.puls_wrap,
body.cabinet-test-soft-refresh .show_wrap.test-actions .test-favorite.puls_wrap {
    width: 40px;
    height: 40px;
    margin: 7px auto 0;
  }

  body.test-soft-refresh .test-assessment-actions,
  body.test-soft-refresh .assessment_wrap.test-assessment-actions {
    margin-top: 8px;
  }
}

/* ===== BioPhobia: адаптив ===== */
@media only screen and (max-width : 992px) {
  body.biophobia-soft-refresh .biophobia-title,
  body.biophobia-soft-refresh .biophobia-panel,
  body.biophobia-soft-refresh .biophobia-good-know,
  body.biophobia-soft-refresh .biophobia-countdown,
  body.biophobia-soft-refresh .biophobia-result-card {
    border-radius: 26px;
  }

  body.biophobia-soft-refresh .biophobia-evidence-card,
  body.biophobia-soft-refresh .biophobia-organism-card {
    min-height: 68px;
    border-radius: 20px;
  }
}

@media only screen and (max-width : 768px) {
  body.biophobia-soft-refresh .biophobia-hero {
    margin-top: 18px;
  }

  body.biophobia-soft-refresh .biophobia-title {
    font-size: 1.12em;
  }

  body.biophobia-soft-refresh .biophobia-panel,
  body.biophobia-soft-refresh .biophobia-good-know,
  body.biophobia-soft-refresh .biophobia-countdown,
  body.biophobia-soft-refresh .biophobia-result-card {
    padding: 16px 18px;
  }
}

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

  body.biophobia-soft-refresh .biophobia-rules {
    width: calc(100% - 18px);
  }

  body.biophobia-soft-refresh .biophobia-rules p {
    text-align: left;
  }

  body.biophobia-soft-refresh .biophobia-title {
    padding: 13px 14px;
    border-radius: 22px;
    font-size: 1.02em;
  }

  body.biophobia-soft-refresh .biophobia-panel,
  body.biophobia-soft-refresh .biophobia-good-know,
  body.biophobia-soft-refresh .biophobia-countdown,
  body.biophobia-soft-refresh .biophobia-result-card {
    margin-top: 16px;
    padding: 13px 12px;
    border-radius: 22px;
    font-size: 0.78em;
    line-height: 1.5;
  }

  body.biophobia-soft-refresh .sound-unmuted {
    display: inline-flex;
    width: 100%;
    max-width: 270px;
    min-height: 36px;
    margin: 7px auto 0;
    padding: 7px 10px;
    font-size: 0.9em;
  }

  body.biophobia-soft-refresh .complexity {
    display: block;
    width: 100%;
    margin: 7px auto;
    padding: 10px 12px;
    border-radius: 18px;
    font-size: 0.88em;
  }

  body.biophobia-soft-refresh .game-start,
  body.biophobia-soft-refresh .final,
  body.biophobia-soft-refresh .new-biophobia {
    width: calc(100% - 20px);
    max-width: 320px;
    padding: 9px 12px;
    border-radius: 18px;
  }

  body.biophobia-soft-refresh .biophobia-section-title {
    font-size: 0.82em;
  }

  body.biophobia-soft-refresh .biophobia-grid-cell {
    margin-top: 10px;
  }

  body.biophobia-soft-refresh .biophobia-evidence-card,
  body.biophobia-soft-refresh .biophobia-organism-card {
    min-height: 58px;
    padding: 11px 10px;
    border-radius: 18px;
    font-size: 0.82em;
  }

  body.biophobia-soft-refresh .biophobia-result-card {
    width: calc(100% - 20px);
  }
}

/* ===== Mobile settings button: keep visible; menu markup itself is unchanged ===== */
@media only screen and (max-width : 480px) {
  .site-settings {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    right: calc(env(safe-area-inset-right, 0px) + 8px) !important;
    z-index: 3000 !important;
    font-size: 13px;
  }

  .site-settings__toggle {
    width: 32px !important;
    height: 32px !important;
    opacity: 0.92;
  }

  .site-settings__panel {
    top: 40px !important;
    right: 0 !important;
    width: min(216px, calc(100vw - 18px)) !important;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }
}

@media only screen and (max-width : 360px) {
  .site-settings {
    right: calc(env(safe-area-inset-right, 0px) + 6px) !important;
  }

  .site-settings__panel {
    right: 0 !important;
    width: min(205px, calc(100vw - 14px)) !important;
  }
}