/* Cross-page responsive fixes loaded after style.min */

aside .leftnav {
  background: transparent !important;
  background-color: transparent !important;
  padding-top: 0 !important;
}

/* Restore breadcrumbs visibility (was hidden by legacy article header rules). */
.article__header .breadcrumbs,
article .breadcrumbs,
.bx-breadcrumb {
  display: flex !important;
}

@media (max-width: 699px) {
  .blog .breadcrumbs {
    display: flex !important;
    flex-wrap: wrap;
  }
}

/* Footer contacts: use SVG icons + spacing */
footer .footer-menu .footer-info .container .footer-info__contacts {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  padding: 0 0 0 20px;
}

footer .footer-menu .footer-info .container a.footer-contact.email,
footer .footer-menu .footer-info .container a.footer-contact.phone {
  background: none !important;
  padding-left: 0 !important;
}

footer .footer-menu .footer-info .container a.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--c-brand-700);
}

footer .footer-menu .footer-info .container .footer-contact__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  footer .footer-menu .footer-info .container .footer-info__contacts {
    justify-content: flex-start;
    gap: 16px;
    padding-left: 15px;
  }

  footer .footer-menu .footer-info .container a.footer-contact {
    font-size: 16px;
  }
}

/* Leftnav: keep only one animated left line (pseudo-element), disable legacy border-left. */
aside .leftnav ul li a,
aside .leftnav ul li a:hover,
aside .leftnav ul li a:focus,
aside .leftnav ul li a:focus-visible,
aside .leftnav ul li a[aria-current="page"],
aside .leftnav ul li a.is-active {
  border-left: 0 !important;
  border-left-color: transparent !important;
}

.select-course.select-course--request-only .price-course__request-copy .subscribe_button--request-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  display: inline-flex;
  align-self: flex-start;
}

@media (max-width: 767px) {
  aside .leftnav > p {
    cursor: default !important;
  }

  aside .leftnav > p::after {
    content: none !important;
    display: none !important;
  }

  aside .leftnav .leftnav__list {
    padding: 0 !important;
  }
}

