@charset "UTF-8";

.main_checkbox,
button {
  cursor: pointer;
}

.editor_wrap .editor_head h5,
body {
  font-family: Inter, sans-serif;
}

.my_class__content_body li a,
.my_class__content_head .btn_red,
.tasks__right p a,
.theory__category ul li.active a,
body.light-theme .header__auth_link a {
  text-decoration: underline;
}

body.green-theme .header__logout,
body.light-theme .header .change_theme button svg path {
  stroke: #ffffff;
}

.blog-name,
.book-name,
.news-item-title {
  text-overflow: ellipsis;
}

body.light-theme .dropdown-btn path,
body.light-theme .header__account .dropdown-icon path,
body.light-theme .header__navs--burger li path,
body.light-theme .page-change__btn path:not(.prev-svg) {
  stroke: #000;
}

html {
  scroll-behavior: smooth;
  font-family: Inter, sans-serif;
}

*,
.ad-left,
.question-item pre {
  box-sizing: border-box;
}

*,
del,
h1,
h2,
h3,
h4,
h5,
h6,
label,
ol,
p,
ul {
  margin: 0;
  padding: 0;
}

a,
a:hover {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  border: none;
  background: 0 0;
  outline: 0;
}

.main_checkbox input::after,
.main_checkbox input::before {
  position: absolute;
  width: 28px;
  height: 28px;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}

.ace-monokai .ace_print-margin,
.btn_like img.green,
.btn_like img.light,
.community_support__block_item img.green,
.community_support__block_item img.light,
.editor_wrap .editor_head .full_screen img.green,
.editor_wrap .editor_head .full_screen img.light,
.header__account a img.green,
.header__account a img.light,
.header__logo img:nth-child(2),
.header__logo img:nth-child(3),
.home__left_card.green,
.home__left_card.light,
.home__right_card.green,
.home__right_card.light,
.interactive__bottom_card__item img.green,
.interactive__bottom_card__item img.light,
.join_us__card .networks li img.green,
.join_us__card .networks li img.light,
.join_us__card_left img.green,
.join_us__card_left img.light,
.join_us__card_link img.green,
.join_us__card_link img.light,
.join_us__card_right__bg.light,
.tasks__left .tasks_wrap__item:not(:first-child) .child_tasks,
.tasks__title img.green,
.tasks__title img.light,
.tasks_level h4 img.green,
.tasks_level h4 img.light,
.theme-change-text,
.theory-left__burger,
.theory-left__burger.active span,
.theory__category .networks li::before,
.theory__category ul li img.green,
.theory__category ul li img.light,
.theory__search img.green,
.theory__search img.light {
  display: none;
}

