body {
  font-family: "Raleway", sans-serif;
  font-weight: normal;
  min-width: 320px;
  position: relative;
  line-height: 1.42857;
}

.noselect {
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

div,
input,
button,
audio,
a:focus {
  outline: none;
}

article li {
  font-size: 0.8em;
}

article img {
  border-radius: 25px;
}

body input:focus:required:invalid,
body textarea:focus:required:invalid {
  color: red;
}

body input:required:valid,
body textarea:required:valid {
  color: green;
}

.hidden,
.balance,
.el_balance,
.itog_reaction_hide,
.warning_about,
.balance_img,
.reaction_nobalance_hide,
.menu_for_mobile,
.menu_for_tablet,
.vk a img,
.subjects_wrap_for_mobile,
.attention {
  display: none;
}

*,
pre {
  font-family: "Segoe Print";
}

pre {
  overflow: hidden;
}

ul {
  list-style: none;
}

a {
  color: #000;
}

a.act {
  color: #00d119;
}

a:hover {
  text-decoration: none;
  color: #00d119;
}

p.name_p {
  font-size: 1.3em;
  margin: 20px 0 0 0;
}

.main_wrap .main {
  margin-top: 40px;
}

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

.main_wrap .vk {
  margin-top: 42px;
}

.main_wrap .vk img {
  position: relative;
  margin-left: 20px;
  top: -4px;
}

.line {
  margin-top: 0.5em;
  border-bottom: 3px solid #999999;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.created {
  margin-top: 68px;
}

.created.t_t {
  margin-top: 30px;
}

.created.t_t span {
  padding-left: 25px;
}

.created.format {
  text-align: center;
  margin-top: 38px;
}

.created.file {
  letter-spacing: 2px;
  margin-top: 94px;
}

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

.search {
  margin-top: 35px;
  position: relative;
}

.search input {
  border: none;
}

.search .input {
  width: 100%;
  padding: 8px 37px 9px 15px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  background: #EEE;
  font: 15px "Segoe Print", sans-serif;
  color: #555;
  outline: none;
}

.search .input:focus {
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.search .submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 37px;
  height: 100%;
  cursor: pointer;
  background: url(https://lh4.googleusercontent.com/-b-5aBxcxarY/UAfFW9lVyjI/AAAAAAAABUg/gQtEXuPuIds/s13/go.png) 50% no-repeat;
  opacity: 0.5;
}

.search .submit:hover {
  opacity: 0.8;
}

input[type="search"] {
  -webkit-appearance: none;
}

* + html .search {
  width: 28%;
  padding: 0 52px 0 0;
}

* + html .search .input {
  border: 1px solid #DFDFDF;
  border-top: 1px solid #B3B3B3;
  padding-top: 7px;
  padding-bottom: 8px;
}

* + html .search .input:focus {
  border: 1px solid #CFCFCF;
}

* + html .search .submit {
  filter: alpha(opacity=50);
}

* + html .search .submit:hover {
  filter: alpha(opacity=80);
}

.subjects {
  margin-top: 51px;
  margin-bottom: 60px;
}

.subjects .sub_wrapper {
  text-align: center;
}

.subjects .sub {
  margin: 0 auto;
  padding: 30px;
  background-color: #f4f4f4;
  border-radius: 10px;
  width: 300px;
  height: 230px;
  text-align: center;
}

.subjects_wrap .sub {
  max-width: 280px;
  max-height: 210px;
}

.subjects .sub:hover {
  background-color: #e6e6e6;
  cursor: pointer;
}

.subjects a:hover {
  color: #000;
}

.subjects span {
  margin-top: 18px;
  font-family: "Segoe Print";
  display: block;
}

.detected {
  color: #00d119;
}

.list {
  display: none;
  margin-top: 20px;
  position: relative;
  margin-left: 15px;
  border: 1px solid #d1d1d1;
}

.list ul li,
.list ul a {
  display: block;
  line-height: 26px;
}

.list ul li:hover,
.list ul a:hover {
  color: #00d119;
  cursor: pointer;
}

footer {
  z-index: 1000;
  min-height: 120px;
  text-align: center;
}

footer .univer img {
  width: 92px;
  height: 70px;
}

footer .create {
  display: block;
  font-family: "Segoe Print";
  margin-top: 8px;
}

footer .soc {
  margin-top: 9px;
}

footer .soc a {
  text-decoration: none;
  cursor: pointer;
  color: #000;
}

footer .soc img {
  width: 22px;
  height: 22px;
}

footer .soc span {
  font-family: "Segoe Print";
  margin-left: 28px;
}

.line_bottom {
  margin-top: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #999999;
  -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.line_bottom.arti {
  margin-top: 0;
}

.kurs {
  margin-top: 56px;
  text-align: center;
}

.kurs .arg_wrap {
  border: 1px solid #000;
  border-radius: 20px;
}

.arg_wrap:hover {
  background-color: rgb(171, 221, 130);
}

.arg_wrap:not(:hover) {
  transition: 3s;
}

.progr {
  border: 1px solid #000;
  border-radius: 20px;
}

.progr_wrap_l {
  margin-left: 40px;
}

.progr_wrap_l span {
  font-size: 0.8em;
}

.progr_wrap_r {
  text-align: right;
  margin-top: 30px;
  margin-right: 30px;
}

.show_deatil_wrap {
  text-align: center;
}

.show_deatil_wrap div {
  font-size: 0.85em;
  margin: 0 auto;
  position: relative;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 10px;
  max-width: 300px;
  margin-bottom: 5px;
  display: inline-block;
}

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

.show_deatil_wrap div:hover {
  background-color: rgb(255, 255, 255);
  cursor: pointer;
}

.detail_kurs_wrap {
  display: none;
}

.kurs_title {
  margin-bottom: 30px;
}

.detail_kurs {
  border: 1px solid #000;
  border-radius: 20px;
}

.about_kurs {
  padding: 30px;
}

.teach_wrap {
  text-align: center;
  margin: 15px auto;
}

.prog_but {
  border: 1px solid #000;
  border-radius: 5px;
  text-align: center;
  padding: 5px;
  margin-bottom: 10px;
}

.iframe_wrap {
  text-align: center;
}

.prog_but:hover {
  cursor: pointer;
}

.prog_but a:hover {
  color: #000;
}

.prog_a {
  display: inline-block;
}

.prog_img {
  display: inline-block;
}

.form {
  margin-top: 30px;
  margin-left: 60px;
  margin-bottom: 20px;
}

.form-field {
  border-radius: 10px;
}

.form-button {
  border-radius: 10px;
}

.overlay {
  text-align: center;
  display: none;
  margin: 10px 15px;
}

.overlay_span {
  border: 1px solid #000;
  border-radius: 20px;
  padding: 0 15px;
}

.kurs .want_wrap {
  margin-bottom: 30px;
}

.kurs .arg_text {
  margin-bottom: 30px;
}

.arg_img {
  margin: 30px;
}

.arg_wrap_1 {
  background: url("/public/img/11.jpg");
  height: 300px;
}

.arg_wrap_2 {
  background: url("/public/img/12.jpg");
  height: 300px;
}

.args_bot {
  margin-top: 30px;
}

.kurs .want {
  letter-spacing: 2px;
}

.kurs .img_wrap {
  display: table;
  margin: 0 auto;
}

.kurs .kurs_img {
  margin-top: 39px;
  width: 478px;
  height: 257px;
  float: left;
}

.yet {
  margin-top: 60px;
  text-align: center;
}

.yet .owl p {
  text-align: center;
  font-family: "Segoe Print";
  margin-top: 50px;
}

.yet .start {
  font-family: "Segoe Print";
  padding: 5px 112px;
  border-radius: 20px;
}

.yet .start:hover {
  background-color: #f3f6fa;
}

.yet #today {
  margin-top: 30px;
  margin-bottom: 20px;
  background-color: #9595c6;
  color: #fff;
}

.yet #today:hover {
  background-color: #ff36aa;
}

.rib {
  position: relative;
}

.navigation {
  text-align: center;
  padding: 0;
  margin: 0;
  border-right: 1px solid #909090;
  border-left: 1px solid #909090;
}

#toTop,
#basket_mini_page {
  display: block;
  position: fixed;
  right: auto;
  left: 120px;
  bottom: -100px;
  z-index: 100;
  width: 35px;
  height: 35px;
  line-height: 40px;
  background-color: rgb(138, 176, 211);
  transition: all 0.5s ease-in-out 0s;
}

#toTop.active,
#basket_mini_page.active {
  bottom: 150px;
}

#toTop:hover,
#basket_mini_page:hover {
  background-color: rgb(30, 129, 221);
}

#toTop img {
  position: relative;
  margin-left: 5.5px;
  margin-bottom: 10px;
}

.copyright_art {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 5px;
  margin: 15px 0;
}

.navigation .charter {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin: 0;
  background-color: #e8e8e8;
}

.navigation .charter.choice_charter,
.navigation .charter:hover {
  background-color: #fff;
  cursor: pointer;
}

.navigation .sub_charter {
  padding: 0;
  display: none;
  background-color: #9dd298;
}

.navigation .sub_charter.yes {
  display: block;
}

.navigation .sub_charter p {
  margin: 0;
}

.navigation .sub_charter p:hover {
  color: #fff;
  cursor: pointer;
}

.navigation .theme a:hover {
  color: #fff;
  cursor: pointer;
}

.list_theme_wrap {
  width: 800px;
}

.list_theme {
  overflow: hidden;
  list-style: disc;
  padding: 0;
  width: 100%;
}

.list_theme .list_theme_choice {
  color: #00d119;
}

.list_theme .list_wrapper {
  margin: 0;
}

.list_theme li {
  font-family: "Segoe Script";
  float: left;
  margin-left: 40px;
}

.list_theme li:hover {
  color: #00d119;
  cursor: pointer;
}

.theme_choice {
  margin-top: 40px;
}

.theme_choice .theme_title {
  text-align: center;
}

.decision_choice {
  background-color: #9595c6;
  color: #fff;
}

.theme_pick a {
  color: #fff;
}

.varia {
  display: none;
}

.varia .decision {
  margin-top: 10px;
  text-align: center;
  width: 260px;
  margin-right: 80px;
  min-height: 310px;
  font-family: "Segoe Print";
  border: 1px solid #000;
  border-radius: 10px;
}

.varia .decision:hover {
  background-color: #9595c6;
  cursor: pointer;
}

.varia .decision img {
  margin-top: 20px;
  margin-bottom: 20px;
  height: 172px;
  width: 180px;
}

.test_dec {
  margin-top: 60px;
}

.var_bor {
  display: none;
  border: 1px solid #000;
  border-radius: 20px;
}

.var_bor .variant {
  text-align: center;
}

.var_bor .variant li {
  margin: 20px 0;
  cursor: pointer;
}

.var_bor .variant li:hover {
  color: #00d119;
}

.question {
  margin-top: 45px;
  padding: 20px 70px;
  border: 1px solid #000;
  border-radius: 10px;
}

.question .title {
  margin-bottom: 30px;
}

.question label {
  margin-left: 10px;
  display: block;
  margin-top: 10px;
}

.question label span {
  padding-left: 10px;
}

.varis {
  margin-top: 15px;
}

.subject_decision .choice_de {
  display: none;
  margin: 0 auto;
  text-align: center;
  margin: 10px;
}

.subject_decision .choice_de ul {
  text-align: left;
}

.choice_de ul li {
  margin-bottom: 3px;
}

.thank_for_test {
  margin: 30px 0;
}

.subject_desk,
.subject_decision {
  text-align: center;
}

.subject_decision {
  display: none;
}

.subject_desk {
  cursor: pointer;
  padding: 5px;
  margin-top: 15px;
}

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

.test_img_wrap {
  background-color: #e6e6e6;
  border-radius: 20px;
  max-width: 290px;
  text-align: center;
  margin: 0 auto;
}

.test_img_wrap:hover {
  background-color: #b0adcf;
  transition: all 1s ease-in-out 0s;
}

.test_img_wrap:not(:hover) {
  transition: all 1s ease-in-out 0s;
}

.choice_de {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #000;
  border-radius: 20px;
}

.working_title {
  margin-bottom: 20px;
}

.show_wrap > button.question_check {
  background-color: #97c695;
  border-color: #97c695;
  border-radius: 10px;
  padding: 5px 10px;
}

.question_check:hover {
  color: #fff;
}

.gap {
  margin-top: 90px;
}

.gap_bottom {
  margin-bottom: 50px;
}

.testvar {
  display: inline-block;
  width: 230px;
  margin: 10px;
}

.help p a,
.copyright_art p a b {
  display: contents;
}

.messag {
  color: #569950;
}

.type_3 .variable {
  text-align: center;
  margin-top: 30px;
}

.type_3 textarea {
  min-width: 40%;
  min-height: 40px;
  max-width: 80%;
  max-height: 300px;
}

.button_wrap {
  text-align: center;
}

.button_wrap button {
  background-color: #9595c6;
  border-color: #9595c6;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 5px 10px;
}

.button_wrap button:hover {
  color: #fff;
}

.help {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 0 50px;
  display: none;
}

.show_wrap {
  display: none;
  margin-top: 20px;
  text-align: center;
}

.show_wrap button {
  background-color: #9595c6;
  border-color: #9595c6;
  border-radius: 10px;
  padding: 5px 10px;
}

.show_wrap button:hover {
  color: #fff;
}

.success_full {
  background-color: #a4d2a0;
}

.home_work {
  background-color: #cad2e1;
}

.success_part {
  background-color: #ffd1a8;
}

.attempt {
  background-color: #ffb5b5;
}

.no-decision {
  background-color: #dddddd;
}

.btn_wrap {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.btn_wrap .result1 {
  margin-top: 10px;
  display: none;
}

.btn_wrap .result2 {
  margin-top: 10px;
  display: none;
}

.result {
  display: none;
}

.btn {
  background-color: #a2b0ee;
}

.btn-job-success,
.btn-success {
  border-radius: 10px;
}

.caption_wrap,
.subject_cover_wrap {
  text-align: center;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 30px;
  max-width: 640px;
}

#caption,
#subject_cover {
  border: 1px solid #000;
  border-radius: 10px;
  transition: all 0.5s ease-in-out 0s;
}

#caption a,
#subject_cover a {
  display: block;
  font-size: 28px;
  padding: 10px 20px;
  text-decoration: none;
}

#caption:hover,
#subject_cover:hover {
  border: 1px solid #00d119;
  cursor: pointer;
  background-color: #80f38d;
}

#caption a:hover,
#subject_cover a:hover {
  color: #000;
}

.subject_cover_wrap {
  max-width: 440px;
}

#subject_cover a {
  font-size: 0.8em;
}

main p {
  margin-top: 20px;
  margin-bottom: 20px;
  text-indent: 20px;
}

main ul {
  list-style: circle;
}

main ul p {
  text-indent: 0;
}

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

.img_r_c {
  clear: both;
  margin: 20px;
}

.img_warp_c {
  text-align: center;
}

.job_warp_c {
  text-align: center;
}

.mto {
  margin-top: 45px;
}

.mbo {
  margin-bottom: 45px;
}

.img_mar {
  margin: 25px;
}

.img_l_f {
  float: left;
}

.numbers {
  list-style: decimal;
}

.numbers > li {
  margin-top: 8px;
}

.rome {
  list-style: upper-roman;
}

.rome > li {
  margin-top: 15px;
}

.mtb {
  margin-top: 30px;
  margin-bottom: 30px;
}

.mtbl {
  margin-top: 15px;
  margin-bottom: 15px;
}

.mbl {
  margin-bottom: 8px;
}

.job_img_warp_c {
  text-align: center;
}

.studarium_wrap {
  border: 1px solid #000;
  border-radius: 20px;
}

/* adapt */

.menumob_wrap.active {
  background-color: rgb(164, 213, 154);
}

/* adapt end */

.elements_wrap {
  border: 1px solid #000;
  border-radius: 20px;
  text-align: center;
  margin-top: 30px;
  padding: 20px 30px;
}

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

.list ul li,
.list ul a {
  font-size: 0.8em;
}

.theme_choice p {
  font-size: 0.8em;
}

.theme_choice h6 {
  font-size: 1.1em;
}

.question_check {
  margin-bottom: 4px;
}

.invk {
  font-size: 0.85em;
}

.want {
  font-size: 1.3em;
}

.otvet_wrap {
  margin-top: 30px;
  text-align: center;
}

.maybe {
  text-align: center;
}

.art_element {
  padding: 0 20px;
}

#test_ege span {
  padding: 0.5em;
  margin-left: 0;
}

/* question */

.studimg_wrap,
.notfound {
  text-align: center;
}

.studimg_wrap img {
  margin-top: 30px;
}

.quote,
.notfound {
  margin-top: 50px;
}

.question_item {
  border: 1px solid #000;
  border-radius: 20px;
  margin: 0 10px;
}

.question_item:hover {
  background: rgb(171, 221, 130);
  cursor: pointer;
}

.question_item:not(:hover) {
  transition: 3s;
}

.question_item_wrap {
  margin-top: 30px;
  padding: 5px 15px;
}

.question_item_wrap a {
  text-decoration: none;
  color: #000;
}

.question_item span {
  display: block;
  padding: 5px 15px;
  font-size: 0.85em;
}

h1 {
  font-size: 1.4em;
}

.main_a_wrap_new {
  display: none;
  margin-top: 10px;
}

.main_a_wrap {
  margin-top: 44px;
}

.circle_ul {
  list-style: circle;
}

/* new */

.disc_ul {
  list-style: disc;
}

.ifr_kurs {
  text-align: center;
}

.bio_example {
  width: 300px;
}

.paket {
  text-align: center;
  border: 1px solid #000;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.5s ease-in-out 0s;
}

.paket:hover {
  background-color: rgb(119, 223, 145);
}

.paket.active {
  background-color: rgb(119, 223, 145);
}

.anat_gen {
  margin-top: 35px;
}

.paket span:first-child {
  display: block;
  margin-top: 10px;
}

.paket span:last-child {
  display: block;
  margin-bottom: 10px;
}

.price {
  text-align: center;
}

.veri_paket_wrap {
  cursor: pointer;
  margin: 12px 0;
  text-align: center;
}

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

.veri_paket {
  display: none;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #000;
  text-align: center;
  transition: all 0.5s ease-in-out 0s;
}

.veri_paket:hover {
  background-color: rgb(98, 226, 130);
}

.pay_wrap {
  display: none;
  text-align: center;
  margin: 15px;
}

.paket_descr {
  margin: 5px 0;
}

.thank-you-title {
  margin-top: 20px;
  text-align: center;
}

/* Paginator start */

.pagination {
  text-align: center;
}

.pagination li {
  display: inline-block;
  margin-right: 15px;
  border: 1px solid #000;
  border-radius: 10px;
  transition: all 0.5s ease-in-out 0s;
}

.pagination li a {
  display: block;
  cursor: pointer;
  padding: 0 10px;
}

.pagination-block li.active {
  background-color: #00d119;
}

.pagination-block li:hover {
  border: 1px solid #00d119;
}

.pagination-block li a:hover {
  color: #000;
}

/* Paginator end */

.themes_subject {
  cursor: pointer;
  display: inline-block;
  line-height: 1.45;
  text-decoration: none;
}

.themes_subject:hover {
  color: #00d119;
}

.themes_subline::after {
  content: "▾";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.85em;
  transform-origin: 50% 45%;
  transition: transform 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s;
}

.themes_subline.is-open::after {
  color: #00d119;
  transform: rotate(180deg);
}

.sublines_list_wrap {
  margin: 5px 0 8px 24px;
  padding: 0;
}

.sublines_list_wrap li {
  margin-bottom: 3px;
}

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

.tac {
  text-align: center;
}

.tar {
  text-align: right;
}

.email_input,
.password_input,
.fio_input,
.unique_input,
.key_input {
  border-radius: 7px;
}

.enter_input,
.enter_input_reg {
  padding: 2px 40px;
  border-radius: 10px;
  background-color: rgb(235, 242, 250);
  border: 1px solid #000;
  transition: all 0.5s ease-in-out 0s;
}

.enter_input:hover,
.enter_input_reg:hover {
  padding: 2px 40px;
  border-radius: 10px;
  background-color: rgb(213, 238, 217);
  border: 1px solid rgb(235, 242, 250);
}

.enter_wrap {
  margin-top: 20px;
}

.for-user-carousel .item {
  text-align: center;
}

.stud_logo_user {
  max-height: 150px;
}

h3.tac {
  margin: 20px 0 0 0;
}

.teacher_cabinet_wrap {
  border: 1px solid #000;
  border-radius: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.5s ease-in-out 0s;
}

.teacher_cabinet_wrap:hover {
  background-color: rgb(170, 210, 255);
}

.teacher_cabinet_wrap:not(:hover) {
  transition: 2s;
}

.search_teacher_wrap {
  margin-top: 20px;
  border: 1px solid #000;
  border-radius: 20px;
  padding: 10px;
}

/* кабинет конец */

/* комментарий препода начало */

.teacher_comment,
.teacher_create_comment_wrap {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 0 50px;
}

.comment_show_wrap {
  display: block;
}

.comment_show_wrap {
  margin-top: 20px;
  text-align: center;
}