@media (max-width: 767px) {
  article.layout-full > .row,
  article.layout-full .row.section.content.specialist-page,
  article.layout-full .row.section.content.article-full {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  article.layout-full > .row > [class*="col-"],
  article.layout-full .row.section.content.specialist-page > [class*="col-"],
  article.layout-full .row.section.content.article-full > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .row.section.content.article-full h1[itemprop="name"] {
    padding-left: 15px !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  /* /uslugi/ heading/content should not be clipped by nested Bootstrap row offsets */
  .services-page-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .services-page-content > .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .services-page-content .row.section.courses {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .services-page-content .row.section.courses > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .services-page-content .chess.row.col-md-12 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* /spetsialisty/ cards must stack in one column on mobile */
  .team-list__row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .team-list__data {
    min-width: 0;
  }

  .team-list__avatar-img,
  body .box .profile .avatar img {
    width: 120px;
    height: 120px;
  }

  /* Course detail reviews row should stay inside viewport */
  .row.section.content.article-full.reviews-specialist {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .row.section.content.article-full.reviews-specialist > .col-md-12 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Inner layout pages use plain bootstrap article cols, not article.layout-full. */
  .container.mt > article[class*="col-"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .container.mt > article[class*="col-"] > .row,
  .container.mt > article[class*="col-"] .row.section.content.specialist-page,
  .container.mt > article[class*="col-"] .row.section.content.article-full {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .container.mt > article[class*="col-"] > .row > [class*="col-"],
  .container.mt > article[class*="col-"] .row.section.content.specialist-page > [class*="col-"],
  .container.mt > article[class*="col-"] .row.section.content.article-full > [class*="col-"] {
    min-width: 0;
    box-sizing: border-box;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .container.mt > article[class*="col-"] .row.section.content.specialist-page > .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .select-course.select-course--request-only .price-course__request-copy .subscribe_button--request-card {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex;
    align-self: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* /uslugi/: legacy cards -> align with homepage grid__cards */
.services-page-content .row.section.courses .chess.row.col-md-12::before,
.services-page-content .row.section.courses .chess.row.col-md-12::after {
  content: none !important;
  display: none !important;
}

.services-page-content .row.section.courses .chess.row.col-md-12 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin: 0 !important;
  padding: 0 15px !important;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block {
  position: relative;
  float: none;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent !important;
  border: var(--b-1);
  border-radius: var(--r-0);
  box-shadow: var(--shadow-none);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block:hover,
.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block:focus-within {
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-hover);
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .col-md-12,
.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .col-sm-12,
.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .col-xs-12 {
  float: none;
  width: 100%;
  padding: 0;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .col-md-12:first-child {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-soft);
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .col-md-12:first-child > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block .hover-img {
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  background: rgba(var(--c-brand-600-rgb), 0.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
  transition: opacity .18s ease, visibility .18s ease;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block .hover-img > img {
  display: none !important;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block .hover-img > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(var(--c-white-rgb), 0.72);
  background: rgba(var(--c-brand-600-rgb), 0.68);
  color: var(--c-white) !important;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
  text-transform: capitalize;
  text-decoration: none;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block:hover .hover-img,
.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block:focus-within .hover-img {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block:hover .hover-img > a,
.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block:focus-within .hover-img > a {
  background: var(--c-brand-600);
  border-color: var(--c-white);
  color: var(--c-white) !important;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  min-width: 0;
  flex: 1;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .text .title {
  margin: 0;
  color: var(--c-brand-700) !important;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .text p {
  margin: 0;
  color: var(--c-text-700) !important;
  line-height: 1.5;
  font-size: 14px;
}

.services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block > .text p:not(.title) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

@media (max-width: 1199px) {
  .services-page-content .row.section.courses .chess.row.col-md-12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .services-page-content .row.section.courses .chess.row.col-md-12 {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block .hover-img {
    padding: 10px;
  }

  .services-page-content .row.section.courses .chess.row.col-md-12 > .course-item-block .hover-img > a {
    min-height: 32px;
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Vacancies: modal form */

#vacancy.sb-vacancy-modal .modal-dialog {
  max-width: 620px;
  width: calc(100% - 24px);
  margin: 28px auto;
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
}

#vacancy.sb-vacancy-modal .modal-content {
  display: flex;
  flex-direction: column;
  border: 1px solid #cfded9;
  box-shadow: 0 18px 44px rgba(7, 94, 78, 0.16);
  max-height: inherit;
  overflow: hidden;
}

#vacancy.sb-vacancy-modal .modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 16px 20px;
  border-bottom: 1px solid #d7e4df;
}

#vacancy.sb-vacancy-modal .modal-body {
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#form_vacancy .form {
  display: grid;
  gap: 12px;
}

#form_vacancy .form-modal__field {
  display: grid;
  gap: 6px;
}

#form_vacancy .form-modal__label {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  color: #134b41;
  text-transform: uppercase;
  letter-spacing: .02em;
}

#form_vacancy .form-modal__field input {
  width: 100%;
  height: 44px;
  border: 1px solid #8cb8ae;
  padding: 0 12px;
  background: #fff;
  color: #1f3f39;
}

#form_vacancy .form-modal__field input.error,
#form_vacancy .form-modal__field input.is-not-valid {
  border-color: #ca6170;
}

#form_vacancy .form-modal__file {
  border: 1px dashed #8cb8ae;
  background: #f8fdfb;
}

#form_vacancy .form-modal__file.is-not-valid {
  border-color: #ca6170;
  background: #fff5f7;
}

#form_vacancy .form-modal__hint {
  margin: -4px 0 0;
  color: #33524b;
  font-size: 12px;
  line-height: 1.4;
}

#form_vacancy .form-modal__error,
#form_vacancy .form-consents__error {
  margin: 0;
  color: #b34153;
  font-size: 13px;
  line-height: 1.45;
}

#form_vacancy .form-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #075e4e;
  background: #075e4e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

#form_vacancy .form-modal__submit:hover,
#form_vacancy .form-modal__submit:focus-visible {
  border-color: #064a3d;
  background: #064a3d;
}

#form_vacancy .form-modal__submit[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

#form_vacancy .form-modal__submit.is-loading {
  opacity: 0.9;
}

/* Article detail: comments block alignment and form readability */
.main.article-page .article__comments .khayr_main_comment {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 16px;
}

.main.article-page .article__comments .article-comment__header-title {
  margin: 0;
  color: #175449;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.main.article-page .article__comments .khayr_main_comment .main_form {
  margin: 0;
}

.main.article-page .article__comments .khayr_main_comment .main_form > form,
.main.article-page .article__comments .comment__block-addcomment form {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  background: transparent;
}

.main.article-page .article__comments .article-comment__block-addcomment {
  display: grid;
  gap: 10px;
}

.main.article-page .article__comments .block-addcomment__field {
  min-height: 150px;
  border: 1px solid #9fc0b8;
  background: #fff;
  padding: 12px;
  width: 100%;
  color: #1f4640;
  font-size: 15px;
  line-height: 1.4;
  resize: vertical;
}

.main.article-page .article__comments .block-addcomment__field::placeholder {
  color: #6b8a83;
}

.main.article-page .article__comments .article-comment__fields {
  display: grid;
  gap: 8px;
}

.main.article-page .article__comments .article-comment__fields .form__label {
  margin: 0;
  color: #154f45;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main.article-page .article__comments .article-comment__input,
.main.article-page .article__comments input[name="NONUSER"],
.main.article-page .article__comments input[name="EMAIL"] {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #9fc0b8;
  background: #fff !important;
  color: #1f4640 !important;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.35;
}

.main.article-page .article__comments .article-comment__input::placeholder,
.main.article-page .article__comments input[name="NONUSER"]::placeholder,
.main.article-page .article__comments input[name="EMAIL"]::placeholder {
  color: #6b8a83;
}

.main.article-page .article__comments .article-comment__input:focus,
.main.article-page .article__comments .block-addcomment__field:focus {
  border-color: #2c7a6b;
  box-shadow: inset 0 0 0 1px #2c7a6b;
  outline: 0;
}

.main.article-page .article__comments .block-addcomment__btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.main.article-page .article__comments .block-addcomment__btn {
  min-height: 44px;
  min-width: 180px;
  margin-left: auto;
}

.main.article-page .article__comments .comments {
  margin: 0;
  padding: 0;
  border-top: 0;
  display: grid;
  gap: 12px;
}

.main.article-page .article__comments .comments .stock {
  border: 1px solid #d8e6e1;
  background: #fff;
  padding: 14px;
}

.main.article-page .article__comments .comments .stock .userInfo {
  float: none;
  background: none;
  height: auto;
  margin: 0 0 8px;
  color: #33524b;
  font: 600 14px/1.35 "Montserrat", sans-serif;
}

.main.article-page .article__comments .comments .stock .userInfo span {
  background: transparent;
  padding: 0;
}

.main.article-page .article__comments .comments .stock .userText {
  margin: 0;
  padding: 0;
}

.main.article-page .article__comments .comments .stock .stock {
  margin-left: 16px;
}

.main.article-page .article__comments .comments .stock .stock .stock {
  margin-left: 22px;
}

@media (max-width: 767px) {
  .main.article-page .article__comments .block-addcomment__btn {
    width: 100%;
    min-width: 0;
  }

  .main.article-page .article__comments .comments .stock .stock {
    margin-left: 10px;
  }

  .main.article-page .article__comments .comments .stock .stock .stock {
    margin-left: 14px;
  }
}

/* Schedule modal: modern layout, stable scrolling, responsive controls */
body.modal-open .sb-schedule-modal {
  padding-right: 0 !important;
}

.sb-schedule-modal {
  overscroll-behavior: contain;
}

.sb-schedule-modal .modal-dialog.sb-schedule-modal__dialog {
  max-width: 760px;
  width: calc(100% - 20px);
  margin: 12px auto;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: transparent !important;
  color: #163f38;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
}

.sb-schedule-modal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: inherit;
  border: 0 !important;
  border-radius: 0;
  background: #fff;
  box-shadow: none !important;
  overflow: hidden;
}

.sb-schedule-modal .close {
  position: absolute;
  right: 14px;
  top: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid #b9d3cb;
  background: #fff;
  color: #0d5f50;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
  opacity: 1;
  text-shadow: none;
}

.sb-schedule-modal .close:hover,
.sb-schedule-modal .close:focus-visible {
  background: #f1faf7;
  border-color: #7eaea2;
}

.sb-schedule-modal .modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #d3e4df;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(3px);
  padding: 18px 56px 14px 22px;
}

.sb-schedule-modal .modal-header .modal-title {
  margin: 0;
  color: #0f6a59;
  font-size: 25px;
  line-height: 1.12;
  font-weight: 700;
}

.sb-schedule-modal .modal-header .modal-text {
  margin: 9px 0 0;
  color: #2f5a52;
  font-size: 15px;
  line-height: 1.45;
}

.sb-schedule-modal .modal-form {
  display: grid;
  gap: 14px;
  padding: 16px 22px 22px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.sb-schedule-modal .modal-form::-webkit-scrollbar {
  width: 8px;
}

.sb-schedule-modal .modal-form::-webkit-scrollbar-track {
  background: #eef6f3;
}

.sb-schedule-modal .modal-form::-webkit-scrollbar-thumb {
  background: #7eaea2;
}

.sb-schedule-modal .form__box-field {
  display: grid;
  gap: 7px;
}

.sb-schedule-modal .form__label {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  color: #144f45;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.sb-schedule-modal .form__hint {
  margin: -2px 0 0;
  color: #3b5a54;
  font-size: 12px;
  line-height: 1.45;
}

.sb-schedule-modal .form__box-field input,
.sb-schedule-modal .form__box-field select,
.sb-schedule-modal .nice-select,
.sb-schedule-modal .choices__inner {
  width: 100%;
  min-height: 46px;
  border: 1px solid #8eb7ad;
  border-radius: 0;
  padding: 10px 12px;
  background: #fff;
  color: #1f4640;
  font-size: 15px;
  line-height: 1.35;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.sb-schedule-modal .form__box-field input::placeholder {
  color: #6a8781;
}

.sb-schedule-modal .form__box-field input:hover,
.sb-schedule-modal .nice-select:hover,
.sb-schedule-modal .choices__inner:hover {
  border-color: #5f998d;
}

.sb-schedule-modal .form__box-field input:focus,
.sb-schedule-modal .form__box-field select:focus,
.sb-schedule-modal .nice-select:focus,
.sb-schedule-modal .choices.is-focused .choices__inner,
.sb-schedule-modal .choices.is-open .choices__inner {
  border-color: #2c7a6b;
  box-shadow: 0 0 0 3px rgba(44, 122, 107, 0.18);
  outline: none;
  background: #fff;
}

.sb-schedule-modal .form__box-field input.is-not-valid,
.sb-schedule-modal .choices.is-invalid .choices__inner {
  border-color: #ca6170;
}

.sb-schedule-modal .nice-select .nice-select-dropdown,
.sb-schedule-modal .choices__list--dropdown,
.sb-schedule-modal .choices__list[aria-expanded] {
  border: 1px solid #a4c6bd;
  border-radius: 0;
  box-shadow: 0 14px 32px rgba(5, 64, 53, 0.16);
  margin-top: 6px;
  z-index: 9;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}

.sb-schedule-modal .choices[data-type*=select-one] .choices__list--dropdown,
.sb-schedule-modal .choices[data-type*=select-one] .choices__list[aria-expanded],
.sb-schedule-modal .nice-select.open .nice-select-dropdown {
  top: calc(100% + 6px) !important;
  bottom: auto !important;
  transform: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.sb-schedule-modal .choices__list--dropdown .choices__item,
.sb-schedule-modal .choices__list[aria-expanded] .choices__item,
.sb-schedule-modal .nice-select .option {
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.4;
}

.sb-schedule-modal .choices__list--dropdown .choices__item--selectable.is-highlighted,
.sb-schedule-modal .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
.sb-schedule-modal .nice-select .option:hover,
.sb-schedule-modal .nice-select .option.focus {
  background: #edf7f4;
  color: #115d4e;
}

.sb-schedule-modal .choices[data-type*=select-multiple] .choices__inner {
  min-height: 46px;
  padding: 6px 34px 6px 10px;
}

.sb-schedule-modal .choices[data-type*=select-multiple] .choices__input {
  margin-bottom: 0;
}

.sb-schedule-modal .choices[data-type*=select-multiple] .choices__button {
  border-left: 1px solid rgba(17, 93, 78, 0.3);
}

.sb-schedule-modal .form__radio-btns {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.sb-schedule-modal .form__radio {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 44px;
  border: 1px solid #c5ddd6;
  background: #f8fcfb;
  padding: 10px 12px;
}

.sb-schedule-modal .form__radio .radio__custom-radio {
  width: 18px;
  height: 18px;
  border: 1px solid #3f8a7d;
  border-radius: 50%;
  position: relative;
  margin-top: 1px;
}

.sb-schedule-modal .form__radio .radio__real-radio:checked + .radio__custom-radio::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f6a59;
}

.sb-schedule-modal .form__radio .radio__text {
  color: #1f4942;
  font-size: 14px;
  line-height: 1.38;
}

.sb-schedule-modal .form__calendar {
  border: 1px solid #d2e3de;
  background: #f7fcfa;
  min-height: 0;
  padding: 8px;
}

.sb-schedule-modal .form__calendar-box {
  min-height: 0;
}

.sb-schedule-modal #calendar {
  min-height: 315px;
}

.sb-schedule-modal .form__error,
.sb-schedule-modal .form-consents__error {
  margin: 0;
  color: #b34153;
  font-size: 13px;
  line-height: 1.45;
}

.sb-schedule-modal .form-consents {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.sb-schedule-modal .form__checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.sb-schedule-modal .form__checkbox .checkbox__text {
  font-size: 13px;
  line-height: 1.45;
  color: #31534d;
}

.sb-schedule-modal .form__button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #075e4e;
  background: #075e4e;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.sb-schedule-modal .form__button:hover,
.sb-schedule-modal .form__button:focus-visible {
  background: #064a3d;
  border-color: #064a3d;
}

.sb-schedule-modal .form__button:disabled,
.sb-schedule-modal .form__button.is-loading {
  opacity: 0.76;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .sb-schedule-modal .modal-dialog.sb-schedule-modal__dialog {
    width: calc(100% - 14px);
    margin: 6px auto;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
  }

  .sb-schedule-modal .modal-header {
    padding: 16px 52px 12px 16px;
  }

  .sb-schedule-modal .modal-form {
    padding: 12px 14px 14px;
    gap: 12px;
  }

  .sb-schedule-modal #calendar {
    min-height: 270px;
  }
}

@media (max-width: 767px) {
  #vacancy.sb-vacancy-modal .modal-dialog {
    width: calc(100% - 14px);
    margin: 8px auto;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
  }

  #vacancy.sb-vacancy-modal .modal-body {
    padding: 14px;
  }

  .sb-schedule-modal .modal-header .modal-title {
    font-size: 22px;
  }

  .sb-schedule-modal .modal-header .modal-text {
    font-size: 14px;
  }

  .sb-schedule-modal .form__box-field input,
  .sb-schedule-modal .form__box-field select,
  .sb-schedule-modal .nice-select,
  .sb-schedule-modal .choices__inner {
    min-height: 44px;
    font-size: 14px;
  }

  .sb-schedule-modal .form__button {
    min-height: 46px;
    font-size: 16px;
  }

  .main.article-page .article__comments .block-addcomment__btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .sb-schedule-modal .close {
    right: 10px;
    top: 8px;
    width: 32px;
    height: 32px;
    line-height: 28px;
    font-size: 24px;
  }

  .sb-schedule-modal .form__radio {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
  }

  .sb-schedule-modal .form__radio .radio__custom-radio {
    width: 16px;
    height: 16px;
  }

  .sb-schedule-modal #calendar {
    min-height: 238px;
  }
}

/* Hard reset for form-course modal shell (covers legacy and new markup variants) */
#form-course.modal {
  overflow-y: auto !important;
  padding-right: 0 !important;
}

#form-course.modal .modal-dialog.sb-schedule-modal__dialog,
#form-course.modal .modal-dialog.modal-dialog__filter {
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  width: calc(100% - 16px) !important;
  max-width: 760px !important;
  margin: 8px auto !important;
  padding: 0 !important;
  height: calc(100vh - 16px) !important;
  height: calc(100dvh - 16px) !important;
  max-height: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: transparent !important;
}

#form-course.modal .modal-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: #fff !important;
  background-clip: border-box !important;
}

#form-course.modal .modal-content,
#form-course.modal .modal-header,
#form-course.modal .modal-body {
  border-radius: 0 !important;
}