.interactive__bottom_card__item h2 span,
.join_us__title span {
  background: linear-gradient(to right, #de3232, #7e0000);
  -webkit-text-fill-color: #ffffff;
  -webkit-background-clip: text;
}

.tasks__left .tasks_wrap,
.theory__category .parent_category {
  list-style-type: decimal;
  list-style-position: inside;
}

.main_checkbox input,
.progress-bar {
  appearance: none;
  cursor: pointer;
}

.tasks_level__right .circle_progress div[role="progressbar"]::before,
body.light-theme .tasks_level__right .circle_progress div[role="progressbar"]::before,
div[role="progressbar"]::before {
  counter-reset: percentage var(--value);
}

.progress-bar-circle {
  --size: 166px;
  --fg: #c62828;
  --bg: rgba(74, 74, 74, 0.58);
  --pgPercentage: var(--value);
  animation: forwards growProgressBar;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side,
      #0f0f10 75%,
      transparent 0 99.9%,
      #0f0f10 0),
    conic-gradient(var(--fg) calc(var(--pgPercentage) * 1%), var(--bg) 0);
  font-family: Helvetica, Arial, sans-serif;
  font-size: calc(var(--size) / 5);
  color: var(--fg);
}

body.light-theme .progress-bar-circle {
  --fg: #4e90f2;
  background: radial-gradient(closest-side,
      #ffffff 75%,
      transparent 0 99.9%,
      #ffffff 0),
    conic-gradient(var(--fg) calc(var(--pgPercentage) * 1%), var(--bg) 0);
}

body.green-theme .progress-bar-circle {
  --fg: #0bbf35;
  background: radial-gradient(closest-side,
      #15191f 75%,
      transparent 0 99.9%,
      #15191f 0),
    conic-gradient(var(--fg) calc(var(--pgPercentage) * 1%), var(--bg) 0);
}

del,
ol,
ul {
  list-style: none;
}

a {
  display: inline-block;
}

body {
  background: #0e0e0e;
  color: #ffffff;
  font-weight: 500;
}

.content-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.main_container {
  max-width: 1312px;
  padding: 0 20px;
  margin: 0 auto;
}

.main_container--big {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.main_container--big.no_margin {
  margin: 0;
}

.main_container--big.full_width,
.questions_container .recomends-block {
  max-width: 100%;
}

.main_container--grid {
  padding-top: 50px;
  display: grid;
  gap: 25px;
  grid-template-columns: 300px minmax(600px, auto) 330px;
  position: relative;
}

@media screen and (max-width: 1310px) {
  .main_container--grid {
    grid-template-columns: 300px minmax(600px, auto);
  }
}

.main_title {
  font-size: 30px;
  font-weight: 600;
}

.main_text-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media screen and (max-width: 510px) {
  .main_title {
    font-size: 24px;
  }
}

.main_description {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #e0e0e0;
}

body.light-theme .main_description,
body.light-theme .page-content p {
  color: #000;
}

.main_description span {
  font-weight: 700;
}

.main_input {
  width: 100%;
  background: #3c3c3c;
  border-radius: 5px;
  padding: 10px;
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
}

.main_input::placeholder {
  color: #9a9a9a;
}

.centred-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main_checkbox {
  user-select: none;
  position: relative;
}

.main_checkbox span {
  font-size: 12px;
  line-height: 15px;
  padding-left: 50px;
}

.main_checkbox input::before {
  content: "";
  background: #2a2a2a;
  border: 1px solid #919191;
  border-radius: 2px;
}

.main_checkbox input::after {
  content: "\2713";
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
}

.btn_red,
.btn_white {
  align-items: center;
  display: flex;
}

.main_checkbox input:checked::after {
  display: flex;
}

.sec_title {
  font-size: 27px;
  font-weight: 600;
  line-height: 50px;
}

.btn_like,
.tasks__right table td:first-child span,
.theory__left .main_description {
  font-weight: 500;
}

@media screen and (max-width: 928px) {
  .sec_title {
    font-size: 22px;
    line-height: 23px;
  }
}

@media screen and (max-width: 810px) {
  .sec_title {
    font-size: 19px;
  }
}

.btn_red {
  border: 1px solid #ff6161;
  border-radius: 5px;
  height: 40px;
  color: #ff6161;
  line-height: 15px;
  padding: 3px 10px;
  justify-content: center;
  transition: 0.2s;
}

.btn_red:hover {
  background: #ff6161;
  color: #ffffff;
}

.doubts__card_item h3,
.header .change_theme ul button.active,
.home__title .dark,
.tasks__right p a,
.tasks__right p span,
.tasks__right table td span,
body.dark-theme .books-category p {
  color: #c62828;
}

.btn_danger {
  border-radius: 5px;
  background: linear-gradient(154.82deg,
      #c82f2f 11.465%,
      rgb(179 25 25 / 0.99) 82.917%);
  padding: 15px 80px;
}

.btn_white {
  padding: 0 39px;
  border-radius: 5px;
  border: 1px solid #ffffff;
  height: 39px;
  justify-content: center;
  font-size: 14px;
  line-height: 17px;
}

.btn_like {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9f9f9f;
  font-size: 12px;
}

.btn_like img {
  filter: grayscale(100%);
}

.btn_like.active img {
  filter: grayscale(0%);
}

.wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.header {
  width: 100%;
  z-index: 5;
  background: #292929;
  padding: 6px 0;
}

body.green-theme .header {
  background: #1b1e28;
}

body.light-theme .header {
  background: #ffffff;
  border-bottom: 1px solid;
}

.doubts__card,
.header__block_left,
.interactive__bottom_card {
  gap: 40px;
}

.header-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top: 115%;
  left: 0;
  background-color: #fff0;
  border-radius: 12px;
  background: #1c1c1c;
  z-index: 5;
}

@media (max-width: 768px) {
  .header-dropdown-menu {
    position: static;
  }
}

.header-dropdown-menu.active {
  display: flex;
  animation: 0.3s forwards animate-dropdown;
}

@keyframes animate-dropdown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home__bg,
.home__bg_circle,
.home__left_card,
.home__right_card {
  z-index: -1;
  position: absolute;
}

.header.theory_header .main_container {
  max-width: 1252px;
  padding: 0 20px 20px;
}

.code-wrapper,
.header .change_theme,
.header__logo,
.home,
.tasks_level__right .circle_progress {
  position: relative;
}

.header__logo div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__logo img {
  width: 60px;
  height: 72px;
}

.header__logo_text {
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__logo_text span {
  color: #c62828;
  font-size: 9px;
  line-height: 15px;
}

.header-account-dropdown-menu span,
.header__auth_link,
.header__navs a,
.header__navs span {
  margin-right: 0;
  color: #e0e0e0;
  padding: 0 25px;
  text-decoration: none;
  border-radius: 15px;
  height: 46px;
  transition: 0.2s;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  letter-spacing: 0.4px;
  opacity: 0.85;
  white-space: nowrap;
  cursor: pointer;
}

.header__block_right.open {
  display: flex !important;
  width: 100%;
  position: fixed;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #0e0e0e;
  z-index: 10;
  flex-direction: column;
  gap: 20px;
  padding: 120px 20px 20px;
  align-items: normal !important;
  overflow-y: auto;
}

header span {
  font-size: 0.7rem;
}

.header__navs {
  position: relative;
  gap: 8px;
}

.header__auth_link,
.header__navs a,
.header__navs span {
  position: relative;
  align-items: center;
}

.code-wrapper .run-btn:hover,
.header-account-dropdown-menu span:hover,
.header__auth_link:hover,
.header__navs a.active,
.header__navs a:hover,
.header__navs span.active,
.header__navs span:hover,
.theme-change:hover {
  background: rgb(224 224 224 / 0.08);
}

body.light-theme .header-account-dropdown-menu span:hover,
body.light-theme .header__auth_link:hover,
body.light-theme .header__navs a:hover,
body.light-theme .header__navs span:hover,
body.light-theme .tab.active,
body.light-theme .theme-change:hover {
  background: rgb(51 51 51 / 0.1);
}

body.light-theme .header-account-dropdown-menu span,
body.light-theme .header__auth_link,
body.light-theme .header__navs a,
body.light-theme .header__navs span {
  color: #000;
}

@media (max-width: 1440px) {

  .header__navs a,
  .header__navs span {
    padding: 0 15px;
  }
}

@media (max-width: 1280px) {
  .header__block_left {
    gap: 20px;
  }

  .header__navs {
    gap: 4px;
  }

  .header__navs a,
  .header__navs span {
    padding: 0 10px;
    font-size: 0.6rem;
  }
}

@media (max-width: 1280px) {
  .header__block_right .theme-change__container {
    margin-right: 10px;
  }

  .header__block_right .dagree {
    margin-right: 10px;
  }

  .header__block_right .header__account {
    margin-right: 10px;
  }
}

body.light-theme .header-dropdown-menu {
  background: #ffffff;
}

body.green-theme .header-dropdown-menu {
  background-color: #1b1e28;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-account-dropdown-menu {
  width: 100%;
  display: none;
  right: 0;
}

.header-account-dropdown-menu span {
  position: relative;
  align-items: center;
  text-align: right;
  gap: 15px;
}

body.light-theme #SVGRepo_iconCarrier,
body.light-theme .add-comment-btn svg path,
body.light-theme .header-account-dropdown-menu span svg {
  fill: #000;
}

.header__navs--burger,
.theory__auth-block {
  display: none !important;
}

.header__navs--burger.active {
  display: flex !important;
  flex-direction: column;
  animation: 0.5s ease-in-out forwards animateNavbar;
  color: #ffffff;
  align-items: normal !important;
  gap: 10px;
}

.header__navs--burger li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
}

.dagree,
.header__account {
  border: 1px solid #868686;
  height: 46px;
}

.header__navs--burger a {
  display: flex;
  background: #17171787;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  width: 100%;
}

.header__auth_link {
  margin-right: 8px;
}

.dagree,
.header__account,
.join_us__card .networks li:first-child {
  margin-right: 20px;
}

.header__auth_link a {
  color: #c62828;
  display: inline;
}

.header__account {
  gap: 25px;
  padding: 0 12px;
  border-radius: 15px;
  position: relative;
}

body.light-theme .header__account,
body.light-theme .theme-change {
  border-color: rgb(51 51 51 / 0.1);
}

.header__account a {
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.dagree {
  gap: 12px;
  color: #868686;
  padding: 0 20px;
  border-radius: 15px;
}

body.light-theme .dagree {
  border: 1px solid rgb(51 51 51 / 0.1);
}

.dagree span {
  color: #c62828;
  font-size: 14px;
  font-weight: 700;
}

body.light-theme .dagree span {
  color: #3c7ee0;
}

body.green-theme .dagree span {
  color: #0bbf35;
}

.header .btn_red,
body.light-theme .header .btn_red {
  width: 164px;
  gap: 8px;
}

.header .btn_red svg,
body.light-theme .header .btn_red svg {
  transition: 0.3s;
}

.header .btn_red.active svg,
body.light-theme .header .btn_red.active svg {
  transform: rotateZ(180deg);
}

@media screen and (max-width: 1080px) {
  .theme-change-text {
    display: block;
  }

  .header__block_right,
  .header__navs {
    display: none !important;
  }

  .header__auth_link {
    margin: 0;
    color: #ffffff;
  }

  .header .change_theme {
    display: none;
  }
}

.header .change_theme--navbar {
  display: flex !important;
}

.header .change_theme ul {
  position: absolute;
  margin-top: 15px;
  display: none;
}

.header .change_theme ul button {
  padding: 4px 30px;
  font-size: 12px;
  line-height: 15px;
  color: #ffffff;
}

@keyframes animateNavbar {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.home .main_container {
  padding: 265px 0 137px 15px;
  position: relative;
}

.home__bg {
  top: 0;
  left: 0;
  width: 100%;
}

.home__bg_circle {
  top: 428px;
  width: 461px;
  height: 556px;
  border-radius: 50%;
  filter: blur(141px);
  background: linear-gradient(165.43deg,
      rgb(188 41 41 / 0.13) 46.437%,
      rgb(128 15 15 / 0.83) 86.799%);
}

.home__title {
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 76px;
  text-transform: uppercase;
  margin-bottom: 9px;
  text-align: center;
}

.home p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 40px;
  text-align: center;
}

.centred-block {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.doubts__card_item h3,
.doubts__card_item p {
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
}

.home__left_card {
  left: -91px;
  top: 148px;
}

.home__right_card {
  top: 130px;
  right: 0;
}

@media screen and (max-width: 570px) {
  .home .main_container {
    text-align: center;
  }

  .home__right_card {
    display: none;
  }
}

.interactive {
  margin-bottom: 68px;
}

.interactive__block {
  padding: 60px 50px;
  border-radius: 1rem;
  background: #1c1c1c;
  position: relative;
  margin-bottom: 68px;
  flex-direction: row !important;
  gap: 60px;
}

.interactive__icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c62828;
  border-radius: 3px;
  color: #000;
}

.interactive__title {
  margin: 23px 0;
}

.interactive__description {
  max-width: 550px;
  margin-bottom: 38px;
}

.interactive .btn_red {
  padding: 0 20px;
}

.interactive__card,
.interactive__left {
  flex: 1;
}

.interactive__card iframe {
  border-radius: 1rem;
  aspect-ratio: 16/9;
}

@media screen and (max-width: 1250px) {
  .interactive__block {
    flex-direction: column !important;
  }

  .interactive__card {
    position: static;
    transform: translateY(0);
    width: 100%;
  }
}

.interactive__card-img {
  width: 100%;
}

.interactive__card-icon {
  position: absolute;
  right: 20px;
  top: 20px;
}

.interactive__card .icon {
  position: absolute;
  top: 30px;
  right: 27.5px;
  opacity: 0.5;
}

.interactive__bottom-container,
.question__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (max-width: 1200px) {
  .home__title {
    font-size: 36px;
  }

  .interactive__description,
  .interactive__left {
    max-width: 100%;
  }

  .interactive__bottom_card {
    gap: 32px;
    flex-wrap: wrap;
  }
}

.interactive__bottom_card__item {
  width: 100%;
  padding: 40px;
  border-radius: 1rem;
  position: relative;
  flex: 1 1 auto;
  min-height: 250px;
  background: #1c1c1c;
}

.interactive-message-icon {
  width: 50px;
  height: 50px;
  top: 27px;
  right: 11px;
}

.interactive__bottom_card__item:first-child img {
  position: absolute;
  top: 27px;
  right: 11px;
}

.interactive__bottom_card__item:nth-child(2) img {
  position: absolute;
  bottom: 9px;
  right: 11px;
}

.interactive__bottom_card__item h2 {
  margin-bottom: 34px;
}

.program-plan__wrapper {
  padding: 96px 24px 80px;
  border-radius: 1rem;
}

body.dark-theme .program-plan__wrapper {
  background: #1c1c1c;
}

body.light-theme .interactive__block,
body.light-theme .program-plan__wrapper,
body.light-theme .video-block-wrapper {
  background: #d6e6ff;
}

body.green-theme .program-plan__wrapper,
body.green-theme .theory__nav,
body.green-theme .video-block-wrapper {
  background: #1b1e28;
}

.community_support {
  margin-bottom: 75px;
}

.community_support__block {
  gap: 123px;
  background: url(../images/community_support_bg.png) center/cover no-repeat;
  border-radius: 5px;
  min-height: 413px;
  padding: 31px 50px 50px 62px;
}

@media screen and (max-width: 768px) {
  .home__title {
    font-size: 32px;
    line-height: 50px;
  }

  .interactive__block,
  .interactive__bottom_card__item {
    padding: 32px;
  }

  .community_support__block {
    padding: 32px;
    gap: 50px;
    flex-direction: column;
  }
}

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

  .community_support__block,
  .interactive__block,
  .interactive__bottom_card__item {
    padding: 18px;
  }
}

.community_support__block_item:first-child {
  width: 533px;
}

.community_support__block_item:nth-child(2) {
  width: 503px;
}

.community_support__block_item h2 {
  margin: 13px 0;
}

.community_support__block_item h2 span {
  color: rgb(255 34 34 / 0.81);
}

.community_support__block_item p {
  font-weight: 600;
}

.join_us {
  margin-bottom: 76px;
}

.join_us .main_container {
  position: relative;
  z-index: 1;
}

.join_us__bg {
  width: 408px;
  height: 343px;
  filter: blur(141px);
  background: linear-gradient(165.43deg,
      rgb(188 41 41 / 0.13) 46.271%,
      rgb(69 14 14 / 0.47) 86.183%);
  position: absolute;
  z-index: -1;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
}

.join_us__title {
  margin-bottom: 28px;
}

.join_us .btn_white {
  margin-bottom: 58px;
}

.join_us__card {
  padding: 62px 72px 69px 68px;
  border-radius: 5px;
  position: relative;
}

@media screen and (max-width: 910px) {
  .join_us__card {
    padding: 32px;
  }
}

.join_us__card_left,
.join_us__card_right,
.question__item {
  display: flex;
  flex-direction: column;
}

.doubts__title,
.join_us__card_left h3 {
  margin-bottom: 13px;
}

.join_us__card_left img {
  position: absolute;
  top: 39px;
  left: 351px;
}

.join_us__card_link {
  gap: 15px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
}

.join_us__card_right__bg {
  position: absolute;
  right: 394px;
  bottom: 22px;
}

.join_us__card .networks li {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-transform: uppercase;
}

.join_us__card .networks li:nth-child(2) {
  margin-right: 14px;
}

.join_us__card .networks li:nth-child(3) {
  margin-right: 10px;
}

.doubts {
  margin-bottom: 94px;
}

.doubts__description {
  max-width: 475px;
  margin: 0 auto 58px;
  font-weight: 600;
}

.doubts__description span {
  font-weight: 600;
  display: inline;
}

.doubts__card_item {
  width: 100%;
  background: url(../images/doubts_card_bg.png) center/cover no-repeat;
  border-radius: 5px;
  padding: 19px 25px 21px;
}

@media screen and (max-width: 1170px) {
  .doubts__card {
    flex-wrap: wrap;
  }

  .doubts__card_item {
    flex: 1 1 46.5%;
  }
}

.doubts__card_item img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

.doubts__card_item p {
  margin: 9px 0;
}

.doubts__card_item h3 {
  margin-bottom: 7px;
}

.theory__category h3,
.theory__category h4 {
  margin-bottom: 23px;
  text-transform: uppercase;
}

.doubts__card_item h4 {
  font-size: 12px;
  line-height: 15px;
}

.questions {
  margin-bottom: 90px;
  overflow: hidden;
}

.question__item {
  gap: 30px;
  border-bottom: 1px solid;
  padding-bottom: 20px;
  cursor: pointer;
}

.question__item-title {
  font-size: 20px;
}

.question__item-text {
  max-width: 95%;
  display: none;
  color: #999;
}

.light-theme .question__item-text {
  color: #292929;
}

.question__item-arrow {
  display: inline-block;
  transition: transform 0.35s;
}

.question__item-arrow.active {
  transform: rotate(180deg);
}

.question__item-text.active {
  display: flex;
  animation: 0.8s ease-out forwards animateQuestions;
}

.video-container {
  max-width: 700px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.login__form,
.register__form {
  box-shadow: 0 0 12px 2px rgb(0 0 0 / 0.25);
}

.video-player {
  width: 100%;
  display: block;
  background: #000;
}

.video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: 0 0;
  color: #ffffff;
  width: 100%;
  font-family: Arial, sans-serif;
  position: absolute;
  bottom: 0;
}

.control-button {
  background: 0 0;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s;
}

.control-button:hover {
  background: rgb(255 255 255 / 0.1);
}

.progress-bar {
  flex: 1;
  margin: 0 10px;
  height: 5px;
  background: #555;
  border-radius: 5px;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
}

.progress-bar::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
}

.time-display {
  font-size: 14px;
  color: #aaa;
}

@keyframes animateQuestions {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.question__item-title-blog {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.ready {
  padding-bottom: 90px;
}

.ready__card {
  background: url(../images/ready_card_bg.webp) center/cover no-repeat;
  border-radius: 5px;
  padding: 17px 35px 35px;
}

.ready__icon,
.theory__category ul .child_category li button.active,
.theory__category ul .child_category li button:active,
.theory__category ul .child_category li button:focus,
.theory__category ul .child_category li button:hover {
  background: #c62828;
}

.ready__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 16px;
  border-radius: 3px;
}

.ready__title {
  margin: 20px 0;
}

.ready__description {
  margin-bottom: 35px;
  font-weight: 600;
}

.ready__description span {
  font-weight: 600;
}

.login,
.register {
  min-height: 100vh;
  width: 100%;
  background: url(../images/auth_bg.png) center/cover no-repeat;
}

.register .main_container {
  padding: 185px 10px 130px;
  position: relative;
  z-index: 1;
}

.login__bg,
.o .register__bg {
  filter: blur(141px);
  position: absolute;
  z-index: -1;
  left: 50%;
}

@media screen and (max-width: 574px) {
  .register .main_container {
    padding: 80px 10px 60px;
  }
}

.o .register__bg {
  width: 641px;
  height: 516px;
  top: 236px;
  transform: translateX(calc(-50% + 20px));
  border-radius: 50%;
  background: linear-gradient(165.43deg,
      rgb(188 41 41 / 0.13) 46.032%,
      rgb(128 15 15 / 0.66) 85.299%);
}

.register__title {
  margin-bottom: 60px;
}

.register__form {
  max-width: 854px;
  margin: 0 auto;
  background: rgb(40 40 40 / 0.71);
  padding: 49px 93px 36px 97px;
  border-radius: 5px;
  gap: 20px;
}

@media screen and (max-width: 460px) {
  .register__form {
    padding: 20px 15px;
  }
}

.register__form label {
  font-size: 15px;
  max-width: 100%;
  text-align: center;
}

.register__form_right {
  width: 378px;
  gap: 15px;
}

@media screen and (max-width: 440px) {
  .register__form_right {
    width: 100%;
  }
}

.register__form .bottom_checkbox {
  margin: 10px 0 18px;
  display: flex;
  gap: 5px;
}

.register__form .bottom_checkbox input::before {
  border-color: #919191;
  background: #ffffff;
}

.register__form .bottom_checkbox input::after {
  color: #c62828;
  font-weight: 600;
}

.register__form .radio_wrap {
  gap: 33px;
}

.register__form .form_submit button {
  color: #ffffff;
}

.login .main_container,
body.light-theme .login .main_container {
  padding: 185px 0 111px;
  position: relative;
  z-index: 1;
}

.login__bg {
  width: 553px;
  height: 410px;
  background: linear-gradient(165.43deg,
      rgb(188 41 41 / 0.13) 45.556%,
      rgb(128 15 15 / 0.66) 83.535%);
  border-radius: 50%;
  top: 240px;
  transform: translateX(calc(-50% - 20px));
}

.login__title {
  line-height: 55px;
  margin-bottom: 60px;
}

@media screen and (max-width: 414px) {
  .login__title {
    font-size: 20px;
  }
}

.login__form {
  max-width: 503px;
  margin: 0 auto;
  background: rgb(40 40 40 / 0.71);
  padding: 34px 62px 37px 63px;
  border-radius: 5px;
  gap: 17px;
}

@media screen and (max-width: 530px) {
  .login__form {
    width: 95%;
    padding: 14px 42px 17px 43px;
  }
}

.login__form .form_submit {
  margin-top: 13px;
  gap: 21px;
}

.login__form .form_submit .btn_danger {
  color: #ffffff;
}

.login__form .form_submit .btn_red {
  padding: 0 8px 0 9px;
}

.dl_tab .tab_item,
.form_group,
body.light-theme .login__form .form_group {
  gap: 20px;
}

@media screen and (max-width: 820px) {
  .register__form .radio_wrap {
    justify-content: space-between;
  }

  .form_group {
    flex-direction: column;
  }
}

.theory .main_container {
  position: relative;
  padding: 80px 20px 126px;
  max-width: 1440px;
  gap: 26px;
  z-index: 2;
}

.theory__auth-block.active {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 20px;
}

.theory__nav {
  gap: 30px;
  color: #ffffff;
  background: #1b1b1b;
  border-radius: 10px;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid;
}

body.light-theme .theory__nav {
  background: #d6e6ff;
  color: #000;
}

.theory__left {
  width: calc(100% - 342px - 26px);
  background: url(../images/theory_left_bg.png) center/cover no-repeat;
  border-radius: 5px;
  padding: 32px;
  position: relative;
}

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

  .community_support__block_item:first-child,
  .community_support__block_item:nth-child(2) {
    width: 100%;
  }

  .theory__left {
    padding: 16px 25px 25px 30px;
  }
}

@media screen and (max-width: 450px) {
  .theory__left {
    padding: 15px;
  }
}

.theory__modal-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.55);
  z-index: 3;
}

.add_class.active,
.modal-window-wrapper.active,
.theory__modal-bg.active {
  display: flex;
}

.theory__pagination {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  transform: translateY(100%);
}

.theory__pagination a {
  font-size: 14px;
}

.theory__right {
  width: 342px;
  gap: 16px;
}

.online_trener-content p {
  text-align: justify;
  line-height: calc(18px * 1.5);
}

.online_trener-content .btn_red {
  margin-top: auto;
  padding: 0 22px;
  height: 46px;
  background: #c62828;
  color: #ffffff;
  font-weight: 700;
  border: none;
  font-size: 18px;
}

body.green-theme .online_trener-content .btn_red {
  background: #0bbf35;
}

@media screen and (max-width: 1400px) {
  .theory__left {
    width: 100%;
  }

  .theory__right {
    display: none !important;
    position: fixed;
    width: 60vw;
    right: 0;
    height: 100%;
    overflow: auto;
    background-color: #0e0e0e;
    z-index: 10;
    padding: 63px 10px 10px;
    top: 0;
    border: 1px solid #767676;
    border-radius: 10px;
  }
}

@media screen and (max-width: 800px) {
  .join_us__card {
    flex-direction: column;
    align-items: stretch !important;
    gap: 40px;
  }

  .join_us__card_left {
    align-items: start;
  }

  .join_us__card_right {
    align-items: end;
  }

  .yandex-add {
    display: none !important;
  }
}