.comment_show_wrap button {
  background-color: #9595c6;
  border-color: #9595c6;
  border-radius: 10px;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.comment_show_wrap button:hover {
  color: #fff;
}

.teacher_create_comment {
  width: 90%;
}

/* шаблоны */

.templates {
  margin-bottom: 14px;
}

.template_but {
  display: inline-block;
  padding: 5px;
  border: 1px solid #000;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  background-color: rgb(136, 231, 133);
  transition: all 0.5s ease-in-out 0s;
}

.template_but:hover {
  background-color: rgb(151, 186, 226);
}

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

/* добавить в избранное начало */

/* button start */

.puls_wrap {
  display: inline-block;
  position: relative;
}

.puls {
  cursor: pointer;
}

.puls:hover:before,
.puls:hover:after {
  content: "";
  position: absolute;
  border: 1px solid #cc3333;
  left: -10px;
  right: -10px;
  top: -10px;
  bottom: -10px;
  border-radius: 50px;
  animation: puls 1.3s linear infinite;
  opacity: 0;
}

.puls:hover:after {
  animation-delay: 0.5s;
}

@keyframes puls {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.puls img {
  z-index: 1;
  max-width: 40px;
  max-height: 40px;
  opacity: 0.9;
}

.puls:hover {
  transform: scaleX(-1);
  transition: all 0.5s ease-in-out 0s;
}

.puls_yet {
  cursor: pointer;
}

.puls_yet img {
  z-index: 1;
  max-width: 40px;
  max-height: 40px;
  opacity: 0.9;
}

.personal-cabinet {
  font-size: 0.9em;
}

label.favorites_img_wrap {
  margin: 0;
}

div.favorite_wrap:hover {
  background-color: rgb(189, 236, 168);
}

.favorite_wrap p a.messag {
  color: rgb(75, 182, 224);
}

.favorite_wrap p a.messag:hover {
  color: rgb(29, 74, 223);
}

/* button end */

/* popap start */

.form_by_test_wrap {
  background-color: rgba(255, 255, 255, 0.9);
}

.warning_account_close_wrap {
  background-color: #fff;
  opacity: 0.9;
}

/* popap end */

/* добавить в избранное конец */

/* страница регистрации начало */

.cabinet_title_wrap {
  margin-top: 20px;
}

.cabinet_video_wrap {
  margin: 0 auto;
  text-align: center;
  margin-top: 30px;
}

.cabinet_video_wrap iframe {
  width: 560px;
  height: 315px;
}

.elem_wrap {
  cursor: pointer;
  text-align: center;
  border: 1px solid #000;
  border-radius: 15px;
  padding: 15px;
  min-height: 234px;
  width: 100%;
}

.elem_wrap:hover {
  background-color: rgb(171, 221, 130);
  transition: all 0.5s ease-in-out 0s;
}

.elem_wrap:not(:hover) {
  transition: 3s;
}

.elem_wrap > .img_wrap_cabinet img.img_cabinet_register {
  max-height: 90px;
  max-width: 70px;
  display: inline-block;
  margin-bottom: 20px;
}

.owl-carousel-cabinet-wrap {
  margin: 0 auto;
  margin-top: 20px;
  text-align: center;
}

.buy_key_wrap,
.pay_wrap_tarif {
  margin-top: 30px;
}

.buy_key {
  cursor: pointer;
  margin-top: 20px;
  border: 1px solid #000;
  border-radius: 20px;
  max-width: 550px;
  padding: 10px 20px;
  margin: 0 auto;
}

.buy_key:hover {
  background-color: rgb(171, 221, 130);
  border: 1px solid rgb(171, 221, 130);
  transition: all 0.5s ease-in-out 0s;
}

.buy_key:not(:hover) {
  transition: 3s;
}

.buy_key.active {
  background-color: rgb(171, 221, 130);
  border: 1px solid rgb(171, 221, 130);
}

.tarif_var {
  cursor: pointer;
  text-align: center;
  border: 1px solid #000;
  border-radius: 20px;
}

.tarif_var:hover {
  background-color: rgb(171, 221, 130);
  border: 1px solid rgb(171, 221, 130);
  transition: all 0.5s ease-in-out 0s;
}

.tarif_var:not(:hover) {
  transition: 3s;
}

.tarif_var.active {
  background-color: rgb(171, 221, 130);
  border: 1px solid rgb(0, 255, 60);
}

.prcie_tarif {
  margin-top: 20px;
  text-align: center;
}

.pay_wrap_tarif input[type="submit"] {
  margin-top: 20px;
  border-radius: 15px;
  background-color: rgb(222, 230, 224);
}

.pay_wrap_tarif,
.buy_key_wrap_tarifs {
  display: none;
}

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

p.open {
  margin-top: 35px;
}

/* ovr start */

.studarium_ovr {
  color: #66b3f6;
}

.reaction_ovr {
  font-size: 1.4em;
  padding: 5px 15px;
}

.reaction_right {
  display: inline-block;
  min-width: 20px;
}

.verify_ovr {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 0 10px 0;
  max-width: 260px;
  cursor: pointer;
}

.verify_ovr.active {
  color: #fff;
  background-color: #66b3f6;
}

.verify_ovr:hover {
  color: #fff;
  background-color: #66b3f6;
  border: 1px solid #66b3f6;
  transition: all 0.5s ease-in-out 0s;
}

.verify_ovr:not(:hover) {
  transition: 0.2s;
}

.input_wrap {
  border: none;
  outline: none;
  max-width: 650px;
  width: 100%;
}

.next_ovr_wrap {
  padding: 0;
}

a.next_ovr {
  display: block;
  padding: 10px 15px;
}

a.next_ovr:hover {
  color: #fff;
  transition: all 0.2s ease-in-out 0s;
}

/* ovr end */

/* smile start */

i.em {
  height: 1.1em;
}

/* smile end */

/* rus start */

p.indent {
  text-indent: 15px;
}

.show_text {
  padding: 10px 15px;
  display: inline-block;
}

.text_rus {
  display: none;
}

/* rus end */

/* his start */

.tab_wrap {
  border: 1px solid #000;
}

/* his end */

/* phy start */

.overflow_span {
  display: block;
  overflow-x: auto;
}

/* phy end */

/* soc start */

.soc_themes {
  margin-top: 20px;
}

.soc_themes td {
  border: 1px solid #000;
  padding: 5px;
}

/* soc end */

/* inf start */

.mrle {
  display: inline-block;
  margin-left: 15px;
}

pre {
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: o-pre-wrap;
  word-wrap: break-word;
}

/* inf end */

/* eng start */

.letter_wrap {
  display: inline-block;
  padding: 5px 15px;
  margin: 4px;
  border: 2px solid #000;
  border-radius: 13px;
}

audio {
  border-radius: 20px;
}

/* eng end */

.subject_intel_kurs {
  margin-top: 40px;
}

.subject_caption {
  margin-top: 12px;
  max-width: 1100px;
}

.subject_a:hover {
  color: #000;
}

.subject_kurs_wrap {
  margin: 7px;
  cursor: pointer;
}

a.universal {
  display: block;
  text-decoration: none;
}

a.universal:hover {
  color: #000;
}

.animation-simple {
  transition: all 0.2s ease-in-out 0s;
}

/* Видеокурсы и курсы */

.kurs_wrap {
  text-align: center;
  margin-top: 40px;
}

.kurs_wrap span.studarium_wrap {
  padding: 10px 30px;
  margin-right: 30px;
}

.kurs_wrap {
  cursor: pointer;
}

.kurs_wrap a:hover {
  color: #000;
}

.videokurs .prog_but {
  margin: 10px 15px;
}

.basket-img-kurs {
  height: auto;
  max-width: 25px;
}

.basket-img-kurs-popup {
  height: auto;
  max-width: 55px;
  position: relative;
  margin-left: 4px;
  margin-top: 4px;
}

#basket_mini_page {
  left: auto;
  right: 120px;
  bottom: -100px;
  z-index: 100;
  width: 65px;
  height: 65px;
  line-height: 40px;
  background-color: rgb(255, 255, 255);
}

.products_num_wrap {
  position: absolute;
  display: inline-block;
  margin-top: 30px;
  width: 30px;
}

.products_num {
  color: #fff;
  padding: 0px 10px;
  background-color: rgb(255, 26, 0);
  border-radius: 50%;
}

/* Модальное окно скидки */

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-animation-name: fadeIn;
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s;
}

/* Модальное содержание */

.modal-content {
  position: fixed;
  bottom: 0;
  background-color: #fefefe;
  width: 100%;
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.4s;
  animation-name: slideIn;
  animation-duration: 0.4s;
}

/* Кнопка закрытия */

.close {
  color: white;
  float: right;
  font-size: 1.5em;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.modal-body {
  padding: 2px 16px;
}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* Добавить анимацию */

@-webkit-keyframes slideIn {
  from {
    bottom: -300px;
    opacity: 0;
  }

  to {
    bottom: 0;
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    bottom: -300px;
    opacity: 0;
  }

  to {
    bottom: 0;
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.discount {
  text-align: center;
}

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

/* БИФОБИЯ НАЧАЛО */

.mt20 {
  margin-top: 20px;
}

.evidence_wrap,
.organism_find {
  cursor: pointer;
  word-wrap: break-word;
}

.evidence_wrap {
  background-color: rgb(196, 177, 177);
  transition: all 10s ease-in-out 0s;
}

.evidence_wrap_show {
  background-color: #fff;
  transition: all 10s ease-in-out 0s;
}

.evidence,
.organism_find {
  padding: 10px 10px;
}

.organism_find {
  background-color: #afd5aa;
  color: #000;
}

.animate {
  transition: all 10s ease-in-out 0s;
}

.animate3s {
  transition: all 4s ease-in-out 0s;
}

.span-choosen {
  border: 1px solid #000;
  border-radius: 30px;
  padding: 2px 15px;
}

.complexity {
  margin-top: 15px;
  display: inline-block;
  border-radius: 5px;
  padding: 20px;
  cursor: pointer;
}

.animate-slow {
  transition: all 1s ease-in-out 0s;
}

.animate-slow-05 {
  transition: all 0.5s ease-in-out 0s;
}

.complexity:hover {
  color: #fff;
}

.game-start,
.final {
  cursor: pointer;
  border: 1px solid #000;
  border-radius: 10px;
  margin: 20px;
  padding: 10px;
}

.game-start:hover {
  padding: 0 150px;
}

.final {
  display: inline-block;
  background: #b3c7df;
}

.final:hover {
  border-color: #000;
  color: #000;
  padding: 10px 150px;
}

.final.active {
  background: #fff;
  padding: 10px 150px;
}

.new-biophobia {
  cursor: pointer;
  border: 1px solid #000;
  border-radius: 10px;
  margin: 20px;
  padding: 10px;
}

.new-biophobia:hover {
  background-color: #7cce55;
  color: #fff;
}

.seconds {
  font-size: 2em;
}

.biophobia_on_subject_page:hover {
  cursor: pointer;
  background-color: #000;
  color: #000000;
  letter-spacing: 1em;
}

.biophobia_on_subject_page {
  display: block;
  font-size: 1.5em;
  padding: 10px 20px;
  text-decoration: none;
}

/* БИФОБИЯ КОНЕЦ */

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

body.kurs-soft-refresh .subject_kurs_wrap {
  padding: 14px 10px;
  min-height: 64px;
  background-color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease-in-out 0s;
}

body.kurs-soft-refresh .subject_kurs_wrap:hover,
body.kurs-soft-refresh .subject_kurs_wrap.active {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

body.kurs-soft-refresh .subject_kurs_wrap a.universal,
body.kurs-soft-refresh .subject_kurs_wrap span {
  position: relative;
  z-index: 1;
}

body.kurs-soft-refresh .subject_kurs_wrap a.universal {
  display: block;
  padding: 2px 0;
}

body.kurs-soft-refresh .kurs_wrap span.studarium_wrap {
  display: inline-block;
  padding: 10px 30px;
  margin: 6px 15px;
  background-color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease-in-out 0s;
}

body.kurs-soft-refresh .kurs_wrap span.studarium_wrap:hover,
body.kurs-soft-refresh .kurs_wrap span.studarium_wrap.active {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.11);
}

body.kurs-soft-refresh .progr {
  position: relative;
  overflow: hidden;
  padding: 18px 22px;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease-in-out 0s;
}

body.kurs-soft-refresh .progr:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

body.kurs-soft-refresh .progr_wrap_l {
  margin: 0 24px;
}

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

body.kurs-soft-refresh .progr .name_p {
  margin-bottom: 14px;
}

body.kurs-soft-refresh .price_for_one_kurs {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 12px;
  border: 1px solid #000;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.78);
}

body.kurs-soft-refresh .show_deatil_wrap {
  margin-top: 10px;
}

body.kurs-soft-refresh .show_deatil_wrap div {
  min-width: 220px;
  background-color: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transition: all 0.2s ease-in-out 0s;
}

body.kurs-soft-refresh .show_deatil_wrap div:hover {
  transform: translateY(-2px);
  background-color: #fff;
}

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

body.kurs-soft-refresh .add_to_basket {
  font-weight: bold;
}

body.kurs-soft-refresh .add_to_basket.active {
  background-color: #fff;
}

body.kurs-soft-refresh .detail_kurs {
  margin-top: 10px;
  background-color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

body.kurs-soft-refresh .about_kurs {
  line-height: 1.65;
}

body.kurs-soft-refresh .basket-img-kurs {
  margin-left: 5px;
  vertical-align: middle;
}

body.kurs-soft-refresh #basket_mini_page {
  border: 1px solid #000;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.kurs-soft-refresh #basket_mini_page:hover {
  transform: translateY(-3px);
  background-color: rgb(213, 238, 217);
}


/* ===== Курсы: живое цветное заполнение предметов ===== */

body.kurs-soft-refresh .subject_kurs_wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  margin: 6px 0 10px;
  padding: 0;
  background-color: #fff !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 255, 249, 0.94));
  border: 1px solid rgba(0, 0, 0, 0.78);
  border-radius: 18px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  transition: transform 0.24s ease-in-out 0s, box-shadow 0.24s ease-in-out 0s, border-color 0.24s ease-in-out 0s;
}

body.kurs-soft-refresh .subject_kurs_wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -55%;
  right: -55%;
  top: -80%;
  bottom: -80%;
  background:
    radial-gradient(circle at 16% 34%, var(--subject-color, rgb(171, 221, 130)) 0 8%, transparent 9.5%),
    radial-gradient(circle at 38% 78%, var(--subject-color, rgb(171, 221, 130)) 0 12%, transparent 13.5%),
    radial-gradient(circle at 62% 26%, var(--subject-color, rgb(171, 221, 130)) 0 10%, transparent 11.5%),
    radial-gradient(circle at 84% 62%, var(--subject-color, rgb(171, 221, 130)) 0 14%, transparent 15.5%),
    radial-gradient(circle at 50% 50%, var(--subject-color, rgb(171, 221, 130)) 0 24%, transparent 26%);
  opacity: 0.18;
  transform: scale(0.78) rotate(-9deg);
  transition: opacity 0.35s ease-in-out 0s, transform 0.72s cubic-bezier(0.2, 0.9, 0.2, 1) 0s;
  pointer-events: none;
}

body.kurs-soft-refresh .subject_kurs_wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, transparent 34%, rgba(255, 255, 255, 0.5) 48%, transparent 63%, transparent 100%);
  opacity: 0;
  transform: translateX(-135%);
  transition: opacity 0.24s ease-in-out 0s, transform 0.75s ease-in-out 0s;
  pointer-events: none;
}

body.kurs-soft-refresh .subject_kurs_wrap:hover,
body.kurs-soft-refresh .subject_kurs_wrap.active {
  background-color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.13);
}

body.kurs-soft-refresh .subject_kurs_wrap:hover::before,
body.kurs-soft-refresh .subject_kurs_wrap.active::before {
  opacity: 0.76;
  transform: scale(1.14) rotate(0deg);
}

body.kurs-soft-refresh .subject_kurs_wrap:hover::after {
  opacity: 1;
  transform: translateX(135%);
}

body.kurs-soft-refresh .subject_kurs_wrap a.universal {
  min-height: 50px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.kurs-soft-refresh .subject_kurs_wrap a.universal,
body.kurs-soft-refresh .subject_kurs_wrap span {
  position: relative;
  z-index: 1;
}

body.kurs-soft-refresh .subject_kurs_wrap span {
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.kurs-soft-refresh .subject_kurs_wrap:hover span,
body.kurs-soft-refresh .subject_kurs_wrap.active span {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.kurs-soft-refresh .kurs_wrap span.studarium_wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  padding: 10px 28px;
  background-color: #fff !important;
  border-radius: 20px;
}

body.kurs-soft-refresh .kurs_wrap span.studarium_wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -45%;
  right: -45%;
  top: -90%;
  bottom: -90%;
  background:
    radial-gradient(circle at 18% 35%, var(--subject-color, rgb(171, 221, 130)) 0 10%, transparent 12%),
    radial-gradient(circle at 55% 75%, var(--subject-color, rgb(171, 221, 130)) 0 18%, transparent 20%),
    radial-gradient(circle at 84% 30%, var(--subject-color, rgb(171, 221, 130)) 0 14%, transparent 16%);
  opacity: 0.17;
  transform: scale(0.82) rotate(-7deg);
  transition: opacity 0.35s ease-in-out 0s, transform 0.65s ease-in-out 0s;
}

body.kurs-soft-refresh .kurs_wrap span.studarium_wrap:hover::before,
body.kurs-soft-refresh .kurs_wrap span.studarium_wrap.active::before {
  opacity: 0.76;
  transform: scale(1.12) rotate(0deg);
}

body.kurs-soft-refresh .kurs_wrap span.studarium_wrap:hover,
body.kurs-soft-refresh .kurs_wrap span.studarium_wrap.active {
  background-color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  body.kurs-soft-refresh .subject_kurs_wrap,
  body.kurs-soft-refresh .subject_kurs_wrap::before,
  body.kurs-soft-refresh .subject_kurs_wrap::after,
  body.kurs-soft-refresh .kurs_wrap span.studarium_wrap,
  body.kurs-soft-refresh .kurs_wrap span.studarium_wrap::before {
    transition: none;
  }
}

.choice_de.themes a.themes_subject,
.choice_de.themes a.themes_subject:visited,
.choice_de.themes a.themes_subject:hover,
.choice_de.themes a.themes_subject:focus,
.choice_de.themes a.themes_subject:active {
  text-decoration: none;
}


/* ===== Главная страница: автор, меню, настройки оформления ===== */

.main_wrap .vk {
  margin-top: 36px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.main_wrap .vk a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.main_wrap .vk img {
  position: relative;
  top: 0;
  margin-left: 0;
}

.personal-cabinet {
  min-height: 55px;
  line-height: 1.25;
}

.author-note {
  margin-top: 12px;
  margin-left: 0;
  max-width: 560px;
  font-family: "Segoe Print";
  font-size: 0.58em;
  line-height: 1.45;
  color: #4f4f4f;
}

footer .author-qualification {
  display: inline-block;
  margin-top: 2px;
  font-family: "Segoe Print";
  color: #444;
}

.site-settings,
.site-settings * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif !important;
}

.site-settings {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3000;
  font-size: 14px;
  line-height: 1.3;
}

.site-settings__toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.78);
  -webkit-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  color: #303030;
  cursor: pointer;
  opacity: 0.56;
  transition: opacity 0.2s ease-in-out 0s, transform 0.2s ease-in-out 0s, background-color 0.2s ease-in-out 0s;
}

.site-settings__toggle:hover,
.site-settings__toggle:focus,
.site-settings.is-open .site-settings__toggle {
  opacity: 1;
  background-color: #fff;
  transform: rotate(24deg);
}

.site-settings__panel {
  position: absolute;
  top: 42px;
  right: 0;
  width: 228px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.96);
  -webkit-box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  color: #1f1f1f;
  text-align: left;
}

.site-settings__caption {
  display: block;
  margin: 4px 0 7px;
  font-size: 12px;
  color: #696969;
}

.site-settings__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.site-settings__button {
  padding: 5px 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.88);
  color: #2a2a2a;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
  transition: background-color 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s, border-color 0.2s ease-in-out 0s;
}

.site-settings__button:hover,
.site-settings__button.is-active {
  border-color: #00d119;
  background-color: #e9ffe9;
  color: #0b6c16;
}

.site-settings__hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #777;
}

html.font-comfort *:not(.em),
html.font-comfort pre {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

html.font-classic *:not(.em),
html.font-classic pre {
  font-family: Georgia, "Times New Roman", serif !important;
}

html.font-comfort body,
html.font-classic body {
  letter-spacing: 0.01em;
}

/* ===== Темная тема ===== */

html.theme-dark body {
  background-color: #101916;
  color: #e8f0ec;
}

html.theme-dark a,
html.theme-dark footer .soc a,
html.theme-dark .question_item_wrap a,
html.theme-dark .theme_pick a,
html.theme-dark .prog_but a:hover,
html.theme-dark a.universal:hover,
html.theme-dark .subject_a:hover {
  color: #e8f0ec;
}

html.theme-dark a.act,
html.theme-dark a:hover,
html.theme-dark .detected,
html.theme-dark .list ul li:hover,
html.theme-dark .list ul a:hover,
html.theme-dark .themes_subject:hover,
html.theme-dark .list_theme .list_theme_choice,
html.theme-dark .themes_subline.is-open::after {
  color: #7ee887;
}

html.theme-dark .author-note,
html.theme-dark footer .author-qualification,
html.theme-dark footer .create,
html.theme-dark .site-settings__caption,
html.theme-dark .site-settings__hint {
  color: #b9c9c1;
}

html.theme-dark .line,
html.theme-dark .line_bottom {
  border-color: #53645c;
  -webkit-box-shadow: 0 0 5px rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.08);
}