#form-course.modal .modal-form {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

@media (min-width: 768px) {
  #form-course.modal .modal-dialog.sb-schedule-modal__dialog,
  #form-course.modal .modal-dialog.modal-dialog__filter {
    width: calc(100% - 24px) !important;
    margin: 12px auto !important;
    height: calc(100vh - 24px) !important;
    height: calc(100dvh - 24px) !important;
  }
}

/* Schedule page: enlarge tiny right-side checks and filter checkboxes */
.page-filter .aside-filter__checkbox {
  align-items: flex-start;
  gap: 8px;
}

.page-filter .aside-filter__checkbox .checkbox__custom-input {
  width: 18px !important;
  height: 18px !important;
  margin-right: 0 !important;
  border-width: 1px !important;
}

.page-filter .aside-filter__checkbox .checkbox__custom-input::before {
  width: 8px !important;
  height: 8px !important;
}

.page-filter .aside-filter__checkbox .checkbox__text {
  font-size: 15px;
  line-height: 1.35;
}

.page-filter .filter-article__card .card__info-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-filter .filter-article__card .card__info-box svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
}

.page-filter .filter-article__card .card__info-box span {
  font-size: 14px;
  line-height: 1.35;
}

/* Video: keep full frame, without crop */
.review_video .video-js .vjs-tech,
.review_video .video-js video,
.review_video video.vjs-tech,
.video-reviews__media .video-js .vjs-tech,
.video-reviews__media .video-js video,
.main-video-reviews__media .video-js .vjs-tech,
.main-video-reviews__media .video-js video,
[id^=main-video-reviews-] .main-video-reviews__media .video-js .vjs-tech,
[id^=main-video-reviews-] .main-video-reviews__media .video-js video,
.sb-detail__body video {
  object-fit: contain !important;
  background: #000 !important;
}