@media screen and (max-width: 610px) {
  .theory__right {
    width: 80vw;
  }
}

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

  .home p,
  .home__title {
    max-width: 100%;
    text-align: center;
  }

  .btn_danger,
  .home p,
  .home__title {
    text-align: center;
  }

  .btn_danger {
    width: 100%;
  }

  .home .main_container {
    padding: 200px 15px 136px;
  }

  .home__title {
    font-size: 26px;
    line-height: 50px;
  }

  .home p {
    font-size: 14px;
  }

  .theory .main_container {
    padding: 60px 0 0;
  }

  .theory__right {
    width: 95vw;
  }
}

@media screen and (max-width: 380px) {
  .theory__right {
    width: 100vw;
  }
}

.theory__right.open {
  display: flex !important;
  animation: 0.3s forwards animateNav;
}

.theory__title {
  position: relative;
  padding-bottom: 32px;
}

.theory__title::before {
  content: "";
  background: #434343;
  position: absolute;
  height: 1px;
  width: 100%;
  left: 0;
  bottom: 0;
}

.theory .online_trener {
  gap: 20px;
  margin: 63px 0 40px;
}



.theory .online_trener img {
  width: 337px;
  object-fit: cover;
  border-radius: 5px;
}

.theory .online_trener .title {
  font-size: 23px;
}

@media screen and (max-width: 430px) {
  .main_title {
    font-size: 20px;
  }

  .theory .online_trener .title {
    font-size: 21px;
  }

  .theory .online_trener p {
    font-size: 14px;
  }
}

@media screen and (max-width: 370px) {
  .theory .online_trener .title {
    font-size: 18px;
  }
}

.theory .online_trener p {
  margin: 23px 0;
  font-weight: 400;
}

@media screen and (max-width: 390px) {
  .home__title {
    font-size: 22px;
  }

  .home p {
    font-size: 12px;
  }
}

.theory .lesson_list {
  gap: 8px;
  margin-top: 50px;
}

.theory .lesson_list__title {
  font-size: 18px;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 5px;
  cursor: pointer;
  background: linear-gradient(90deg,
      rgb(9 9 9 / 0.14) 11.507%,
      rgb(18 8 8 / 0.18) 80.007%);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theory .lesson_list__title svg {
  width: 25px;
}

.theory .lesson_list__title svg path {
  fill: #ffffff;
}

.theory .lesson_list__child {
  padding-left: 20px;
  display: none;
}

.theory .lesson_list__child a {
  font-size: 14px;
  padding: 4px 0;
}

.theory__search {
  border-radius: 5px;
  position: relative;
  z-index: 1;
}

.theory__search::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1c1c1c;
  border-radius: 5px;
  z-index: -1;
}

.theory__search input {
  width: 100%;
  height: 69px;
  padding: 0 55px 0 28px;
  font-size: 16px;
  color: #ffffff;
}

.theory__search input::placeholder {
  color: #999;
}

.anons,
body.green-theme .tasks .rating_line .value,
body.light-theme .ace-monokai .ace_cursor,
body.light-theme .blog-name,
body.light-theme .editor_wrap .editor_head h5,
body.light-theme .header__navs--burger.active,
body.light-theme .modal-window__item,
body.light-theme .modal-window__title,
body.light-theme .news-item-title,
body.light-theme .program-plan__theme-item::before,
body.light-theme .run-test-btn,
body.light-theme .section-text span,
body.light-theme .tab,
body.light-theme .tasks .rating_line .value {
  color: #000;
}

.theory__search button {
  position: absolute;
  top: 50%;
  right: 19px;
  transform: translateY(-50%);
}

.theory__category {
  background: url(../images/theory_category_bg.png) center/cover no-repeat;
  border-radius: 5px;
  padding: 24px 40px 62px 28px;
  border: 1px solid;
}

.theory__category h3 {
  color: #c62828;
  font-size: 16px;
}

.theory__category h4 {
  color: #c62828;
  font-size: 14px;
  padding-left: 20px;
}

.theory__category .parent_category ::marker {
  display: inline;
  margin-left: -5px;
}

.theory__category ul {
  gap: 25px;
}

.theory__category ul li {
  font-size: 14px;
  padding-left: 0;
  position: relative;
}

.theory__category ul li a {
  display: inline;
}

.theory__category ul .child_category {
  background: rgb(9 9 9 / 0.57);
  width: calc(100% + 40px + 28px);
  margin: 25px 0 0 -28px;
  padding: 50px 0;
  gap: 0;
}

.theory__category ul .child_category li {
  font-size: 14px;
  cursor: pointer;
}

.theory__category ul .child_category li button {
  display: block;
  text-decoration: none;
  color: #ffffff;
  text-align: left;
  padding: 10px 28px;
  width: 100%;
}

.theory__category .networks li {
  padding: 0;
  gap: 15px;
}

.theory iframe {
  width: 100%;
  height: 243px;
  border: none;
}

.video-block-wrapper {
  padding: 10px;
  border-radius: 10px;
  background: #1b1b1b;
  border: 1px solid;
}

.theory .theme_title {
  color: #c62828;
  font-size: 23px;
  line-height: 28px;
  margin-bottom: 24px;
}

.theory .theme_description {
  font-size: 16px;
  line-height: 20px;
}

.theory-left__header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.theory-left__burger {
  border-radius: 50%;
  width: 30px;
  height: 19px;
  align-items: center;
  position: relative;
  z-index: 50;
  justify-content: flex-end;
}

.theory-left__burger span {
  width: 100%;
  height: 3px;
  transform: scale(1);
  background-color: #ffffff;
  border-radius: 5px;
}

.theory-left__burger::after,
.theory-left__burger::before {
  content: "";
  position: absolute;
  background-color: #ffffff;
  height: 3px;
  width: 65%;
  transition: 0.3s;
  border-radius: 5px;
}

.theory-left__burger::before {
  top: 0;
  left: 0;
}

.theory-left__burger::after {
  bottom: 0;
  right: 0;
}

.theory-left__burger.active::before {
  top: calc(50% - 1.5px);
  transform: rotate(-45deg);
  width: 100%;
}

.theory-left__burger.active::after {
  bottom: calc(50% - 1.5px);
  transform: rotate(45deg);
  width: 100%;
}

.theory-left__burger-bg {
  display: none;
  padding: 10px 5px;
  border-radius: 10px;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

body.light-theme .theory-left__burger span,
body.light-theme .theory-left__burger::after,
body.light-theme .theory-left__burger::before {
  background-color: #3c7ee0;
}

body.light-theme .header__navs--burger li {
  background-color: #eee;
}

.theme-change__container--mobile {
  position: absolute;
  top: 30px;
}

@keyframes animateNav {
  0% {
    right: -100%;
  }

  100% {
    right: 0;
  }
}

.editor_wrap {
  background: linear-gradient(197.77deg,
      rgb(0 0 0 / 0.53) 33.859%,
      rgb(3 3 3 / 0.39) 55.165%);
  border-radius: 5px;
  margin: 32px 0 40px;
}

.editor_wrap.active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  z-index: 5;
  background: #292929;
  margin: 0;
}

.editor_wrap.active .code-editor {
  height: calc(100% - 37px) !important;
}

.editor_wrap.active .ace_scrollbar.ace_scrollbar-v::-webkit-scrollbar {
  display: none;
}

.editor_wrap .main_checkbox span {
  margin-left: 35px;
}

.editor_wrap .main_checkbox input::after,
.editor_wrap .main_checkbox input::before {
  right: -20px;
  left: auto;
  top: 13px;
}

.editor_wrap .editor_top {
  padding: 14px 23px 13px;
  border-bottom: 1px solid #323232;
  gap: 25px;
}

.editor_wrap .editor_top .btn_red {
  width: 79px;
  height: 20px;
  padding: 0;
  font-size: 10px;
}

.editor_wrap .editor_head {
  background: #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5.18px 16.1px 7.97px;
  border-radius: 2px;
  height: 50px;
}

.anons,
.editor_wrap .ace-monokai,
body.light-theme .editor_wrap .ace-monokai,
body.light-theme .editor_wrap .ace-monokai .ace_gutter-active-line,
body.light-theme .login,
body.light-theme .register {
  background: 0 0;
}

.editor_wrap .editor_head h5 {
  font-size: 14px;
  font-weight: 600;
}

.task_one__navs .less button.active,
.task_one__navs .less button:hover,
.tasks__left .child_tasks li:not(.child_tasks__title) button.active,
.tasks__left .child_tasks li:not(.child_tasks__title) button:hover {
  background: linear-gradient(90deg,
      rgb(221 22 22 / 0.54),
      rgb(148 25 25 / 0.61) 100%);
}

.editor_wrap .ace-monokai .ace_gutter {
  background: 0 0;
  border: 0;
  border-right: 1px solid #4a4a4a;
}

.editor-item {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

.editor-input {
  flex: 1 1 47%;
  position: relative;
}

.editor-input.short-input {
  flex: 1.5;
}

.editor-input.long-input {
  flex: 2;
}

.editor-output {
  flex: 1 1 100%;
}

.editor-item-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-run-btn {
  display: flex;
  justify-content: end;
}

#problem_tests {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.anons {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
}

.tasks .main_container {
  padding-top: 80px;
  padding-bottom: 83px;
  display: flex;
  align-items: flex-start;
  gap: 46px;
}

.tasks__show-tasks {
  display: none;
  background: linear-gradient(154.82deg,
      #c82f2f 11.465%,
      rgb(179 25 25 / 0.99) 82.917%);
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 600;
}

body.light-theme .join-class-btn,
body.light-theme .tasks__show-tasks {
  background: linear-gradient(to right, #3c7ee0, #21457a);
}

.tasks__left {
  padding: 36px 21px 63px 38px;
  border-radius: 5px;
  background: linear-gradient(197.77deg,
      rgb(127 127 127 / 0.14) 10.999%,
      rgb(114 75 75 / 0.18) 61.507%);
}

.sidebar,
.tasks__right {
  background: linear-gradient(197.77deg,
      rgb(127 127 127 / 0.14) 10.999%,
      rgb(114 75 75 / 0.18) 61.507%);
  padding: 20px;
  border-radius: 10px;
  width: 100%;
}

.sidebar {
  min-height: 500px;
  position: sticky;
  top: 0;
  overflow-y: scroll;
  height: 100vh;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 17px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.anchors-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anchors-container a {
  color: #bdbdbd !important;
  transition: 0.2s;
  cursor: pointer;
}

.anchors-container a:hover {
  color: #e0e0e0 !important;
}

.child-anchors-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
}

.tasks__left.active {
  display: flex !important;
  animation: 0.5s forwards animateTasksPanel;
}

.tasks__left .title {
  color: #c62828;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  margin-bottom: 37px;
}

.tasks__left .tasks_wrap {
  gap: 25px;
}

.tasks__left .tasks_wrap__item span {
  font-size: 14px;
  line-height: 17px;
  cursor: pointer;
}

.tasks__left .child_tasks {
  background: rgb(9 9 9 / 0.57);
  width: calc(100% + 59px);
  margin-left: -38px;
  padding: 14px 0 23px;
  margin-top: 15px;
}

.tasks__left .child_tasks__title {
  color: #ee3636;
  margin-bottom: 19px;
  padding: 0 21px 0 38px;
}

.tasks__left .child_tasks li:not(.child_tasks__title) button {
  width: 100%;
  text-align: left;
  color: #d8d8d8;
  font-size: 14px;
  font-weight: 500;
  padding: 7.5px 0 7.5px 38px;
}

.tasks__left .child_tasks li:not(.child_tasks__title) button.ended {
  background: linear-gradient(90deg,
      rgb(22 221 22 / 0.54),
      rgb(25 148 31 / 0.61) 100%);
}

body.green-theme .tasks__right {
  background: #1b1e28;
}

body.light-theme .tasks__right {
  background: #ffffff;
}

.tasks-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

@media screen and (max-width: 990px) {
  .main_container--grid {
    grid-template-columns: minmax(0, auto);
  }

  .join_us__card_right__bg {
    z-index: -1;
  }

  .tasks .main_container {
    flex-direction: column;
    padding-top: 80px;
  }

  .tasks__show-tasks {
    display: flex;
  }

  .ligth-theme .tasks__show-tasks {
    display: flex;
    background: linear-gradient(to right, #3c7ee0, #21457a);
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: #ffffff;
  }

  .tasks__left {
    display: none;
    position: absolute;
    width: 100%;
    background-color: #0e0e0e;
    z-index: 100;
    height: 100vh;
    overflow: auto;
    padding: 0 0 30px;
  }

  .tasks__left::after {
    content: "";
    width: 100%;
    position: absolute;
    height: 50px;
    bottom: 0;
    left: 0;
    background-color: rgb(14 14 14 / 0.5);
    filter: blur(20px);
  }

  .tasks__left .tasks_wrap {
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
  }

  .tasks__right {
    width: 100%;
  }
}

.tasks__right_title {
  margin-bottom: 16px;
}

.tasks__right_title span {
  color: #c62828;
}

.tasks__right .btn_like {
  margin-bottom: 20px;
}

.tasks__right iframe {
  max-width: 100%;
  width: 100%;
}

@media screen and (max-width: 680px) {
  .tasks__right iframe {
    width: 100%;
  }
}

.tasks__right h3 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 30px;
}

.tasks__right p {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 25px;
}

.tasks__right table {
  border-collapse: collapse;
  width: 100%;
}

.tasks__right table td {
  border: 1px solid #323232;
  padding: 5px;
  font-size: 14px;
  font-weight: 400;
}

.tasks__right table td:first-child {
  width: 110px;
}

.tasks__right table thead td,
body.light-theme .main_checkbox input::after {
  font-weight: 600;
}

.tasks__title {
  gap: 11px;
  margin-bottom: 38px;
}

.page-content,
.tasks__right .tasks-content-wrapper {
  font-family: Inter;
}

.tasks__right .tasks-content-wrapper h2,
.tasks__right .tasks-content-wrapper h3,
.tasks__right .tasks-content-wrapper h4 {
  margin: 24px auto 12px;
  font-weight: 700;
  font-size: revert;
}

.page-content h2,
.tasks__right .tasks-content-wrapper h2 {
  font-size: calc(18px * 1.5);
}

.page-content h3,
.tasks__right .tasks-content-wrapper h3 {
  font-size: calc(18px * 1.15);
}

.page-content h4,
.tasks__right .tasks-content-wrapper h4 {
  font-size: calc(18px * 1.05);
}

.tasks__right .tasks-content-wrapper pre code {
  font-family: JetBrains;
  line-height: 26px;
  border-radius: 12px;
  padding: 1.5rem;
}

.page-content p,
.tasks__right .tasks-content-wrapper p {
  font-size: 18px;
  line-height: calc(18px * 1.7);
  text-align: justify;
  color: #e0e0e0;
  margin: 16px auto;
}

.tasks__right .tasks-content-wrapper ol,
.tasks__right .tasks-content-wrapper ul {
  margin: revert;
  padding: revert;
}

.tasks__right .tasks-content-wrapper li {
  padding-bottom: 20px;
  font-size: 18px;
  line-height: calc(18px * 1.5);
  position: relative;
  text-align: justify;
}

.tasks__right .tasks-content-wrapper li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c62828;
}