html.theme-dark .search .input,
html.theme-dark input,
html.theme-dark textarea {
  background-color: #17231f;
  color: #ecf5f0;
  border-color: #5a6a62;
}

html.theme-dark .search .input {
  -webkit-box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.7);
}

html.theme-dark .search .input::-webkit-input-placeholder {
  color: #aebbb5;
}

html.theme-dark .search .input:-ms-input-placeholder {
  color: #aebbb5;
}

html.theme-dark .search .input::-ms-input-placeholder {
  color: #aebbb5;
}

html.theme-dark .search .input::placeholder {
  color: #aebbb5;
}

html.theme-dark .search .submit {
  -webkit-filter: invert(1) brightness(0.9);
  filter: invert(1) brightness(0.9);
  opacity: 0.62;
}

html.theme-dark .subjects .sub,
html.theme-dark .test_img_wrap,
html.theme-dark .navigation .charter,
html.theme-dark .navigation .sub_charter,
html.theme-dark .choice_de,
html.theme-dark .question,
html.theme-dark .help,
html.theme-dark .teacher_comment,
html.theme-dark .teacher_create_comment_wrap,
html.theme-dark .studarium_wrap,
html.theme-dark .elements_wrap,
html.theme-dark .elem_wrap,
html.theme-dark .buy_key,
html.theme-dark .tarif_var,
html.theme-dark .veri_paket,
html.theme-dark .paket,
html.theme-dark .progr,
html.theme-dark .detail_kurs,
html.theme-dark .list,
html.theme-dark .question_item,
html.theme-dark .copyright_art,
html.theme-dark .tab_wrap,
html.theme-dark .letter_wrap,
html.theme-dark .modal-content {
  border-color: #5b6f66;
  background-color: #17231f;
  color: #e8f0ec;
}

html.theme-dark .subjects .sub:hover,
html.theme-dark .test_img_wrap:hover,
html.theme-dark .question_item:hover,
html.theme-dark .arg_wrap:hover,
html.theme-dark .elem_wrap:hover,
html.theme-dark .buy_key:hover,
html.theme-dark .tarif_var:hover,
html.theme-dark .veri_paket:hover,
html.theme-dark .paket:hover,
html.theme-dark .paket.active,
html.theme-dark .teacher_cabinet_wrap:hover,
html.theme-dark .show_deatil_wrap div:hover,
html.theme-dark .template_but:hover,
html.theme-dark .new-biophobia:hover {
  background-color: #24382f;
  color: #f3fff8;
}

html.theme-dark .navigation .charter.choice_charter,
html.theme-dark .navigation .charter:hover,
html.theme-dark .evidence_wrap_show,
html.theme-dark .final.active,
html.theme-dark body.kurs-soft-refresh .detail_kurs,
html.theme-dark body.kurs-soft-refresh .subject_kurs_wrap,
html.theme-dark body.kurs-soft-refresh .subject_kurs_wrap:hover,
html.theme-dark body.kurs-soft-refresh .subject_kurs_wrap.active,
html.theme-dark body.kurs-soft-refresh .kurs_wrap span.studarium_wrap,
html.theme-dark body.kurs-soft-refresh .kurs_wrap span.studarium_wrap:hover,
html.theme-dark body.kurs-soft-refresh .kurs_wrap span.studarium_wrap.active {
  background-color: #16251f !important;
  color: #e8f0ec;
}

html.theme-dark .success_full {
  background-color: #244a2f;
}

html.theme-dark .home_work {
  background-color: #253445;
}

html.theme-dark .success_part {
  background-color: #59452c;
}

html.theme-dark .attempt {
  background-color: #572f32;
}

html.theme-dark .no-decision {
  background-color: #2b312f;
}

html.theme-dark .button_wrap button,
html.theme-dark .show_wrap button,
html.theme-dark .comment_show_wrap button,
html.theme-dark .btn,
html.theme-dark .enter_input,
html.theme-dark .enter_input_reg,
html.theme-dark .template_but,
html.theme-dark #toTop,
html.theme-dark #basket_mini_page {
  border-color: #6c8177;
  background-color: #263b33;
  color: #f1faf5;
}

html.theme-dark .form_by_test_wrap,
html.theme-dark .warning_account_close_wrap {
  background-color: rgba(16, 25, 22, 0.94);
}

html.theme-dark .site-settings__toggle {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(23, 35, 31, 0.82);
  color: #e8f0ec;
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

html.theme-dark .site-settings__toggle:hover,
html.theme-dark .site-settings__toggle:focus,
html.theme-dark .site-settings.is-open .site-settings__toggle,
html.theme-dark .site-settings__panel {
  background-color: rgba(19, 29, 26, 0.97);
  color: #e8f0ec;
}

html.theme-dark .site-settings__panel {
  border-color: rgba(255, 255, 255, 0.16);
  -webkit-box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

html.theme-dark .site-settings__button {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.06);
  color: #e8f0ec;
}

html.theme-dark .site-settings__button:hover,
html.theme-dark .site-settings__button.is-active {
  border-color: #7ee887;
  background-color: rgba(126, 232, 135, 0.16);
  color: #bcffc2;
}

html.theme-dark .subjects .sub,
html.theme-dark main img,
html.theme-dark .img_warp_c img,
html.theme-dark .job_img_warp_c img,
html.theme-dark .test_img_wrap img,
html.theme-dark .help img,
html.theme-dark .varis img,
html.theme-dark .studimg_wrap img,
html.theme-dark .subject_cover_wrap img,
html.theme-dark .paket_img_wrap img {
  -webkit-filter: brightness(0.78) contrast(0.96) saturate(0.92);
  filter: brightness(0.78) contrast(0.96) saturate(0.92);
}

html.theme-dark .subjects .sub:hover,
html.theme-dark .test_img_wrap:hover img {
  -webkit-filter: brightness(0.88) contrast(0.98) saturate(0.96);
  filter: brightness(0.88) contrast(0.98) saturate(0.96);
}

html.theme-dark .logo_wrap img,
html.theme-dark .vk img,
html.theme-dark footer .soc img,
html.theme-dark footer .univer img,
html.theme-dark #toTop img,
html.theme-dark #basket_mini_page img,
html.theme-dark .site-settings img {
  -webkit-filter: none;
  filter: none;
}

html.theme-dark .arg_wrap_1,
html.theme-dark .arg_wrap_2 {
  -webkit-filter: brightness(0.78) contrast(0.95);
  filter: brightness(0.78) contrast(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .site-settings__toggle,
  .site-settings__button {
    transition: none;
  }
}

.site-logo--dark {
    display: none;
}

html.theme-dark .site-logo--light {
    display: none;
}

html.theme-dark .site-logo--dark {
    display: inline-block;
}

/* ===== Темная тема: приглушение ярких карточек курсов =====
   Нужно именно здесь, в общем CSS: у .progr цвет приходит inline-стилем
   style="background-color: #...", поэтому обычный background-color темы
   его не перебивает. Псевдо-слой затемняет яркий цвет, но не затемняет текст. */

html.theme-dark body.kurs-soft-refresh .progr,
body.theme-dark.kurs-soft-refresh .progr {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f1faf4 !important;
  border-color: rgba(238, 248, 242, 0.26) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

html.theme-dark body.kurs-soft-refresh .progr::before,
body.theme-dark.kurs-soft-refresh .progr::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 9, 0.58), rgba(6, 11, 9, 0.66));
  pointer-events: none;
}

html.theme-dark body.kurs-soft-refresh .progr::after,
body.theme-dark.kurs-soft-refresh .progr::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 88% 105%, rgba(126, 232, 135, 0.10), transparent 38%);
  pointer-events: none;
}

html.theme-dark body.kurs-soft-refresh .progr > *,
body.theme-dark.kurs-soft-refresh .progr > * {
  position: relative;
  z-index: 1;
}

html.theme-dark body.kurs-soft-refresh .progr p,
html.theme-dark body.kurs-soft-refresh .progr span,
html.theme-dark body.kurs-soft-refresh .progr b,
body.theme-dark.kurs-soft-refresh .progr p,
body.theme-dark.kurs-soft-refresh .progr span,
body.theme-dark.kurs-soft-refresh .progr b {
  color: #f1faf4 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.62);
}

html.theme-dark body.kurs-soft-refresh .progr:hover,
body.theme-dark.kurs-soft-refresh .progr:hover {
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
}

html.theme-dark body.kurs-soft-refresh .price_for_one_kurs,
body.theme-dark.kurs-soft-refresh .price_for_one_kurs {
  background-color: rgba(10, 17, 14, 0.72) !important;
  color: #f1faf4 !important;
  border-color: rgba(238, 248, 242, 0.24) !important;
}

html.theme-dark body.kurs-soft-refresh .show_deatil_wrap div,
body.theme-dark.kurs-soft-refresh .show_deatil_wrap div {
  background-color: rgba(10, 17, 14, 0.70) !important;
  color: #f1faf4 !important;
  border-color: rgba(238, 248, 242, 0.22) !important;
}

html.theme-dark body.kurs-soft-refresh .show_deatil_wrap div:hover,
body.theme-dark.kurs-soft-refresh .show_deatil_wrap div:hover {
  background-color: rgba(22, 37, 31, 0.92) !important;
}

html.theme-dark body.kurs-soft-refresh .add_to_basket.active,
body.theme-dark.kurs-soft-refresh .add_to_basket.active {
  background-color: rgba(10, 17, 14, 0.72) !important;
  color: #f1faf4 !important;
  border-color: rgba(126, 232, 135, 0.35) !important;
}

html.theme-dark body.kurs-soft-refresh .show_deatil_wrap img.basket-img-kurs,
html.theme-dark body.kurs-soft-refresh .add_to_basket img.basket-img-kurs,
html.theme-dark #basket_mini_page img.basket-img-kurs-popup,
html.theme-dark .img-circle.bg.active img
 {
  filter: invert(1) brightness(1.18) contrast(0.96) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)) !important;
  opacity: 0.92;
}

.stud-question-theme-img {
  margin-top: 0;
}

.stud-question-theme-img--dark {
  display: none;
}

html.theme-dark .stud-question-theme-img--light {
  display: none;
}

html.theme-dark .stud-question-theme-img--dark {
  display: inline-block;
  -webkit-filter: brightness(0.82) contrast(0.96) !important;
  filter: brightness(0.82) contrast(0.96) !important;
  opacity: 0.9;
}
/* ===== Страница статьи: мягкое обновление учебника ===== */

.article-page {
  --article-accent: #00d119;
  --article-accent-rgb: 0, 209, 25;
  --article-accent-deep: #0a6b17;
  --article-accent-hover: #00a915;
  --article-accent-muted: #31543a;
  --article-accent-arrow: #4e7b55;
  --article-accent-light: #bff6c5;
  --article-accent-light-2: #9beaa4;
  --article-accent-dark-hover: #bcffc2;
  --article-accent-dark-line: #7ee887;
  --article-accent-dark-fill: rgba(60, 166, 75, 0.72);
}

.article-page.article-page--subject-3 {
  --article-accent: #5CCCCC;
  --article-accent-rgb: 92, 204, 204;
  --article-accent-deep: #0f7777;
  --article-accent-hover: #249999;
  --article-accent-muted: #266e6e;
  --article-accent-arrow: #438f8f;
  --article-accent-light: #ccffff;
  --article-accent-light-2: #9beeee;
  --article-accent-dark-hover: #c7ffff;
  --article-accent-dark-line: #5CCCCC;
  --article-accent-dark-fill: rgba(53, 152, 152, 0.72);
}

.article-page .article-container {
  margin-top: 28px;
}

.article-page .article-sidebar {
  margin-bottom: 24px;
}

.article-page .article-sidebar-card {
  position: relative;
}

.article-page .article-sidebar-heading {
  display: inline-block;
  margin: 0 0 10px 2px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.06);
  color: var(--article-accent-muted);
  font-size: 0.78em;
}

.article-page .article-navigation {
  width: 100%;
  padding: 10px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 255, 247, 0.9));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.article-page .article-nav-group {
  margin: 0 0 8px;
}

.article-page .article-nav-group:last-child {
  margin-bottom: 0;
}

.article-page .article-nav-charter {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 38px 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background-color: rgba(238, 247, 238, 0.9);
  color: #1f2a23;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: background-color 0.2s ease-in-out 0s, border-color 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s, transform 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s;
}

.article-page .article-nav-charter::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--article-accent-arrow);
  font-size: 0.9em;
  line-height: 1;
  transform: translateY(-50%);
  transform-origin: 50% 45%;
  transition: transform 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s;
}

.article-page .article-nav-charter:hover,
.article-page .article-nav-charter.choice_charter {
  border-color: rgba(var(--article-accent-rgb), 0.55);
  background-color: rgba(var(--article-accent-rgb), 0.13);
  color: var(--article-accent-deep);
  box-shadow: 0 6px 16px rgba(var(--article-accent-rgb), 0.12);
}

.article-page .article-nav-charter:hover {
  transform: translateY(-1px);
}

.article-page .article-nav-charter.choice_charter::after {
  color: var(--article-accent);
  transform: translateY(-50%) rotate(180deg);
}

.article-page .article-nav-charter__name {
  display: block;
}

.article-page .article-nav-sublist {
  display: none;
  margin: 7px 0 5px 8px;
  padding: 5px 0 5px 10px;
  border-left: 2px solid rgba(var(--article-accent-rgb), 0.24);
  background: transparent;
}

.article-page .article-nav-sublist.yes {
  display: block;
}

.article-page .article-nav-theme {
  margin: 3px 0;
  padding: 0;
}

.article-page .article-nav-theme a {
  display: block;
  padding: 6px 10px;
  border-radius: 13px;
  color: #222;
  line-height: 1.38;
  text-decoration: none;
  transition: background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s, transform 0.18s ease-in-out 0s;
}

.article-page .article-nav-theme a:hover {
  background-color: rgba(var(--article-accent-rgb), 0.10);
  color: var(--article-accent-hover);
  transform: translateX(2px);
}

.article-page .article-nav-theme.theme_pick a {
  background-color: var(--article-accent);
  color: #fff;
  box-shadow: 0 5px 14px rgba(var(--article-accent-rgb), 0.18);
}

.article-page .article-main {
  padding-bottom: 28px;
}

.article-page .article-near-theme-wrap {
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
}

.article-page .article-near-theme-card {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 255, 250, 0.86));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.055);
}

.article-page .article-near-theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style: none;
}

.article-page .article-near-theme-item {
  float: none;
  margin: 0;
  font-family: "Segoe Print";
}

.article-page .article-near-theme-item a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.86);
  color: #242424;
  text-decoration: none;
  transition: background-color 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s, transform 0.18s ease-in-out 0s;
}

.article-page .article-near-theme-item a:hover {
  border-color: rgba(var(--article-accent-rgb), 0.48);
  background-color: rgba(var(--article-accent-rgb), 0.11);
  color: var(--article-accent-hover);
  transform: translateY(-1px);
}

.article-page .article-near-theme-item a.list_theme_choice {
  border-color: var(--article-accent);
  background-color: var(--article-accent);
  color: #fff;
  box-shadow: 0 5px 14px rgba(var(--article-accent-rgb), 0.18);
}

.article-page .article-card {
  margin-top: 0;
  padding: 10px 28px 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  background-color: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
}

.article-page .article-title {
  position: relative;
  margin: 18px 0 32px;
  padding-bottom: 14px;
  line-height: 1.34;
}

.article-page .article-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92px;
  height: 3px;
  border-radius: 99px;
  background-color: var(--article-accent);
  transform: translateX(-50%);
}

.article-page .article-content p {
  line-height: 1.75;
}

.article-page .article-content img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.article-page .article-copyright {
  margin-top: 32px;
  padding: 12px 16px;
  border-color: rgba(0, 0, 0, 0.12);
  background-color: rgba(250, 255, 250, 0.74);
}

.article-page .article-test-caption #caption,
.article-page .article-blitz-test,
.article-page .article-blitz-caption {
  border-radius: 24px;
}

.article-page .article-test-caption #caption {
  background-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.article-page .article-test-caption #caption:hover {
  background-color: rgba(var(--article-accent-rgb), 0.13);
}

.article-page .article-blitz-test {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.58);
}

@media only screen and (min-width: 992px) {
  .article-page .article-sidebar-card {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    padding-bottom: 4px;
    overflow-y: auto;
  }
}

@media only screen and (max-width: 992px) {
  .article-page .article-container {
    margin-top: 18px;
  }

  .article-page .article-sidebar-card {
    margin-bottom: 18px;
  }

  .article-page .article-card {
    padding: 8px 22px 20px;
  }
}

@media only screen and (max-width: 480px) {
  .article-page .article-navigation {
    padding: 8px;
    border-radius: 18px;
  }

  .article-page .article-nav-charter {
    padding: 9px 34px 9px 12px;
    border-radius: 14px;
  }

  .article-page .article-nav-theme a {
    padding: 6px 9px;
  }

  .article-page .article-near-theme-card {
    padding: 10px;
    border-radius: 18px;
  }

  .article-page .article-near-theme-list {
    gap: 6px;
  }

  .article-page .article-near-theme-item a {
    padding: 5px 9px;
  }

  .article-page .article-card {
    padding: 4px 12px 16px;
    border-radius: 22px;
  }

  .article-page .article-title {
    margin-top: 14px;
  }

  .article-page .article-content p {
    line-height: 1.62;
  }

  .article-page .article-copyright {
    padding: 10px;
  }
}

/* ===== Страница статьи: темная тема ===== */

html.theme-dark .article-page .article-sidebar-heading,
html.theme-dark .article-page .article-navigation,
html.theme-dark .article-page .article-near-theme-card,
html.theme-dark .article-page .article-card,
html.theme-dark .article-page .article-copyright,
html.theme-dark .article-page .article-blitz-test,
html.theme-dark .article-page .article-test-caption #caption {
  border-color: rgba(232, 240, 236, 0.14);
  background-color: rgba(19, 30, 26, 0.78);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  color: #e8f0ec;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark .article-page .article-sidebar-heading {
  color: var(--article-accent-light);
}

html.theme-dark .article-page .article-nav-charter {
  border-color: rgba(232, 240, 236, 0.12) !important;
  background-color: rgba(24, 38, 33, 0.92) !important;
  color: #e8f0ec !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

html.theme-dark .article-page .article-nav-charter::after {
  color: var(--article-accent-light-2);
}

html.theme-dark .article-page .article-nav-charter:hover,
html.theme-dark .article-page .article-nav-charter.choice_charter {
  border-color: rgba(var(--article-accent-rgb), 0.52) !important;
  background-color: rgba(var(--article-accent-rgb), 0.16) !important;
  color: var(--article-accent-dark-hover) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

html.theme-dark .article-page .article-nav-sublist {
  border-left-color: rgba(var(--article-accent-rgb), 0.26);
  background-color: transparent !important;
}

html.theme-dark .article-page .article-nav-theme a,
html.theme-dark .article-page .article-near-theme-item a {
  border-color: rgba(232, 240, 236, 0.12);
  background-color: rgba(255, 255, 255, 0.035);
  color: #dfe9e4;
}

html.theme-dark .article-page .article-nav-theme a:hover,
html.theme-dark .article-page .article-near-theme-item a:hover {
  background-color: rgba(var(--article-accent-rgb), 0.12);
  color: var(--article-accent-dark-hover);
}

html.theme-dark .article-page .article-nav-theme.theme_pick a,
html.theme-dark .article-page .article-near-theme-item a.list_theme_choice {
  border-color: rgba(var(--article-accent-rgb), 0.80);
  background-color: var(--article-accent-dark-fill);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

html.theme-dark .article-page .article-title::after {
  background-color: var(--article-accent-dark-line);
}

html.theme-dark .article-page .article-content img {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

html.theme-dark .article-page .article-test-caption #caption:hover {
  background-color: rgba(35, 58, 48, 0.95);
}

html.theme-dark .article-page .article-test-caption #caption a:hover {
  color: var(--article-accent-dark-hover);
}
/* ===== Work и Subject: мягкий редизайн тренировочных страниц ===== */

body.work-soft-refresh {
  --work-page-accent: #00d119;
}

body.work-soft-refresh .work-hero {
  position: relative;
}

body.work-soft-refresh .created.format.work-hero__title {
  display: block;
  max-width: 760px;
  margin: 34px auto 0;
  padding: 16px 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 209, 25, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 255, 250, 0.78));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  line-height: 1.45;
}

body.work-soft-refresh .work-hero__subline {
  display: inline-block;
  margin: 5px 0 0;
  color: #2d4f32;
}

body.work-soft-refresh .subjects {
  margin-top: 34px;
  margin-bottom: 48px;
}

body.work-soft-refresh .subjects .row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

body.work-soft-refresh .subjects .row::before,
body.work-soft-refresh .subjects .row::after {
  display: none;
}

body.work-soft-refresh .work-subject-link,
body.work-soft-refresh .work-subject-link:visited,
body.work-soft-refresh .work-subject-link:hover,
body.work-soft-refresh .work-subject-link:focus {
  display: block;
  height: 100%;
  color: #000;
  text-decoration: none;
}

body.work-soft-refresh .subjects .sub_wrapper.work-subject-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  min-height: 252px;
  padding: 14px 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 255, 250, 0.90));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.065);
  transition: transform 0.24s ease-in-out 0s, box-shadow 0.24s ease-in-out 0s, border-color 0.24s ease-in-out 0s;
}