.review_video .video-js .vjs-poster,
.video-reviews__media .video-js .vjs-poster,
.main-video-reviews__media .video-js .vjs-poster,
[id^=main-video-reviews-] .main-video-reviews__media .video-js .vjs-poster {
  background-size: contain !important;
}

/* ---- Страница центра: расписание курсов (desktop + mobile) ---- */
.schedules.section.content .schedule_programs_starts_table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  font-size: 15px;
  color: #1f4640;
}
.schedules.section.content .schedule_programs_starts_table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(7, 94, 78, 0.12);
}
.schedules.section.content .schedule_programs_starts_table tr:last-child td {
  border-bottom: 0;
}

/* Таблица расписания: шире блок, min-width таблицы, перенос текста, рост строки */
.page-centers .box.about {
  width: 100%;
  max-width: 100%;
}
.page-centers .box.about .row.section.content.schedules {
  max-width: 100%;
}
.schedules.section.content {
  max-width: 100%;
}
.schedules.section.content .col-md-12 {
  max-width: 100%;
  min-width: 0;
}
.page-centers .schedules.section.content .all-programs.schedule_programs_center,
.page-centers .schedules.section.content .all-programs.schedule_programs_center > * {
  width: 100%;
  max-width: 100%;
}
.schedules.section.content .all-programs.schedule_programs_center,
.schedules.section.content .schedule_programs_center {
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.schedules.section.content .schedule-table {
  table-layout: fixed;
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
  border: 1px solid rgba(7, 94, 78, 0.2);
  background: #fff;
  font-size: 14px;
}
.schedules.section.content .schedule-table thead th {
  width: 12.5%;
  box-sizing: border-box;
  background: #075e4e;
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 14px 10px;
  border: 1px solid rgba(7, 94, 78, 0.25);
  vertical-align: middle;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.schedules.section.content .schedule-table tbody th,
.schedules.section.content .schedule-table tbody td {
  width: 12.5%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: middle;
}
.schedules.section.content .schedule-table tbody th {
  background: rgba(7, 94, 78, 0.06);
  color: #075e4e;
  font-weight: 600;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid rgba(7, 94, 78, 0.15);
}
.schedules.section.content .schedule-table tbody td {
  padding: 12px 10px;
  border: 1px solid rgba(7, 94, 78, 0.15);
  text-align: center;
}
.schedules.section.content .schedule-table tbody td .schedule_program {
  width: 100%;
  min-height: 2.5em;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.schedules.section.content .schedule-table tbody td .schedule_program a {
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.schedules.section.content .schedule-table tbody tr:hover th,
.schedules.section.content .schedule-table tbody tr:hover td {
  background: rgba(7, 94, 78, 0.1);
}
.schedules.section.content .schedule-table .schedule_program {
  margin: 0;
}
.schedules.section.content .schedule-table .schedule_program a {
  color: #075e4e;
  text-decoration: none;
  font-weight: 600;
}
.schedules.section.content .schedule-table .schedule_program a:hover {
  text-decoration: underline;
}

/* Мобильный блок расписания (schedule.short center) */
.schedules.section.content .all-programs-mobile {
  padding: 0;
  margin-top: 1.5rem;
  float: none;
  width: 100%;
}
.schedules.section.content .all-programs-mobile > div {
  width: 100%;
  float: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(7, 94, 78, 0.12);
  margin-bottom: 0;
}
.schedules.section.content .all-programs-mobile > div:last-child {
  border-bottom: 0;
}
.schedules.section.content .all-programs-mobile h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
.schedules.section.content .all-programs-mobile h4 span {
  background: transparent;
  display: block;
}
.schedules.section.content .all-programs-mobile h4 a {
  color: #075e4e;
  font-weight: 700;
  text-decoration: none;
}
.schedules.section.content .all-programs-mobile h4 a:hover {
  text-decoration: underline;
}
.schedules.section.content .all-programs-mobile p {
  margin: 0 0 0.35rem;
  font-size: 14px;
  line-height: 1.45;
  color: #2f5a52;
}
.schedules.section.content .all-programs-mobile [style*="float:left"] {
  float: none !important;
  display: block;
  margin-bottom: 0.5rem;
}
.schedules.section.content .all-programs-mobile [style*="font-weight:bold"] {
  font-weight: 700;
  color: #075e4e;
}

.schedules.section.content .schedule-mobile-card {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(7, 94, 78, 0.12);
}
.schedules.section.content .schedule-mobile-card:last-child {
  border-bottom: 0;
}
.schedules.section.content .schedule-mobile-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
.schedules.section.content .schedule-mobile-card__title a {
  color: #075e4e;
  text-decoration: none;
}
.schedules.section.content .schedule-mobile-card__title a:hover {
  text-decoration: underline;
}
.schedules.section.content .schedule-mobile-card__start {
  margin: 0 0 0.5rem;
  font-size: 14px;
  color: #075e4e;
  font-weight: 600;
}
.schedules.section.content .schedule-mobile-card__label {
  margin: 0 0 0.35rem;
  font-size: 14px;
  font-weight: 700;
  color: #075e4e;
}
.schedules.section.content .schedule-mobile-card__days {
  margin: 0;
}
.schedules.section.content .schedule-mobile-card__row {
  margin: 0 0 0.25rem;
  font-size: 14px;
  line-height: 1.45;
  color: #2f5a52;
}
.schedules.section.content .schedule-mobile-card__day {
  font-weight: 700;
  color: #075e4e;
  min-width: 2.2em;
  display: inline-block;
}

@media (max-width: 767px) {
  .schedules.section.content .schedule-table {
    min-width: 400px;
    font-size: 13px;
  }
  .schedules.section.content .schedule-table thead th,
  .schedules.section.content .schedule-table tbody th,
  .schedules.section.content .schedule-table tbody td {
    padding: 8px 6px;
  }
  .schedules.section.content .all-programs-mobile {
    margin-top: 1rem;
  }
}

@media (min-width: 768px) {
  .schedules.section.content .all-programs-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .schedules.section.content .schedule_programs_center .schedule-table {
    display: none;
  }
  .schedules.section.content .all-programs-mobile {
    display: block;
  }
}

/* Inner template on mobile: real markup renders aside/article as direct .container.mt children. */
@media (max-width: 991px) {
  .container.mt {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .container.mt > article[class*="col-"],
  .container.mt > aside[class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .container.mt > article[class*="col-"] {
    order: 1;
    padding-top: 0 !important;
  }

  .container.mt > aside[class*="col-"] {
    order: 2;
    margin-top: 0 !important;
  }
}

/* Course/news list pages: keep the heading and cards inside the mobile content gutter. */
@media (max-width: 767px) {
  .container.mt > article > .row:first-child,
  .container.mt > article > .row:first-child > [class*="col-"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .container.mt > article .breadcrumbs {
    margin-top: 0 !important;
  }

  .container.mt > article .row.section.content.news-list,
  .container.mt > article .row.section.content.news-list > .col-md-12,
  .container.mt > article .row.section.content.news-list .row.section.courses {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .container.mt > article .row.section.content.news-list > .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .container.mt > article .row.section.content.news-list .row.section.courses > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .container.mt > article .row.section.content.news-list .row.section.courses > .col-md-12 > h3 {
    margin-top: 0;
  }

  .container.mt > article .row.section.content.news-list .chess.row.col-md-12 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    gap: 16px !important;
  }

  .container.mt > article .row.section.content.news-list .chess.row.col-md-12 > .course-item-block {
    min-width: 0;
    cursor: pointer;
  }

  .container.mt > article .row.section.content.news-list .chess.row.col-md-12 > .course-item-block .hover-img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