body.green-theme .report-btn,
body.green-theme .tasks__right .tasks-content-wrapper li::before,
body.green-theme .tutorial-btn {
  background: #0bbf35;
}

body.light-theme .report-btn,
body.light-theme .tasks__right .tasks-content-wrapper li::before,
body.light-theme .tutorial-btn {
  background: #3c7ee0;
}

.code-wrapper .run-btn {
  position: absolute;
  color: #ffffff;
  right: 15px;
  top: 10px;
  border-radius: 8px;
  padding: 0 20px;
  height: 40px;
  border: 1px solid;
  transition: 0.2s;
}

.tasks__title span,
.tasks_level h4 span {
  color: #c62828;
  font-size: 14px;
  font-weight: 700;
}

.tasks_rating {
  border-radius: 5px;
  gap: 40px;
  margin-bottom: 34px;
}

.tasks_rating__left,
.tasks_rating__right {
  padding: 19px 16px 21px;
  border-radius: 5px;
  gap: 15px;
  width: calc(50% - 20px);
  background: linear-gradient(197.77deg,
      rgb(113 113 113 / 0.14) 33.095%,
      rgb(86 86 86 / 0.18) 55.376%);
}

.my_class__content,
.task_one__navs {
  background: rgb(35 35 35 / 0.66);
}

.tasks .rating_line {
  position: relative;
  height: 23px;
  background: rgb(74 74 74 / 0.58);
  border-radius: 5px;
  padding: 0 10px 0 14px;
  font-size: 10px;
  font-weight: 500;
}

.tasks .rating_line__bg {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(90deg,
      rgb(255 49 49 / 0.58),
      rgb(174 8 8 / 0.58) 100%);
  border-radius: 5px;
}

.tasks .rating_line .value {
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.tasks .rating_line .key {
  position: relative;
  color: #959595;
}

.tasks .theme_cards {
  gap: 18px 17px;
  margin-bottom: 36px;
}

.tasks .theme_cards__item {
  flex: 1 1 auto;
  border-radius: 5px;
  padding: 10px 12px 16px 11px;
  background: linear-gradient(197.77deg,
      rgb(62 61 61 / 0.14) 29.286%,
      rgb(48 47 47 / 0.18) 56.433%);
}

@media screen and (max-width: 890px) {
  .tasks .theme_cards__item {
    flex: 1 1 48%;
  }
}

.tasks .theme_cards__item h3 {
  color: #9f9f9f;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 9px;
}

.tasks .theme_cards__item h3 span {
  color: #ff3a3a;
}

.tasks .theme_cards__item h4 {
  font-size: 14px;
  margin-bottom: 14px;
}

.tasks_level {
  padding-right: 50px;
  flex-wrap: wrap;
  gap: 50px;
}

.tasks_level h4 {
  gap: 18px;
  margin-bottom: 36px;
}

.tasks_level ul {
  width: 490px;
  gap: 11px;
}

@media screen and (max-width: 540px) {
  .tasks_level ul {
    width: 100%;
  }
}

.tasks_level ul li h5 {
  width: 82px;
  color: #9f9f9f;
  font-size: 13px;
}

.tasks_level ul li .rating_line {
  width: calc(100% - 82px);
}

.tasks_level__right h3 {
  color: #d8d8d8;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 36px;
}

@property --pgPercentage {
  inherits: false;
  initial-value: 0;
}

.tasks_level__right .circle_progress .level_value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  text-align: center;
  font-size: 12px;
}

.tasks_level__right .circle_progress .level_value span {
  color: #c62828;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8.66px;
  display: block;
}

@keyframes animateArrow {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(-90deg);
  }
}

@keyframes animateTasksPanel {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media screen and (max-width: 510px) {
  .sec_title {
    font-size: 16px;
  }

  .task_one .main_container {
    padding-top: 90px;
  }
}

.task_one__navs {
  position: absolute;
  left: 0;
  z-index: 4;
  top: 196px;
  height: calc(100% - 196px);
  border-radius: 5px;
  border: 1px solid;
}

.add_class,
.add_class__bg {
  height: 100%;
  top: 0;
  width: 100%;
}

.task_one__navs_length {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}

.theme-change__theory_toggle,
.theme-change__toggle {
  box-shadow: 0 8px 60px rgb(0 0 0 / 0.1), inset 0 8px 8px rgb(0 0 0 / 0.1),
    inset 0 -4px 4px rgb(0 0 0 / 0.1);
  transition: 0.5s;
}

.task_one__navs_length__item {
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.task_one__navs_length__item .tr_number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 600;
  height: 64px;
  width: 60px;
  flex-shrink: 0;
}

.task_one .main_title span,
.task_one__navs_length__item .tr_number.active {
  color: #c62828;
}

.task_one__navs_length__item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgb(96 94 94 / 0.43);
}

.task_one__navs .less {
  padding: 20px 10px 5px 0;
  gap: 0;
  width: 330px;
}

.task_one__navs .less_list {
  display: none;
  padding-top: 20px;
}

.task_one__navs .less__title {
  font-size: 14px;
  font-weight: 600;
  color: #ee3636;
  padding-bottom: 10px;
}

.task_one .editor_wrap,
.task_one__navs .less li {
  margin: 0;
}

.task_one__navs .less button {
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  width: 100%;
  padding: 7.5px;
}

.task_one__navs .less button.wrong,
.tasks__left .child_tasks li:not(.child_tasks__title) button.wrong {
  background: red;
}

.task_one__navs .less button.ended {
  background: linear-gradient(90deg,
      rgb(22 221 22 / 0.54),
      rgb(25 148 31 / 0.61) 100%);
}

.task_one__navs .less span {
  font-size: 14px;
  display: block;
  cursor: pointer;
}

.task_one__navs .less_wrap {
  overflow: hidden;
  width: 0;
  transition: 0.3s;
}

.task_one__navs.active {
  background: #232323;
  overflow: auto;
}

.discussion-sidebar-wrapper,
.task_one .solution_test table,
.task_one__navs.active .less_wrap,
.theory,
body.light-theme .task_one .solution_test table {
  width: 100%;
}

.task_one__navs.active .task_one__navs_length {
  width: 400px;
}

.task_one .main_container {
  max-width: calc(100vw - 150px);
  padding-top: 80px;
}

.task_one .main_title {
  margin-bottom: 19px;
}

.task_one .sec_title {
  font-size: 18px;
}

.task_one .subtitle {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  font-weight: 500;
  color: #d0d0d0;
}

.task_one .subtitle span {
  font-weight: 600;
  color: #c62828;
}

.task_one__head {
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 20px 0;
}

.task_one__head a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9f9f9f;
  font-size: 12px;
}

.add_class,
.my_class__content_head .search__icon img.green,
.my_class__content_head .search__icon img.light,
.my_class__content_head .select img.light,
.program-plan__img,
.task_one__head a img.green,
.task_one__head a img.light,
body.light-theme .btn_like img,
body.light-theme .community_support__block_item img:not(.light),
body.light-theme .editor_wrap .editor_head .full_screen img,
body.light-theme .header__account a img,
body.light-theme .header__logo img:first-child,
body.light-theme .header__logo img:nth-child(3),
body.light-theme .home__bg,
body.light-theme .home__bg_circle,
body.light-theme .home__left_card,
body.light-theme .interactive__bottom_card__item img:not(.light),
body.light-theme .join_us__bg,
body.light-theme .join_us__card .networks li img:not(.light),
body.light-theme .join_us__card_left img:not(.light),
body.light-theme .join_us__card_link img:not(.light),
body.light-theme .join_us__card_right__bg:not(.light),
body.light-theme .login__bg,
body.light-theme .register__bg,
body.light-theme .task_one__head a img,
body.light-theme .tasks__title img,
body.light-theme .tasks_level h4 img,
body.light-theme .theory__category .networks li img:not(.light),
body.light-theme .theory__search img:not(.light) {
  display: none;
}

.ace_editor {
  font: 16px JetBrains !important;
}

.dev_editor-wrapper {
  overflow: hidden;
  position: relative;
}

.show-dev_editor-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  margin-right: 0;
  cursor: pointer;
  color: #e0e0e0;
  padding: 0 25px;
  text-decoration: none;
  letter-spacing: 0.4px;
  border-radius: 15px;
  height: 46px;
  opacity: 0.85;
  white-space: nowrap;
  transition: 0.2s;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgb(224 224 224 / 0.08);
  border: 1px solid;
  z-index: 10;
}

#dev_editor .code-editor {
  filter: blur(10px);
}

.task_one__content {
  display: flex;
  border-top: 1px solid;
}

.markdown pre {
  font-family: JetBrains;
  padding: 1rem !important;
  border-radius: 10px;
  font-size: 16px;
}

.task_one__content-head {
  background: #2e2e2e;
  padding: 0 0 0 10px;
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

body.light-theme .task_one__content-head {
  background: #c8def9;
}

body.green-theme .task_one__content-head {
  background: #282b2e;
}

.task_one__content-head--right {
  border-radius: 0;
}

.task_one__content-statement h3 {
  font-size: calc(18px * 1);
}

.task_one__content_left {
  width: 50%;
  border-right: 1px solid;
}

.task_one__content_left h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.task_one__content_left p {
  font-size: 13px;
  font-weight: 500px;
  margin-bottom: 51px;
}

.task_one__content_left p span {
  font-weight: 700;
}

.task_one__content_left .code {
  background: #171717;
  border-radius: 5px;
  white-space: pre;
  padding: 26px;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 25px;
}

.task_one__content_left ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  list-style-type: disc;
  margin-left: 22px;
  max-width: 461px;
}

.task_one__content_left ul li {
  font-size: 13px;
  font-weight: 500;
}

.task_one .solution_results .editor_wrap,
.task_one__content_right {
  width: 50%;
}

@media screen and (max-width: 1125px) {
  .task_one__content {
    flex-direction: column;
  }

  .task_one__content_left,
  .task_one__content_right {
    width: 100%;
  }
}

.task_one .solution_head {
  display: grid;
  margin-bottom: 19px;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.task_one .solution_head button {
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  background: #101010;
  border: 1px solid #363636;
  border-radius: 5px;
  gap: 16px;
}

.report-btn,
.run-test-btn,
.tutorial-btn {
  min-height: 37px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 5px;
  gap: 16px;
  cursor: pointer;
}

.report-btn {
  margin-left: 15px;
}

.report-btn,
.tutorial-btn {
  background: #c62828;
}

.dl_tab .tab_content.is-active,
.task_one .solution_test table tbody span,
body.dark-theme .loader-img.red,
body.dark-theme .program-plan__img.dark,
body.green-theme .loader-img.green,
body.green-theme .program-plan__img.green,
body.light-theme .btn_like img.light,
body.light-theme .community_support__block_item img,
body.light-theme .editor_wrap .editor_head .full_screen img.light,
body.light-theme .header__account a img.light,
body.light-theme .header__logo img,
body.light-theme .home__left_card.light,
body.light-theme .home__right_card.light,
body.light-theme .join_us__card .networks li img,
body.light-theme .join_us__card_left img,
body.light-theme .join_us__card_link img,
body.light-theme .join_us__card_right__bg,
body.light-theme .loader-img.light,
body.light-theme .my_class__content_head .search__icon img.light,
body.light-theme .my_class__content_head .select img.light,
body.light-theme .program-plan__img.light,
body.light-theme .task_one__head a img.light,
body.light-theme .tasks__title img.light,
body.light-theme .tasks_level h4 img.light,
body.light-theme .theory__category .networks li img,
body.light-theme .theory__search img {
  display: block;
}

@media screen and (max-width: 410px) {
  .task_one .solution_head button {
    font-size: 9px;
  }
}

.task_one .solution_results {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 30px;
  margin: 25px 0;
}

.task_one .solution_test {
  padding-bottom: 20px;
  overflow: auto;
  padding-left: 15px;
}

@media screen and (max-width: 768px) {
  .tasks_level__right .circle_progress .level_value {
    transform: unset;
  }

  .task_one .solution_results .editor_wrap {
    width: 100%;
  }

  .task_one .solution_results {
    flex-direction: column;
  }

  .task_one .solution_test {
    padding-left: 0;
  }

  .level {
    flex-direction: column;
    gap: 10px;
  }
}

.task_one .solution_test h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 28px;
}

.task_one .solution_test table td {
  border-top: 1px solid #3b3b3b;
  width: calc(100% / 3);
  padding: 7px 0 13px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.task_one .solution_test table tbody td {
  padding: 16px 10px 22px;
}

.task_one .solution_test table button {
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  padding: 0 15px;
  border-radius: 5px;
}

.teacher_office {
  padding: 181px 0 51px;
  min-height: 100vh;
}

@media screen and (max-width: 590px) {
  .tasks_rating {
    flex-direction: column;
    gap: 15px;
  }

  .tasks_rating__left,
  .tasks_rating__right {
    width: 100%;
  }

  .teacher_office {
    padding: 90px 0 51px;
  }
}

.teacher_office__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 38px;
}

.teacher_office__head .btn_white {
  display: inline-flex;
  border: 1px solid #767676;
  color: #ccc;
  height: auto;
  padding: 13px 49px;
}

.teacher_office__head_left .btn_white {
  margin-bottom: 40px;
}

.teacher_office__head_left .class_data {
  gap: 62px;
}

@media screen and (max-width: 720px) {
  .teacher_office__head_left .class_data {
    flex-direction: column;
    gap: 20px;
  }
}

.teacher_office__head_left .class_id {
  font-size: 18px;
  font-weight: 600;
}

.teacher_office__head_right .class_name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 38px;
  text-decoration: underline;
}