body.work-soft-refresh .work-subject-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -22%;
  right: -22%;
  top: -48%;
  bottom: -42%;
  background:
    radial-gradient(circle at 22% 42%, color-mix(in srgb, var(--work-card-accent, #00d119) 34%, transparent), transparent 16%),
    radial-gradient(circle at 72% 70%, color-mix(in srgb, var(--work-card-accent, #00d119) 28%, transparent), transparent 18%),
    radial-gradient(circle at 52% 32%, color-mix(in srgb, var(--work-card-accent, #00d119) 18%, transparent), transparent 25%);
  opacity: 0.36;
  transform: scale(0.92) rotate(-8deg);
  transition: opacity 0.32s ease-in-out 0s, transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) 0s;
  pointer-events: none;
}

body.work-soft-refresh .work-subject-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.48) 50%, transparent 62%, transparent 100%);
  opacity: 0;
  transform: translateX(-130%);
  transition: opacity 0.2s ease-in-out 0s, transform 0.75s ease-in-out 0s;
  pointer-events: none;
}

body.work-soft-refresh .work-subject-link:hover .work-subject-card,
body.work-soft-refresh .work-subject-link:focus .work-subject-card {
  border-color: color-mix(in srgb, var(--work-card-accent, #00d119) 66%, #000 12%);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
}

body.work-soft-refresh .work-subject-link:hover .work-subject-card::before,
body.work-soft-refresh .work-subject-link:focus .work-subject-card::before {
  opacity: 0.82;
  transform: scale(1.08) rotate(0deg);
}

body.work-soft-refresh .work-subject-link:hover .work-subject-card::after,
body.work-soft-refresh .work-subject-link:focus .work-subject-card::after {
  opacity: 1;
  transform: translateX(130%);
}

body.work-soft-refresh .work-subject-picture {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 180px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--work-card-accent, #00d119) 22%, transparent), transparent 62%),
    rgba(245, 247, 246, 0.82);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.work-soft-refresh .subjects .sub {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 156px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  transition: transform 0.24s ease-in-out 0s, filter 0.24s ease-in-out 0s;
}

body.work-soft-refresh .subjects .sub:hover {
  background-color: transparent;
}

body.work-soft-refresh .work-subject-link:hover .sub,
body.work-soft-refresh .work-subject-link:focus .sub {
  transform: translateY(-3px) scale(1.025);
}

body.work-soft-refresh .subjects span.work-subject-title {
  position: relative;
  z-index: 1;
  display: block;
  margin: 12px 0 0;
  font-family: "Segoe Print";
  line-height: 1.28;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

body.subject-soft-refresh {
  --subject-page-accent: #00d119;
}

body.subject-soft-refresh .subject-hero {
  margin-top: 4px;
}

body.subject-soft-refresh .subject-hero__title {
  max-width: 980px;
  margin: 28px auto 0;
  line-height: 1.34;
}

body.subject-soft-refresh .subject-hero__title::after {
  content: "";
  display: block;
  width: 96px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 99px;
  background-color: var(--subject-page-accent, #00d119);
}

body.subject-soft-refresh .subject-hero__lead {
  max-width: 760px;
  margin: 10px auto 4px;
  color: #546258;
  text-align: center;
  line-height: 1.45;
}

body.subject-soft-refresh .subject_desk {
  cursor: default;
  margin-top: 18px;
  padding: 0;
}

body.subject-soft-refresh .subject_desk > .row:first-child {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

body.subject-soft-refresh .subject_desk > .row:first-child::before,
body.subject-soft-refresh .subject_desk > .row:first-child::after {
  display: none;
}

body.subject-soft-refresh .subject-action-card {
  cursor: pointer;
  margin-bottom: 18px;
  outline: none;
}

body.subject-soft-refresh .subject-action-card .test_img_wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 176px;
  max-width: 245px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 115%, color-mix(in srgb, var(--subject-page-accent, #00d119) 15%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 247, 0.90));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.065);
  transition: transform 0.24s ease-in-out 0s, box-shadow 0.24s ease-in-out 0s, border-color 0.24s ease-in-out 0s, background-color 0.24s ease-in-out 0s;
}

body.subject-soft-refresh .subject-action-card .test_img_wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -42%;
  right: -42%;
  top: -78%;
  bottom: -58%;
  background:
    radial-gradient(circle at 24% 48%, color-mix(in srgb, var(--subject-page-accent, #00d119) 30%, transparent), transparent 17%),
    radial-gradient(circle at 72% 42%, color-mix(in srgb, var(--subject-page-accent, #00d119) 22%, transparent), transparent 21%),
    radial-gradient(circle at 54% 80%, color-mix(in srgb, var(--subject-page-accent, #00d119) 17%, transparent), transparent 24%);
  opacity: 0.30;
  transform: scale(0.86) rotate(10deg);
  transition: opacity 0.32s ease-in-out 0s, transform 0.68s cubic-bezier(0.2, 0.9, 0.2, 1) 0s;
  pointer-events: none;
}

body.subject-soft-refresh .subject-action-card .test_img_wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 36%, rgba(255, 255, 255, 0.50) 50%, transparent 64%, transparent 100%);
  opacity: 0;
  transform: translateX(-132%);
  transition: opacity 0.2s ease-in-out 0s, transform 0.72s ease-in-out 0s;
  pointer-events: none;
}

body.subject-soft-refresh .subject-action-card .test_img_wrap img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 84%;
  max-height: 140px;
  transition: transform 0.24s ease-in-out 0s, filter 0.24s ease-in-out 0s;
}

body.subject-soft-refresh .subject-action-card__title {
  display: block;
  min-height: 2.4em;
  margin-top: 12px;
  line-height: 1.25;
  text-align: center;
  transition: color 0.2s ease-in-out 0s, transform 0.2s ease-in-out 0s;
}

body.subject-soft-refresh .subject-action-card:hover .test_img_wrap,
body.subject-soft-refresh .subject-action-card:focus .test_img_wrap,
body.subject-soft-refresh .subject-action-card.is-active .test_img_wrap {
  border-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 68%, #000 10%);
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 13px 29px rgba(0, 0, 0, 0.13);
}

body.subject-soft-refresh .subject-action-card:hover .test_img_wrap::before,
body.subject-soft-refresh .subject-action-card:focus .test_img_wrap::before,
body.subject-soft-refresh .subject-action-card.is-active .test_img_wrap::before {
  opacity: 0.82;
  transform: scale(1.08) rotate(0deg);
}

body.subject-soft-refresh .subject-action-card:hover .test_img_wrap::after,
body.subject-soft-refresh .subject-action-card:focus .test_img_wrap::after {
  opacity: 1;
  transform: translateX(132%);
}

body.subject-soft-refresh .subject-action-card:hover .test_img_wrap img,
body.subject-soft-refresh .subject-action-card:focus .test_img_wrap img,
body.subject-soft-refresh .subject-action-card.is-active .test_img_wrap img {
  transform: translateY(-3px) scale(1.025);
}

body.subject-soft-refresh .subject-action-card:hover .subject-action-card__title,
body.subject-soft-refresh .subject-action-card:focus .subject-action-card__title,
body.subject-soft-refresh .subject-action-card.is-active .subject-action-card__title,
body.subject-soft-refresh .subject-action-card .subject-action-card__title.detected {
  color: color-mix(in srgb, var(--subject-page-accent, #00d119) 78%, #0f5018);
  transform: translateY(-1px);
}

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

body.subject-soft-refresh .choice_de {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--subject-page-accent, #00d119) 10%, transparent), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 255, 250, 0.88));
  box-shadow: 0 11px 30px rgba(0, 0, 0, 0.075);
}

body.subject-soft-refresh .subject-choice-head {
  margin: 0 0 17px;
  text-align: center;
}

body.subject-soft-refresh .subject-choice-head > span {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid color-mix(in srgb, var(--subject-page-accent, #00d119) 48%, transparent);
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 10%, #fff);
  color: #213324;
}

body.subject-soft-refresh .subject-choice-head small {
  display: block;
  margin-top: 6px;
  color: #657368;
  font-family: "Segoe Print";
  font-size: 0.62em;
  line-height: 1.35;
}

body.subject-soft-refresh .choice_de.tests {
  text-align: center;
}

body.subject-soft-refresh .choice_de.tests .testvar {
  display: inline-block;
  width: auto;
  margin: 6px;
}

body.subject-soft-refresh .choice_de.tests .testvar a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  min-width: 158px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.84);
  color: #202820;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.045);
  transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
}

body.subject-soft-refresh .choice_de.tests .testvar a:hover,
body.subject-soft-refresh .choice_de.tests .testvar a:focus {
  border-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 68%, #000 8%);
  background-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 12%, #fff);
  color: color-mix(in srgb, var(--subject-page-accent, #00d119) 72%, #0f5018);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.09);
}

body.subject-soft-refresh .choice_de.themes > ul.subject-themes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 0;
  padding: 0;
}

body.subject-soft-refresh .choice_de.themes > ul.subject-themes-list > li {
  margin: 0;
}

body.subject-soft-refresh .choice_de.themes a.themes_subject,
body.subject-soft-refresh .choice_de.themes a.themes_subject:visited {
  position: relative;
  display: block;
  min-height: 0;
  padding: 9px 36px 9px 13px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.76);
  color: #222;
  line-height: 1.38;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.035);
  transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
}

body.subject-soft-refresh .choice_de.themes a.themes_subject:hover,
body.subject-soft-refresh .choice_de.themes a.themes_subject:focus,
body.subject-soft-refresh .choice_de.themes a.themes_subject.is-open {
  border-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 60%, #000 10%);
  background-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 11%, #fff);
  color: color-mix(in srgb, var(--subject-page-accent, #00d119) 72%, #0f5018);
  transform: translateX(2px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.08);
}

body.subject-soft-refresh .choice_de.themes a.themes_subline::after {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-left: 0;
  transform: translateY(-50%);
}

body.subject-soft-refresh .choice_de.themes a.themes_subline.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

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

body.subject-soft-refresh .sublines_list_wrap {
  margin: 7px 0 2px 12px;
  padding: 7px 0 2px 12px;
  border-left: 2px solid color-mix(in srgb, var(--subject-page-accent, #00d119) 24%, transparent);
}

body.subject-soft-refresh .sublines_list_wrap li {
  margin-bottom: 4px;
}

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: 6px 10px;
  border-color: transparent;
  border-radius: 12px;
  background-color: transparent;
  box-shadow: none;
  font-size: 0.92em;
}

body.subject-soft-refresh .subject_caption {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 0, 0, 0.10);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--subject-page-accent, #00d119) 12%, transparent), transparent 30%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.subject-soft-refresh .subject_caption:hover {
  border-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 64%, #000 10%);
  background-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 10%, #fff);
}

body.subject-soft-refresh .biophobia_on_subject_page {
  border-radius: 26px;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  body.work-soft-refresh .work-subject-card::before,
  body.subject-soft-refresh .subject-action-card .test_img_wrap::before {
    opacity: 0.22;
  }

  body.work-soft-refresh .work-subject-link:hover .work-subject-card,
  body.work-soft-refresh .work-subject-link:focus .work-subject-card,
  body.subject-soft-refresh .subject-action-card:hover .test_img_wrap,
  body.subject-soft-refresh .subject-action-card:focus .test_img_wrap,
  body.subject-soft-refresh .subject-action-card.is-active .test_img_wrap,
  body.subject-soft-refresh .choice_de.tests .testvar a:hover,
  body.subject-soft-refresh .choice_de.tests .testvar a:focus,
  body.subject-soft-refresh .choice_de.themes a.themes_subject:hover,
  body.subject-soft-refresh .choice_de.themes a.themes_subject:focus,
  body.subject-soft-refresh .choice_de.themes a.themes_subject.is-open {
    border-color: #00d119;
  }
}

/* ===== Work и Subject: темная тема ===== */

html.theme-dark body.work-soft-refresh .created.format.work-hero__title,
html.theme-dark body.subject-soft-refresh .choice_de,
html.theme-dark body.subject-soft-refresh .subject_caption {
  border-color: rgba(232, 240, 236, 0.14);
  background-color: rgba(19, 30, 26, 0.78);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  color: #e8f0ec;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.work-soft-refresh .work-hero__subline,
html.theme-dark body.subject-soft-refresh .subject-hero__lead,
html.theme-dark body.subject-soft-refresh .subject-choice-head small {
  color: #b9c9c1;
}

html.theme-dark body.work-soft-refresh .subjects .sub_wrapper.work-subject-card,
html.theme-dark body.subject-soft-refresh .subject-action-card .test_img_wrap {
  border-color: rgba(232, 240, 236, 0.14);
  background-color: #15211c !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  color: #e8f0ec;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

html.theme-dark body.work-soft-refresh .work-subject-picture {
  background-color: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

html.theme-dark body.work-soft-refresh .work-subject-link,
html.theme-dark body.work-soft-refresh .work-subject-link:visited,
html.theme-dark body.work-soft-refresh .work-subject-link:hover,
html.theme-dark body.work-soft-refresh .work-subject-link:focus,
html.theme-dark body.work-soft-refresh .subjects span.work-subject-title,
html.theme-dark body.subject-soft-refresh .subject-action-card__title,
html.theme-dark body.subject-soft-refresh .subject-choice-head > span,
html.theme-dark body.subject-soft-refresh .choice_de.tests .testvar a,
html.theme-dark body.subject-soft-refresh .choice_de.themes a.themes_subject,
html.theme-dark body.subject-soft-refresh .choice_de.themes a.themes_subject:visited {
  color: #e8f0ec;
}

html.theme-dark body.subject-soft-refresh .subject-choice-head > span,
html.theme-dark body.subject-soft-refresh .choice_de.tests .testvar a,
html.theme-dark body.subject-soft-refresh .choice_de.themes a.themes_subject,
html.theme-dark body.subject-soft-refresh .choice_de.themes a.themes_subject:visited {
  border-color: rgba(232, 240, 236, 0.12);
  background-color: rgba(255, 255, 255, 0.045);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

html.theme-dark body.work-soft-refresh .work-subject-link:hover .work-subject-card,
html.theme-dark body.work-soft-refresh .work-subject-link:focus .work-subject-card,
html.theme-dark body.subject-soft-refresh .subject-action-card:hover .test_img_wrap,
html.theme-dark body.subject-soft-refresh .subject-action-card:focus .test_img_wrap,
html.theme-dark body.subject-soft-refresh .subject-action-card.is-active .test_img_wrap,
html.theme-dark body.subject-soft-refresh .choice_de.tests .testvar a:hover,
html.theme-dark body.subject-soft-refresh .choice_de.tests .testvar a:focus,
html.theme-dark body.subject-soft-refresh .choice_de.themes a.themes_subject:hover,
html.theme-dark body.subject-soft-refresh .choice_de.themes a.themes_subject:focus,
html.theme-dark body.subject-soft-refresh .choice_de.themes a.themes_subject.is-open,
html.theme-dark body.subject-soft-refresh .subject_caption:hover {
  border-color: var(--subject-page-accent, #7ee887);
  background-color: rgba(28, 46, 38, 0.95) !important;
  color: #bcffc2;
}

html.theme-dark body.work-soft-refresh .work-subject-card::after,
html.theme-dark body.subject-soft-refresh .subject-action-card .test_img_wrap::after {
  background: linear-gradient(110deg, transparent 0%, transparent 36%, rgba(255, 255, 255, 0.14) 50%, transparent 64%, transparent 100%);
}

html.theme-dark body.work-soft-refresh .subjects span.work-subject-title {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

html.theme-dark body.subject-soft-refresh .sublines_list_wrap {
  border-left-color: rgba(126, 232, 135, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  body.work-soft-refresh .subjects .sub_wrapper.work-subject-card,
  body.work-soft-refresh .work-subject-card::before,
  body.work-soft-refresh .work-subject-card::after,
  body.work-soft-refresh .subjects .sub,
  body.subject-soft-refresh .subject-action-card .test_img_wrap,
  body.subject-soft-refresh .subject-action-card .test_img_wrap::before,
  body.subject-soft-refresh .subject-action-card .test_img_wrap::after,
  body.subject-soft-refresh .subject-action-card .test_img_wrap img,
  body.subject-soft-refresh .subject-action-card__title,
  body.subject-soft-refresh .choice_de.tests .testvar a,
  body.subject-soft-refresh .choice_de.themes a.themes_subject {
    transition: none;
  }
}

html.theme-dark body.work-soft-refresh .work-subject-link:hover .work-subject-card,
html.theme-dark body.work-soft-refresh .work-subject-link:focus .work-subject-card {
  border-color: var(--work-card-accent, #7ee887);
}

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

body.work-soft-refresh .work-hero > .row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

body.work-soft-refresh .work-hero > .row::before,
body.work-soft-refresh .work-hero > .row::after {
  display: none;
}

body.work-soft-refresh .created.format.work-hero__title {
  float: none !important;
  width: calc(100% - 30px);
  -ms-flex: 0 1 760px;
  flex: 0 1 760px;
  margin-left: auto;
  margin-right: auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-align: center;
}

body.work-soft-refresh .created.format.work-hero__title span,
body.work-soft-refresh .created.format.work-hero__title .work-hero__subline {
  margin-left: 0;
}

body.subject-soft-refresh .subject-tests-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  gap: 12px;
}

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

body.subject-soft-refresh .choice_de.tests .testvar a {
  width: 100%;
  min-width: 0;
  height: 100%;
}

body.subject-soft-refresh .choice_de.themes a.themes_subject,
body.subject-soft-refresh .choice_de.themes a.themes_subject:visited,
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 {
  font-size: 0.72em;
}

/* ===== Work/Subject: правки карусели и центрирования, версия 3 ===== */

/* В предметах с двумя режимами старый bootstrap-offset сдвигал карточки вправо.
   Flex-ряд уже центрирует элементы, поэтому offset здесь больше не нужен. */
body.subject-soft-refresh .subject_desk > .row:first-child .subject-action-card.col-md-offset-2,
body.subject-soft-refresh .subject_desk > .row:first-child .subject_desk_sub.col-md-offset-2 {
  margin-left: 0 !important;
}

body.subject-soft-refresh .subject_desk > .row:first-child .subject-action-card {
  float: none;
}


/* ===== Subject: карусель выбора режима по образцу главной, версия 5 ===== */
body.subject-soft-refresh .subject-action-row {
  margin-top: 0;
}

body.subject-soft-refresh .subject-action-row::before,
body.subject-soft-refresh .subject-action-row::after,
body.subject-soft-refresh .subject-action-carousel::before,
body.subject-soft-refresh .subject-action-carousel::after {
  display: none;
}

body.subject-soft-refresh .subject-action-row > .col-md-12 {
  float: none;
}

body.subject-soft-refresh .subject-action-carousel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  margin-left: -12px;
  margin-right: -12px;
}

body.subject-soft-refresh .subject-action-slide {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-flex: 0;
  -ms-flex: 0 1 33.333333%;
  flex: 0 1 33.333333%;
  max-width: 33.333333%;
  padding-left: 12px;
  padding-right: 12px;
}

body.subject-soft-refresh .subject-action-carousel--items-2 .subject-action-slide {
  -webkit-box-flex: 0;
  -ms-flex: 0 1 33.333333%;
  flex: 0 1 33.333333%;
  max-width: 33.333333%;
}

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

/* ===== Subject: цветная карточка курсов и 8-digit HEX fix, версия 6 ===== */
body.subject-soft-refresh .subject_a .subject_caption {
  position: relative;
  isolation: isolate;
  border-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 54%, #000 8%);
  background:
    radial-gradient(circle at 7% 0%, color-mix(in srgb, var(--subject-page-accent, #00d119) 18%, transparent), transparent 34%),
    radial-gradient(circle at 96% 120%, color-mix(in srgb, var(--subject-page-accent, #00d119) 15%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--subject-page-accent, #00d119) 8%, #fff), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.065),
    inset 0 0 0 1px color-mix(in srgb, var(--subject-page-accent, #00d119) 12%, transparent);
}

body.subject-soft-refresh .subject_a .subject_caption::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -18%;
  right: -18%;
  top: -80%;
  bottom: -80%;
  background:
    radial-gradient(circle at 20% 45%, color-mix(in srgb, var(--subject-page-accent, #00d119) 18%, transparent), transparent 17%),
    radial-gradient(circle at 76% 52%, color-mix(in srgb, var(--subject-page-accent, #00d119) 14%, transparent), transparent 18%);
  opacity: 0.7;
  transform: rotate(-7deg);
  pointer-events: none;
}

body.subject-soft-refresh .subject_a .subject_caption p {
  position: relative;
  z-index: 1;
}

body.subject-soft-refresh .subject_a:hover .subject_caption,
body.subject-soft-refresh .subject_a:focus .subject_caption {
  border-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 72%, #000 6%);
  background:
    radial-gradient(circle at 7% 0%, color-mix(in srgb, var(--subject-page-accent, #00d119) 23%, transparent), transparent 34%),
    radial-gradient(circle at 96% 120%, color-mix(in srgb, var(--subject-page-accent, #00d119) 20%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--subject-page-accent, #00d119) 13%, #fff), rgba(255, 255, 255, 0.92));
}

html.theme-dark body.subject-soft-refresh .subject_a .subject_caption {
  border-color: color-mix(in srgb, var(--subject-page-accent, #7ee887) 46%, rgba(255, 255, 255, 0.16));
  background-color: rgba(19, 30, 26, 0.82) !important;
  background-image:
    radial-gradient(circle at 7% 0%, color-mix(in srgb, var(--subject-page-accent, #7ee887) 20%, transparent), transparent 34%),
    radial-gradient(circle at 96% 120%, color-mix(in srgb, var(--subject-page-accent, #7ee887) 16%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)) !important;
}

html.theme-dark body.subject-soft-refresh .subject_a:hover .subject_caption,
html.theme-dark body.subject-soft-refresh .subject_a:focus .subject_caption {
  border-color: var(--subject-page-accent, #7ee887);
  background-color: rgba(28, 46, 38, 0.95) !important;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  body.subject-soft-refresh .subject_a .subject_caption,
  body.subject-soft-refresh .subject_a:hover .subject_caption,
  body.subject-soft-refresh .subject_a:focus .subject_caption {
    border-color: var(--subject-page-accent, #00d119);
  }
}

/* ===== Настройки оформления: не перекрывать мобильный контент ===== */
@media only screen and (max-width : 480px) {
  .site-settings {
    top: 10px !important;
    right: 8px !important;
  }

  .site-settings__toggle {
    width: 30px !important;
    height: 30px !important;
  }

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

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

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

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

body.knowledge-soft-refresh {
  --knowledge-accent: #00d119;
  --knowledge-accent-soft: rgba(0, 209, 25, 0.12);
}

body.knowledge-soft-refresh .knowledge-page,
body.knowledge-soft-refresh .knowledge-page * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body.knowledge-soft-refresh .knowledge-hero {
  margin-top: 28px;
}

body.knowledge-soft-refresh .knowledge-hero__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

body.knowledge-soft-refresh .knowledge-hero__row::before,
body.knowledge-soft-refresh .knowledge-hero__row::after {
  display: none;
}

body.knowledge-soft-refresh .knowledge-hero__image {
  margin: 0 auto;
  text-align: center;
}

body.knowledge-soft-refresh .knowledge-hero__image img {
  max-width: 88%;
  height: auto;
  margin-top: 0;
}

body.knowledge-soft-refresh .knowledge-hero__card,
body.knowledge-soft-refresh .knowledge-answer-intro,
body.knowledge-soft-refresh .knowledge-answer-card,
body.knowledge-soft-refresh .knowledge-related-card,
body.knowledge-soft-refresh .knowledge-copyright,
body.knowledge-soft-refresh .knowledge-empty-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 209, 25, 0.13), transparent 32%),
    radial-gradient(circle at 100% 110%, rgba(149, 149, 198, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 255, 250, 0.86));
  -webkit-box-shadow: 0 10px 28px rgba(0, 0, 0, 0.065);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.065);
}

body.knowledge-soft-refresh .knowledge-hero__card {
  padding: 24px 28px;
  border-radius: 30px;
}

body.knowledge-soft-refresh .knowledge-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 14px;
  border: 1px solid rgba(0, 209, 25, 0.25);
  border-radius: 999px;
  background-color: rgba(0, 209, 25, 0.08);
  color: #235a2a;
  font-family: "Segoe Print";
  font-size: 0.68em;
  line-height: 1.25;
}

body.knowledge-soft-refresh .knowledge-hero__card h1,
body.knowledge-soft-refresh .knowledge-answer-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 13px;
  line-height: 1.34;
}

body.knowledge-soft-refresh .knowledge-hero__card h1::after,
body.knowledge-soft-refresh .knowledge-answer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 3px;
  border-radius: 99px;
  background-color: var(--knowledge-accent, #00d119);
}

body.knowledge-soft-refresh .knowledge-hero__card p {
  margin: 0;
  color: #526156;
  line-height: 1.65;
}

body.knowledge-soft-refresh .knowledge-random-section {
  margin-top: 34px;
  margin-bottom: 30px;
}

body.knowledge-soft-refresh .knowledge-section-head {
  margin: 0 auto 20px;
  text-align: center;
}

body.knowledge-soft-refresh .knowledge-section-head > span {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(0, 209, 25, 0.24);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.82);
  -webkit-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.055);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.055);
  color: #213324;
}

body.knowledge-soft-refresh .knowledge-section-head small {
  display: block;
  margin-top: 7px;
  color: #68756c;
  font-family: "Segoe Print";
  font-size: 0.62em;
}

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

body.knowledge-soft-refresh .knowledge-question-link,
body.knowledge-soft-refresh .knowledge-question-link:visited,
body.knowledge-soft-refresh .knowledge-question-link:hover,
body.knowledge-soft-refresh .knowledge-question-link:focus {
  display: block;
  min-height: 100%;
  color: #000;
  text-decoration: none;
}

body.knowledge-soft-refresh .question_item.knowledge-question-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  min-height: 132px;
  margin: 0;
  padding: 17px 18px 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-left: 6px solid var(--knowledge-card-color, var(--knowledge-accent, #00d119));
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--knowledge-card-color, #00d119) 15%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 255, 252, 0.88));
  -webkit-box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  -webkit-transition: transform 0.22s ease-in-out 0s, box-shadow 0.22s ease-in-out 0s, border-color 0.22s ease-in-out 0s;
  transition: transform 0.22s ease-in-out 0s, box-shadow 0.22s ease-in-out 0s, border-color 0.22s ease-in-out 0s;
}

body.knowledge-soft-refresh .question_item.knowledge-question-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -28%;
  right: -20%;
  top: -76%;
  bottom: -76%;
  background:
    radial-gradient(circle at 24% 40%, color-mix(in srgb, var(--knowledge-card-color, #00d119) 22%, transparent), transparent 18%),
    radial-gradient(circle at 82% 68%, color-mix(in srgb, var(--knowledge-card-color, #00d119) 16%, transparent), transparent 20%);
  opacity: 0.78;
  pointer-events: none;
  -webkit-transform: rotate(-9deg);
  transform: rotate(-9deg);
}

body.knowledge-soft-refresh .knowledge-question-link:hover .knowledge-question-card,
body.knowledge-soft-refresh .knowledge-question-link:focus .knowledge-question-card {
  border-color: color-mix(in srgb, var(--knowledge-card-color, #00d119) 68%, #000 8%);
  border-left-color: var(--knowledge-card-color, var(--knowledge-accent, #00d119));
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  -webkit-box-shadow: 0 13px 28px rgba(0, 0, 0, 0.12);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.12);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--knowledge-card-color, #00d119) 20%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(251, 255, 252, 0.96));
}

body.knowledge-soft-refresh .question_item.knowledge-question-card span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0;
}

body.knowledge-soft-refresh .knowledge-question-number {
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--knowledge-card-color, #00d119) 74%, #1c311f);
  font-size: 0.62em;
}

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

body.knowledge-soft-refresh .knowledge-empty-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 24px;
  text-align: center;
}

body.knowledge-answer-soft-refresh .knowledge-answer-intro {
  max-width: 920px;
  margin: 28px auto 24px;
  padding: 16px 22px;
  border-radius: 26px;
  text-align: center;
}

body.knowledge-answer-soft-refresh .knowledge-answer-intro p {
  margin: 0;
  line-height: 1.55;
}

body.knowledge-answer-soft-refresh .knowledge-answer-card {
  margin-top: 0;
  padding: 26px 30px 30px;
  border-radius: 30px;
}

body.knowledge-answer-soft-refresh .knowledge-answer-title {
  margin-top: 0;
  text-align: left;
}

body.knowledge-answer-soft-refresh .knowledge-answer-content {
  line-height: 1.72;
}

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

body.knowledge-answer-soft-refresh .knowledge-answer-content img {
  max-width: 100%;
  height: auto;
  -webkit-box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

body.knowledge-answer-soft-refresh .knowledge-related-row {
  margin-top: 18px;
}

body.knowledge-answer-soft-refresh .knowledge-related-card {
  display: block;
  min-height: 128px;
  padding: 18px 20px;
  border-radius: 24px;
  color: #1f2a23;
  text-decoration: none;
  -webkit-transition: transform 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s, border-color 0.2s ease-in-out 0s;
  transition: transform 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s, border-color 0.2s ease-in-out 0s;
}

body.knowledge-answer-soft-refresh .knowledge-related-card span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(0, 209, 25, 0.10);
  color: #235a2a;
  font-size: 0.66em;
}

body.knowledge-answer-soft-refresh .knowledge-related-card b {
  display: block;
  line-height: 1.42;
}

body.knowledge-answer-soft-refresh .knowledge-related-card small {
  display: block;
  margin-top: 7px;
  color: #66746b;
  font-family: "Segoe Print";
}

body.knowledge-answer-soft-refresh .knowledge-related-card:hover,
body.knowledge-answer-soft-refresh .knowledge-related-card:focus {
  border-color: rgba(0, 209, 25, 0.42);
  color: #0b6c16;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 13px 28px rgba(0, 0, 0, 0.11);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.11);
}

body.knowledge-answer-soft-refresh .knowledge-copyright {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 22px;
  line-height: 1.55;
}

/* ===== Knowledge: темная тема ===== */

html.theme-dark body.knowledge-soft-refresh .knowledge-hero__card,
html.theme-dark body.knowledge-soft-refresh .knowledge-answer-intro,
html.theme-dark body.knowledge-soft-refresh .knowledge-answer-card,
html.theme-dark body.knowledge-soft-refresh .knowledge-related-card,
html.theme-dark body.knowledge-soft-refresh .knowledge-copyright,
html.theme-dark body.knowledge-soft-refresh .knowledge-empty-card,
html.theme-dark body.knowledge-soft-refresh .knowledge-section-head > span,
html.theme-dark body.knowledge-soft-refresh .question_item.knowledge-question-card {
  border-color: rgba(232, 240, 236, 0.14);
  background-color: rgba(19, 30, 26, 0.78);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  color: #e8f0ec;
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.knowledge-soft-refresh .knowledge-hero__card p,
html.theme-dark body.knowledge-soft-refresh .knowledge-section-head small,
html.theme-dark body.knowledge-answer-soft-refresh .knowledge-related-card small {
  color: #b9c9c1;
}

html.theme-dark body.knowledge-soft-refresh .knowledge-kicker,
html.theme-dark body.knowledge-answer-soft-refresh .knowledge-related-card span {
  border-color: rgba(126, 232, 135, 0.26);
  background-color: rgba(126, 232, 135, 0.12);
  color: #bcffc2;
}

html.theme-dark body.knowledge-soft-refresh .knowledge-question-number {
  color: #bcffc2;
}

html.theme-dark body.knowledge-soft-refresh .knowledge-question-link,
html.theme-dark body.knowledge-soft-refresh .knowledge-question-link:visited,
html.theme-dark body.knowledge-answer-soft-refresh .knowledge-related-card,
html.theme-dark body.knowledge-answer-soft-refresh .knowledge-related-card:visited {
  color: #e8f0ec;
}

html.theme-dark body.knowledge-soft-refresh .knowledge-question-link:hover .knowledge-question-card,
html.theme-dark body.knowledge-soft-refresh .knowledge-question-link:focus .knowledge-question-card,
html.theme-dark body.knowledge-answer-soft-refresh .knowledge-related-card:hover,
html.theme-dark body.knowledge-answer-soft-refresh .knowledge-related-card:focus {
  border-color: #7ee887;
  background-color: rgba(28, 46, 38, 0.95);
  color: #bcffc2;
}

html.theme-dark body.knowledge-answer-soft-refresh .knowledge-answer-content img {
  -webkit-box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  body.knowledge-soft-refresh .question_item.knowledge-question-card,
  body.knowledge-answer-soft-refresh .knowledge-related-card {
    -webkit-transition: none;
    transition: none;
  }
}
/* ===== Test pages: question, working, job soft refresh ===== */
body.test-soft-refresh {
  --test-accent: #00d119;
  --test-accent-soft: rgba(0, 209, 25, 0.12);
  --test-card-bg: rgba(255, 255, 255, 0.92);
}

body.test-soft-refresh .test-hero {
  margin-top: 28px;
}

body.test-soft-refresh .test-hero__card,
body.test-soft-refresh .test-card,
body.test-soft-refresh .test-help-card,
body.test-soft-refresh .test-related-card,
body.test-soft-refresh .test-submit-panel,
body.test-soft-refresh .test-finish-note {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 209, 25, 0.13), transparent 32%),
    radial-gradient(circle at 100% 112%, rgba(149, 149, 198, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 255, 250, 0.88));
  -webkit-box-shadow: 0 10px 28px rgba(0, 0, 0, 0.065);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.065);
}

body.test-soft-refresh .test-hero__card {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 30px;
  text-align: center;
}

body.test-soft-refresh .test-hero__kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 15px;
  border: 1px solid rgba(0, 209, 25, 0.24);
  border-radius: 999px;
  background-color: rgba(0, 209, 25, 0.08);
  color: #235a2a;
  font-size: 0.66em;
  line-height: 1.25;
}

body.test-soft-refresh .test-hero__card h1 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 13px;
  line-height: 1.34;
}

body.test-soft-refresh .test-hero__card h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92px;
  height: 3px;
  border-radius: 99px;
  background-color: var(--test-accent, #00d119);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

body.test-soft-refresh .test-hero__meta,
body.test-soft-refresh .test-hero__lead,
body.test-soft-refresh .test-hero__note {
  max-width: 780px;
  margin: 9px auto 0;
  color: #526156;
  line-height: 1.58;
}

body.test-soft-refresh .test-hero__note {
  font-size: 0.72em;
}

body.test-soft-refresh .test-pagination-container {
  margin-top: 18px;
  margin-bottom: 8px;
}

body.test-soft-refresh .test-pagination {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.78);
  -webkit-box-shadow: 0 7px 20px rgba(0, 0, 0, 0.055);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.055);
  text-align: center;
}

body.test-soft-refresh .pagination-block ul,
body.test-soft-refresh .pagination-block ol,
body.test-soft-refresh .pagination {
  margin: 0;
  padding: 0;
}

body.test-soft-refresh .pagination li {
  margin: 4px 3px;
  border-color: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.84);
  -webkit-transition: transform 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s;
  transition: transform 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s;
}

body.test-soft-refresh .pagination li:hover,
body.test-soft-refresh .pagination-block li.active {
  border-color: var(--test-accent, #00d119);
  background-color: rgba(0, 209, 25, 0.12);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

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

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

body.test-soft-refresh .test-card-wrap.gap_bottom {
  margin-bottom: 34px;
}

body.test-soft-refresh .question.test-card {
  isolation: isolate;
  margin: 0;
  padding: 24px 72px 24px 28px;
  border-radius: 30px;
  line-height: 1.6;
}

body.test-soft-refresh .question.test-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -22%;
  right: -18%;
  top: -76%;
  bottom: -76%;
  background:
    radial-gradient(circle at 22% 42%, rgba(0, 209, 25, 0.12), transparent 17%),
    radial-gradient(circle at 82% 62%, rgba(149, 149, 198, 0.13), transparent 20%);
  opacity: 0.9;
  -webkit-transform: rotate(-8deg);
  transform: rotate(-8deg);
  pointer-events: none;
}

body.test-soft-refresh .test-card > * {
  position: relative;
  z-index: 1;
}

body.test-soft-refresh .test-question-title {
  margin-bottom: 16px;
  line-height: 1.62;
}

body.test-soft-refresh .test-question-number {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: rgba(0, 209, 25, 0.10);
  color: #235a2a;
  font-size: 0.76em;
  vertical-align: baseline;
}

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

body.test-soft-refresh .test-option {
  position: relative;
  display: block;
  margin: 10px 0;
  padding: 10px 12px 10px 42px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  -webkit-transition: background-color 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, transform 0.18s ease-in-out 0s;
  transition: background-color 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, transform 0.18s ease-in-out 0s;
}

body.test-soft-refresh .test-option:hover {
  border-color: rgba(0, 209, 25, 0.38);
  background-color: rgba(0, 209, 25, 0.065);
  -webkit-transform: translateX(2px);
  transform: translateX(2px);
}

body.test-soft-refresh .test-option input[type="checkbox"] {
  position: absolute;
  left: 14px;
  top: 15px;
  margin: 0;
}

body.test-soft-refresh .test-option span {
  display: block;
  padding-left: 0;
  line-height: 1.42;
}

body.test-soft-refresh textarea.test-answer-textarea,
body.test-soft-refresh .question textarea,
body.test-soft-refresh .type_3 textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 17px;
  background-color: rgba(255, 255, 255, 0.86);
  -webkit-box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.035);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.035);
  resize: vertical;
}

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

body.test-soft-refresh .test-actions,
body.test-soft-refresh .show_wrap.test-actions {
  margin-top: 18px;
  text-align: center;
}

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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 5px 6px;
  padding: 7px 16px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.86);
  color: #1f2a23;
  -webkit-box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  cursor: pointer;
  -webkit-transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
  transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
}

body.test-soft-refresh .question_check,
body.test-soft-refresh .btn-job-success,
body.test-soft-refresh .btn-success {
  border-color: rgba(0, 209, 25, 0.34);
  background-color: rgba(0, 209, 25, 0.10);
  color: #0b6c16;
}

body.test-soft-refresh .question_check:hover,
body.test-soft-refresh .show_help:hover,
body.test-soft-refresh .btn-job-success:hover,
body.test-soft-refresh .btn-success:hover {
  border-color: var(--test-accent, #00d119);
  background-color: rgba(0, 209, 25, 0.16);
  color: #0b6c16;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 9px 20px rgba(0, 0, 0, 0.10);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.10);
}

body.test-soft-refresh .test-help-card,
body.test-soft-refresh .help.test-help-card {
  margin: 12px auto 0;
  padding: 18px 22px;
  border-radius: 24px;
  line-height: 1.6;
}

body.test-soft-refresh .question.test-card.success_full,
body.test-soft-refresh .success_full.test-card {
  border-color: rgba(70, 170, 92, 0.55);
  background:
    radial-gradient(circle at 100% 0%, rgba(116, 215, 127, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(239, 255, 241, 0.98), rgba(219, 249, 224, 0.92));
}

body.test-soft-refresh .question.test-card.success_part,
body.test-soft-refresh .success_part.test-card {
  border-color: rgba(230, 157, 55, 0.50);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 203, 139, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(255, 235, 205, 0.92));
}

body.test-soft-refresh .question.test-card.attempt,
body.test-soft-refresh .attempt.test-card {
  border-color: rgba(218, 91, 91, 0.50);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 160, 160, 0.25), transparent 34%),
    linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(255, 221, 221, 0.92));
}

body.test-soft-refresh .test-favorite.puls_wrap {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.88);
  -webkit-box-shadow: 0 7px 18px rgba(0, 0, 0, 0.10);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.10);
}

body.test-soft-refresh .test-favorite a,
body.test-soft-refresh .test-favorite label,
body.test-soft-refresh .test-favorite .puls,
body.test-soft-refresh .test-favorite .puls_yet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

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

body.test-soft-refresh .test-favorite .puls:hover,
body.test-soft-refresh .test-favorite .puls_yet:hover {
  -webkit-transform: none;
  transform: none;
}

body.test-soft-refresh .test-favorite .puls:hover::before,
body.test-soft-refresh .test-favorite .puls:hover::after {
  left: -6px;
  right: -6px;
  top: -6px;
  bottom: -6px;
}

body.test-soft-refresh .test-related {
  margin-top: 6px;
  margin-bottom: 26px;
}

body.test-soft-refresh .test-related-card {
  display: block;
  min-height: 128px;
  padding: 18px 20px;
  border-radius: 24px;
  color: #1f2a23;
  text-decoration: none;
  -webkit-transition: transform 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s, border-color 0.2s ease-in-out 0s;
  transition: transform 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s, border-color 0.2s ease-in-out 0s;
}

body.test-soft-refresh .test-related-card span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(0, 209, 25, 0.10);
  color: #235a2a;
  font-size: 0.66em;
}

body.test-soft-refresh .test-related-card b {
  display: block;
  line-height: 1.42;
}

body.test-soft-refresh .test-related-card small {
  display: block;
  margin-top: 7px;
  color: #66746b;
}

body.test-soft-refresh .test-related-card:hover,
body.test-soft-refresh .test-related-card:focus {
  border-color: rgba(0, 209, 25, 0.42);
  color: #0b6c16;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 13px 28px rgba(0, 0, 0, 0.11);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.11);
}

body.test-soft-refresh .test-submit-panel {
  max-width: 760px;
  margin: 34px auto 26px;
  padding: 22px;
  border-radius: 28px;
}

body.test-soft-refresh .result1,
body.test-soft-refresh .result2 {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background-color: rgba(0, 209, 25, 0.08);
}

body.test-soft-refresh .test-finish-note {
  max-width: 840px;
  margin: 24px auto 10px;
  padding: 16px 20px;
  border-radius: 24px;
}

/* ===== Test pages: dark theme ===== */
html.theme-dark body.test-soft-refresh .test-hero__card,
html.theme-dark body.test-soft-refresh .test-card,
html.theme-dark body.test-soft-refresh .test-help-card,
html.theme-dark body.test-soft-refresh .test-related-card,
html.theme-dark body.test-soft-refresh .test-submit-panel,
html.theme-dark body.test-soft-refresh .test-finish-note,
html.theme-dark body.test-soft-refresh .test-pagination {
  border-color: rgba(232, 240, 236, 0.14);
  background-color: rgba(19, 30, 26, 0.78);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  color: #e8f0ec;
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.test-soft-refresh .test-hero__meta,
html.theme-dark body.test-soft-refresh .test-hero__lead,
html.theme-dark body.test-soft-refresh .test-hero__note,
html.theme-dark body.test-soft-refresh .test-related-card small {
  color: #b9c9c1;
}

html.theme-dark body.test-soft-refresh .test-hero__kicker,
html.theme-dark body.test-soft-refresh .test-question-number,
html.theme-dark body.test-soft-refresh .test-related-card span {
  border-color: rgba(126, 232, 135, 0.26);
  background-color: rgba(126, 232, 135, 0.12);
  color: #bcffc2;
}

html.theme-dark body.test-soft-refresh .test-option,
html.theme-dark body.test-soft-refresh textarea.test-answer-textarea,
html.theme-dark body.test-soft-refresh .question textarea,
html.theme-dark body.test-soft-refresh .type_3 textarea,
html.theme-dark body.test-soft-refresh .question_check,
html.theme-dark body.test-soft-refresh .show_help,
html.theme-dark body.test-soft-refresh .btn-job-success,
html.theme-dark body.test-soft-refresh .btn-success,
html.theme-dark body.test-soft-refresh .test-favorite.puls_wrap,
html.theme-dark body.test-soft-refresh .pagination li {
  border-color: rgba(232, 240, 236, 0.12);
  background-color: rgba(255, 255, 255, 0.045);
  color: #e8f0ec;
}

html.theme-dark body.test-soft-refresh .question_check,
html.theme-dark body.test-soft-refresh .btn-job-success,
html.theme-dark body.test-soft-refresh .btn-success {
  border-color: rgba(126, 232, 135, 0.30);
  background-color: rgba(126, 232, 135, 0.13);
  color: #bcffc2;
}

html.theme-dark body.test-soft-refresh .question_check:hover,
html.theme-dark body.test-soft-refresh .show_help:hover,
html.theme-dark body.test-soft-refresh .btn-job-success:hover,
html.theme-dark body.test-soft-refresh .btn-success:hover,
html.theme-dark body.test-soft-refresh .test-related-card:hover,
html.theme-dark body.test-soft-refresh .test-related-card:focus {
  border-color: #7ee887;
  background-color: rgba(28, 46, 38, 0.95);
  color: #bcffc2;
}

html.theme-dark body.test-soft-refresh .question.test-card.success_full,
html.theme-dark body.test-soft-refresh .success_full.test-card {
  border-color: rgba(126, 232, 135, 0.44);
  background-image: linear-gradient(180deg, rgba(22, 59, 31, 0.92), rgba(19, 48, 27, 0.88));
}

html.theme-dark body.test-soft-refresh .question.test-card.success_part,
html.theme-dark body.test-soft-refresh .success_part.test-card {
  border-color: rgba(255, 195, 107, 0.42);
  background-image: linear-gradient(180deg, rgba(74, 52, 26, 0.92), rgba(59, 42, 25, 0.88));
}

html.theme-dark body.test-soft-refresh .question.test-card.attempt,
html.theme-dark body.test-soft-refresh .attempt.test-card {
  border-color: rgba(255, 128, 128, 0.42);
  background-image: linear-gradient(180deg, rgba(71, 33, 36, 0.92), rgba(56, 30, 32, 0.88));
}

@media (prefers-reduced-motion: reduce) {
  body.test-soft-refresh .test-card,
  body.test-soft-refresh .test-option,
  body.test-soft-refresh .question_check,
  body.test-soft-refresh .show_help,
  body.test-soft-refresh .btn-job-success,
  body.test-soft-refresh .test-related-card,
  body.test-soft-refresh .pagination li {
    -webkit-transition: none;
    transition: none;
  }
}

/* ===== Test pages: subject colors + clean question cards, version 2 ===== */
body.test-soft-refresh {
  --test-accent: #00d119;
  --test-accent-rgb: 0, 209, 25;
}

body.test-soft-refresh .test-hero__card,
body.test-soft-refresh .test-help-card,
body.test-soft-refresh .test-related-card,
body.test-soft-refresh .test-submit-panel,
body.test-soft-refresh .test-finish-note,
body.test-soft-refresh .test-pagination {
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--test-accent-rgb, 0, 209, 25), 0.10), transparent 32%),
    radial-gradient(circle at 100% 112%, rgba(149, 149, 198, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 253, 253, 0.90));
}

body.test-soft-refresh .test-hero__kicker,
body.test-soft-refresh .test-question-number,
body.test-soft-refresh .test-related-card span {
  border-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.24);
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.08);
  color: #253026;
}

body.test-soft-refresh .test-hero__card h1::after {
  background-color: var(--test-accent, #00d119);
}

body.test-soft-refresh .pagination li:hover,
body.test-soft-refresh .pagination-block li.active,
body.test-soft-refresh .question_check:hover,
body.test-soft-refresh .show_help:hover,
body.test-soft-refresh .btn-job-success:hover,
body.test-soft-refresh .btn-success:hover {
  border-color: var(--test-accent, #00d119);
}

body.test-soft-refresh .pagination li:hover,
body.test-soft-refresh .pagination-block li.active,
body.test-soft-refresh .question_check,
body.test-soft-refresh .btn-job-success,
body.test-soft-refresh .btn-success,
body.test-soft-refresh .result1,
body.test-soft-refresh .result2 {
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.08);
}

body.test-soft-refresh .question_check,
body.test-soft-refresh .btn-job-success,
body.test-soft-refresh .btn-success {
  border-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.30);
  color: #1f2a23;
}

body.test-soft-refresh .test-option:hover {
  border-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.30);
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.045);
}

body.test-soft-refresh .test-related-card:hover,
body.test-soft-refresh .test-related-card:focus {
  border-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.38);
  color: #1f2a23;
}

/* Главное поле задания: почти без декоративного градиента, чтобы не отвлекать от решения. */
body.test-soft-refresh .question.test-card,
body.test-soft-refresh .test-card {
  background: #fff !important;
  background-image: none !important;
}

body.test-soft-refresh .question.test-card::before {
  content: none !important;
  display: none !important;
}

/* Состояния проверки оставлены очень мягкими: цвет виден, но без декоративных переливов. */
body.test-soft-refresh .question.test-card.success_full,
body.test-soft-refresh .success_full.test-card {
  border-color: rgba(70, 170, 92, 0.55);
  background: #f4fff5 !important;
}

body.test-soft-refresh .question.test-card.success_part,
body.test-soft-refresh .success_part.test-card {
  border-color: rgba(230, 157, 55, 0.50);
  background: #fffaf0 !important;
}

body.test-soft-refresh .question.test-card.attempt,
body.test-soft-refresh .attempt.test-card {
  border-color: rgba(218, 91, 91, 0.50);
  background: #fff6f6 !important;
}

html.theme-dark body.test-soft-refresh .test-hero__kicker,
html.theme-dark body.test-soft-refresh .test-question-number,
html.theme-dark body.test-soft-refresh .test-related-card span {
  border-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.28);
  background-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.13);
  color: #ecf5f0;
}

html.theme-dark body.test-soft-refresh .question_check,
html.theme-dark body.test-soft-refresh .btn-job-success,
html.theme-dark body.test-soft-refresh .btn-success {
  border-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.32);
  background-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.12);
  color: #ecf5f0;
}

html.theme-dark body.test-soft-refresh .question_check:hover,
html.theme-dark body.test-soft-refresh .show_help:hover,
html.theme-dark body.test-soft-refresh .btn-job-success:hover,
html.theme-dark body.test-soft-refresh .btn-success:hover,
html.theme-dark body.test-soft-refresh .test-related-card:hover,
html.theme-dark body.test-soft-refresh .test-related-card:focus {
  border-color: var(--test-accent, #7ee887);
  background-color: rgba(28, 46, 38, 0.95);
  color: #ecf5f0;
}

html.theme-dark body.test-soft-refresh .question.test-card,
html.theme-dark body.test-soft-refresh .test-card {
  background-color: #17231f !important;
  background-image: none !important;
}

html.theme-dark body.test-soft-refresh .question.test-card.success_full,
html.theme-dark body.test-soft-refresh .success_full.test-card {
  background: #183122 !important;
}

html.theme-dark body.test-soft-refresh .question.test-card.success_part,
html.theme-dark body.test-soft-refresh .success_part.test-card {
  background: #342819 !important;
}

html.theme-dark body.test-soft-refresh .question.test-card.attempt,
html.theme-dark body.test-soft-refresh .attempt.test-card {
  background: #361f21 !important;
}

/* ===== Subject: линии в две последовательные колонки на десктопе =====
   Было: CSS Grid заполнял список построчно: 1-2, 3-4, 5-6.
   Стало: CSS Columns заполняет сначала левую колонку сверху вниз,
   затем продолжает нумерацию в правой колонке. На планшете и мобильном
   прежняя одноколоночная адаптация сохраняется. */
@media only screen and (min-width : 769px) {
  body.subject-soft-refresh .choice_de.themes > ul.subject-themes-list {
    display: block;
    -webkit-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 14px;
    column-gap: 14px;
  }

  body.subject-soft-refresh .choice_de.themes > ul.subject-themes-list > li {
    display: block;
    width: 100%;
    margin: 0 0 9px;
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ===== Article test / Cabinet tests: внешний вид как job и working, без изменения логики ===== */
body.article-test-soft-refresh .test-hero__card,
body.cabinet-test-soft-refresh .test-hero__card,
body.cabinet-test-error-soft-refresh .test-hero__card {
  max-width: 980px;
}

body.article-test-soft-refresh .test-hero__lead .messag,
body.cabinet-test-soft-refresh .test-hero__lead .messag,
body.cabinet-test-error-soft-refresh .test-hero__lead .messag {
  color: var(--test-accent, #00d119);
}

body.test-soft-refresh .question.test-card.home-work,
body.test-soft-refresh .question.test-card.home {
  border-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.18);
}

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

body.test-soft-refresh .test-card .test-favorite.puls_wrap {
  vertical-align: middle;
}

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 {
  position: static;
  width: 42px;
  height: 42px;
  margin: 5px 6px;
}

body.test-soft-refresh .assessment,
body.test-soft-refresh .answer_done,
body.test-soft-refresh .decision_true,
body.test-soft-refresh .decision_false {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 5px 6px;
  padding: 7px 16px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.86);
  color: #1f2a23;
  -webkit-box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  cursor: pointer;
  -webkit-transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
  transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
}

body.test-soft-refresh .assessment,
body.test-soft-refresh .decision_true {
  border-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.30);
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.08);
}

body.test-soft-refresh .decision_false {
  border-color: rgba(218, 91, 91, 0.28);
  background-color: rgba(218, 91, 91, 0.07);
}

body.test-soft-refresh .assessment:hover,
body.test-soft-refresh .answer_done:hover,
body.test-soft-refresh .decision_true:hover,
body.test-soft-refresh .decision_false:hover,
body.test-soft-refresh .decision_true.active,
body.test-soft-refresh .decision_false.active {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 9px 20px rgba(0, 0, 0, 0.10);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.10);
}

body.test-soft-refresh .assessment:hover,
body.test-soft-refresh .decision_true:hover,
body.test-soft-refresh .decision_true.active {
  border-color: var(--test-accent, #00d119);
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.14);
}

body.test-soft-refresh .decision_false:hover,
body.test-soft-refresh .decision_false.active {
  border-color: rgba(218, 91, 91, 0.50);
  background-color: rgba(218, 91, 91, 0.13);
}

body.test-soft-refresh .test-assessment-actions,
body.test-soft-refresh .assessment_wrap.test-assessment-actions {
  display: none;
  margin-top: 10px;
  text-align: center;
}

body.test-soft-refresh .test_to_teacher.test-finish-note:empty {
  display: none;
}

body.test-soft-refresh .test-finish-note {
  border-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.14);
}

html.theme-dark body.test-soft-refresh .assessment,
html.theme-dark body.test-soft-refresh .answer_done,
html.theme-dark body.test-soft-refresh .decision_true,
html.theme-dark body.test-soft-refresh .decision_false {
  border-color: rgba(232, 240, 236, 0.12);
  background-color: rgba(255, 255, 255, 0.045);
  color: #e8f0ec;
}

html.theme-dark body.test-soft-refresh .assessment,
html.theme-dark body.test-soft-refresh .decision_true {
  border-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.32);
  background-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.12);
}

html.theme-dark body.test-soft-refresh .decision_false {
  border-color: rgba(255, 128, 128, 0.34);
  background-color: rgba(255, 128, 128, 0.10);
}

html.theme-dark body.test-soft-refresh .assessment:hover,
html.theme-dark body.test-soft-refresh .answer_done:hover,
html.theme-dark body.test-soft-refresh .decision_true:hover,
html.theme-dark body.test-soft-refresh .decision_true.active {
  border-color: var(--test-accent, #7ee887);
  background-color: rgba(28, 46, 38, 0.95);
  color: #ecf5f0;
}

html.theme-dark body.test-soft-refresh .decision_false:hover,
html.theme-dark body.test-soft-refresh .decision_false.active {
  border-color: rgba(255, 128, 128, 0.52);
  background-color: rgba(71, 33, 36, 0.92);
  color: #ecf5f0;
}


/* ===== Test pages: центрирование нижних служебных блоков, версия 2 =====
   .test-finish-note иногда стоит на bootstrap .col-md-12.
   Из-за float:left у .col-md-12 margin:auto не центрирует карточку.
   Снимаем float только у этих финальных карточек, не трогая логику тестов. */
body.test-soft-refresh .row > .test-finish-note,
body.test-soft-refresh .row > .thank_for_test.test-finish-note,
body.test-soft-refresh .row > .test_to_teacher.test-finish-note {
  float: none !important;
  display: block;
  width: calc(100% - 30px);
  max-width: 840px;
  margin: 24px auto 10px !important;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-align: center;
}

body.test-soft-refresh .row > .test_to_teacher.test-finish-note:empty {
  display: none;
}

@media only screen and (max-width : 480px) {
  body.test-soft-refresh .row > .test-finish-note,
  body.test-soft-refresh .row > .thank_for_test.test-finish-note,
  body.test-soft-refresh .row > .test_to_teacher.test-finish-note {
    width: calc(100% - 20px);
    margin-top: 18px !important;
    margin-bottom: 10px !important;
  }
}
/* ===== Subject: вариант ЕГЭ дня =====
   Показывается в блоке «Варианты ЕГЭ» перед обычным списком вариантов.
   Сам выбор варианта делается в subject.php: один стабильный вариант на дату и предмет. */
body.subject-soft-refresh .subject-daily-variant {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
}

body.subject-soft-refresh .subject-daily-variant__link,
body.subject-soft-refresh .subject-daily-variant__link:visited {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: 15px 20px 16px;
  border: 1px solid color-mix(in srgb, var(--subject-page-accent, #00d119) 48%, #000 8%);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--subject-page-accent, #00d119) 17%, transparent), transparent 34%),
    radial-gradient(circle at 96% 120%, color-mix(in srgb, var(--subject-page-accent, #00d119) 13%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--subject-page-accent, #00d119) 8%, #fff), rgba(255, 255, 255, 0.92));
  color: #1f2a23;
  text-decoration: none;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.065);
  -webkit-transition: transform 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s, border-color 0.2s ease-in-out 0s;
  transition: transform 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s, border-color 0.2s ease-in-out 0s;
}

body.subject-soft-refresh .subject-daily-variant__link::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -18%;
  right: -18%;
  top: -96%;
  bottom: -96%;
  background:
    radial-gradient(circle at 18% 46%, color-mix(in srgb, var(--subject-page-accent, #00d119) 15%, transparent), transparent 18%),
    radial-gradient(circle at 78% 58%, color-mix(in srgb, var(--subject-page-accent, #00d119) 12%, transparent), transparent 20%);
  opacity: 0.72;
  -webkit-transform: rotate(-7deg);
  transform: rotate(-7deg);
  pointer-events: none;
}

body.subject-soft-refresh .subject-daily-variant__link:hover,
body.subject-soft-refresh .subject-daily-variant__link:focus {
  border-color: color-mix(in srgb, var(--subject-page-accent, #00d119) 68%, #000 6%);
  color: #1f2a23;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.11);
}

body.subject-soft-refresh .subject-daily-variant__kicker,
body.subject-soft-refresh .subject-daily-variant__title,
body.subject-soft-refresh .subject-daily-variant__meta {
  position: relative;
  z-index: 1;
  display: block;
}

body.subject-soft-refresh .subject-daily-variant__kicker {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto 8px;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--subject-page-accent, #00d119) 42%, transparent);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.70);
  color: #3b4a3e;
  font-size: 0.62em;
  line-height: 1.25;
}

body.subject-soft-refresh .subject-daily-variant__title {
  font-size: 0.92em;
  line-height: 1.35;
}

body.subject-soft-refresh .subject-daily-variant__meta {
  margin-top: 7px;
  color: #637067;
  font-size: 0.62em;
  line-height: 1.35;
}

html.theme-dark body.subject-soft-refresh .subject-daily-variant__link,
html.theme-dark body.subject-soft-refresh .subject-daily-variant__link:visited {
  border-color: color-mix(in srgb, var(--subject-page-accent, #7ee887) 42%, rgba(255, 255, 255, 0.16));
  background-color: rgba(19, 30, 26, 0.82) !important;
  background-image:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--subject-page-accent, #7ee887) 18%, transparent), transparent 34%),
    radial-gradient(circle at 96% 120%, color-mix(in srgb, var(--subject-page-accent, #7ee887) 14%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)) !important;
  color: #e8f0ec;
}

html.theme-dark body.subject-soft-refresh .subject-daily-variant__link:hover,
html.theme-dark body.subject-soft-refresh .subject-daily-variant__link:focus {
  border-color: var(--subject-page-accent, #7ee887);
  background-color: rgba(28, 46, 38, 0.95) !important;
  color: #ecf5f0;
}

html.theme-dark body.subject-soft-refresh .subject-daily-variant__kicker {
  border-color: rgba(238, 248, 242, 0.18);
  background-color: rgba(255, 255, 255, 0.055);
  color: #dfe9e4;
}

html.theme-dark body.subject-soft-refresh .subject-daily-variant__meta {
  color: #b9c9c1;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  body.subject-soft-refresh .subject-daily-variant__link,
  body.subject-soft-refresh .subject-daily-variant__link:hover,
  body.subject-soft-refresh .subject-daily-variant__link:focus {
    border-color: var(--subject-page-accent, #00d119);
  }
}

@media only screen and (max-width : 480px) {
  body.subject-soft-refresh .subject-daily-variant {
    margin-bottom: 14px;
  }

  body.subject-soft-refresh .subject-daily-variant__link {
    padding: 13px 12px 14px;
    border-radius: 21px;
  }

  body.subject-soft-refresh .subject-daily-variant__kicker,
  body.subject-soft-refresh .subject-daily-variant__meta {
    font-size: 0.58em;
  }

  body.subject-soft-refresh .subject-daily-variant__title {
    font-size: 0.80em;
  }
}
/* ===== Main: карточки биологии и химии как в Work, версия 2 =====
   Возвращаем прежнюю главную карусельную структуру: .carousel, .im_wrap, .im и data="2/3"
   сохранены для существующего JS. Внешний вид сделан на базе work-subject-card,
   но цветовая игра мягче и немного иначе падает по карточке. */
body.main-soft-refresh .subjects.main-subjects-section {
  margin-top: 42px;
  margin-bottom: 54px;
}

body.main-soft-refresh .subjects .main-subject-carousel:not(.slick-initialized) {
  visibility: hidden;
  min-height: 300px;
}

body.main-soft-refresh .subjects .main-subject-carousel.slick-initialized {
  visibility: visible;
}

body.main-soft-refresh .subjects .main-subject-carousel .slick-list {
  padding: 6px 0 14px;
}

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

body.main-soft-refresh .subjects .main-subject-carousel .slick-slide {
  height: auto;
  outline: none;
}

body.main-soft-refresh .subjects .im_wrap.main-subject-slide {
  height: 100%;
  padding-left: 46px;
  padding-right: 46px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body.main-soft-refresh .subjects .im.sub_wrapper.main-work-subject-card {
  width: 100%;
  max-width: 300px;
  min-height: 252px;
  margin: 0 auto;
  cursor: pointer;
}

body.main-soft-refresh .main-work-subject-card--chemistry {
  --work-card-accent: #8bdedb;
  --main-card-secondary: #d7e4ff;
}

body.main-soft-refresh .main-work-subject-card--biology {
  --work-card-accent: #b7dd86;
  --main-card-secondary: #ffe3a8;
}

body.main-soft-refresh .main-work-subject-card::before {
  background:
    radial-gradient(circle at 18% 40%, color-mix(in srgb, var(--work-card-accent, #00d119) 31%, transparent), transparent 16%),
    radial-gradient(circle at 76% 72%, color-mix(in srgb, var(--main-card-secondary, var(--work-card-accent, #00d119)) 26%, transparent), transparent 19%),
    radial-gradient(circle at 56% 30%, color-mix(in srgb, var(--work-card-accent, #00d119) 17%, transparent), transparent 25%);
  opacity: 0.34;
}

body.main-soft-refresh .main-work-subject-card:hover,
body.main-soft-refresh .main-work-subject-card:focus {
  border-color: color-mix(in srgb, var(--work-card-accent, #00d119) 60%, #000 10%);
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  -webkit-box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
}

body.main-soft-refresh .main-work-subject-card:hover::before,
body.main-soft-refresh .main-work-subject-card:focus::before {
  opacity: 0.82;
  -webkit-transform: scale(1.08) rotate(0deg);
  transform: scale(1.08) rotate(0deg);
}

body.main-soft-refresh .main-work-subject-card:hover::after,
body.main-soft-refresh .main-work-subject-card:focus::after {
  opacity: 1;
  -webkit-transform: translateX(130%);
  transform: translateX(130%);
}

body.main-soft-refresh .main-work-subject-card:hover .sub,
body.main-soft-refresh .main-work-subject-card:focus .sub {
  -webkit-transform: translateY(-3px) scale(1.025);
  transform: translateY(-3px) scale(1.025);
}

body.main-soft-refresh .main-work-subject-card:hover .main-work-subject-title,
body.main-soft-refresh .main-work-subject-card:focus .main-work-subject-title {
  color: color-mix(in srgb, var(--work-card-accent, #00d119) 58%, #17321c);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

html.theme-dark body.main-soft-refresh .main-work-subject-card:hover,
html.theme-dark body.main-soft-refresh .main-work-subject-card:focus {
  border-color: var(--work-card-accent, #7ee887);
  background-color: rgba(28, 46, 38, 0.95) !important;
  color: #ecf5f0;
}

html.theme-dark body.main-soft-refresh .main-work-subject-card:hover .main-work-subject-title,
html.theme-dark body.main-soft-refresh .main-work-subject-card:focus .main-work-subject-title {
  color: #ecf5f0;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  body.main-soft-refresh .main-work-subject-card:hover,
  body.main-soft-refresh .main-work-subject-card:focus {
    border-color: var(--work-card-accent, #00d119);
  }
}

/* ===== Main: доводка карточек и меню учебника, версия 3 =====
   1) Активный предмет подсвечивается только через карточку/обертку, а не через inline-фон img.
   2) Блоки главного меню учебника раскрываются мягче через JS и получают оформление в стиле сайта.
   3) Старые классы .charter_i, .sub_charter_i, .list_theme_i сохранены. */
body.main-soft-refresh .main-work-subject-card .sub {
  background-color: transparent !important;
}

body.main-soft-refresh .main-work-subject-card.is-active {
  border-color: color-mix(in srgb, var(--work-card-accent, #00d119) 62%, #000 10%);
  background-color: #fff;
  -webkit-box-shadow: 0 13px 29px rgba(0, 0, 0, 0.12);
  box-shadow: 0 13px 29px rgba(0, 0, 0, 0.12);
}

body.main-soft-refresh .main-work-subject-card.is-active::before {
  opacity: 0.78;
  -webkit-transform: scale(1.06) rotate(0deg);
  transform: scale(1.06) rotate(0deg);
}

body.main-soft-refresh .main-work-subject-card.is-active .main-work-subject-picture,
body.main-soft-refresh .main-work-subject-card .main-work-subject-picture.detected {
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--work-card-accent, #00d119) 22%, transparent), transparent 62%),
    rgba(245, 247, 246, 0.82);
}

body.main-soft-refresh .main-work-subject-card.is-active .main-work-subject-title,
body.main-soft-refresh .main-work-subject-card .main-work-subject-title.detected {
  color: color-mix(in srgb, var(--work-card-accent, #00d119) 58%, #17321c);
}

body.main-soft-refresh .main-work-subject-card.is-active .sub {
  -webkit-transform: translateY(-2px) scale(1.018);
  transform: translateY(-2px) scale(1.018);
}

body.main-soft-refresh .list.charter_i,
body.main-soft-refresh .list.sub_charter_i,
body.main-soft-refresh .list.list_theme_i {
  width: 100%;
  min-height: 0;
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 209, 25, 0.09), transparent 34%),
    radial-gradient(circle at 100% 120%, rgba(149, 149, 198, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 255, 250, 0.88));
  -webkit-box-shadow: 0 8px 22px rgba(0, 0, 0, 0.060);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.060);
  text-align: left;
  overflow: hidden;
}

body.main-soft-refresh .list.charter_i ul,
body.main-soft-refresh .list.sub_charter_i ul,
body.main-soft-refresh .list.list_theme_i ul {
  margin: 0;
  padding: 0;
}

body.main-soft-refresh .list.charter_i li,
body.main-soft-refresh .list.sub_charter_i li,
body.main-soft-refresh .list.list_theme_i li,
body.main-soft-refresh .list.list_theme_i a {
  position: relative;
  display: block;
  margin: 6px 0;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.76);
  color: #1f2a23;
  line-height: 1.38;
  text-decoration: none;
  cursor: pointer;
  -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035);
  -webkit-transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
  transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
}

body.main-soft-refresh .list.charter_i li:hover,
body.main-soft-refresh .list.sub_charter_i li:hover,
body.main-soft-refresh .list.list_theme_i a:hover,
body.main-soft-refresh .list.charter_i li.detected,
body.main-soft-refresh .list.sub_charter_i li.detected {
  border-color: rgba(0, 209, 25, 0.36);
  background-color: rgba(0, 209, 25, 0.070);
  color: #0b6c16;
  -webkit-transform: translateX(2px);
  transform: translateX(2px);
  -webkit-box-shadow: 0 6px 16px rgba(0, 0, 0, 0.075);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.075);
}

body.main-soft-refresh .list.list_theme_i a::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  color: rgba(0, 0, 0, 0.34);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: color 0.18s ease-in-out 0s, transform 0.18s ease-in-out 0s;
  transition: color 0.18s ease-in-out 0s, transform 0.18s ease-in-out 0s;
}

body.main-soft-refresh .list.list_theme_i a:hover::after {
  color: #0b6c16;
  -webkit-transform: translate(2px, -50%);
  transform: translate(2px, -50%);
}

html.theme-dark body.main-soft-refresh .main-work-subject-card.is-active,
html.theme-dark body.main-soft-refresh .main-work-subject-card.is-active .main-work-subject-picture,
html.theme-dark body.main-soft-refresh .main-work-subject-card .main-work-subject-picture.detected {
  border-color: var(--work-card-accent, #7ee887);
  background-color: rgba(28, 46, 38, 0.95) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)) !important;
}

html.theme-dark body.main-soft-refresh .main-work-subject-card.is-active .main-work-subject-title,
html.theme-dark body.main-soft-refresh .main-work-subject-card .main-work-subject-title.detected {
  color: #ecf5f0;
}

html.theme-dark body.main-soft-refresh .list.charter_i,
html.theme-dark body.main-soft-refresh .list.sub_charter_i,
html.theme-dark body.main-soft-refresh .list.list_theme_i {
  border-color: rgba(232, 240, 236, 0.14);
  background-color: rgba(19, 30, 26, 0.78);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  color: #e8f0ec;
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.main-soft-refresh .list.charter_i li,
html.theme-dark body.main-soft-refresh .list.sub_charter_i li,
html.theme-dark body.main-soft-refresh .list.list_theme_i a {
  border-color: rgba(232, 240, 236, 0.12);
  background-color: rgba(255, 255, 255, 0.045);
  color: #e8f0ec;
}

html.theme-dark body.main-soft-refresh .list.charter_i li:hover,
html.theme-dark body.main-soft-refresh .list.sub_charter_i li:hover,
html.theme-dark body.main-soft-refresh .list.list_theme_i a:hover,
html.theme-dark body.main-soft-refresh .list.charter_i li.detected,
html.theme-dark body.main-soft-refresh .list.sub_charter_i li.detected {
  border-color: #7ee887;
  background-color: rgba(28, 46, 38, 0.95);
  color: #bcffc2;
}

html.theme-dark body.main-soft-refresh .list.list_theme_i a::after {
  color: rgba(232, 240, 236, 0.45);
}

html.theme-dark body.main-soft-refresh .list.list_theme_i a:hover::after {
  color: #bcffc2;
}

@media only screen and (max-width : 480px) {
  body.main-soft-refresh .list.charter_i,
  body.main-soft-refresh .list.sub_charter_i,
  body.main-soft-refresh .list.list_theme_i {
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 18px;
  }

  body.main-soft-refresh .list.charter_i li,
  body.main-soft-refresh .list.sub_charter_i li,
  body.main-soft-refresh .list.list_theme_i a {
    margin: 5px 0;
    padding: 7px 10px;
    border-radius: 13px;
    font-size: 0.78em;
  }
}
/* ===== Main: голубые поля меню учебника для выбранной химии, версия 7 =====
   Сама карточка химии уже синяя; теперь тот же холодный акцент получает
   раскрытое меню ниже: главы, подразделы и темы. JS добавляет класс на body,
   а :has оставлен как страховка, если файл JS еще не обновлен. */
body.main-soft-refresh.main-subject-chemistry-selected .list.charter_i,
body.main-soft-refresh.main-subject-chemistry-selected .list.sub_charter_i,
body.main-soft-refresh.main-subject-chemistry-selected .list.list_theme_i,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.charter_i,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.sub_charter_i,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.list_theme_i {
  border-color: rgba(92, 204, 204, 0.22);
  background:
    radial-gradient(circle at 8% 0%, rgba(92, 204, 204, 0.13), transparent 34%),
    radial-gradient(circle at 100% 120%, rgba(121, 210, 255, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 254, 255, 0.90));
}

body.main-soft-refresh.main-subject-chemistry-selected .list.charter_i li:hover,
body.main-soft-refresh.main-subject-chemistry-selected .list.sub_charter_i li:hover,
body.main-soft-refresh.main-subject-chemistry-selected .list.list_theme_i a:hover,
body.main-soft-refresh.main-subject-chemistry-selected .list.charter_i li.detected,
body.main-soft-refresh.main-subject-chemistry-selected .list.sub_charter_i li.detected,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.charter_i li:hover,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.sub_charter_i li:hover,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.list_theme_i a:hover,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.charter_i li.detected,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.sub_charter_i li.detected {
  border-color: rgba(92, 204, 204, 0.44);
  background-color: rgba(92, 204, 204, 0.09);
  color: #0f7777;
}

body.main-soft-refresh.main-subject-chemistry-selected .list.list_theme_i a:hover::after,
body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.list_theme_i a:hover::after {
  color: #0f7777;
}

html.theme-dark body.main-soft-refresh.main-subject-chemistry-selected .list.charter_i,
html.theme-dark body.main-soft-refresh.main-subject-chemistry-selected .list.sub_charter_i,
html.theme-dark body.main-soft-refresh.main-subject-chemistry-selected .list.list_theme_i,
html.theme-dark body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.charter_i,
html.theme-dark body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.sub_charter_i,
html.theme-dark body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.list_theme_i {
  border-color: rgba(92, 204, 204, 0.22);
  background-color: rgba(14, 31, 34, 0.84);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(92, 204, 204, 0.14), transparent 34%),
    radial-gradient(circle at 100% 120%, rgba(121, 210, 255, 0.11), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}

html.theme-dark body.main-soft-refresh.main-subject-chemistry-selected .list.charter_i li:hover,
html.theme-dark body.main-soft-refresh.main-subject-chemistry-selected .list.sub_charter_i li:hover,
html.theme-dark body.main-soft-refresh.main-subject-chemistry-selected .list.list_theme_i a:hover,
html.theme-dark body.main-soft-refresh.main-subject-chemistry-selected .list.charter_i li.detected,
html.theme-dark body.main-soft-refresh.main-subject-chemistry-selected .list.sub_charter_i li.detected,
html.theme-dark body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.charter_i li:hover,
html.theme-dark body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.sub_charter_i li:hover,
html.theme-dark body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.list_theme_i a:hover,
html.theme-dark body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.charter_i li.detected,
html.theme-dark body.main-soft-refresh:has(.main-work-subject-card--chemistry.is-active) .list.sub_charter_i li.detected {
  border-color: rgba(92, 204, 204, 0.52);
  background-color: rgba(21, 54, 57, 0.92);
  color: #c7ffff;
}

/* ===== BioPhobia: мягкое обновление игры и темной темы ===== */
body.biophobia-soft-refresh {
  --biophobia-accent: #7ee887;
  --biophobia-accent-rgb: 126, 232, 135;
  --biophobia-panel-bg: rgba(255, 255, 255, 0.78);
  --biophobia-panel-border: rgba(0, 0, 0, 0.10);
  --biophobia-muted: #53655b;
}

body.biophobia-soft-refresh .biophobia-hero {
  margin-top: 26px;
}

body.biophobia-soft-refresh .biophobia-title {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 22px;
  border: 1px solid var(--biophobia-panel-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 9% 0%, rgba(var(--biophobia-accent-rgb), 0.16), transparent 32%),
    radial-gradient(circle at 100% 115%, rgba(149, 149, 198, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 255, 250, 0.88));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.065);
  line-height: 1.34;
}

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 {
  max-width: 980px;
  margin-top: 24px;
  padding: 18px 24px;
  border: 1px solid var(--biophobia-panel-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 7% 0%, rgba(var(--biophobia-accent-rgb), 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 255, 250, 0.86));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.065);
}


body.biophobia-soft-refresh .biophobia-rules {
  width: min(1360px, calc(100% - 32px));
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

body.biophobia-soft-refresh .biophobia-rules .row {
  margin-left: 0;
  margin-right: 0;
}

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

body.biophobia-soft-refresh .biophobia-panel p {
  line-height: 1.58;
}

body.biophobia-soft-refresh .biophobia-rules h3 {
  margin-top: 0;
}

body.biophobia-soft-refresh .sound-unmuted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 3px 5px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--biophobia-accent-rgb), 0.38);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--biophobia-accent-rgb), 0.16), transparent 38%),
    rgba(255, 255, 255, 0.86);
  color: #1f2a23;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
}

body.biophobia-soft-refresh .sound-unmuted::before {
  content: "🔊";
  margin-right: 6px;
  font-size: 0.9em;
}

body.biophobia-soft-refresh .sound-unmuted:hover,
body.biophobia-soft-refresh .sound-unmuted:focus,
body.biophobia-soft-refresh .sound-unmuted.is-on {
  border-color: var(--biophobia-accent);
  background-color: rgba(var(--biophobia-accent-rgb), 0.16);
  color: #0b6c16;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

body.biophobia-soft-refresh .sound-unmuted.is-on::before {
  content: "🔇";
}

body.biophobia-soft-refresh .complexity,
body.biophobia-soft-refresh .game-start,
body.biophobia-soft-refresh .final,
body.biophobia-soft-refresh .new-biophobia {
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  transition: transform 0.18s ease-in-out 0s, box-shadow 0.18s ease-in-out 0s, border-color 0.18s ease-in-out 0s, background-color 0.18s ease-in-out 0s, color 0.18s ease-in-out 0s;
}

body.biophobia-soft-refresh .complexity {
  padding: 12px 16px;
  margin: 8px 5px 0;
}

body.biophobia-soft-refresh .complexity:hover,
body.biophobia-soft-refresh .complexity.choosen,
body.biophobia-soft-refresh .game-start:hover,
body.biophobia-soft-refresh .new-biophobia:hover,
body.biophobia-soft-refresh .final:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.10);
}

body.biophobia-soft-refresh .complexity1:hover,
body.biophobia-soft-refresh .complexity1-choosen {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

body.biophobia-soft-refresh .complexity2:hover,
body.biophobia-soft-refresh .complexity2-choosen {
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: #fff !important;
}

body.biophobia-soft-refresh .complexity3:hover,
body.biophobia-soft-refresh .complexity3-choosen {
  background-color: #b659b1 !important;
  border-color: #b659b1 !important;
  color: #fff !important;
}

body.biophobia-soft-refresh .complexity4:hover,
body.biophobia-soft-refresh .complexity4-choosen {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
}

body.biophobia-soft-refresh .complexity5:hover,
body.biophobia-soft-refresh .complexity5-choosen {
  background-color: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #2f2400 !important;
}

body.biophobia-soft-refresh .complexity6:hover,
body.biophobia-soft-refresh .complexity6-choosen {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  color: #fff !important;
}

body.biophobia-soft-refresh .game-start,
body.biophobia-soft-refresh .final,
body.biophobia-soft-refresh .new-biophobia {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(var(--biophobia-accent-rgb), 0.32);
  cursor: pointer;
}

body.biophobia-soft-refresh .biophobia-section-title {
  display: inline-block;
  margin: 8px auto 2px;
  padding: 6px 16px;
  border: 1px solid rgba(var(--biophobia-accent-rgb), 0.24);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.80);
  color: #213324;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.055);
}

body.biophobia-soft-refresh .biophobia-evidence-card,
body.biophobia-soft-refresh .biophobia-organism-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-color: rgba(0, 0, 0, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--biophobia-accent-rgb), 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 255, 250, 0.88));
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.055);
  transition: transform 0.22s ease-in-out 0s, box-shadow 0.22s ease-in-out 0s, border-color 0.22s ease-in-out 0s, background-color 0.22s ease-in-out 0s;
}

body.biophobia-soft-refresh .biophobia-evidence-card:hover,
body.biophobia-soft-refresh .biophobia-organism-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.105);
}

body.biophobia-soft-refresh .evidence_wrap {
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 177, 177, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(248, 248, 248, 0.96), rgba(236, 232, 232, 0.88)) !important;
}

body.biophobia-soft-refresh .evidence_wrap::after {
  content: "?";
  position: absolute;
  z-index: 0;
  right: 14px;
  bottom: 6px;
  color: rgba(0, 0, 0, 0.10);
  font-size: 2.2em;
  line-height: 1;
  pointer-events: none;
}

body.biophobia-soft-refresh .evidence_wrap .biophobia-evidence-text {
  color: transparent !important;
  text-shadow: 0 0 9px rgba(0, 0, 0, 0.18);
}

body.biophobia-soft-refresh .evidence_wrap_show {
  border-color: color-mix(in srgb, var(--biophobia-card-color, var(--biophobia-accent)) 68%, #000 8%) !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--biophobia-card-color, var(--biophobia-accent)) 17%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--biophobia-card-color, var(--biophobia-accent)) 8%, #fff), rgba(255, 255, 255, 0.92)) !important;
}

body.biophobia-soft-refresh .evidence_wrap_show .biophobia-evidence-text {
  color: color-mix(in srgb, var(--biophobia-card-color, #31543a) 78%, #111) !important;
  text-shadow: none !important;
}

body.biophobia-soft-refresh .organism_find.is-crossed {
  border-color: rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.72) !important;
}

body.biophobia-soft-refresh .organism_find.is-crossed .biophobia-organism-name {
  opacity: 0.54;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

body.biophobia-soft-refresh .organism_find.is-chosen {
  border-color: rgba(var(--biophobia-accent-rgb), 0.55) !important;
  background:
    radial-gradient(circle at 50% 100%, rgba(var(--biophobia-accent-rgb), 0.18), transparent 62%),
    rgba(255, 255, 255, 0.90) !important;
  color: #0b6c16;
}

body.biophobia-soft-refresh .organism_find.is-chosen .biophobia-organism-name,
body.biophobia-soft-refresh .span-choosen {
  opacity: 1;
  text-decoration: none;
  border-color: rgba(var(--biophobia-accent-rgb), 0.55);
  background-color: rgba(var(--biophobia-accent-rgb), 0.12);
}

body.biophobia-soft-refresh .final.active {
  box-shadow:
    0 0 0 4px rgba(var(--biophobia-accent-rgb), 0.14),
    0 9px 20px rgba(0, 0, 0, 0.10);
}

body.biophobia-soft-refresh .biophobia-result-card {
  display: block;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

body.biophobia-soft-refresh .biophobia-result-card--success {
  border-color: rgba(40, 167, 69, 0.34);
}

body.biophobia-soft-refresh .biophobia-result-card--fail {
  border-color: rgba(220, 53, 69, 0.30);
}

html.theme-dark body.biophobia-soft-refresh .biophobia-title,
html.theme-dark body.biophobia-soft-refresh .biophobia-panel,
html.theme-dark body.biophobia-soft-refresh .biophobia-good-know,
html.theme-dark body.biophobia-soft-refresh .biophobia-countdown,
html.theme-dark body.biophobia-soft-refresh .biophobia-result-card,
html.theme-dark body.biophobia-soft-refresh .biophobia-section-title,
html.theme-dark body.biophobia-soft-refresh .biophobia-evidence-card,
html.theme-dark body.biophobia-soft-refresh .biophobia-organism-card {
  border-color: rgba(232, 240, 236, 0.14);
  background-color: rgba(19, 30, 26, 0.78) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)) !important;
  color: #e8f0ec;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.biophobia-soft-refresh .sound-unmuted {
  border-color: rgba(var(--biophobia-accent-rgb), 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--biophobia-accent-rgb), 0.14), transparent 38%),
    rgba(255, 255, 255, 0.045);
  color: #e8f0ec;
}

html.theme-dark body.biophobia-soft-refresh .sound-unmuted:hover,
html.theme-dark body.biophobia-soft-refresh .sound-unmuted:focus,
html.theme-dark body.biophobia-soft-refresh .sound-unmuted.is-on {
  border-color: var(--biophobia-accent);
  background-color: rgba(var(--biophobia-accent-rgb), 0.13);
  color: #bcffc2;
}

html.theme-dark body.biophobia-soft-refresh .evidence_wrap {
  border-color: rgba(232, 240, 236, 0.12) !important;
  background-color: rgba(21, 27, 25, 0.95) !important;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.045), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.008)) !important;
}

html.theme-dark body.biophobia-soft-refresh .evidence_wrap::after {
  color: rgba(255, 255, 255, 0.08);
}

html.theme-dark body.biophobia-soft-refresh .evidence_wrap .biophobia-evidence-text {
  color: transparent !important;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.10);
}

html.theme-dark body.biophobia-soft-refresh .evidence_wrap_show {
  border-color: color-mix(in srgb, var(--biophobia-card-color, var(--biophobia-accent)) 62%, rgba(255, 255, 255, 0.18)) !important;
  background-color: rgba(24, 38, 33, 0.92) !important;
  background-image:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--biophobia-card-color, var(--biophobia-accent)) 18%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)) !important;
}

html.theme-dark body.biophobia-soft-refresh .evidence_wrap_show .biophobia-evidence-text {
  color: color-mix(in srgb, var(--biophobia-card-color, #bcffc2) 72%, #ffffff) !important;
}

html.theme-dark body.biophobia-soft-refresh .organism_find.is-crossed {
  border-color: rgba(232, 240, 236, 0.10) !important;
  background-color: rgba(255, 255, 255, 0.035) !important;
}

html.theme-dark body.biophobia-soft-refresh .organism_find.is-crossed .biophobia-organism-name {
  opacity: 0.48;
}

html.theme-dark body.biophobia-soft-refresh .organism_find.is-chosen {
  border-color: rgba(var(--biophobia-accent-rgb), 0.52) !important;
  background-color: rgba(28, 46, 38, 0.95) !important;
  color: #bcffc2;
}

html.theme-dark body.biophobia-soft-refresh .span-choosen {
  border-color: rgba(var(--biophobia-accent-rgb), 0.44);
  background-color: rgba(var(--biophobia-accent-rgb), 0.12);
}


html.theme-dark body.biophobia-soft-refresh .complexity:not([class*="-choosen"]),
html.theme-dark body.biophobia-soft-refresh .game-start:not([class*="-choosen"]),
html.theme-dark body.biophobia-soft-refresh .final:not([class*="-choosen"]),
html.theme-dark body.biophobia-soft-refresh .new-biophobia {
  border-color: rgba(232, 240, 236, 0.14);
  background-color: rgba(255, 255, 255, 0.045);
  background-image:
    radial-gradient(circle at 18% 0%, rgba(var(--biophobia-accent-rgb), 0.10), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.010));
  color: #e8f0ec;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

html.theme-dark body.biophobia-soft-refresh .complexity:not([class*="-choosen"]):hover,
html.theme-dark body.biophobia-soft-refresh .game-start:not([class*="-choosen"]):hover,
html.theme-dark body.biophobia-soft-refresh .final:not([class*="-choosen"]):hover,
html.theme-dark body.biophobia-soft-refresh .new-biophobia:hover {
  border-color: rgba(var(--biophobia-accent-rgb), 0.42);
  background-color: rgba(28, 46, 38, 0.95);
  color: #bcffc2;
}

html.theme-dark body.biophobia-soft-refresh .complexity5:hover,
html.theme-dark body.biophobia-soft-refresh .complexity5-choosen {
  color: #241b00 !important;
}

/* ===== BioPhobia: центрирование таймера первого явления ===== */

body.biophobia-soft-refresh .biophobia-countdown {
  float: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 18px auto 0;
  padding: 0 15px;
  text-align: center;
}

body.biophobia-soft-refresh .biophobia-countdown::before,
body.biophobia-soft-refresh .biophobia-countdown::after {
  content: none !important;
  display: none !important;
}

body.biophobia-soft-refresh .biophobia-countdown p {
  display: inline-block;
  width: auto;
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 24px;
  text-align: center;
}

html.theme-dark body.biophobia-soft-refresh .biophobia-countdown p {
  color: #e8f0ec;
}

/* ===== Main: карусель предметов без Slick, точечно для главной =====
   На главной всего две карточки, поэтому убираем зависимость от slick responsive.
   Другие slick-карусели сайта не затрагиваются. */
body.main-soft-refresh .subjects .main-subject-carousel,
body.main-soft-refresh .subjects .main-subject-carousel:not(.slick-initialized) {
  visibility: visible !important;
  position: relative;
  max-width: 780px;
  min-height: 0 !important;
  margin-left: auto;
  margin-right: auto;
}

body.main-soft-refresh .main-subject-carousel__viewport {
  width: 100%;
  overflow: visible;
}

body.main-soft-refresh .main-subject-carousel__track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

body.main-soft-refresh .subjects .im_wrap.main-subject-slide {
  float: none !important;
  display: block;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
  height: auto;
  padding-left: 46px;
  padding-right: 46px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body.main-soft-refresh .main-subject-carousel__dots {
  display: none;
}

body.main-soft-refresh .main-subject-carousel__dot {
  font-family: Arial, sans-serif !important;
}

/* ===== Мобильное и планшетное меню: контраст в темной теме =====
   Разметка и поведение меню не меняются. Стили не привязаны к конкретной
   странице, поэтому работают на главной, в статьях, тестах и кабинете. */
html.theme-dark .menu_for_mobile .menumob_wrap {
  border-color: rgba(232, 240, 236, 0.46);
  background-color: #263b33;
  color: #f1faf5;
}

html.theme-dark .menu_for_mobile .menumob_wrap.active {
  border-color: rgba(126, 232, 135, 0.58);
  background-color: #315443;
}

html.theme-dark .menu_for_mobile .menumob_wrap img {
  -webkit-filter: invert(1) brightness(1.16) contrast(0.96);
  filter: invert(1) brightness(1.16) contrast(0.96);
  opacity: 0.96;
}

html.theme-dark .menu_for_mobile .main_a_wrap_new,
html.theme-dark .menu_for_mobile .main_a_wrap_new a,
html.theme-dark .menu_for_mobile .main_a_wrap_new a:visited,
html.theme-dark .menu_for_tablet a,
html.theme-dark .menu_for_tablet a:visited {
  color: #e8f0ec;
}

html.theme-dark .menu_for_mobile .main_a_wrap_new a.act,
html.theme-dark .menu_for_tablet a.act {
  color: #7ee887;
}

@media only screen and (max-width : 480px) {
  body.main-soft-refresh .subjects.main-subjects-section {
    margin-top: 16px;
    margin-bottom: 22px;
  }

  body.main-soft-refresh .main-subject-carousel__viewport {
    overflow: hidden;
  }

  body.main-soft-refresh .main-subject-carousel__track {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-transition: -webkit-transform 0.28s ease-in-out 0s;
    transition: -webkit-transform 0.28s ease-in-out 0s;
    transition: transform 0.28s ease-in-out 0s;
    transition: transform 0.28s ease-in-out 0s, -webkit-transform 0.28s ease-in-out 0s;
  }

  body.main-soft-refresh .main-subject-carousel.is-slide-0 .main-subject-carousel__track {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  body.main-soft-refresh .main-subject-carousel.is-slide-1 .main-subject-carousel__track {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }

  body.main-soft-refresh .subjects .im_wrap.main-subject-slide {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.main-soft-refresh .subjects .im.sub_wrapper.main-work-subject-card {
    display: block;
    width: 100%;
    max-width: 340px;
    min-height: 318px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 14px 18px;
    border-radius: 30px;
  }

  body.main-soft-refresh .main-work-subject-picture {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 260px;
    max-width: 74vw;
    height: 260px;
    max-height: 74vw;
    min-height: 0 !important;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 24px;
  }

  body.main-soft-refresh .subjects .main-work-subject-card .sub {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 86% !important;
    max-height: 86% !important;
    padding: 0 !important;
    object-fit: contain;
    background-color: transparent !important;
  }

  body.main-soft-refresh .subjects span.main-work-subject-title {
    margin-top: 12px;
    font-size: 0.88em;
    line-height: 1.25;
  }

  body.main-soft-refresh .main-subject-carousel__dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
  }

  body.main-soft-refresh .main-subject-carousel__dot {
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
  }

  body.main-soft-refresh .main-subject-carousel__dot + .main-subject-carousel__dot {
    margin-left: 10px;
  }

  body.main-soft-refresh .main-subject-carousel__dot.is-active {
    border-color: #00d119;
    background-color: #00d119;
  }

  html.theme-dark body.main-soft-refresh .main-subject-carousel__dot {
    border-color: rgba(238, 248, 242, 0.30);
    background-color: rgba(255, 255, 255, 0.10);
  }

  html.theme-dark body.main-soft-refresh .main-subject-carousel__dot.is-active {
    border-color: #7ee887;
    background-color: #7ee887;
  }
}

@media only screen and (max-width : 360px) {
  body.main-soft-refresh .subjects .im.sub_wrapper.main-work-subject-card {
    max-width: calc(100vw - 42px);
    min-height: 292px;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.main-soft-refresh .main-work-subject-picture {
    width: 232px;
    max-width: 72vw;
    height: 232px;
    max-height: 72vw;
    border-radius: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.main-soft-refresh .main-subject-carousel__track {
    -webkit-transition: none;
    transition: none;
  }
}

/* Главная: row вокруг карусели не должен быть flex,
   иначе flex-item .col-md-12 может растягиваться по ширине track */
body.main-soft-refresh .main-subjects-section > .container > .row {
  display: block !important;
}

/* возвращаем bootstrap clearfix, потому что общий work-soft-refresh его отключал */
body.main-soft-refresh .main-subjects-section > .container > .row::before,
body.main-soft-refresh .main-subjects-section > .container > .row::after {
  content: " ";
  display: table !important;
}

body.main-soft-refresh .main-subjects-section > .container > .row::after {
  clear: both;
}
/* ===== Clarif + старые страницы тестов: единый современный вид, версия 3 =====
   Файлы clarif_test_*.php теперь собирают свой вывод в .test-clarif.
   Логика заданий не меняется: обновляется только визуальная оболочка. */
body.test-soft-refresh .test-question-unit {
  --test-accent: #00d119;
  --test-accent-rgb: 0, 209, 25;
}

body.test-soft-refresh .test-clarif {
  position: relative;
  overflow: hidden;
  width: calc(100% - 30px);
  max-width: 1170px;
  margin: 22px auto 10px;
  padding: 18px 22px;
  border: 1px solid rgba(var(--test-accent-rgb, 0, 209, 25), 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 7% 0%, rgba(var(--test-accent-rgb, 0, 209, 25), 0.11), transparent 34%),
    radial-gradient(circle at 100% 110%, rgba(149, 149, 198, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(252, 255, 252, 0.91));
  color: #263029;
  line-height: 1.62;
  -webkit-box-shadow: 0 9px 25px rgba(0, 0, 0, 0.06);
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.06);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body.test-soft-refresh .test-clarif::before {
  content: "Пояснение к заданию";
  display: table;
  margin: 0 auto 13px;
  padding: 4px 13px;
  border: 1px solid rgba(var(--test-accent-rgb, 0, 209, 25), 0.24);
  border-radius: 999px;
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.075);
  color: #36433a;
  font-size: 0.60em;
  line-height: 1.25;
  text-align: center;
}

body.test-soft-refresh .test-clarif > .container,
body.test-soft-refresh .test-clarif .container {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body.test-soft-refresh .test-clarif > .container + .container {
  margin-top: 12px;
}

body.test-soft-refresh .test-clarif .row {
  margin-left: 0;
  margin-right: 0;
}

body.test-soft-refresh .test-clarif .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

body.test-soft-refresh .test-clarif .elements_wrap,
body.test-soft-refresh .test-clarif .job_warp_c {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 19px;
  background-color: rgba(255, 255, 255, 0.70);
  color: inherit;
  text-align: left;
  -webkit-box-shadow: inset 0 0 0 1px rgba(var(--test-accent-rgb, 0, 209, 25), 0.025);
  box-shadow: inset 0 0 0 1px rgba(var(--test-accent-rgb, 0, 209, 25), 0.025);
}

body.test-soft-refresh .test-clarif .job_warp_c {
  text-align: center;
}

body.test-soft-refresh .test-clarif .elements_wrap + .elements_wrap {
  margin-top: 10px;
}

body.test-soft-refresh .test-clarif p {
  margin: 8px 0;
  line-height: 1.62;
}

body.test-soft-refresh .test-clarif p:first-child {
  margin-top: 0;
}

body.test-soft-refresh .test-clarif p:last-child {
  margin-bottom: 0;
}

body.test-soft-refresh .test-clarif h3 {
  position: relative;
  display: inline-block;
  margin: 0 0 7px;
  padding: 0 0 7px;
  font-size: 1em;
  line-height: 1.35;
}

body.test-soft-refresh .test-clarif h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 2px;
  border-radius: 99px;
  background-color: var(--test-accent, #00d119);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

body.test-soft-refresh .test-clarif .job_img_warp_c,
body.test-soft-refresh .test-clarif .mtb,
body.test-soft-refresh .test-clarif .mto {
  margin-top: 12px;
  margin-bottom: 12px;
}

body.test-soft-refresh .test-clarif img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 17px;
  -webkit-box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}

body.test-soft-refresh .test-clarif .show_text,
body.test-soft-refresh .test-clarif .show_text.studarium_wrap,
body.test-soft-refresh .test-clarif .show_text.tarif_var {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  margin: 0;
  padding: 7px 16px;
  border: 1px solid rgba(var(--test-accent-rgb, 0, 209, 25), 0.30);
  border-radius: 999px;
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.08);
  color: #253028;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  -webkit-box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
  -webkit-transition: transform 0.18s ease-in-out, border-color 0.18s ease-in-out, background-color 0.18s ease-in-out, box-shadow 0.18s ease-in-out;
  transition: transform 0.18s ease-in-out, border-color 0.18s ease-in-out, background-color 0.18s ease-in-out, box-shadow 0.18s ease-in-out;
}

body.test-soft-refresh .test-clarif .show_text:hover,
body.test-soft-refresh .test-clarif .show_text:focus {
  border-color: var(--test-accent, #00d119);
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.14);
  color: #1c2a1f;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 9px 20px rgba(0, 0, 0, 0.10);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.10);
}

body.test-soft-refresh .test-clarif .text_rus {
  margin-top: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-left: 5px solid rgba(var(--test-accent-rgb, 0, 209, 25), 0.48);
  border-radius: 17px;
  background-color: rgba(255, 255, 255, 0.72);
  line-height: 1.68;
  text-align: left;
  overflow-wrap: anywhere;
}

body.test-soft-refresh .test-clarif .elements_chem {
  margin: 10px 0;
  padding: 11px 13px;
  border-radius: 15px;
  background-color: rgba(var(--test-accent-rgb, 0, 209, 25), 0.055);
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.test-soft-refresh .test-clarif .elements_chem span {
  margin-left: 22px;
}

body.test-soft-refresh .test-clarif audio {
  display: block;
  width: min(620px, 100%);
  max-width: 100%;
  margin: 8px auto;
  border-radius: 16px;
}

body.test-soft-refresh .test-clarif table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.test-soft-refresh .test-clarif pre {
  max-width: 100%;
  padding: 12px;
  border-radius: 14px;
  background-color: rgba(0, 0, 0, 0.035);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.test-soft-refresh .test-copyright-card {
  float: none;
  max-width: 900px;
  margin: 22px auto 8px;
  padding: 15px 18px;
  border: 1px solid rgba(var(--test-accent-rgb, 0, 209, 25), 0.18);
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  text-align: center;
  -webkit-box-shadow: 0 8px 22px rgba(0, 0, 0, 0.055);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.055);
}

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

body.favorites-soft-refresh .test-question-unit {
  margin: 0 0 8px;
}

body.favorites-soft-refresh .favorites-finish-note {
  text-align: center;
}

body.favorites-soft-refresh .favorites-pagination-bottom {
  margin-top: 12px;
}

/* Clarif и служебные карточки: темная тема. */
html.theme-dark body.test-soft-refresh .test-clarif,
html.theme-dark body.test-soft-refresh .test-copyright-card {
  border-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.25);
  background-color: rgba(19, 30, 26, 0.82);
  background-image:
    radial-gradient(circle at 7% 0%, rgba(var(--test-accent-rgb, 126, 232, 135), 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  color: #e8f0ec;
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.test-soft-refresh .test-clarif::before {
  border-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.30);
  background-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.12);
  color: #ecf5f0;
}

html.theme-dark body.test-soft-refresh .test-clarif .elements_wrap,
html.theme-dark body.test-soft-refresh .test-clarif .job_warp_c,
html.theme-dark body.test-soft-refresh .test-clarif .text_rus,
html.theme-dark body.test-soft-refresh .test-clarif pre {
  border-color: rgba(232, 240, 236, 0.12);
  background-color: rgba(255, 255, 255, 0.04);
  color: #e8f0ec;
}

html.theme-dark body.test-soft-refresh .test-clarif .show_text,
html.theme-dark body.test-soft-refresh .test-clarif .show_text.studarium_wrap,
html.theme-dark body.test-soft-refresh .test-clarif .show_text.tarif_var {
  border-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.34);
  background-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.12);
  color: #ecf5f0;
}

html.theme-dark body.test-soft-refresh .test-clarif .show_text:hover,
html.theme-dark body.test-soft-refresh .test-clarif .show_text:focus {
  border-color: var(--test-accent, #7ee887);
  background-color: rgba(28, 46, 38, 0.95);
  color: #ecf5f0;
}

html.theme-dark body.test-soft-refresh .test-clarif .elements_chem {
  background-color: rgba(var(--test-accent-rgb, 126, 232, 135), 0.075);
}

html.theme-dark body.test-soft-refresh .test-clarif img {
  -webkit-filter: brightness(0.82) contrast(0.96) saturate(0.92);
  filter: brightness(0.82) contrast(0.96) saturate(0.92);
  -webkit-box-shadow: 0 9px 24px rgba(0, 0, 0, 0.28);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.28);
}

@media only screen and (max-width : 768px) {
  body.test-soft-refresh .test-clarif {
    width: calc(100% - 24px);
    margin-top: 17px;
    padding: 15px 16px;
    border-radius: 22px;
  }
}

@media only screen and (max-width : 480px) {
  body.test-soft-refresh .test-clarif {
    width: calc(100% - 20px);
    margin-top: 14px;
    margin-bottom: 7px;
    padding: 12px 10px;
    border-radius: 19px;
    font-size: 0.78em;
    line-height: 1.52;
  }

  body.test-soft-refresh .test-clarif::before {
    margin-bottom: 9px;
    font-size: 0.72em;
  }

  body.test-soft-refresh .test-clarif .elements_wrap,
  body.test-soft-refresh .test-clarif .job_warp_c,
  body.test-soft-refresh .test-clarif .text_rus {
    padding: 10px 9px;
    border-radius: 15px;
  }

  body.test-soft-refresh .test-clarif .show_text,
  body.test-soft-refresh .test-clarif .show_text.studarium_wrap,
  body.test-soft-refresh .test-clarif .show_text.tarif_var {
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    font-size: 0.92em;
  }

  body.test-soft-refresh .test-clarif .elements_chem span {
    margin-left: 8px;
  }

  body.test-soft-refresh .test-copyright-card {
    width: calc(100% - 20px);
    margin-top: 18px;
    padding: 12px 10px;
    border-radius: 19px;
    font-size: 0.76em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.test-soft-refresh .test-clarif .show_text {
    -webkit-transition: none;
    transition: none;
  }
}

/* ===== Открытый и закрытый Job: кнопка отправки без внешней карточки =====
   HTML-обертку .btn_wrap.test-submit-panel сохраняем для совместимости с JS.
   Убираем только декоративный фон, рамку и тень. Правило действует как
   на открытом job, так и на job внутри личного кабинета. */
body.job-soft-refresh .btn_wrap.test-submit-panel,
body.job-cabinet-soft-refresh .btn_wrap.test-submit-panel,
html.theme-dark body.job-soft-refresh .btn_wrap.test-submit-panel,
html.theme-dark body.job-cabinet-soft-refresh .btn_wrap.test-submit-panel {
  position: static;
  overflow: visible;
  width: auto;
  max-width: none;
  margin: 34px auto 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  background-image: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* После проверки результаты остаются компактными и читаемыми,
   хотя внешняя карточка блока отправки больше не отображается. */
body.job-soft-refresh .btn_wrap.test-submit-panel .result1,
body.job-soft-refresh .btn_wrap.test-submit-panel .result2,
body.job-cabinet-soft-refresh .btn_wrap.test-submit-panel .result1,
body.job-cabinet-soft-refresh .btn_wrap.test-submit-panel .result2 {
  width: calc(100% - 24px);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width : 480px) {
  body.job-soft-refresh .btn_wrap.test-submit-panel,
  body.job-cabinet-soft-refresh .btn_wrap.test-submit-panel,
  html.theme-dark body.job-soft-refresh .btn_wrap.test-submit-panel,
  html.theme-dark body.job-cabinet-soft-refresh .btn_wrap.test-submit-panel {
    margin: 22px 10px 20px;
    padding: 0;
    border-radius: 0;
  }

  body.job-soft-refresh .btn_wrap.test-submit-panel .result1,
  body.job-soft-refresh .btn_wrap.test-submit-panel .result2,
  body.job-cabinet-soft-refresh .btn_wrap.test-submit-panel .result1,
  body.job-cabinet-soft-refresh .btn_wrap.test-submit-panel .result2 {
    width: 100%;
  }
}

.text_show {
    margin-right: 0.25em;
}

/* Аудиоплеер в тёмной теме */
html.theme-dark audio {
  color-scheme: dark;
  background-color: #17231f;
  border-radius: 20px;
}

/* Chrome, Edge, Safari */
html.theme-dark audio::-webkit-media-controls-enclosure {
  border-radius: 20px;
}

html.theme-dark audio::-webkit-media-controls-panel {
  background-color: #263b33;
}

/* Центрирование таблиц внутри специальной оболочки */
body.test-soft-refresh .job_img_warp_c {
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.test-soft-refresh .job_img_warp_c > table {
  display: table !important;
  width: auto !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}