.teacher_office__links {
  margin-bottom: 45px;
  width: 100%;
  gap: 5px;
  flex-wrap: wrap;
  padding-bottom: 15px;
}

.teacher_office__links li {
  flex: 1 1 auto;
}

@media screen and (max-width: 690px) {
  .teacher_office__links li {
    flex: 1 1 30%;
  }
}

.teacher_office__links .btn_white {
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #ccc;
  border-color: #767676;
  text-align: center;

  /* Добавляем эти свойства для одинакового размера */
  min-width: 140px;
  /* Фиксированная минимальная ширина */
  width: 190px;
  /* Фиксированная ширина для всех кнопок */
  height: 40px;
  /* Фиксированная высота для всех кнопок */
  box-sizing: border-box;
  /* Чтобы padding не увеличивал размер */
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  /* Текст в одну строку */
  overflow: hidden;
}

.teacher_office__table table tbody td:last-child,
.teacher_office__table table thead td:last-child {
  border-right: 0;
}

.teacher_office__table {
  border-radius: 5px;
  overflow: auto;
  padding-bottom: 20px;
}

.teacher_office__table table {
  border-collapse: collapse;
  width: 100%;
}

.teacher_office__table table td {
  border: 1px solid #686868;
  height: 35px;
  background: #262627;
  text-align: center;
  color: #ccc;
}

.teacher_office__table table td.ended {
  background: #57af38;
  color: #ffffff;
}

.teacher_office__table table td.active {
  background: #c62828;
  color: #ffffff;
}

.teacher_office__table table td:nth-child(2) {
  text-align: left;
  padding: 0 14px;
}

.teacher_office__table table td:first-child {
  background: rgb(45 45 45 / 0.54);
}

.teacher_office__table table td:not(:nth-child(2)) {
  min-width: 35px;
  width: 35px;
}

.teacher_office__table table thead td {
  border-top: 0;
  font-size: 15px;
  font-weight: 600;
}

.teacher_office__table table thead td:first-child {
  border-left: 0;
}

.teacher_office__table table tbody td {
  font-size: 13px;
  font-weight: 600;
}

.teacher_office__table table tbody td:first-child {
  border-left: 0;
  font-size: 15px;
}

.teacher_office__table table tbody tr:last-child td {
  border-bottom: 0;
}

.my_class {
  padding: 172px 0 66px;
  min-height: 30vh;
}

.my_class__content {
  border-radius: 5px;
}

.my_class__content_head {
  padding: 36px 98px;
  position: relative;
}

.my_class__content_head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #2a2828;
  box-shadow: 0 4px 3px #0b0b0b;
}

.my_class__content_head .my_class__form {
  gap: 36px;
  flex-wrap: wrap;
}

.my_class__content_head .search,
.my_class__content_head .select,
body.light-theme .header .change_theme,
body.light-theme .tasks_level__right .circle_progress {
  position: relative;
}

.my_class__content_head .search input {
  border: 1px solid #666;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  border-radius: 5px;
  padding: 13px 50px 13px 20px;
}

.my_class__content_head .search input::placeholder {
  color: #ffffff;
}

.my_class__content_head .search__icon {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
}

.my_class__content_head .select select {
  appearance: none;
  position: relative;
  outline: 0;
  background: 0 0;
  border: 1px solid #666;
  height: 45px;
  width: 167px;
  border-radius: 5px;
  padding: 0 13px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.my_class__content_head .select select option {
  background: #232323;
}

.my_class__content_head .select img {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.my_class__content_head .btn_red {
  padding: 14px 38px;
  font-size: 14px;
  font-weight: 600;
}

.my_class__content_body {
  padding: 44px 64px 48px;
  gap: 35px;
}

@media screen and (max-width: 1310px) {
  .teacher_office__links {
    gap: 15px;
  }

  .my_class {
    padding: 90px 0 66px;
  }

  .my_class__content_head {
    flex-direction: column;
    align-items: normal !important;
    gap: 40px;
    padding: 20px 35px;
  }

  .my_class__content_head .search {
    flex: 1 1 45%;
  }

  .my_class__content_head .select {
    width: 100%;
    flex: 1 1 45%;
  }

  .my_class__content_head .select select {
    width: 100%;
  }

  .my_class__content_body {
    padding: 40px 30px;
    gap: 35px;
  }
}

.my_class__content_body li {
  width: calc(25% - 35px * 3 / 4);
}

@media screen and (max-width: 1024px) {
  .task_one .main_container {
    max-width: 100%;
    margin-left: 70px;
    margin-right: 0;
  }

  .my_class__content_body li {
    flex: 1 1 30%;
  }
}

.my_class__content_body li a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: linear-gradient(90deg, #101010, #191111 100%);
  height: 63px;
}

.add_class {
  position: fixed;
  left: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
}

.add_class__bg {
  position: absolute;
  left: 0;
  background: rgb(0 0 0 / 0.5);
}

.add_class__content {
  width: 570px;
  padding: 50px 97px;
  position: relative;
  background: #141414;
}

.add_class__content_head {
  gap: 59px;
  margin-bottom: 24px;
}

.add_class__content input[type="number"]::-webkit-inner-spin-button,
.add_class__content input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add_class__content .main_checkbox {
  display: flex;
  align-items: center;
  gap: 15px;
  user-select: none;
  cursor: pointer;
}

.add_class__content .main_checkbox span {
  font-size: 14px;
}

.add_class__content .main_checkbox input::before {
  background: #dfdfdf;
  color: #c62828;
}

.add_class__content .main_checkbox input::after {
  color: #c62828;
  font-weight: 900;
}

.add_class__content .form_control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.add_class__content .form_control label {
  font-size: 14px;
}

.add_class__content .form_control input {
  width: 100%;
  border: 1px solid #545454;
  border-radius: 2px;
  background: rgb(140 140 140 / 0.29);
  height: 34px;
  padding: 0 14px;
  color: #ffffff;
}

.add_class__content .btns {
  gap: 24px;
}

.add_class__content .btns button {
  width: 145px;
}

.animateArrow {
  animation: 0.5s ease-in-out forwards animateArrow;
}

.task_one__content-statement {
  padding: 10px 20px 10px 10px;
  font-family: JetBrains;
  text-align: justify;
}

.task_one__content-statement h3 {
  font-weight: 800;
  margin: revert;
}

.task_one__content-item p {
  margin: revert;
  white-space: pre-wrap;
  font-size: 16px;
}

.task_one__content-statement h4 {
  margin: revert;
}

@media screen and (max-width: 510px) {
  .task_one__navs {
    display: none;
  }

  .task_one__content_left {
    padding: 0;
  }

  .task_one .main_container {
    padding-top: 0;
    margin: 0;
  }

  .teacher_office__links li {
    flex: 1 1 40%;
  }

  .my_class__content_body li {
    flex: 1 1 100%;
  }

  .task_one__content-statement span {
    font-size: 14px !important;
  }

  .task_one .sec_title,
  .task_one__content-statement h3 {
    font-size: 16px;
  }
}

.task_one__code-block {
  background: #2e2e2e;
  font-family: JetBrains;
  line-height: 26px;
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  color: #ffffff;
}

body.green-theme .task_one__code-block {
  background: #1b1e28;
}

body.light-theme {
  background: #f7f7f7;
  color: #292929;
}

body.light-theme .main_input {
  background: #ffffff;
  color: #292929;
}

body.light-theme .main_input::placeholder {
  color: #9a9a9a;
}

body.light-theme .main_checkbox input::before,
body.light-theme .register__form .bottom_checkbox input::before {
  background: #a5a5a5;
  border: 1px solid #919191;
}

body.light-theme .btn_danger,
body.light-theme .btn_red {
  border: 0;
  box-shadow: none;
  color: #ffffff;
  background: linear-gradient(to right, #3c7ee0, #21457a);
}

.top-9 button,
body.light-theme .add_class__content .main_checkbox input::after,
body.light-theme .btn_danger:hover,
body.light-theme .btn_red:hover,
body.light-theme .register__form .bottom_checkbox input::after {
  color: #ffffff;
}

body.light-theme .btn_white {
  border-color: #3c7ee0;
  color: #3c7ee0;
}

body.light-theme .btn_like,
body.light-theme .header .change_theme ul button,
body.light-theme .theory__search input {
  color: #292929;
}

body.light-theme .community_support__block_item h2 span,
body.light-theme .doubts__card_item h3,
body.light-theme .doubts__description span,
body.light-theme .editor_wrap .ace-monokai .ace_entity.ace_name.ace_tag,
body.light-theme .editor_wrap .ace-monokai .ace_keyword,
body.light-theme .editor_wrap .ace-monokai .ace_meta.ace_tag,
body.light-theme .editor_wrap .ace-monokai .ace_storage,
body.light-theme .header .change_theme ul button.active,
body.light-theme .header__account .dagree span,
body.light-theme .header__auth_link a,
body.light-theme .header__logo_text span,
body.light-theme .home__title .light,
body.light-theme .ready__description span,
body.light-theme .tasks__left .child_tasks__title,
body.light-theme .tasks__left .title,
body.light-theme .tasks__right p a,
body.light-theme .tasks__right p span,
body.light-theme .tasks__right table td span,
body.light-theme .tasks__right_title span,
body.light-theme .tasks__title span,
body.light-theme .tasks_level h4 span,
body.light-theme .tasks_level__right .circle_progress .level_value span,
body.light-theme .tasks_level__right h3,
body.light-theme .theory__category h3,
body.light-theme .theory__category h4 {
  color: #3c7ee0;
}

body.light-theme .header__account .dagree,
body.light-theme .task_one .subtitle,
body.light-theme .task_one__head .btn_like,
body.light-theme .task_one__head a {
  color: #868686;
}

body.light-theme .home__title .dark {
  color: inherit;
}

body.light-theme .home__left_card {
  left: -57px;
  top: 169px;
}

body.light-theme .home__right_card {
  top: 175px;
  right: -100px;
  display: none;
}

body.light-theme .interactive__icon,
body.light-theme .ready__icon,
body.light-theme .task_one .solution_test table button:hover {
  background: #3c7ee0;
  color: #ffffff;
}

body.light-theme .interactive .btn_red {
  padding: 0 20px;
  background: 0 0;
  border: 1px solid #3c7ee0;
  color: #3c7ee0;
}

.section-title {
  font-weight: 700;
  font-size: 42px;
  line-height: 58px;
  margin-bottom: 24px;
}

.section-text {
  color: #e0e0e0;
  font-size: 18px;
  line-height: 160%;
  max-width: 90%;
  margin: 0 auto 50px;
}

.section-text span {
  color: #ffffff;
  font-weight: 600;
}

.light-theme .section-text {
  color: #292929;
}

.light-theme .section-text span {
  color: #000000;
}

.program-plan__title {
  color: #ffffff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #ffffff;
}

.program-plan__theme-box {
  position: relative;
  z-index: 0;
}

.program-plan__theme-box::before {
  position: absolute;
  content: " ";
  left: 35px;
  top: 0;
  width: 1px;
  height: 94%;
  background: #76767d;
  opacity: 0.7;
  z-index: 0;
}

.program-plan__themes-list {
  margin-left: 100px;
  margin-bottom: 80px;
  position: relative;
}

.program-plan__themes-list::before {
  position: absolute;
  left: -76.5px;
  top: 8px;
  content: "";
  background: url(../icons/colection-icon.svg) 50% no-repeat;
  width: 25px;
  height: 25px;
  z-index: 22;
}

.theme-change .leaf,
.theme-change__theory .leaf--mobile {
  transform: scale(0);
  transition: 1s;
}

.program-plan__theme-item {
  position: relative;
  font-size: 20px;
  line-height: 40px;
}

.program-plan__theme-item::before {
  position: absolute;
  content: "•";
  top: 1px;
  left: -20px;
  color: #ffffff;
  font-size: 20px;
}

.theme-change .moon,
.theme-change .sun,
.theme-change__theory .moon--mobile,
.theme-change__theory .sun--mobile {
  color: #666;
  filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.5));
  transition: 1s;
}

body.light-theme .program-plan__themes-list::before {
  background: url(../icons/colection-icon-black.svg) 50% no-repeat;
}

.program-plan__img-container {
  position: relative;
  max-width: 95%;
  margin: 0 auto 90px;
}

.program-plan__img-blur {
  width: 98%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: -1;
}

body.dark-theme .program-plan__img-blur {
  background-color: #c62828;
}

body.light-theme .program-plan__img-blur,
body.light-theme .succes-wrapper .alert_wrap.success button {
  background-color: #3c7ee0;
}

body.green-theme .program-plan__img-blur {
  background-color: #0bbf35;
}

.program-plan__img {
  width: 100%;
  border-radius: 1rem;
}

body.dark-theme .program-plan__title {
  background-image: linear-gradient(90deg, #de3232 35%, #7e0000 100%);
}

body.light-theme .program-plan__title {
  background-image: linear-gradient(90deg, #000 35%, #3c7ee0 100%);
}

body.green-theme .program-plan__title {
  background-image: linear-gradient(90deg, #0bbf35 35%, #06360f 100%);
}

.target-audience {
  margin: 80px 0;
}

.target-audience__list-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.target-audience__item-title {
  font-size: 24px;
  font-weight: 600;
}

.target-audience__item-text {
  font-size: 18px;
  line-height: 26px;
  color: #a7a7ac;
}

.light-theme .target-audience__item-text {
  color: #4a4a4a;
}

.target-audience__item {
  flex: 1 1 31%;
  border-radius: 1rem;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
}

body.dark-theme .target-audience__item {
  background: #1c1c1c;
}

body.light-theme .add_class__content,
body.light-theme .join_us__card,
body.light-theme .login__form,
body.light-theme .register__form,
body.light-theme .target-audience__item,
body.light-theme .tasks__left,
body.light-theme .theory__category,
body.light-theme .theory__left {
  background: #d6e6ff;
}

body.green-theme .target-audience__item {
  background: #1b1e28;
}

body.light-theme .interactive__card .icon {
  opacity: 1;
  z-index: 2;
}

body.light-theme .interactive__bottom_card__item {
  background: #d6e6ff;
  z-index: 1;
}

body.light-theme .interactive__bottom_card__item img {
  display: block;
  z-index: -1;
}

body.light-theme .interactive__bottom_card__item h2 span {
  background: linear-gradient(to right, #3c7ee0, #1d59b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #ffffff;
}

body.light-theme .community_support__block {
  background: url(../images/community_support_bg_light.png) center/cover no-repeat;
}

body.light-theme .join_us__title span {
  background: linear-gradient(to right, #3c7ee0, #1e59b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #ffffff;
}

body.light-theme .doubts__card_item {
  background: linear-gradient(to bottom,
      rgb(203 217 244 / 0.2),
      rgb(75 89 117 / 0.2));
}

body.light-theme .ready__card {
  background: url(../images/ready_card_bg_light.webp) center/cover no-repeat;
}

body.light-theme .ready__title {
  margin: 20px 0;
}

body.light-theme .ready__description {
  margin-bottom: 35px;
}

body.light-theme .register__form .form_submit button {
  color: #ffffff;
  background: linear-gradient(to right, #23a2e9, #2579a8);
  height: 39px;
  width: 183px;
  padding: 0;
  font-size: 14px;
}

body.light-theme .login__title {
  line-height: 55px;
  margin-bottom: 60px;
}

body.light-theme .login__form .form_submit {
  margin-top: 13px;
  gap: 21px;
}

body.light-theme .login__form .form_submit .btn_danger {
  height: 39px;
  background: linear-gradient(to right, #23a2e9, #2579a8);
  font-size: 14px;
  width: 114px;
  padding: 0;
}

body.light-theme .login__form .form_submit .btn_red {
  padding: 0;
  background: linear-gradient(to right, #3eb9e0, #3b91ac);
  width: 183px;
  font-size: 14px;
}

body.light-theme .theory__title::before {
  background: #b2c9d6;
}

body.light-theme .theory .online_trener .title {
  color: #3e3e3e;
}

body.light-theme .theory .online_trener .btn_red {
  border: 1px solid #3c7ee0;
  background: 0 0;
  color: #3c7ee0;
}

body.light-theme .theory .lesson_list__title {
  background: linear-gradient(90deg,
      rgb(115 159 173 / 0.14) 11.507%,
      rgb(149 168 182 / 0.18) 80.007%);
}

body.light-theme .theory .lesson_list__title svg path {
  fill: #292929;
}

body.light-theme .theory__search::before {
  background: #d6e6ff;
  opacity: 1;
}

body.light-theme .theory__search input::placeholder {
  color: #737373;
}

body.light-theme .theory__category ul li::before {
  background: #292929;
}

body.light-theme .theory__category ul .child_category {
  background: rgb(189 198 249 / 0.57);
}

body.light-theme .editor_wrap .ace-monokai .ace_identifier,
body.light-theme .editor_wrap .ace-monokai .ace_line,
body.light-theme .editor_wrap .ace-monokai .ace_lparen,
body.light-theme .editor_wrap .ace-monokai .ace_pare,
body.light-theme .editor_wrap .ace-monokai .ace_paren,
body.light-theme .editor_wrap .ace-monokai .ace_punctuation,
body.light-theme .editor_wrap .ace-monokai .ace_rparen,
body.light-theme .theory__category ul .child_category button {
  color: #292929;
}

body.light-theme .theory__category ul .child_category button.active,
body.light-theme .theory__category ul .child_category button:active,
body.light-theme .theory__category ul .child_category button:focus,
body.light-theme .theory__category ul .child_category button:hover {
  background: linear-gradient(to right,
      rgb(22 138 221 / 0.54),
      rgb(25 37 148 / 0.6));
  color: #ffffff;
}

body.light-theme .editor_wrap {
  background: #ffffff;
  border: 1px solid #c9c9c9;
}

body.light-theme .editor_wrap .editor_top {
  border-bottom: 1px solid #bababa;
}

body.light-theme .editor_wrap .editor_head {
  background: #c8def9;
}

body.light-theme .editor_wrap .ace-monokai .ace_gutter {
  background: rgb(196 196 196 / 0.64);
  border: 0;
}

body.light-theme .editor_wrap .ace-monokai .ace_string {
  color: #68b23c;
}

body.light-theme .editor_wrap .code-editor {
  margin-top: 0;
}

body.light-theme .tasks__left .child_tasks {
  background: #bdc6f991;
}

body.light-theme .tasks__left .child_tasks li:not(.child_tasks__title) button,
body.light-theme .tasks__right h3,
body.light-theme .tasks__right p {
  color: #292929;
}

body.light-theme .tasks__left .child_tasks li:not(.child_tasks__title) button.active,
body.light-theme .tasks__left .child_tasks li:not(.child_tasks__title) button:hover {
  background: linear-gradient(90deg,
      rgb(22 137 221 / 0.54),
      rgb(25 38 148 / 0.61) 100%);
  color: #ffffff;
}

body.light-theme .tasks__left .child_tasks li:not(.child_tasks__title) button.ended {
  background: linear-gradient(90deg,
      rgb(22 221 22 / 0.54),
      rgb(25 148 31 / 0.61) 100%);
  color: #ffffff;
}

body.light-theme .tasks__right table td {
  border: 1px solid #bababa;
}

body.light-theme .my_class__content,
body.light-theme .task_one__content_left,
body.light-theme .tasks .theme_cards__item,
body.light-theme .tasks_rating__left,
body.light-theme .tasks_rating__right {
  background: rgb(214 230 255 / 0.77);
}

body.light-theme .tasks .rating_line__bg {
  background: #6aa4fb;
}

body.light-theme .tasks .rating_line .key {
  color: #4e4e4e;
}

body.light-theme .tasks .theme_cards__item h3 {
  color: #6f6f6f;
}

body.light-theme .tasks .theme_cards__item h3 span {
  color: #004cbe;
}

body.light-theme .tasks_level ul li h5 {
  color: #2e2e2e;
}

@keyframes growProgressBar {

  0%,
  33% {
    --pgPercentage: 0;
  }

  100% {
    --pgPercentage: var(--value);
  }
}

body.light-theme .task_one__navs {
  background: rgb(209 233 255 / 0.66);
  border: 1px solid;
}

body.light-theme .task_one__navs_length__item .tr_number {
  color: #676666;
}

body.light-theme .books-category p,
body.light-theme .page-content h1,
body.light-theme .page-content h2,
body.light-theme .page-content h3,
body.light-theme .page-content h4,
body.light-theme .page-content h5,
body.light-theme .page-content h6,
body.light-theme .task_one .main_title span,
body.light-theme .task_one .subtitle span,
body.light-theme .task_one__navs .less__title,
body.light-theme .task_one__navs_length__item .tr_number.active {
  color: #3c7ee0;
}

body.light-theme .task_one__navs_length__item::before {
  background: rgb(100 100 100 / 0.22);
}

body.light-theme .task_one__navs .less button {
  color: #292929;
  width: 100%;
  padding: 7.5px;
}

body.light-theme .task_one__navs .less button.active,
body.light-theme .task_one__navs .less button:hover {
  background: linear-gradient(90deg, #165add, #1898e0 100%);
  color: #ffffff;
}

body.light-theme .task_one__navs .less button.ended {
  background: linear-gradient(90deg,
      rgb(22 221 22 / 0.54),
      rgb(25 148 31 / 0.61) 100%);
  color: #ffffff;
}

body.light-theme .task_one__navs.active {
  background: #d1e9ff;
}

body.light-theme .task_one__content_left .code {
  background: #ffffff;
  color: #5f5f5f;
}

body.light-theme .task_one .solution_head button {
  background: linear-gradient(180deg, #4e90f2, #1872b2 100%);
  box-shadow: 3px 3px 4px 0 rgb(0 0 0 / 0.25);
  border: 0;
}

body.light-theme .task_one .solution_test table td {
  border-top: 1px solid #959595;
}

body.light-theme .task_one .solution_test table button {
  background: 0 0;
  color: #3c7ee0;
  border: 1px solid #3c7ee0;
}

body.light-theme .teacher_office__head_left .btn_white {
  background: linear-gradient(to right, #3c7ee0, #21457a);
  color: #ffffff;
}

body.light-theme .teacher_office__links .btn_white {
  color: #3c7ee0;
  border-color: #3c7ee0;
}

@media (max-width: 768px) {
  .teacher_office__links .btn_white {
    min-width: 90px;
    width: 90px;
    height: 32px;
    font-size: 11px;
    padding: 6px 3px;
  }
}

body.light-theme .teacher_office__table table td {
  border: 1px solid #929292;
  background: #d8e7ff;
  color: #3b3b3b;
}

body.light-theme .teacher_office__table table td.ended {
  background: #88e368;
  color: #ffffff;
}

body.light-theme .teacher_office__table table td.active {
  background: #c62828;
  color: #ffffff;
}

body.light-theme .teacher_office__table table td:nth-child(2) {
  text-align: left;
  padding: 0 14px;
}

body.light-theme .teacher_office__table table td:first-child {
  background: #dfecff;
}

body.light-theme .my_class__content_head::after {
  background: #aeaeae;
  box-shadow: none;
}

body.light-theme .my_class__content_head .search input {
  border: 0;
  color: #6f6f6f;
  background-color: #ffffff;
}

body.light-theme .my_class__content_head .search input::placeholder {
  color: #6f6f6f;
}

body.light-theme .my_class__content_head .search__icon img {
  display: none;
}

body.light-theme .my_class__content_head .select select {
  border: 0;
  background: #ffffff;
  color: #6f6f6f;
}

body.light-theme .my_class__content_head .select select option {
  background: #ffffff;
}

body.light-theme .my_class__content_head .select img {
  display: none;
  z-index: 1;
}

body.light-theme .my_class__content_head .btn_red {
  background: 0 0 !important;
  border: 1px solid #3c7ee0;
  color: #3c7ee0;
}

body.light-theme .my_class__content_body li a {
  background: #6099ef;
  color: #ffffff;
}

body.light-theme .add_class__content .main_checkbox input::before {
  background: #adadad;
  color: #ffffff;
  border: 0;
}

body.light-theme .add_class__content .form_control input {
  border: 0;
  background: #ffffff;
  color: #2a2a2a;
}

body.light-theme .add_class__content .btns button {
  background: 0 0;
  border: 1px solid #3c7ee0;
  color: #3c7ee0;
  font-weight: 600;
}

.theme-change__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-right: 20px;
}

.theme-change {
  display: flex;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  border: 1px solid #868686;
}

.theme-change img {
  width: 24px;
  height: 24px;
}

.theme-change .sun {
  position: absolute;
  transform: scale(0);
}

.theme-change .leaf {
  position: absolute;
}

.theme-change input {
  position: absolute;
  opacity: 0;
}

.theme-change__toggle {
  position: absolute;
  display: block;
  width: 32px;
  height: 32px;
  background: #2b2b2b;
  border-radius: 50%;
  z-index: -1;
}

.theme-change__toggle.dark {
  background: #2b2b2b;
}

.theme-change__toggle.light {
  background: #ffffff;
}

.theme-change__toggle.green {
  background: #006400;
}

.theme-change--mobile {
  display: none;
}

.theme-change__theory {
  display: none;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

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

  .theme-change--mobile,
  .theme-change__theory,
  .theory-left__burger,
  .theory-left__burger-bg {
    display: flex;
  }
}

.theme-change__theory .sun--mobile {
  position: absolute;
  transform: scale(0);
}

.theme-change__theory .leaf--mobile {
  position: absolute;
}

.theme-change__theory input {
  position: absolute;
  opacity: 0;
}

.theme-change__theory_toggle {
  position: absolute;
  display: block;
  width: 50px;
  height: 50px;
  background: #2b2b2b;
  border-radius: 50%;
  z-index: -1;
}

.theme-change__theory_toggle.dark {
  background: #2b2b2b;
}

.theme-change__theory_toggle.light,
body.light-theme .contain-inline-size,
body.light-theme .modal-window {
  background: #ffffff;
}

.theme-change__theory_toggle.green {
  background: #006400;
}

.tasks__header_right {
  gap: 30px;
}

.modal-window {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #2b2b2b;
  border-radius: 20px;
  padding: 32px 18px 24px;
  width: 550px;
  z-index: 100;
  box-shadow: 0 0 12px 2px rgb(0 0 0 / 0.4);
}

.modal-window textarea {
  min-height: 100px;
  padding: 8px 14px;
}

@media screen and (max-width: 620px) {
  .modal-window {
    width: 95%;
    padding: 40px 20px;
  }
}

.modal-window.active {
  display: flex;
  animation: 0.3s forwards animateOpenWindow;
}

.modal-window.hidden {
  animation: 0.3s forwards animationHide;
}

@keyframes animationHide {
  0% {
    opacity: 1;
    transform: scale(1);
  }

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

.modal-window__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
}

.modal-window__item a {
  color: #ff3a3a;
}

body.light-theme .modal-window__item a {
  color: #004cbe;
}

body.green-theme .books-category p,
body.green-theme .modal-window__item a {
  color: #0bbf35;
}

.modal-window__input {
  width: 100%;
  border-radius: 10px;
  background: rgb(140 140 140 / 0.29);
  height: 52px;
  padding: 0 14px;
  color: #ffffff;
}

.modal-window-wrapper,
.succes-wrapper,
.succes-wrapper::before {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

body.light-theme .modal-window__input {
  background: #eaedf5;
  color: #000;
}

.modal-window__make-teacher {
  background-color: #c82f2f;
  padding: 10px 20px;
  color: #ffffff;
}

.modal-window__title {
  text-align: center;
  font-weight: 600;
  font-size: 24px;
  color: #ffffff;
}

.modal-window-wrapper {
  display: none;
  position: fixed;
  z-index: 100;
  justify-content: center;
  align-items: center;
  background-color: rgb(0 0 0 / 0.4);
}

.modal-window__btn {
  background-color: #c82f2f;
  padding: 15px 20px;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 600;
}

body.light-theme .modal-window__make-teacher {
  background-color: #6aa4fb;
  padding: 10px 20px;
  color: #ffffff;
}

body.light-theme .modal-window__btn {
  background: linear-gradient(to right, #3c7ee0, #21457a);
  color: #ffffff;
}

@keyframes animateOpenWindow {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.MsoNormal {
  margin-bottom: 10px !important;
}

.task_one__content_left pre {
  line-height: 30px;
  font-size: 16px;
  border-radius: 5px;
}

.ace_scrollbar-h::-webkit-scrollbar {
  display: none;
}

.ace_scrollbar-h::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.ace_scrollbar-h::-webkit-scrollbar-thumb {
  background: #888;
  cursor: pointer;
}

body.light-theme .ace-twilight {
  background-color: #ffffff;
  color: #000;
}

body.light-theme .ace-twilight .ace_gutter {
  background-color: rgb(196 196 196 / 0.64);
  color: #000;
}

.succes-wrapper {
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.succes-wrapper::before {
  content: "";
  position: absolute;
  background-color: rgb(0 0 0 / 0.7);
}

.succes-wrapper .alert_wrap {
  width: 350px;
  background-color: #232323;
  position: relative;
  box-shadow: 0 0 2px rgb(0 0 0 / 0.05);
  border-radius: 10px;
}

.succes-wrapper .alert_wrap .alert_icon {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 2px rgb(0 0 0 / 0.05);
}

.succes-wrapper .alert_wrap .alert_icon .icon {
  display: block;
  font-size: 40px;
  padding: 5px;
  border-radius: 50%;
}

.succes-wrapper .alert_wrap.success .alert_icon {
  color: #69d1a0;
}

.succes-wrapper .alert_wrap.success .alert_icon .icon {
  border: 2px solid #69d1a0;
}

.succes-wrapper .alert_wrap.error .alert_icon {
  color: #e54053;
}

.succes-wrapper .alert_wrap.error .alert_icon .icon {
  border: 2px solid #e54053;
}

.succes-wrapper .alert_wrap .content {
  padding: 60px 30px 30px;
  text-align: center;
}

.succes-wrapper .alert_wrap .content .title {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 16px;
}

.succes-wrapper .alert_wrap .content .info {
  color: #b5b5b5;
  line-height: 22px;
}

.succes-wrapper .alert_wrap button {
  border: 0;
  display: block;
  color: #ffffff;
  width: 100%;
  padding: 15px;
  font-weight: 700;
  cursor: pointer;
}

.succes-wrapper .alert_wrap.success button {
  background: #c62828;
  border-radius: 10px;
}

.succes-wrapper .alert_wrap.success button:hover {
  background: #ff2929;
}

body.light-theme .header__block_right.open,
body.light-theme .succes-wrapper .alert_wrap {
  background-color: #ffffff;
}

.ace_folding-enabled>.ace_gutter-cell {
  padding-left: 8px !important;
  padding-right: 25px !important;
}

.header__logout {
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: 15px;
}

.dl_tab .tab_content,
.page-content .sticky.top-9,
.page-content .text-token-text-secondary,
.panel,
.tab i,
.task_one__content-statement>h3~*,
body.dark-theme .light-logout,
body.green-theme .light-logout,
body.light-theme .dark-logout {
  display: none;
}

.editor-item-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.editor-item-title--pos-ab {
  position: absolute;
  top: -25px;
}

.tasks_level__left {
  background: linear-gradient(197.77deg,
      rgb(62 61 61 / 0.14) 29.286%,
      rgb(48 47 47 / 0.18) 56.433%);
  padding: 10px 12px 16px 11px;
  border-radius: 5px;
}

body.light-theme .tasks_level__left {
  background: rgb(214 230 255 / 0.77);
}

body.green-theme .tasks_level__left {
  background: #1b1e28;
}

.join-class-btn {
  border-radius: 5px;
  padding: 5px 20px;
  background: linear-gradient(154.82deg,
      #c82f2f 11.465%,
      rgb(179 25 25 / 0.99) 82.917%);
  color: #ffffff;
}

body.green-theme .join-class-btn {
  background: linear-gradient(to right, #0bbf35, #21457a);
}

@media screen and (max-width: 610px) {
  .add_class__content {
    max-width: 95%;
    padding: 35px;
    border-radius: 10px;
  }
}

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

  .section-text,
  .section-title {
    text-align: left !important;
    margin-left: 12px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-text {
    font-size: 16px;
  }

  .program-plan__wrapper {
    padding: 24px;
  }

  .question__title {
    margin-left: 0;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 550px) {
  .section-title {
    font-size: 30px;
  }

  .section-text {
    font-size: 15px;
  }
}

@media screen and (max-width: 490px) {
  .theory iframe {
    width: 100%;
  }

  .task_one__content_left .code {
    font-size: 10px;
    padding: 8px;
    overflow: auto;
  }

  .my_class {
    padding: 70px 0 66px;
  }

  .my_class__content_head {
    padding: 20px 15px;
  }

  .my_class__content_body {
    padding: 20px 15px;
    gap: 35px;
  }

  .task_one__content_left pre {
    font-size: 14px;
    line-height: 20px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-text {
    font-size: 14px;
  }

  .question__item-title {
    font-size: 18px;
  }

  .program-plan__theme-item {
    font-size: 16px;
  }

  .program-plan__wrapper {
    padding: 16px;
  }

  .program-plan__img {
    height: 230px;
  }
}

.fade-up {
  animation: 0.5s forwards fade-up;
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.type-animation {
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
  animation: 3s steps(50, end) forwards type;
  animation-delay: 0.6s;
}

@keyframes type {
  0% {
    width: 0;
    opacity: 1;
  }

  100% {
    width: 100%;
    opacity: 1;
  }
}

.books-section {
  display: flex;
  flex: 1 2 auto;
  border-radius: 5px;
  flex-direction: column;
}

.books-news-block {
  display: flex;
  flex-direction: column;
  flex-basis: 25%;
  border-radius: 12px;
  min-width: 366px;
  background-color: #1b1e28;
  min-height: 400px;
  padding: 12px 0;
}

.books-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  row-gap: 60px;
}

.books-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.book-img {
  width: 100%;
  height: 220px;
  cursor: pointer;
  border-radius: 5px;
}

@media (max-width: 1024px) {
  .book-img {
    height: 200px;
    object-fit: cover;
  }
}

.book-name {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

body.green-theme .swiper-button-next,
body.green-theme .swiper-button-prev {
  color: #ffffff !important;
  background: #0bbf35;
  border-radius: 50px;
  width: 40px !important;
  height: 40px !important;
}

body.dark-theme .swiper-button-next,
body.dark-theme .swiper-button-prev {
  color: #ffffff !important;
  background: #c62828;
  border-radius: 50px;
  width: 40px !important;
  height: 40px !important;
}

body.light-theme .swiper-button-next,
body.light-theme .swiper-button-prev {
  color: #ffffff !important;
  background: #3c7ee0;
  border-radius: 50px;
  width: 40px !important;
  height: 40px !important;
}
/* Глобальный фикс для всех карточек книг */
.books-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
    justify-content: start;
}

/* Глобальный фикс для блогов */
.blogs-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    justify-content: start;
}

/* Все изображения в каталогах — без искажений */
.books-container img,
.blogs-container img {
    object-fit: cover;
    width: 100%;
}
body.light-theme .cm-s-material-darker .cm-builtin {
  color: #0556f3;
}
.recomends-block .books-container,
.recomends-block .blogs-container,
.recomends-block .recomends-container {
    /* auto-fill оставляет пустые треки — элементы не растягиваются */
    grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
    /* Выравниваем по левому краю — не по ширине контейнера */
    justify-content: start;
}

/* Фиксированный размер карточки книги */
.recomends-block .books-item {
    width: 100%;
    max-width: 200px;
}

/* Изображения — не растягивать, обрезать красиво */
.recomends-block .book-img {
    width: 100%;
    height: 220px;
    object-fit: cover;   /* заполняет контейнер без искажений */
    object-position: center top; /* обложка книги — важна верхняя часть */
    border-radius: 5px;
}

/* Изображения блогов */
.recomends-block .blog-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

/* ── Адаптив: на мобиле 2 колонки фиксировано ─────────────────── */
@media (max-width: 600px) {
    .recomends-block .books-container,
    .recomends-block .blogs-container,
    .recomends-block .recomends-container {
        grid-template-columns: repeat(2, 1fr);
        justify-content: stretch; /* на мобиле растягиваем — так лучше */
    }

    .recomends-block .books-item {
        max-width: 100%;
    }
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 0 !important;
}

.books-category {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid;
  margin-bottom: 35px;
  font-weight: 600;
}

.books-category p {
  font-weight: 400;
  font-size: 16px;
}

.book-info__img {
  width: 200px;
  height: 300px;
  border-radius: 8px;
}

.book-info-container {
  display: flex;
  gap: 80px;
}

.book-info-wrapper {
  margin: 50px auto;
  max-width: 95%;
  display: flex;
  gap: 30px;
  align-items: start;
}

@font-face {
  font-family: Lilita;
  src: url("../fonts/Lilita/Lilita\ One\ Regular.ttf");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: JetBrains;
  src: url(../fonts/JetBrains/JetBrainsMono.ttf);
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: American;
  src: url(../fonts/American/dehinted-AmericanTypewriter-Bold.ttf);
  font-display: swap;
}

.book-info__title {
  font-family: American;
  font-size: 3rem;
  margin: 0 !important;
}

.book-info__suptitle {
  color: #837f7f;
}

.book-info__author {
  margin-top: 20px;
  font-size: 18px;
}

.book-info__author span {
  font-weight: 700;
}

.book-info__section-title {
  font-size: 24px;
  font-family: Lilita;
  margin-top: 30px;
}

.book-info__short-content {
  font-size: 18px;
  margin-top: 20px;
}

.book-info__read-btn {
  padding: 8px 20px;
  text-align: center;
  border-radius: 6px;
  margin-top: 12px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 700;
  letter-spacing: 0.6px;
}

body.green-theme .book-info__read-btn {
  border: 1.5px solid #0bbf35;
}

body.green-theme .book-info__read-btn:hover {
  background: #0bbf35;
}

body.dark-theme .book-info__read-btn {
  border: 1.5px solid #c62828;
}

body.dark-theme .book-info__read-btn:hover {
  background: #c62828;
}

body.light-theme .book-info__read-btn {
  border: 1.5px solid #3c7ee0;
}

body.light-theme .book-info__read-btn:hover {
  background: #3c7ee0;
  color: #ffffff;
}

.book-info__block--left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-info__block--left .book_actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1590px) {
  .book-info__block--left {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .book-info__block--left .ad-vertical {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .book-info__block--left {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }

  .book-info__block--left .book_actions {
    width: 100%;
  }
}

.book-info__characteristic {
  display: flex;
  gap: 20px;
  align-items: center;
}

body.light-theme .add-comment-btn {
  border-color: #000;
  color: #000;
}

.header__container {
  max-width: 95%;
}

.blog-wrapper {
  background: #292929;
}

.blogs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  row-gap: 35px;
  column-gap: 20px;
}



.card {
  background: #2c2a2a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  font-family: Inter, sans-serif;
}

body.green-theme .card {
  background: #202430;
}

body.light-theme .card {
  background: #fcfcfc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-image {
  position: relative;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, .7);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.book-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, .7);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
}
body.light-theme .card-tag,
body.light-theme .book-tag {
  color: #fff;
}
.card-content {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 12px;
  color: #b5b5b5;
  margin-bottom: 14px;
}

.card-meta {
  margin-top: auto;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #888;
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-link {
  color: inherit;
  text-decoration: none;
  
}

.book-cover {
  aspect-ratio: 3 / 4;
  background: #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}


.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-title {
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
}

.book-author {
  font-size: 13px;
  color: #aaa;
}
body.light-theme .book-author {
  color: #555;
}
.book-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #777;
}

.blog-item {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.blog-name {
  font-size: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  max-width: 100%;
  font-weight: 600;
  color: #999;
  line-height: 1.4;
  min-height: calc(1.1rem * 1.4 * 3);
}

.blog-img-wrapper {
  margin-top: auto;
}

.blog-img-wrapper img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

.blog-content {
  max-width: 95%;
  color: #999;
}

@media screen and (max-width: 1280px) {
  .main_container--big {
    flex-direction: column;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
  }

  .blog-img-wrapper img {
    width: 100%;
    aspect-ratio: unset;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
  }
}

@media screen and (max-width: 470px) {
  .teacher_office__head {
    flex-direction: column;
    gap: 20px;
  }

  .teacher_office__head_right {
    width: 100%;
    justify-content: end;
  }

  .book-img {
    height: 500px;
  }

  .book-name {
    font-size: 20px;
  }
}

@media screen and (max-width: 1590px) {
  .book-info-container {
    flex-direction: column;
  }
}

.page-content a,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.page-content hr,
.page-content ol,
.page-content p,
.page-content ul {
  margin: revert;
  padding: revert;
  list-style: revert;
  display: revert;
  border: revert;
}

.page-content img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}

.page-content ol,
.page-content ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: justify;
}

.page-content table {
  width: 100%;
  margin: 20px 0;
  font-size: 16px;
  text-align: center;
  border-collapse: separate;
  border-spacing: 20px 15px;
}

.page-content td,
.page-content th {
  padding: 12px;
  border: 1px solid #444;
}

.page-content th {
  background-color: #2c2c2c;
  color: #ffffff;
}

.page-content pre code {
  border-radius: 10px;
  font-family: JetBrains;
  line-height: 24px;
}

.page-content ol li,
.page-content ul li {
  width: 100%;
  line-height: calc(18px * 2);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin: 24px auto 12px;
  font-weight: 700;
}

.page-content h1 {
  font-size: calc(18px * 1.9);
}

.discussion-content {
  margin-top: 50px;
  width: 100%;
}

.contain-inline-size {
  background: #0d0d0e;
  border-radius: 5px;
}

body.green-theme .contain-inline-size {
  background: #15191f;
}

.px-2 {
  padding-left: 0 !important;
}

.suggestion-item,
.theme-box {
  padding: 10px;
  cursor: pointer;
}

code {
  font-size: 100%;
  font-weight: 900;
  color: #d2d2d2;
}

body.light-theme code {
  color: #000000c7;
}

.theme-box {
  transition: 0.3s;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.theme-box.active {
  border: 1px solid #c62828;
  color: #c62828;
}

.check-task-loader {
  display: none;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background-color: rgb(0 0 0 / 0.5);
  flex-direction: column;
  gap: 20px;
}

.loader-img {
  display: none;
  animation: 1.5s linear infinite spin-loader;
}

.loader-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff;
}

@keyframes spin-loader {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.recomends-block {
  margin-top: 50px;
  max-width: 1440px;
  width: 100%;
}

.recomends-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 15px;
}

.books-news-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.news-item-wrapper {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.news-item-title {
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #999;
  width: 100%;
  font-size: 13px;
}

.books-container img {
  object-fit: fill;
}

.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #ccc;
  z-index: 1000;
  color: #000;
  font-weight: 600;
}

.page-change-wrapper {
  margin-top: 50px;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.ad-left,
.ad-vertical>div {
  max-width: 300px !important;
  overflow: hidden !important;
}

.page-change {
  display: inline-flex;
  padding: 12px;
  align-items: center;
  gap: 20px;
  border-radius: 10px;
  border: 1px solid var(--black-15, #262626);
  background: #0f0f0f;
}

.pagination,
.tutorial-item__header {
  justify-content: center;
  display: flex;
}

body.light-theme .page-change {
  background: #ffffff;
  border-color: #d6e6ff;
}

body.green-theme .page-change {
  background: #15191f;
  border: 1px solid var(--black-15, #262626);
}

.page-change__btn {
  transition: 0.15s;
}

body.light-theme .page-change__btn rect {
  fill: #d6e6ff;
  stroke: #d6e6ff;
}

body.green-theme .page-change__btn rect {
  fill: #1b1e28;
  stroke: #1b1e28;
}

.page-change__btn:not(.disabled):hover {
  filter: contrast(0.7);
}

.pagination {
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination__btn,
.pagination__page {
  padding: 6px 12px;
  background-color: #f2f2f2;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.pagination__btn:hover,
.pagination__page:hover {
  background-color: #e0e0e0;
}

.pagination__page.current {
  background-color: #c62828;
  color: #ffffff;
  font-weight: 700;
  border-color: #c62828;
  cursor: default;
}

body.light-theme .pagination__page.current {
  background-color: #3c7ee0;
  border-color: #3c7ee0;
}

body.green-theme .pagination__page.current {
  background-color: #0bbf35;
  border-color: #0bbf35;
}

.pagination__btn.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.pagination__dots {
  padding: 6px 8px;
  color: #999;
}

.size-21 {
  font-size: 21px;
}

.tutorial-window {
  width: 1000px;
  height: 50vh;
  position: fixed;
}

@media screen and (max-width: 1000px) {
  .tutorial-window {
    width: 90%;
  }
}

@media screen and (max-width: 600px) {
  .theory .online_trener img {
    width: 100%;
    
  }
  .theory .online_trener {
    flex-direction: column;
  }
  .program-plan__themes-list {
    margin-left: 30px;
  }

  .program-plan__theme-box::before,
  .program-plan__themes-list::before {
    display: none;
  }

  .main_container {
    padding: 0 10px;
  }

  .tutorial-window {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
}

.tutorial-swiper {
  width: 100%;
  height: 100%;
}

.tutorial-item__header {
  width: 100%;
}

.tutorial-item__header strong {
  font-weight: 600;
  font-size: 18px;
}

.modal-window__close-btn {
  position: absolute;
  right: 32px;
  top: 18px;
  z-index: 2;
}

.ad-left,
.tab {
  position: relative;
}

.modal-window__close-btn button,
.modal-window__close-btn div {
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  width: 15px;
  height: 20px;
}

.main_container--big.d-flex {
  display: flex;
  gap: 20px;
  justify-content: center;
}

@media (max-width: 768px) {
  #problem_tests .editor-item {
    flex-direction: column;
  }

  .tasks__right .tasks-content-wrapper .run-btn+pre code {
    padding-top: 50px;
  }

  .tasks .theme_cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .tasks .theme_cards__item {
    display: flex;
    flex-direction: column;
  }

  .tasks .theme_cards__item h4 {
    flex: 1;
    display: flex;
    align-items: flex-end;
  }

  .tasks_level {
    padding-right: 0;
  }

  .report-btn,
  .run-test-btn,
  .tutorial-btn {
    padding: 0 10px;
    gap: 5px;
  }

  .ad-left {
    display: none;
  }
}

.ad-left {
  flex-shrink: 0;
  width: 300px !important;
  min-width: 300px !important;
  flex-shrink: 0 !important;
  display: block;
}

.ad-left * {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ad-vertical {
  width: 300px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 20px;
  width: max-content !important;
  max-width: 300px !important;
}

.ad-vertical>div {
  width: 100% !important;
}

.question-item pre,
.responsive_table {
  width: 100%;
  overflow-x: auto;
}

.ad-vertical iframe {
  max-width: 100% !important;
  display: block;
}

.tutorial-item__content {
  width: 100%;
  height: 100%;
  padding: 30px 60px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tab,
.tabs {
  gap: 10px;
  display: flex;
}

.tutorial-item__content p {
  font-weight: 500;
  font-size: 16px;
}

.tutorial-item__content span {
  opacity: 0.6;
}

.tutorial-item__mini-img {
  width: 100%;
  height: 200px;
}

.tutorial-item__bottom-content {
  display: flex;
  width: 100%;
}

.tabs {
  margin-top: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab {
  align-items: center;
  margin-right: 0;
  cursor: pointer;
  color: #e0e0e0;
  padding: 0 25px;
  text-decoration: none;
  letter-spacing: 0.4px;
  border-radius: 15px;
  height: 46px;
  opacity: 0.85;
  white-space: nowrap;
  transition: 0.2s;
  font-size: 0.8rem;
  font-weight: 700;
}

.tab.success .fa-circle-check {
  display: block;
  color: #0bbf35;
}

.tab.failed .fa-circle-xmark {
  display: block;
  color: #c62828;
}

.tab.active {
  background: rgb(224 224 224 / 0.08);
  font-weight: 700;
}

.panel.active {
  display: flex;
  animation: 0.4s forwards animate-panel;
}

@keyframes animate-panel {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

@media screen and (max-width: 560px) {
  .tasks__right_title {
    font-size: 26px;
  }

  .tasks__right .tasks-content-wrapper h2 {
    font-size: calc(18px * 1.6);
  }

  .tasks__right .tasks-content-wrapper h3 {
    font-size: calc(18px * 1.25);
  }

  .tasks__right .tasks-content-wrapper p {
    font-size: 16px;
  }

  .tasks__right .tasks-content-wrapper h4 {
    font-size: 18px;
  }
}

.question-item pre {
  white-space: pre-wrap;
  word-break: break-word;
}

#video-block {
  height: 405px;
}

#video-block iframe {
  height: 100%;
}

.dl_tab .tab_item.is-active {
  background: #c62828;
  color: #ffffff;
}

.light-theme .sidebar .sidebar-title {
  color: #292929;
}

.light-theme .sidebar .anchors-container a {
  color: #292929 !important;
}

.light-theme .sidebar .anchors-container a:hover {
  color: #3c7ee0 !important;
}

.light-theme code,
.light-theme .hljs {
  background-color: #eee;
}

.light-theme .code-wrapper .run-btn {
  color: #292929;
  border-color: #292929;
}

.header__navs li {
  position: relative;
}

.header__navs li.language {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .switch_lang_wrap .switch-lang {
  display: flex;
  flex-direction: column;
} */
em.current-lang,
em.lang-text {
  padding: 0;
  font-style: normal;
}

.selecting-lang a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher_office__table td {
  position: relative;
  min-width: 40px;
  height: 40px;
  text-align: center;
  vertical-align: middle;
}

.attempts-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: bold;
  color: #000;
  z-index: 1;
}

/* Для зеленых квадратов (решено) */
.teacher_office__table td.ended .attempts-count {
  color: #000;
  /* Черный текст на зеленом фоне */
}

/* Для красных квадратов (не решено) */
.teacher_office__table td.active .attempts-count {
  color: #fff;
  /* Белый текст на красном фоне */
}

/* Для серых квадратов (нет попыток) */
.teacher_office__table td:not(.ended):not(.active) .attempts-count {
  color: #666;
  /* Серый текст на сером фоне */
}

.code-editor {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Базовые цвета статусов */

/* Стили для содержимого ячейки */
.cell-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 40px;
}

.cell-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell-bottom {
  display: flex;
  justify-content: center;
  gap: 3px;
  align-items: center;
  min-height: 15px;
}

.attempts-count {
  font-weight: bold;
  font-size: 14px;
  color: inherit;
}

.mark-icon {
  font-size: 10px;
  line-height: 1;
  opacity: 0.8;
}

/* Анимация при наведении */
td {
  position: relative;
  padding: 5px !important;
  text-align: center;
  vertical-align: middle;
  transition: transform 0.2s ease;
  border-radius: 4px;
}

td:hover {
  transform: scale(1.05);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Подсказки при наведении */
td:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: pre-line;
  z-index: 1000;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 150px;
}

/* Убедимся, что ячейки имеют достаточную высоту */
.teacher_office__table td {
  height: 50px;
  min-width: 40px;
  cursor: pointer;
}

/* Анимации для модальных окон */
.email-modal-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.confirm-modal {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Улучшения для кнопки копирования */
.confirm-modal__btn--yes.copied {
  background: #20c997 !important;
}

/* Responsive improvements */
@media (max-width: 480px) {
  .confirm-modal {
    margin: 20px;
    width: calc(100% - 40px);
  }

  .confirm-modal__buttons {
    flex-direction: column;
  }
}

.result_string {
  display: flex;
  align-items: center;
  font-size: 20px;
  margin: 20px 0;
}

/* ═══════════════════════════════════════════════
   Рекламные блоки РСЯ (R-A-19290199)
   ═══════════════════════════════════════════════ */

/* Переключение desktop/mobile */
@media (max-width: 991px) {
  .ya-ad__desktop { display: none !important; }
}
@media (min-width: 992px) {
  .ya-ad__mobile  { display: none !important; }
}

/* Верхний блок */
.ya-ad--top {
  width: 100%;
  text-align: center;
  margin: 8px 0 16px;
  min-height: 50px;
}

/* Нижний блок */
.ya-ad--bottom {
  width: 100%;
  text-align: center;
  margin: 24px 0 12px;
  min-height: 50px;
  clear: both;
}

/* Боковые sidebar ленты — скрываем на мобиле */
@media (max-width: 991px) {
  .ad-vertical { display: none !important; }
}

/* ── Правый рекламный sidebar ─────────────────────── */
.ad-vertical--right {
  width: 160px;
  min-width: 160px;
  min-height: 300px;
  flex-shrink: 0;
  margin-left: 20px;
}
@media (max-width: 991px) {
  .ad-vertical--right { display: none !important; }
}

/* ── theory-lesson: правый рекламный блок (grid задан в самой странице) ─ */
.tl-article {
  min-width: 0;
}

/* ── Рекламные сайдбары (левый и правый) ─────────────── */
.ad-sidebar-left,
.ad-sidebar-right {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  flex-shrink: 0 !important;
  overflow: hidden;
}
.ad-sidebar-left { margin-right: 0; }
.ad-sidebar-right { margin-left: 0; }

@media (max-width: 1400px) {
  .ad-sidebar-left,
  .ad-sidebar-right { display: none !important; }
}

/* Основной контент получает всё оставшееся место */
.main_container--big.d-flex > article,
.main_container--big.d-flex > .theory__left,
.main_container--big.d-flex > .books-section {
  flex: 1;
  min-width: 0;
}


/* ── Internal Links (prelink) block ────────────────────── */
.prelink-block {
    margin: 40px 0 20px;
    padding: 24px;
    background: var(--card-bg, #1e1e2e);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}
.prelink-block__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--accent, #e92323);
}
.prelink-block__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.prelink-block__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.15s;
    border: 1px solid transparent;
}
.prelink-block__item:hover {
    background: rgba(233,35,35,0.10);
    border-color: rgba(233,35,35,0.3);
    transform: translateX(3px);
}
.prelink-block__img {
    width: 52px;
    height: 38px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.prelink-block__name {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text, #e0e0e0);
}
.light-theme .prelink-block {
    background: #f5f7ff;
    border-color: #dde3ff;
}
.light-theme .prelink-block__item {
    background: #fff;
    color: #222;
}
.light-theme .prelink-block__item:hover {
    background: #fff0f0;
    border-color: #e92323;
}
.light-theme .prelink-block__name { color: #333; }


/* ══════════════════════════════════════════════════════════
   Cookie Banner & Overlay
   ══════════════════════════════════════════════════════════ */

/* ── Нижняя плашка ── */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #1e1e2e;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    padding: 14px 24px;
    box-sizing: border-box;
}

.cb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cb-text {
    flex: 1;
    font-size: 0.88rem;
    color: #ccc;
    line-height: 1.5;
    min-width: 220px;
}

.cb-text a {
    color: #e92323;
    text-decoration: underline;
}

.cb-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cb-accept, .cb-necessary {
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.cb-accept:hover, .cb-necessary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.cb-accept {
    background: #e92323;
    color: #fff;
}

.cb-necessary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #aaa;
}

/* ── Оверлей (при попытке войти без согласия) ── */
#cookie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

#cookie-overlay.active {
    display: flex;
}

.co-box {
    background: #1e1e2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 36px 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.co-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.co-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.co-text {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 24px;
}

.co-text a {
    color: #e92323;
    text-decoration: underline;
}

.co-accept, .co-skip {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
    display: inline-block;
    margin: 4px 6px;
}

.co-accept:hover, .co-skip:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.co-accept {
    background: #e92323;
    color: #fff;
}

.co-skip {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #aaa;
}

/* ── Light theme ── */
body.light-theme #cookie-banner {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

body.light-theme .cb-text {
    color: #333;
}

body.light-theme .cb-text a {
    color: #e92323;
}

body.light-theme .cb-necessary {
    border-color: #ccc;
    color: #555;
}

body.light-theme .co-box {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

body.light-theme .co-title {
    color: #111;
}

body.light-theme .co-text {
    color: #555;
}

body.light-theme .co-skip {
    border-color: #ccc;
    color: #555;
}

/* ── Green theme ── */
body.green-theme #cookie-banner {
    background: #15191f;
    border-top: 1px solid rgba(11,191,53,0.2);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

body.green-theme .cb-text {
    color: #ccc;
}

body.green-theme .cb-text a {
    color: #0bbf35;
}

body.green-theme .cb-accept {
    background: #0bbf35;
    color: #fff;
}

body.green-theme .cb-necessary {
    border-color: rgba(11,191,53,0.35);
    color: #aaa;
}

body.green-theme .co-box {
    background: #1b1e28;
    border-color: rgba(11,191,53,0.2);
}

body.green-theme .co-text a {
    color: #0bbf35;
}

body.green-theme .co-accept {
    background: #0bbf35;
    color: #fff;
}

body.green-theme .co-skip {
    border-color: rgba(11,191,53,0.35);
    color: #aaa;
}

/* ── Адаптив (мобайл) ── */
@media (max-width: 600px) {
    #cookie-banner {
        padding: 12px 16px;
    }

    .cb-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cb-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cb-accept, .cb-necessary {
        flex: 1;
        text-align: center;
    }

    .co-box {
        padding: 28px 24px;
    }
}
