body {
  background-color: #f8f8f8;
  font-family: "HelveticaNeueCyr", Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

body.stop-scrolling {
  overflow: hidden;
}
.col-relative {
  position: relative;
  overflow: hidden;
}
.nav.sidebar-links li.marked a {
  color: #009e22;
}

.mt-5 {
  margin-top: 5px;
}
.toast-message {
  font-size: 15px;
}

.ya-share-wrapper {
  min-height: 25px;
  text-align: right;
  width: 100%;
  overflow: hidden;
}

.ya-share-wrapper.loaded p {
  opacity: 1;
}

.ya-share-wrapper p {
  margin: 2px 10px 0 0;
  opacity: 0;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.ya-share-wrapper .ya-share2 {
  float: right;
}
.pdf-link-img {
  width: 3em;
  height: auto;
  display: inline-block;
  margin-right: 0.5em;
}
.innov-img-link {
  display: block;
  text-align: center;
  margin: 1em 0 2em;
}
.innov-img-link img {
  max-width: 80%;
  width: auto;
  max-height: 600px;
}
.row.flex-row .prints-image-col {
  float: none;
  margin-right: auto;
  margin-left: auto;
  display: block;
  max-width: 380px;
}

.flex-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: row;
}

.flex-vertical-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.folders-row {
  font-size: 15px;
}
.folders-row h3 {
  margin-top: 10px;
  font-size: 20px;
}

.prints-col-inner {
  box-shadow: 0 0 5px #dedede;
  padding: 0 10px 10px;
  padding-bottom: 50px;
  height: 100%;
  position: relative;
  font-size: 15px;
}
.prints-col-inner .link-right {
  float: right;
  color: #0cbd00;
}
.prints-links {
  padding-top: 10px;
  border-top: 1px solid #f1f1f1;
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
  font-size: 13px;
}
.prints-col-inner p {
  margin-bottom: 5px;
  min-height: 20px;
}
.prints-col-inner strong {
  word-wrap: break-word;
}
.prints-image-col {
  padding-bottom: 10px;
}
.prints-image-col img {
  max-width: 100%;
  max-height: 370px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}
.prints-image-col .flex-vertical-center {
  height: 370px;
  margin-left: -10px;
  margin-right: -10px;
}

.print-caption,
.introtext {
  font-size: 19px;
  color: #444;
  font-style: italic;
  font-weight: 400;
}

.section-item .subsection-item {
  list-style: none;
  padding-left: 0;
}

.section-item .subsection-item li {
  position: relative;
  line-height: 2.5rem;
  padding-left: 30px;
  margin: 5px -10px;
}

.section-item .subsection-item li:before {
  content: "";
  width: 4px;
  height: 100%;
  background: rgba(4, 95, 174, 0.5);
  display: inline-block;
  position: absolute;
  left: 35px;
}

.section-item .subsection-item li label {
  vertical-align: middle;
  display: inline;
}

.section-item .subsection-item li label span {
  font-size: 13px;
  font-weight: normal;
  color: #adadad;
  line-height: 2.5rem;
  vertical-align: middle;
  margin-bottom: 3px;
}

.section-item .subsection-item li label input {
  margin-top: 0;
  display: inline;
  vertical-align: middle;
}

.section-item .subsection-item h4 {
  margin: 0;
  line-height: 3rem;
}

.top-controls {
  margin-bottom: 15px;
  padding-bottom: 10px;
  position: relative;

  /*border-bottom: 1px solid #eee;*/
}
.top-controls:after {
  content: "";
  display: block;
  width: calc(100% - 30px);
  height: 1px;
  background: #eee;
  position: absolute;
  bottom: 0;
}
.subscribe-wrapper {
  padding-left: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.border-bottom {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.sidebar {
  /*width:100%;
  position: relative;
  transition: margin 0.1s ease; webkit-transition: margin 0.35s ease;
  -o-transition: margin 0.35s ease;
  transition: margin 0.35s ease;*/
  margin-top: 0;
}
.collapse {
  transition: all 0.5s ease-in-out;
}
.navbar > .container-fluid .navbar-brand {
  margin-left: 10px;
}
.first-page-brand {
  padding-left: 10px;
}
.navbar a,
.sidebar-nav ul li {
  font-size: 15px;
}

.main-footer {
  background: #343435;
  padding: 20px 0;
}
.main-footer span {
  color: #999;
  font-size: 90%;
}
.footer-copyright {
  display: block;
}
.main-footer .social-links {
  display: inline-block;
  padding: 0;
}
.main-footer .contacts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-footer .contacts ul li {
  display: inline-block;
}
.main-footer .contacts i {
  color: #999;
  font-size: 90%;
  margin-right: 3px;
}
.main-footer .contacts a {
  color: #999;
  font-size: 90%;
  margin-right: 8px;
}

.inner-content .table tr th,
.inner-content .table tr td,
.text-content .table-responsive tr th,
.text-content .table-responsive tr td {
  vertical-align: middle;
  padding: 5px;
  word-wrap: break-word;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: #f8e272;
  border-radius: 5px;
  border: 2px solid #f8e272;
  text-align: center;
  opacity: 0.5;
  padding-top: 8px;
  display: none;
}
.back-to-top:hover,
.back-to-top:focus {
  color: #f8e272;
  opacity: 0.9;
}

.back{
    margin-top:18px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.back-btn{
    display:inline-block;
    padding:8px 13px;
    color:#337ab7;
    background:#fff;
    border:1px solid #c9d8e6;
    border-radius:5px;
    font-size:13px;
    line-height:1.3;
    text-decoration:none;
}

.back-btn:hover,
.back-btn:focus{
    color:#23527c;
    background:#f5f9fc;
    text-decoration:none;
}


.text-content h2,
.text-content h3 {
  font-weight: bold;
  display: block;
}
.text-content {
  line-height: 1.6;
}
.text-content img {
  max-width: 100%;
  height: auto;
}
.fixed {
  position: fixed;
}
.nav-top-links {
  background: #fff;
  position: relative;
  border-bottom: 1px solid #e7e7e7;
}
.social-links {
  list-style: none;
  margin: 0;
  padding: 5px 0;
}
.social-links li {
  display: inline-block;
  margin-left: 10px;
}
.social-links li a{
    display: block;
}
.social-links li i{
    display: inline-block;
    vertical-align:middle;
}
.shop-link{
    display: inline-block;
    margin-left: .8rem;
}
.social-links .fab {
  font-size: 1.8rem;
}
.social-links .fa-vk {
  color: #4a76a8;
}
.social-links .fa-twitter {
  color: #07aff0;
}
.social-links .fa-facebook-square {
  color: #4467ba;
}
.social-links .fa-instagram {
  color: #fa952b;
}
.social-links .fa-instagram.prints-link {
  color: #d82a7e;
}
.breadcrumb-wrapper {
  text-align: center;
}
.breadcrumb-wrapper ul li {
  font-size: 90%;
}
.breadcrumb.breadcrumb-center {
  padding: 5px 15px;
  /*background: #e9ecef;*/
}
/* Основные заголовки страниц */
#page-wrapper h1 {
  font-size: 32px;
  line-height: 1.22;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #555;
}

#page-wrapper h1.small-font {
  font-size: 26px;
}

@media (max-width: 767px) {
  #page-wrapper h1 {
    font-size: 27px;
    line-height: 1.22;
  }
}
#page-wrapper .content-col {
  border-left: 1px solid #eee;
}
#wrapper {
  width: 100%;
  max-width: 1900px;
  margin: auto;
  overflow-x: hidden;
  padding-bottom: 0;
  position: relative;
}
.list-group {
  padding-left: 0;
  margin-bottom: 20px;
}
.list-group-item {
  position: relative;
  display: block;
  padding: 10px 15px;
  margin-bottom: -1px;
  background-color: #fff;
  border: 1px solid #ddd;
}
.list-group-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.list-group-item:last-child {
  margin-bottom: 0;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}

.calendars.layout-fixed {
  table-layout: fixed;
}
.calendars tbody {
  position: relative;
}
.calendars-mobile {
  position: relative;
  display: none;
}
.calendars .header {
  position: static;
}
.calendars .header.hidden-header {
  opacity: 0;
}

.calendars-mobile.fix {
  display: table;
  position: fixed;
  top: 0;
  z-index: 2;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
}
.row.ms2_product {
  /*margin-top:1em;
        padding-top:1em;
        padding-bottom: 10px;*/
  position: relative;
  margin-left: -10px;
  margin-right: -10px;
}
.product-panel {
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 10px;
  position: relative;
}
.product-image {
  overflow: hidden;
  min-width: 120px;
  text-align: center;
}
.product-image img {
  padding: 5px;
}
.product-header a {
  color: #000;
}
.product-wrapper {
  overflow: hidden;
  padding: 5px;
  box-shadow: 0 0 2px #ddd;
}
.product-header {
  min-height: 1em;
  margin-bottom: 1em;
  margin-top: 1em;
  font-size: 17px;
  top: 0;
}
.product-content .price {
  font-size: 20px;
  font-weight: 800;
}
.product-image .img-vertical {
  height: 100%;
  width: auto;
}
.product-image .img-horizon {
  height: auto;
  width: 100%;
}
.prod-img img,
.product-image img {
  width: 100%;
  max-width: 260px;
  height: auto;
  /*  border: 1px solid #eee;*/
}
.product-content {
  text-align: left;
}
.vis_count {
  display: block;
  position: absolute;
  top: -5px;
  left: 5px;
  padding: 2px 7px;
  background: #f19b36;
  color: #fff;
  border-radius: 15px;
  font-size: 11px;
  text-transform: uppercase;
  margin: 0;
  border: 1px solid #dc8d30;
}
.vis_count:hover,
.vis_count:focus {
  color: #eee;
}
.vis_count span {
  font-size: 16px;
  font-weight: 800;
}
.product-content .form-group {
  margin-bottom: 5px;
}
.product-content .ms2_form {
  height: 100%;
  vertical-align: bottom;
}
.product-content label {
  font-weight: 400;
}
.products_row .old_price {
  display: block;
  color: #ddd;
  font-style: italic;
  text-decoration: line-through;
  line-height: 16px;
  font-size: 13px;
}

.navbar-brand.navbar-logo {
  padding: 7px;
  overflow: hidden;
  padding-left: 45px;

  /*background: url('/assets/images/logo-color-small-1.png') left 0 top 7px no-repeat;icon-36x36.png*/
  background: url("/assets/images/logo_grey_dk_small.png") left 0 top 7px
    no-repeat;
  /*background: url('/assets/images/logo-color-small-1.png') left 0 top 7px no-repeat;*/
  background-size: 35px auto;
}

.navbar-brand.navbar-logo p,
.navbar-brand.navbar-logo strong {
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  display: block;
}

.navbar-brand.navbar-logo strong {
  font-weight: 800;
  line-height: 22px;
  margin-top: 11px;
  font-size: 21px;
  letter-spacing: 1px;
  color: #555;
  padding: 0;
  /* красный e84c3b f3533d
  зеленый 349546 419742
  оранж f4c744 e9bb45 fb9f3a
  синий 2f4b99 1359b2  */
}
.navbar-brand.navbar-logo p {
  font-size: 9px;
  font-weight: 400;
  line-height: 15px;
  text-align: center;
  color: #555;
  letter-spacing: 1px;
  /*background: #fd9936;*/
  padding: 0;
}
.icon-caret:after {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.info {
  overflow: hidden;
}

.pad {
  padding-right: 5px;
}
.u + .u {
  margin-top: 0;
}
input.idn:disabled,
input.idn-lit:disabled {
  background: #eee;
}
#page-wrapper.page-padded {
  border: none;
  padding: 0 10px 0 10px;
  min-height: 568px;
  background-color: white;
  overflow: hidden;
  margin: 0;
}
#page-wrapper {
  /*border-left: 1px solid #e7e7e7;
  border-right: 1px solid #e7e7e7;*/
  background: #fff;
  padding-bottom: 20px;
}
.pagination > li > a {
  padding: 6px 9px;
}
.modal-title {
  font-weight: 800;
}
.modal-md {
  max-width: 500px;
  margin: 30px auto;
}
.auth-form label {
  display: block;
  width: 100%;
}
.row.u::before,
.row.u::after {
  display: block;
}

.msearch2 select option {
  padding: 5px 8px;
  line-height: 3em;
}

.msearch2 select option:hover {
  outline: none;
  border: none;
  line-height: 25px;
}

.select-placeholder {
  display: none;
}

ul.smarttag-tags-wrapper {
  list-style: none;
  margin: 0;
  margin-top: -5px;
  padding: 0 10px 5px 10px;
  overflow: hidden;
}

.smarttag-tags-wrapper li {
  list-style: none;
  margin: 5px 5px 0 0;
  padding: 3px 8px 3px 5px;
  box-shadow: 0 0 0 1px #dcdcdc;
  box-sizing: content-box;
  border-radius: 3px;
  position: relative;
  width: auto;
  float: left;
  text-align: center;
  display: inline-block;
}
.smarttag-tags-wrapper a {
  padding: 0;
  text-align: center;
  font-size: 15px;
}
.smarttag-tags-wrapper a span {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}
.smarttag-tags-wrapper a:hover {
  text-decoration: none;
}
.smarttag-tags-wrapper li:hover {
  /* background-color: #2d86b7;
   cursor:pointer;
       color: #FFF;*/
}
.prod th,
.prod-lit th,
.prod td,
.prod-lit td {
  text-align: center;
}

.tleft {
  text-align: left;
}
.cell img,
.cell input {
  /*float:left;*/
}
.cell div {
  display: block;
  /*	overflow-y:hidden;
	overflow-x:auto;*/
}
.prod,
.prod-lit {
  overflow-x: auto;
}
.prod-img,
.cell img,
.calendar img {
  margin-bottom: 5px;
}
input.idn,
input.idn-lit,
input.idn-prod {
  height: 30px;
  line-height: 30px;
  width: 120px;
  padding: 8px 0;
  box-shadow: none;
  border-radius: 1px;
  border: 1px solid #ccc;
  /*	line-height: 2.5; -ms-user-select: none; 
    -moz-user-select: none; 
    -webkit-user-select: none; 
    user-select: none; */
}
input.idn:focus,
input.idn-lit:focus,
input.idn-prod:focus {
  border-color: #66afe9;
  webkit-transition: border-color ease-in-out 0.15s,
    -webkit-box-shadow ease-in-out 0.15s;
  -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
input.idn-prod {
  width: 65px;
  font-size: 14px;
  /*position: relative;
 top:0;*/
  vertical-align: top;
}
.ms2_form {
  /*position: relative;
  font-size: 0;
  display: block;
  overflow: hidden;*/
}
.btn.btn-default.little {
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: 5px;
  -webkit-border-radius: 0;
  border-radius: 0;
  /*position: relative;
  top: 0;*/
  vertical-align: top;
}
.practic-row {
  margin-right: -5px;
  margin-left: -5px;
}
.task-links {
  font-size: 14px;
}

.task-links i.fa {
  padding-right: 5px;
  color: #fa952b;
}
.task-links i.fa-download {
  color: #07aff0;
}

.task-links .btn {
  font-size: 14px;
  line-height: 22px;
}

.tasks-files,
.tasks-files li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tasks-files,
.tasks-images {
  margin-top: 10px;
}
.tasks-files li,
.tasks-images a {
  overflow: hidden;
  display: inline-block;
  margin-right: 10px;
  box-shadow: 0 0 5px #e6e6e6;
}
.tasks-files img,
.tasks-images img {
  max-height: 128px;
  width: auto;
}
.prod-img {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}
tr.footer {
  border-bottom: 1px solid #ddd;
}
.prod-in {
  position: absolute;
  right: -8px;
  top: -8px;
  padding: 0 8px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background-color: rgba(31, 122, 9, 0.75);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}
.prod-in:hover,
.prod-in:active,
.prod-in:focus {
  text-decoration: none;
  color: #eee;
}
.price-lit {
  position: absolute;
  left: -8px;
  top: -8px;
  padding: 2px 8px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background-color: rgba(51, 122, 183, 0.88);
  color: #fff;
  font-size: 14px;
  /*font-weight: bold;*/
}
.price-lit .small {
  font-weight: bold;
}
.price-lit:hover,
.price-lit:active,
.price-lit:focus {
  text-decoration: none;
  color: #eee;
}

/* Мобильное меню / гамбургер */
.sidebar-nav.navbar-collapse {
  display: none;
  width: 100%;
  margin: 0;
  background-color: #fff;
}

.sidebar-nav.navbar-collapse.collapse.in,
.sidebar-nav.navbar-collapse.in {
  display: block !important;
}

.nav.sidebar-links li a {
  color: #333;
  text-align: center;
  font-size: 18px;
  text-transform: uppercase;
  padding: 15px;
  font-weight: 600;
}
.loginMessage {
  color: #ff4141;
  font-size: 12px;
}
.loginMessage p {
  margin: 0;
}
/*.sidebar-nav.navbar-collapse.collapse.in {
  
}*/
.header-wrapper {
  text-align: center;
}

.title input {
  width: 90px;
}
a.edit_link {
  color: #08ab0f;
}

.navbar-top-links {
  /*margin-right: 0;
  padding-left:5px;*/
  padding: 5px;
  min-height: 50px;
}
.navbar-top-links li {
  display: inline-block;
  padding-top: 5px;
  padding-bottom: 5px;
  vertical-align: middle;
}
.navbar-top-links li.divider {
  padding: 0;
}
.navbar-top-links li:last-child {
  margin-right: 15px;
}
.navbar-top-links li a {
  padding: 0;
}

.navbar-grey {
  background-color: #636466;
  border-color: #e7e7e7;
  /*padding:10px 15px;*/
  position: relative;
}
.sidebar.sidebar-shifted {
  background-color: #ffffff;
  width: 100%;
}
.navbar-grey .navbar-header {
  display: block;
}
.navbar .header {
  margin: 0 !important;
  padding: 14px 18px 24px !important;
}
.navbar .brand {
  display: none;
  width: 250px;
  position: absolute;
}
.navbar .brand img {
  max-width: 235px;
  margin: 0;
  width: 100%;
}
.navbar .header {
  /*max-width:1000px;*/
  color: #ffffff;
  margin: 0 0 20px 0;
}
.navbar .header h1 {
  font-size: 20px;
  font-weight: 600;
}
.navbar .header p {
  font-size: 16px;
}
.navbar-grey .navbar-toggle {
  background-color: #fff;
}
.navbar-grey .navbar-toggle .icon-bar {
  background-color: #636466;
}
.form-right {
  display: none;
}

.navbar-grey .form-right .navbar-nav > li > a,
.navbar-grey .form-right .navbar-nav > li > a:visited {
  color: #ffffff;
}

.navbar-grey .form-right .navbar-nav > li > a:hover,
.navbar-grey .form-right .navbar-nav > li > a:focus {
  color: #ffffff;
  background-color: rgba(255,255,255,0.08);
}
.form-sidebar {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.loginLegend {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
  border: none;
  color: #000000;
}
.loginLoginForm label {
  color: #000000;
  width: 100%;
}
.loginLoginForm input {
  width: 100%;
}
.loginLoginForm .controls-wrapper {
  margin-top: 10px;
}
.loginLoginForm .controls-wrapper a {
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

.loginRegister b {
  display: block;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
}
.loginRegister a {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}
.form-right .loginRegister a {
  color: #ffffff;
}
.form-sidebar .loginRegister a {
  color: #000000;
}
.registerForm {
  text-align: left;
}
.registerForm label {
  display: block;
  padding-top: 5px;
}
.registerForm label small {
  font-weight: normal;
  line-height:1.5;
  display: inline-block;
  margin-top: 1rem;
}
.registerForm input[readonly],
.registerForm input[disabled],
.registerForm select[disabled] {
  background-color: #f7f7f7;
}
.registerForm input[hidden] {
  display: none;
}
.registerForm input.has-error,
.registerForm select.has-error {
  border: 1px solid #f99898;
}
.registerForm input.btn {
  -webkit-user-select: none;
  user-select: none;
}
.registerForm label input,
.registerForm label select {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 5px;
  border: 1px solid #ccc;
  padding: 0 5px;
  font-weight: normal;
}
.registerForm .error {
  color: red;
  font-size: 12px;
  font-weight: normal;
}

.registerForm .form-check {
  margin: 0.8em 0 0 0;
}

.registerForm .form-check-label {
  display: inline;
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-size: 0.9em;
}
.registerForm .form-check-input {
  float: left;
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  margin-right: 0.5em;
  vertical-align: top;
}

.btn.btn-primary.btn-circle.question {
  /*position: relative;
    top: 7px;*/
  background-color: #337ab7;
  padding: 6px 0;
}
.btn.btn-primary.btn-circle.question:hover,
.btn.btn-primary.btn-circle.question:focus,
.btn.btn-primary.btn-circle.question:active {
  background-color: #337ab7;
  outline: none;
}
.btn.btn-primary.btn-circle.question i.fa {
  /*position:absolute; 
  top:8px;
  left:12px;*/
}

li.mcart {
  top: 0;
  padding-right: 10px;
  display: inline-block;
}
li.profile {
  top: 0;
  display: block;
  float: right;
}
.dropdown-menu > li > a .fa {
  margin-right: 5px;
}
.form-clean button,
.form-clean a {
  margin-top: 5px;
  margin-bottom: 5px;
}
#msMiniCart {
  color: black;
  padding-top: 10px;
  padding-bottom: 0;
}
#msMiniCart:hover,
#msMiniCart:active {
  background-color: transparent;
}
.navbar-top-links .dropdown-menu li {
  display: block;
}
.navbar-top-links .dropdown-menu li:last-child {
  margin-right: 0;
}
.navbar-top-links .dropdown-menu li a {
  padding: 3px 20px;
  min-height: 0;
}
.navbar-top-links .dropdown-menu li a div {
  white-space: normal;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
  width: 310px;
  min-width: 0;
}
.navbar-top-links .dropdown-messages {
  margin-left: 5px;
}
.navbar-top-links .dropdown-tasks {
  margin-left: -59px;
}
.navbar-top-links .dropdown-alerts {
  margin-left: -123px;
}
.navbar-top-links .dropdown-user {
  right: 0;
  left: auto;
}
/*.sidebar .sidebar-nav.navbar-collapse {
  padding-left: 0;
  padding-right: 0;
}*/
.sidebar .sidebar-search {
  padding: 15px;
}
.sidebar ul li {
  border-bottom: 1px solid #e7e7e7;
}
/*.sidebar ul li a.active {
  background-color: #eeeeee;
}
.sidebar ul li a:visited {
  background-color: #eeeeee;
}*/
.sidebar .arrow {
  float: right;
  line-height: 1.6;
}
.sidebar .fa.arrow:before {
  content: "\f104";
}
/*content: "\f107";
}*/
.sidebar .nav-second-level li,
.sidebar .nav-third-level li {
  border-bottom: none !important;
}
.sidebar .nav-second-level li a {
  padding-left: 37px;
}
.sidebar .nav-third-level li a {
  padding-left: 52px;
}
article img {
  width: 100%;
  height: auto;
}

.pagination-wrapper {
  font-size: 14px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
  display: none;
}
span.msfavorites .msfavorites-total {
  display: inline-block;
}

a.msfavorites-link {
  text-decoration: none;
  border-bottom-style: dotted;
  border-bottom-width: 1px;
}

a.msfavorites-link:hover {
  border-bottom-style: solid;
}

a.msfavorites-link.active {
  border-bottom: none;
  background: #efefef;
  color: black;
}

.msfavorites .loading {
  opacity: 0.7;
  cursor: default;
}

.msfavorites .loading:hover {
  text-decoration: none;
}

.msfavorites a:hover,
.msfavorites a:focus {
  color: #2a6496;
  text-decoration: none;
}

.msfavorites .msfavorites-add {
  display: inline-block;
}

.msfavorites .msfavorites-remove,
.msfavorites .msfavorites-go,
.msfavorites .msfavorites-total {
  display: none;
}

.msfavorites[data-added="added"] .msfavorites-add {
  display: none;
}

.msfavorites[data-added="added"] .msfavorites-remove,
.msfavorites[data-added="added"] .msfavorites-go,
.msfavorites[data-added="added"] .msfavorites-total {
  display: inline-block;
}
.msfavorites i.fa {
  color: #999;
}
.msfavorites[data-added="added"] i.fa {
  color: #f19b36;
}

.top-inline .age-wrap {
  display: inline-block;
}

.top-inline .msfavorites {
  float: right;
  vertical-align: bottom;
  padding-top: 10px;
}

.top-inline .msfavorites a.msfavorites-link {
  border: none;
  font-size: 20px;
  color: #999;
}
.top-inline .msfavorites[data-added="added"] .msfavorites-remove {
  color: #f19b36;
}
.top-inline.favorites-page i.fa-heart {
  /*padding-right: 5px;*/
  font-size: 20px;
}
.top-inline.favorites-page a.msfavorites-link {
  font-size: 14px;
  color: #333;
}

.top-inline.favorites-page a.msfavorites-link.msfavorites-add {
  padding-left: 5px;
}

.sidebar-nav .nav > li > a {
  background: #fff;
}

.sidebar-nav .nav > li > a.active {
  color: #009e22;
}
.sidebar-nav .nav > li > a:hover,
.sidebar-nav .nav > li > a:focus {
  background: #fff;
}

.mt-xs {
  margin-top: 10px;
}

@media (min-width: 768px) and (max-width: 992px) {
  .aside-wrapper {
    width: 30%;
  }

  .content-col {
    width: 70%;
  }
  .sidebar.collapse {
    transition: none;
  }
}

@media (min-width: 420px) {
  .flex-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
  }
  .row.flex-row .prints-image-col {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 50%;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    margin-right: unset;
    margin-left: unset;
  }
}

@media (min-width: 768px) {
  .flex-row {
    margin-right: -10px;
    margin-left: -10px;
  }

  .row.flex-row .prints-image-col {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 33.3333%;
    -ms-flex: 0 0 33.3333%;
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding-right: 10px;
    padding-left: 10px;
  }
  .prints-image-col .flex-vertical-center {
    height: 230px;
  }
  .mt-xs {
    margin-top: 0;
  }
  .mt-sm {
    margin-top: 10px;
  }

  .pagination-wrapper {
    font-size: 16px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: unset;
  }

  .pagination-wrapper .prev,
  .pagination-wrapper .next {
    display: inline;
  }

  .navbar-grey .navbar-header {
    width: 100%;
  }

  .sidebar-nav.navbar-collapse {
    width: 50%;
    margin-left: 25%;
  }

  #page-wrapper.page-padded {
    margin: 0 10px 0 10px;
  }

  .pagination > li > a {
    padding: 6px 12px;
  }
  article img {
    width: auto;
    height: auto;
  }
  .navbar-grey .navbar-toggle {
    float: right;
    margin-top: 8px;
  }
  .navbar-grey .navbar-toggle,
  .navbar-grey .navbar-brand {
    display: block;
    position: relative;
    padding: 9px 10px;

    margin-right: 15px;
    margin-bottom: 8px;
  }
  .sidebar.sidebar-shifted {
    background-color: #ffffff;
    width: 100%;
  }

  .sidebar.collapse {
    display: block;
  }

  .sidebar-nav.navbar-collapse.in {
    display: block;
  }

  .navbar > .container-fluid .navbar-brand {
    margin-left: -10px;
  }

  .nav > li > a {
    padding: 10px 8px;
    word-wrap: break-word;
  }

  .nav > li > a i.fa {
    display: inline;
  }

  .navbar-nav > li > a {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  li.profile {
    display: inline-block;
    padding-left: 10px;
  }

  .navbar-top-links .dropdown-messages,
  .navbar-top-links .dropdown-tasks,
  .navbar-top-links .dropdown-alerts {
    margin-left: auto;
  }
}
.btn-outline {
  color: inherit;
  background-color: transparent;
  transition: all 0.5s;
}
.btn-primary.btn-outline {
  color: #428bca;
}
.btn-success.btn-outline {
  color: #5cb85c;
}
.btn-info.btn-outline {
  color: #5bc0de;
}
.btn-warning.btn-outline {
  color: #f0ad4e;
}
.btn-danger.btn-outline {
  color: #d9534f;
}
.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
  color: white;
}
.chat {
  margin: 0;
  padding: 0;
  list-style: none;
}
.chat li {
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px dotted #999999;
}
.chat li.left .chat-body {
  margin-left: 60px;
}
.chat li.right .chat-body {
  margin-right: 60px;
}
.chat li .chat-body p {
  margin: 0;
}
.panel .slidedown .glyphicon,
.chat .glyphicon {
  margin-right: 5px;
}
.chat-panel .panel-body {
  height: 350px;
  overflow-y: scroll;
}
.login-panel {
  margin-top: 25%;
}
.flot-chart {
  display: block;
  height: 400px;
}
.flot-chart-content {
  width: 100%;
  height: 100%;
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
  background: transparent;
}
table.dataTable thead .sorting_asc:after {
  content: "\f0de";
  float: right;
  font-family: fontawesome;
}
table.dataTable thead .sorting_desc:after {
  content: "\f0dd";
  float: right;
  font-family: fontawesome;
}
table.dataTable thead .sorting:after {
  content: "\f0dc";
  float: right;
  font-family: fontawesome;
  color: rgba(50, 50, 50, 0.5);
}
.btn-circle {
  width: 30px;
  height: 30px;
  padding: 6px 0;
  border-radius: 15px;
  text-align: center;
  font-size: 12px;
  line-height: 1.428571429;
}
.btn-circle.btn-lg {
  width: 50px;
  height: 50px;
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 18px;
  line-height: 1.33;
}
.btn-circle.btn-xl {
  width: 70px;
  height: 70px;
  padding: 10px 16px;
  border-radius: 35px;
  font-size: 24px;
  line-height: 1.33;
}
.show-grid [class^="col-"] {
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid #ddd;
  background-color: #eee !important;
}
.show-grid {
  margin: 15px 0;
}
.huge {
  font-size: 40px;
}

.del {
  color: #c01400;
  padding-left: 15px;
}
.swapt {
  border-right: 1px solid white;
  padding-right: 5px;
}

.row.form-row {
  margin-right: -10px;
  margin-left: -10px;
}

.row.form-row .form-group {
  padding-right: 10px;
  padding-left: 10px;
}

.panel-green {
  border-color: #5cb85c;
}
.panel-green .panel-heading {
  border-color: #5cb85c;
  color: white;
  background-color: #5cb85c;
}
.panel-green a {
  color: #5cb85c;
}
.panel-green a:hover {
  color: #3d8b3d;
}
.panel-red {
  border-color: #d9534f;
}
.panel-red .panel-heading {
  border-color: #d9534f;
  color: white;
  background-color: #d9534f;
}
.panel-red a {
  color: #d9534f;
}
.panel-red a:hover {
  color: #b52b27;
}
.panel-yellow {
  border-color: #f0ad4e;
}
.panel-yellow .panel-heading {
  border-color: #f0ad4e;
  color: white;
  background-color: #f0ad4e;
}
.panel-yellow a {
  color: #f0ad4e;
}
.panel-yellow a:hover {
  color: #df8a13;
}
.panel-default-narrow {
  border-color: #eeeeee;
}
.panel-default-narrow .panel-heading {
  border-color: #eeeeee;
  padding: 2px 10px;
}
.panel-activity-1 {
  border-color: #ff5959;
}

.panel.main .panel-heading {
  color: #333;
  font-weight: 800;
  padding: 5px 10px;
}

.panel.main .panel-heading span {
  font-size: 14px;
  opacity: 0.8;
}

a.panel-link {
  display: block;
  color: #333;
}
a.task-link {
  display: block;
  color: #333;
}
.task-fieldset {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
  padding-top: 10px;
  border: 1px solid #b6b6b6;
  margin-bottom: 10px;
}
a.task-link .outer {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

a.task-link .inner {
  list-style: none;
  padding-left: 10px;
  position: relative;
  /*border-left:4px solid #ccc;*/
}
a.task-link .inner:before {
  content: "";
  width: 4px;
  height: calc(100% - 6px);
  background: #ccc;
  position: absolute;
  left: 0;
  top: 4px;
}

a.panel-link:hover,
a.panel-link:focus {
  text-decoration: none;
}

.panel.main .dk-link p {
  display: inline-block;
}

.panel.main .top-inline .age-wrap b {
  font-size: 30px;
  font-weight: 800;
}

.panel.main .top-inline .age-wrap i {
  color: #5f5f5f;
  padding-top: 16px;
  vertical-align: top;
}

.panel.main .panel-body.js-height {
  position: relative;
}

.panel.main .panel-body.js-height .bottom-link {
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.pb-30 {
  padding-bottom: 30px;
}

.panel.main .panel-body {
  color: #000;
}
.panel.main .panel-body strong {
  color: #5f5f5f;
  font-size: 14px;
  font-weight: 500;
}

/*не выбрана активность*/
.panel-activity-0 .panel-heading,
.panel-activity- .panel-heading {
  border-color: #de910e;
  /* color: white;
  background-color: #de910e;*/
  padding: 2px 10px;
}
.panel-activity-0 .panel-heading a,
.panel-activity- .panel-heading a {
  color: #333;
}
.panel-activity-0 .panel-heading a:hover,
.panel-activity- .panel-heading a:hover {
  color: #ff0d0d;
}
.panel-activity-0 a,
.panel-activity- a {
  color: #de910e;
}

.panel-activity-0 a:hover,
.panel-activity- a:hover {
  color: #ff0d0d;
}
.panel-activity-0,
.panel-activity- {
  border-color: #de910e;
}

.panel-activity-1 {
  border-color: #f8b2b2;
}
.panel-activity-1 .panel-heading {
  border-color: #f8b2b2;
  /*background-color: #d9534f;*/
}

.panel-activity-2 {
  border-color: #91b9f3;
}
.panel-activity-2 .panel-heading {
  border-color: #91b9f3;
  /*background-color: #3871c1;*/
}

.panel-activity-3 {
  border-color: #6fd898;
}
.panel-activity-3 .panel-heading {
  border-color: #6fd898;
  /*background-color: #1bab54;*/
}

.panel-activity-4 {
  border-color: #ecca7c;
}
.panel-activity-4 .panel-heading {
  border-color: #ecca7c;
  /*background-color: #b98e28;*/
}

.panel-activity-5 {
  border-color: #ec9ce2;
}
.panel-activity-5 .panel-heading {
  border-color: #ec9ce2;
  /*background-color: #b031a1;*/
}
/*
.panel-activity-2 .panel-heading a {
  color: #fff;
}
.panel-activity-2 .panel-heading a:hover {
  color: #232aff;
}
.panel-activity-2 a {
  color: #000;
}
.panel-activity-2 a:hover {
  color: #232aff;
}
.panel-activity-1 .panel-heading {
  border-color: #ff5959;
  color: white;
  background-color: #d9534f;
  padding: 2px 10px;
}
.panel-activity-1 .panel-heading a {
  color: #fff;
}
.panel-activity-1 .panel-heading a:hover {
  color: #ff0d0d;
}
.panel-activity-1 a {
  color: #ff5959;
}
.panel-activity-1 a:hover {
  color: #ff0d0d;
}
.panel-activity-5 {
  border-color: #c456bd;
}
.panel-activity-5 .panel-heading {
  border-color: #c456bd;
  color: white;
  background-color: #c456bd;
  padding: 2px 10px;
}
.panel-activity-5 .panel-heading a {
  color: #fff;
}
.panel-activity-5 .panel-heading a:hover {
  color: #983592;
}
.panel-activity-5 a {
  color: #c456bd;
}
.panel-activity-5 a:hover {
  color: #983592;
}
.panel-activity-3 {
  border-color: #00bc58;
}
.panel-activity-3 .panel-heading {
  border-color: #00bc58;
  color: white;
  background-color: #00bc58;
  padding: 2px 10px;
}
.panel-activity-3 .panel-heading a {
  color: #fff;
}
.panel-activity-3 .panel-heading a:hover {
  color: #007034;
}
.panel-activity-3 a {
  color: #00bc58;
}
.panel-activity-3 a:hover {
  color: #007034;
}
.panel-activity-4 {
  border-color: #c4ae4a;
}
.panel-activity-4 .panel-heading {

  border-color: #c4ae4a;
  color: white;
  background-color: #c4ae4a;
  padding: 2px 10px;
}
.panel-activity-4 .panel-heading a {
  color: #fff;
}
.panel-activity-4 .panel-heading a:hover {
  color: #928030;
}
.panel-activity-4 a {
  color: #c4ae4a;
}
.panel-activity-4 a:hover {
  color: #928030;
}

*/
.frame_wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  margin-bottom: 15px;
  width: 100%;
  height: 0;
}
.frame_wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.link_wrapper.limited {
  max-width: 640px;
}
.link_wrapper.limited h3 {
  margin-top: 25px;
  margin-bottom: 20px;
}

.link_wrapper {
  border-bottom: 1px solid #eee;
}
#edit_link_delete {
  margin-left: 100px;
}
.panel-activity-6 {
  border-color: #1b9191;
}
.panel-activity-6 .panel-heading {
  border-color: #1b9191;
  /*color: white;
  background-color: #1b9191;*/
  padding: 2px 10px;
}
/*.panel-activity-6 .panel-heading a {
  color: #fff;
}
.panel-activity-6 .panel-heading a:hover {
  color: #0f5151;
}
.panel-activity-6 a {
  color: #1b9191;
}
.panel-activity-6 a:hover {
  color: #0f5151;
}*/
.panel-activity-7 {
  border-color: #cecb21;
}
.panel-activity-7 .panel-heading {
  border-color: #cecb21;
  /* color: white;
  background-color: #cecb21;*/
  padding: 2px 10px;
}
/*.panel-activity-7 .panel-heading a {
  color: #fff;
}
.panel-activity-7 .panel-heading a:hover {
  color: #8c8a16;
}
.panel-activity-7 a {
  color: #cecb21;
}
.panel-activity-7 a:hover {
  color: #8c8a16;
}*/
.panel-activity-pub {
  border-color: green;
}
.panel-activity-pub .panel-heading {
  border-color: green;
  color: white;
  background-color: green;
  padding: 2px 10px;
}
.panel-activity-pub .panel-heading a {
  color: #fff;
}
.panel-activity-pub .panel-heading a:hover {
  color: #8c8a16;
}
.panel-activity-pub a {
  color: #419241;
}
.panel-activity-pub a:hover {
  color: green;
}
.panel.order > .panel-heading {
  overflow: hidden;
  height: auto;
  line-height: 1.8;
}
.panel.order > .panel-footer {
  overflow: hidden;
  height: auto;
  background: transparent;
  border-top: 1px solid #d6e9c6;
  color: #3c763d;
}
.panel.order > .panel-footer a {
  color: #3c763d;
}
.inline {
  display: inline-block;
  margin: 0;
}

.ttag {
  border-radius: 3px;
  padding: 3px 5px;
  border: 1px solid #a1cdf3;
  margin-left: 5px;
  white-space: nowrap;
}
a.ttag {
  color: #337ab7;
}
a.ttag:hover,
a.ttag:focus {
  color: #23527c;
}

table.table.table-striped tr.activity-1 {
  color: #ffffff;
}
table.table.table-striped tr.activity-1 td {
  background-color: #ff5959;
}
table.table.table-striped tr.activity-1 a {
  color: #ffffff;
}
table.table.table-striped tr.activity-2 {
  color: #ffffff;
}
table.table.table-striped tr.activity-2 td {
  background-color: #7074ff;
}
table.table.table-striped tr.activity-2 a {
  color: #ffffff;
}
table.table.table-striped tr.activity-3 {
  color: #ffffff;
}
table.table.table-striped tr.activity-3 td {
  background-color: #00bc58;
}
table.table.table-striped tr.activity-3 a {
  color: #ffffff;
}
table.table.table-striped tr.activity-4 {
  color: #ffffff;
}
table.table.table-striped tr.activity-4 td {
  background-color: #c4ae4a;
}
table.table.table-striped tr.activity-4 a {
  color: #ffffff;
}
table.table.table-striped tr.activity-5 {
  color: #ffffff;
}
table.table.table-striped tr.activity-5 td {
  background-color: #c456bd;
}
table.table.table-striped tr.activity-5 a {
  color: #ffffff;
}
table.table.table-striped tr.activity-6 {
  color: #ffffff;
}
table.table.table-striped tr.activity-6 td {
  background-color: #1b9191;
}
table.table.table-striped tr.activity-6 a {
  color: #ffffff;
}
table.table.table-striped tr.activity-7 {
  color: #ffffff;
}
table.table.table-striped tr.activity-7 td {
  background-color: #cecb21;
}
table.table.table-striped tr.activity-7 a {
  color: #ffffff;
}
ul.plan-files {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
ul.plan-files li > b {
  color: #ddd;
  font-size: 12px;
  padding-right: 5px;
}
.page-header {
  margin-top: 5px;
}
a.alter {
  overflow: hidden;
  display: block;
  padding-top: 15px;
  padding-bottom: 10px;
  border-top: 1px solid #e0e0e0;
}
a.alter:hover,
a.alter:focus {
  text-decoration: none;
}

#msOrder select[disabled] {
  cursor: default;
}

.alter h4 {
  margin-top: 0;
  font-weight: 800;
  color: #444;
}
.alter p {
  color: black;
}

h3,
h4 {
  font-weight: 600;
  /*font-size:20px;*/
}
.top-buffer {
  margin-top: 10px;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-croshair {
  cursor: crosshair;
}
.cursor-eresize {
  cursor: e-resize;
}
.cursor-move {
  cursor: move;
}

.btn-lmargin-large {
  margin-left: 15px;
}
div.calendar {
  overflow: hidden;
}
.col-task {
  position: relative;
  min-height: 1px;
  padding-right: 5px;
  padding-left: 5px;
  display: block;
  overflow: hidden;

  /* margin-right:1%;width:20%; */
  width: auto;
  float: left;
  white-space: normal;
}
/*white-space: nowrap;color: white; background-color: #adadad; position: relative;
    top:2px;*/
.panel-vidz .panel-heading {
  border-color: #adadad;
  position: relative;

  padding: 10px 5px;
}
.panel-vidz .panel-heading label {
  cursor: pointer;
}
.panel-vidz .panel-heading a {
  color: #fff;
}
.panel-vidz .panel-heading a:hover {
  color: #ff0d0d;
}
.panel-vidz a {
  color: #de910e;
}
.panel-vidz a:hover {
  color: #ff0d0d;
}
.panel.panel-vidz {
  /*border-color: #adadad;*/
  border-color: #ccc;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.panel.panel-vidz.type-selected {
  background: #f7fdff;
}

.panel-vidz-inner {
  padding: 5px 5px;
  overflow: hidden;
  margin: 0 -15px;
}
.panel-vidz-inner select option:disabled {
  display: none;
}
.two-lines .panel-vidz-inner label {
  min-height: unset;
}
.panel-vidz-inner strong {
  margin-left: -20px;
}
.vidz-header {
  margin-left: 5px;
  word-break: break-all;
}
input.vidz-header-input {
  margin-right: 5px;
  vertical-align: top;
}

.input-group .form-control.ui-autocomplete-input {
  border-radius: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.panel-task {
  overflow: hidden;
  border-color: #cdcdcd;
  margin-top: 5px;
  margin-bottom: 5px;
}

.panel-task .panel-heading {
  color: black;
  background-color: transparent;
  padding: 10px 5px;

  border-color: #cdcdcd;
}

.panel-task-inner {
  padding: 5px 5px;
  overflow: hidden;
}
.panel-task-inner > span > p {
  margin: 0;
}
.panel-task-inner > span {
  display: inline-block;
  padding: 0 5px;
}
p-6 {
  padding: 6px;
}
.form-control.numm {
  height: auto;
}
form .form-control {
  padding-top: 8px;
  padding-bottom: 8px;
  height: auto;
  min-height: 39px;
  line-height: 1.4;
}

.form-control.p-6 {
  padding: 6px;
}

.prev {
  width: 98%;
  margin: auto;
}

.task table {
  margin-bottom: 10px;
}

.color-blue {
  color: #07aff0;
}

.color-orange {
  color: #f19b36;
}

.color-red {
  color: #d2232a;
}

.color-grey {
  color: #868686;
}

.main {
  overflow: hidden;
  height: auto;
  width: 100%;
  /*display: table;*/
}
.main:hover {
  background: #fffcf8;
}
.main .panel-body {
  height: auto;
  width: 100%;
  max-width: 100%;
  /*margin:10px;display: table;*/
}
.main .img-rounded {
  max-width: 100px;
  margin-bottom: 10px;
  width: 100%;
  height: auto;
}
.main .panel-heading {
  display: block;

  width: 100%;
  word-wrap: break-word;
}

.main .wrap {
  display: block;

  height: 100%;
  border: none;
}
.main p {
  margin: 5px 0;
}

@media (min-width: 768px) {
  .form-clean a {
    float: right;
  }
  .main .img-rounded {
    margin: 10px;
  }

  .prev {
    width: 60%;
  }

  .main {
    /*height:210px;*/
    width: 100%;
    /*display: table;*/
  }
  .main .panel-heading {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .main .wrap {
    /*display: table;*/
    height: auto;
    width: 100%;
    padding-left: 0px;
    padding: 0;
    border: none;
  }
  .section-header {
    text-transform: uppercase;
    cursor: pointer;
  }
}
@media (min-width: 992px) {
  .collapse {
    transition: none;
  }
  .prints-image-col .flex-vertical-center {
    height: 370px;
  }

  .mt-xs,
  .mt-sm {
    margin-top: 0;
  }

  .two-lines .panel-vidz-inner label {
    padding-left: 0;
    min-height: 3.2em;
  }

  /* .collapse,*/
  .sidebar-nav.navbar-collapse {
    display: block;
  }

  .sidebar-nav.navbar-collapse {
    width: 100%;
    margin-left: 0;
  }

  .navbar-grey .navbar-header {
    display: none;
  }
  #page-wrapper.page-padded {
    position: inherit;
    margin: 0 0 0 270px;
    padding: 0 30px 40px;
    border-left: 1px solid #e7e7e7;
    border-right: 1px solid #e7e7e7;
  }
  .navbar .header {
    margin: 0 0 0 270px;
  }
  .navbar .header h1 {
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .navbar .header p {
    font-size: 25px;
  }

  .sidebar {
    z-index: 0;
  }
  .sidebar.sidebar-shifted {
    width: 270px;
    position: absolute;
    width: 270px;
    margin-top: 0;
  }
  /*.sidebar-nav.navbar-collapse {
    display:block;
    width:100%;
    margin:0;
}*/
  .navbar .brand {
    display: block;
    top: 15px;
  }
  .navbar .brand a {
    outline: none;
  }
  .pr-0 {
    padding-right: 0;
  }
  .pl-0 {
    padding-left: 0;
  }
  .main {
    /*height:190px;*/
    width: 100%;
    /*display: table;*/
  }
}

@media (min-width: 1200px) {
  /*.row.flex-row .prints-image-col{
       -webkit-box-flex: 0;
      -webkit-flex: 0 0 25%;
      -ms-flex: 0 0 25%;
      flex: 0 0 25%;
      max-width: 25%;
    }*/

  .product-header {
    min-height: 4em;
  }
  .product-image img {
    max-height: 180px;
  }
}
@media (min-width: 1600px) {
  .loginMessage {
    min-height: 35px;
  }
  .loginRegister {
    margin-top: 60px;
  }
  #page-wrapper.page-padded {
    position: inherit;
    margin: 0 270px 0 270px;
    padding: 0 30px 40px;
    border-left: 1px solid #e7e7e7;
  }
  .navbar .brand {
    display: block;
    top: 60px;
  }
  .navbar .header {
    margin: 80px 270px;
  }
  .navbar .form-right {
    display: block;
    width: 270px;
    position: absolute;
    right: 0;
    top: 0;
    padding: 10px 20px;
  }
  .form-sidebar {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .navbar-nav .open .dropdown-menu.dropdown-user {
    position: absolute;
    top: 100%;
    left: unset;
    right: 0;
    background-color: #fff;
    background-clip: padding-box;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  }
}
@media screen and (max-width: 520px) {
  .innov-img-link img {
    max-width: 100%;
  }
}

.tickets-message-success {
  background-color: green !important;
}

.tickets-message-error {
  background-color: brown !important;
}

.tickets-message-info {
  background-color: #fd7e14 !important;
}

.red {
  color: #d9534f;
}

.fa-exclamation-triangle {
  color: #d9534f !important;
}

.task-card-image-link {
  display: block;
  text-decoration: none;
}

.task-card-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #f5f5f5;
}

/* Общие адаптивные картинки */
img {
  max-width: 100%;
  height: auto;
}

/* Страница занятия: аккуратные отступы контента */
.task-page .content-col {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.task-page .content-col > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.task-page .content-col > .row > .col-lg-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Страница занятия: картинки */
.task-page .content-col .zt img,
.task-page .content-col img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 16px auto !important;
}

.task-page .content-col .zt img {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* Мобильная версия страницы занятия */
@media (max-width: 767px) {
  /* Контент только на странице занятия */
  .task-page .content-col {
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 17px;
    line-height: 1.6;
  }

  .task-page .content-col > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .task-page .content-col > .row > .col-lg-12,
  .task-page .content-col > .row > .col-xs-12,
  .task-page .content-col > .row > .col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .task-page .content-col p {
    line-height: 1.55;
    margin-bottom: 14px;
  }

  /* Хлебные крошки только на странице занятия */
  .task-page .breadcrumb-wrapper {
    display: none !important;
  }

  /* Верхний информационный блок занятия: автор, возраст, месяц, практика, теги */
  .task-page .task-info-row {
    display: none !important;
  }

  /* PDF / избранное */
  .task-page .task-links {
    display: none !important;
  }

  /* Кнопки редактирования и дублирования */
  .task-page .content-col a[href*="redaktirovanie-zanyatiya"],
  .task-page .content-col a.callback[href="#task_duplicate"] {
    display: none !important;
  }

  /* Индекс занятия */
  .task-page .task-index-row {
    display: none !important;
  }

  /* Обсуждение и форма комментариев */
  .task-page .comments,
  .task-page #comment-new-link,
  .task-page #comment-form-placeholder,
  .task-page #comments-wrapper,
  .task-page #comments-tpanel {
    display: none !important;
  }



  /* Заголовки внутри занятия */
  .task-page .content-col h3 {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
  }

  .task-page .content-col hr {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
}
		/* Страница занятия: визуальная иерархия шапки */
/* Заголовок отдельного занятия */
.task-page h1 {
  color: #2f3a40;
}

@media (max-width: 767px) {
  .task-page h1 {
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }
}
/* Главная страница: мобильная версия */
@media (max-width: 767px) {
  /* Компактная серая шапка */
  .navbar-grey .first-page-brand {
    display: none !important;
  }

  .navbar-grey .header {
    margin: 0 !important;
    padding: 4px 18px 16px !important;
  }

  .navbar-grey .header h1 {
    font-size: 28px !important;
    line-height: 1.15 !important;
    margin: 0 0 10px !important;
  }

  .navbar-grey .header p {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin: 0 auto !important;
    max-width: 330px !important;
  }

  /* Содержательная часть главной */
  #page-wrapper.first-page {
    font-size: 16px !important;
    line-height: 1.45 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #page-wrapper.first-page .first-page-join-block {
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-bottom: 4px !important;
  }

  #page-wrapper.first-page .first-page-join-block h2 {
    font-size: 20px !important;
    line-height: 1.22 !important;
    margin-top: 14px !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
  }

  #page-wrapper.first-page .first-page-content {
    padding-left: 22px !important;
    padding-right: 22px !important;
    margin-top: 14px !important;
  }

  #page-wrapper.first-page .first-page-content h1,
  #page-wrapper.first-page .first-page-content h2 {
    font-size: 21px !important;
    line-height: 1.22 !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
  }

  #page-wrapper.first-page .first-page-content h3 {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
  }

  #page-wrapper.first-page .first-page-content p,
  #page-wrapper.first-page .first-page-content li {
    font-size: 16px !important;
    line-height: 1.42 !important;
  }

  #page-wrapper.first-page .first-page-content ul,
  #page-wrapper.first-page .first-page-content ol {
    padding-left: 20px !important;
  }

  #page-wrapper.first-page .first-page-content li {
    margin-bottom: 4px !important;
  }
}
@media (max-width: 767px) {
  .mobile-back-link {
    display: block;
    text-align: center;
    margin: -4px 0 14px;
    font-size: 15px;
  }

  .mobile-back-link a {
    color: #337ab7;
    text-decoration: none;
    border-bottom: 1px dotted #337ab7;
  }
}

@media (min-width: 768px) {
  .mobile-back-link {
    display: none;
  }
}
@media (max-width: 767px) {
  .mobile-back-link-bottom {
    margin-top: 22px !important;
    margin-bottom: 12px !important;
  }
}
/* Карточки занятий: не даём Bootstrap-float делать "дыры" в двух колонках */
@media (min-width: 992px) {
  .task-card-col:nth-of-type(2n+1) {
    clear: left;
  }
}

/* KidsTesting: личная карта развития — мобильная сравнительная таблица */
@media (max-width: 767px) {

  .kts-card-form {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .kts-card-form .kts-card-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    margin-bottom: 24px !important;
    border: 1px solid #ddd;
    background: #fff;
  }

  .kts-card-form .kts-card-table {
    width: 1080px !important;
    min-width: 1080px !important;
    table-layout: fixed !important;
    margin-bottom: 0 !important;
  }

  .kts-card-form .kts-card-table th,
  .kts-card-form .kts-card-table td {
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    vertical-align: top !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    padding: 12px 12px !important;
  }

  .kts-card-form .kts-card-table .init_header {
    width: 1080px !important;
    max-width: 1080px !important;
    position: static !important;
    background: #f7f7f7 !important;
    padding: 14px 16px !important;
  }

  .kts-card-form .kts-card-table .init_header h3 {
    position: sticky !important;
    left: 14px !important;
    z-index: 6 !important;
    display: block !important;
    width: calc(100vw - 70px) !important;
    max-width: calc(100vw - 70px) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    background: #f7f7f7 !important;
  }

  .kts-card-form .kts-card-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
  }

  .kts-card-form .kts-card-table label {
    display: block !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    margin: 0 0 10px 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  .kts-card-form .kts-card-table label.key_sign {
    font-weight: 700 !important;
  }

  .kts-card-form .kts-card-table select {
    display: block !important;
    width: 100% !important;
    max-width: 170px !important;
    height: 38px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 8px 0 0 auto !important;
  }

  .kts-card-form .kts-card-table select.has_error,
.kts-card-form .kts-card-table select.has-error {
  border-color: #d9534f !important;
  background-color: #fff7f7 !important;
  box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.22) !important;
}

  .kts-card-form .kts-card-table td.level_1,
  .kts-card-form .kts-card-table td.level_2,
  .kts-card-form .kts-card-table td.level_3 {
    background: #f3f7fb !important;
  }

  .kts-card-form .kts-card-table .level_result_col {
    background: #fff !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .kts-card-form .kts-card-table td[class^="init_result_"] {
    width: 1080px !important;
    max-width: 1080px !important;
    background: #fafafa !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .kts-card-form textarea.init_resume,
  .kts-card-form textarea.general_resume {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  .kts-card-form .form-group button,
  .kts-card-form .form-group .btn {
    width: 100% !important;
    white-space: normal !important;
    font-size: 17px !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
  }

  .kts-card-table-wrap::before {
    content: "Таблицу можно прокручивать вправо и влево";
    display: block;
    position: sticky;
    left: 0;
    z-index: 3;
    width: 100vw;
    max-width: 100%;
    padding: 8px 12px;
    background: #fff8e5;
    border-bottom: 1px solid #ead9a0;
    color: #6b5a25;
    font-size: 14px;
    line-height: 1.3;
  }

  /* Строка заголовков уровней: кнопки и номер уровня в одну строку */
  .kts-card-form .kts-card-table .kts-level-head {
    position: relative !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    vertical-align: middle !important;
    height: 58px !important;
  }

  .kts-card-form .kts-level-title {
    display: block !important;
    text-align: center !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 38px !important;
    margin: 0 !important;
    padding: 0 108px !important;
    white-space: nowrap !important;
  }

  .kts-card-form .kts-level-nav {
    position: absolute !important;
    top: 10px !important;
    display: inline-block !important;
    border: 1px solid #337ab7 !important;
    background: #eef7ff !important;
    color: #1f5f95 !important;
    border-radius: 4px !important;
    padding: 7px 9px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .kts-card-form .kts-level-nav-prev {
    left: 10px !important;
  }

  .kts-card-form .kts-level-nav-next {
    right: 10px !important;
  }

  .kts-card-form .kts-level-nav:active,
  .kts-card-form .kts-level-nav:focus {
    outline: none !important;
    background: #d9edf7 !important;
  }
}

/* KidsTesting: имя ребёнка на мобильной странице заполнения карты */
@media (max-width: 767px) {
  #page-wrapper:has(.kts-card-form) h1.page_header {
    font-size: 24px !important;
    line-height: 1.18 !important;
    margin-top: 8px !important;
    margin-bottom: 18px !important;
    color: #555 !important;
    font-weight: 800 !important;
  }
}

/* Шаблон карты развития: дополнительное меню только для мобильного гамбургера.
   На десктопе скрыто, чтобы не наползало на список групп и карты. */
/* Шаблон карты развития: дополнительное меню только для мобильного гамбургера */
.kts-testing-sidebar {
  display: none !important;
}

@media (max-width: 767px) {
  .kts-testing-sidebar.visible-xs-block {
    display: block !important;
    margin-bottom: 14px !important;
  }

  .kts-testing-sidebar .sidebar {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .kts-testing-sidebar .sidebar.collapse {
    display: none !important;
  }

  .kts-testing-sidebar .sidebar.collapse.in,
  .kts-testing-sidebar .sidebar.collapse.collapsing {
    display: block !important;
    width: 100% !important;
    background: #fff !important;
  }

  .kts-testing-sidebar .sidebar-nav.navbar-collapse {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .kts-testing-sidebar .sidebar-nav .nav > li > a {
    text-align: center !important;
  }
}

@media (min-width: 768px) {
  .kts-testing-sidebar,
  .kts-testing-sidebar.visible-xs-block {
    display: none !important;
  }
}
/* Reading mode for task pages */

.task-page .task-reader-actions {
  margin: 12px 0 18px;
  text-align: right;
}

.task-page .task-reader-open {
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 6px;
}

.task-reader-body-open {
  overflow: hidden !important;
}

.task-reader-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 30, 30, 0.72);
}

.task-reader-overlay.is-open {
  display: block;
}

.task-reader-panel {
  position: absolute;
  left: 3vw;
  right: 3vw;
  top: 3vh;
  bottom: 3vh;
  background: #fbf7ef;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.task-reader-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #efe4d2;
  border-bottom: 1px solid #dccbb2;
}

.task-reader-title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-reader-controls {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.task-reader-toc-toggle,
.task-reader-font-btn,
.task-reader-close {
  border: 1px solid #b9aa92;
  background: #fffaf2;
  color: #333;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}

.task-reader-toc-toggle:hover,
.task-reader-font-btn:hover,
.task-reader-close:hover {
  background: #ffffff;
}

.task-reader-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.task-reader-toc {
  flex: 0 0 280px;
  width: 280px;
  overflow-y: auto;
  padding: 22px 18px;
  background: #f4ead9;
  border-right: 1px solid #dccbb2;
}

.task-reader-toc-title {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 14px;
}

.task-reader-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-reader-toc-link {
  display: block;
  color: #38536b;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  padding: 7px 8px;
  border-radius: 6px;
}

.task-reader-toc-link:hover {
  background: rgba(255,255,255,0.65);
  color: #1f3c56;
  text-decoration: none;
}

.task-reader-toc-empty {
  font-size: 14px;
  line-height: 1.4;
  color: #777;
}

.task-reader-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  width: 100%;
  overflow-y: auto;
  padding: 20px 12px 96px;
  font-size: 20px !important;
  line-height: 1.68;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;

  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.task-reader-content p,
.task-reader-content li {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.task-reader-content p {
  margin: 0 0 1.05em;
}
.task-reader-content blockquote,
.task-reader-content pre,
.task-reader-content .poem,
.task-reader-content .verse {
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}
.task-reader-content ul,
.task-reader-content ol {
  padding-left: 1.6em;
  margin-top: 0.4em;
  margin-bottom: 1.1em;
}

.task-reader-content li {
  margin-bottom: 0.35em;
}

.task-reader-content h2 {
  font-size: 1.35em;
  line-height: 1.25;
  margin: 1.7em 0 0.7em;
  color: #263f55;
  scroll-margin-top: 24px;
}

.task-reader-content h2:first-child {
  margin-top: 0;
}

.task-reader-content h3 {
  font-size: 1.15em;
  line-height: 1.3;
  margin: 1.3em 0 0.6em;
}

.task-reader-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 24px auto !important;
}

.task-reader-content table {
  max-width: 100%;
}

.task-reader-resume {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff6df;
  border-bottom: 1px solid #e0cfae;
  color: #3f3a30;
  font-size: 15px;
  line-height: 1.3;
}

.task-reader-resume button {
  border: 1px solid #b9aa92;
  background: #fffaf2;
  color: #333;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.task-reader-resume button:hover {
  background: #ffffff;
}
@media (max-width: 899px) {
  .task-page .task-reader-actions {
    text-align: center;
    margin: 10px 0 16px;
  }

  .task-reader-overlay {
    overflow: hidden;
  }

  .task-reader-panel {
    position: fixed;
    left: 0;
    right: auto;
    top: 0;
    bottom: auto;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .task-reader-topbar {
    flex: 0 0 auto;
    padding: 8px 10px;
    gap: 7px;
    flex-wrap: wrap;
  }

  .task-reader-title {
    flex: 1 1 100%;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
    max-height: 36px;
    overflow: hidden;
  }

  .task-reader-controls {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 5px;
  }

  .task-reader-toc-toggle,
  .task-reader-font-btn,
  .task-reader-page-toggle,
  .task-reader-close {
    font-size: 13px;
    padding: 7px 7px;
    white-space: nowrap;
  }

  .task-reader-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: flex;
    position: relative;
    overflow: hidden;
  }

  .task-reader-resume {
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
  }

  .task-reader-resume span {
    flex: 1 1 100%;
  }

  .task-reader-resume button {
    font-size: 13px;
    padding: 6px 8px;
  }

  .task-reader-toc {
    position: absolute;
    z-index: 20;
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    max-height: 45vh;
    overflow-y: auto;
    display: none;
    border: 1px solid #dccbb2;
    border-radius: 10px;
    background: #f4ead9;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    padding: 14px 16px;
  }

  .task-reader-overlay.task-reader-toc-open .task-reader-toc {
    display: block;
  }

  .task-reader-toc-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .task-reader-toc-link {
    font-size: 14px;
    padding: 6px 7px;
  }

  .task-reader-content {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    width: 100%;
    overflow-y: auto;
    padding: 20px 12px 96px;
    color: #222;
    font-size: 20px !important;
    line-height: 1.68;
    background: #fbf7ef;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;

    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .task-reader-pager {
    gap: 8px;
    padding: 8px 10px;
  }

  .task-reader-pager button {
    font-size: 13px;
    padding: 7px 9px;
  }

  #taskReaderPageLabel {
    min-width: 56px;
    font-size: 13px;
  }

.task-reader-overlay.is-paged .task-reader-content {
  --task-reader-page-gap: 32px;
  column-gap: var(--task-reader-page-gap, 32px);
  padding-bottom: 28px;
}
}

/* Reading mode: paged view */

.task-reader-page-toggle {
  border: 1px solid #b9aa92;
  background: #fffaf2;
  color: #333;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}

.task-reader-page-toggle:hover {
  background: #ffffff;
}

.task-reader-pager {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  background: #efe4d2;
  border-top: 1px solid #dccbb2;
  color: #2c3e50;
}

.task-reader-pager button {
  border: 1px solid #b9aa92;
  background: #fffaf2;
  color: #333;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}

.task-reader-pager button:hover {
  background: #ffffff;
}

.task-reader-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

#taskReaderPageLabel {
  min-width: 72px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.task-reader-overlay.is-paged .task-reader-content {
  overflow-x: hidden;
  overflow-y: hidden;
  column-width: var(--task-reader-page-width, 720px);
  column-gap: var(--task-reader-page-gap, 64px);
  column-fill: auto;
  scroll-behavior: auto;
  padding-bottom: 42px;
  overscroll-behavior: contain;
}

.task-reader-overlay.is-paged .task-reader-content h2,
.task-reader-overlay.is-paged .task-reader-content h3 {
  break-after: avoid;
}

.task-reader-overlay.is-paged .task-reader-content img,
.task-reader-overlay.is-paged .task-reader-content table {
  break-inside: avoid;
}
/* Reading mode: mobile pager at bottom */
@media (max-width: 899px) {
  .task-reader-overlay.is-paged .task-reader-panel {
    position: fixed;
    left: 0;
    right: auto;
    top: 0;
    bottom: auto;
    width: 100vw;
    height: var(--task-reader-viewport-height, 100vh);
    max-height: var(--task-reader-viewport-height, 100vh);
    overflow: hidden;
  }

  .task-reader-overlay.is-paged .task-reader-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding-bottom: 0;
  }

  .task-reader-overlay.is-paged .task-reader-content {
    padding-bottom: 28px !important;
  }

  .task-reader-overlay.is-paged .task-reader-pager {
    flex: 0 0 auto;
    display: flex !important;
    position: static;
    z-index: 30;
    min-height: 52px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: #efe4d2;
    border-top: 1px solid #dccbb2;
  }
}
/* Литературные занятия: открытое сопровождение */
.md-lit-public-section {
    margin: 0 0 36px;
    padding: 22px 26px;
    background: #f6f7f2;
    border-left: 4px solid #879b70;
    border-radius: 4px;
}

.md-lit-public-heading {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.3;
}

/* Отделение полного литературного текста */
.md-lit-private-section {
    margin-top: 34px;
}

.md-lit-text-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}

.md-lit-text-heading::before,
.md-lit-text-heading::after {
    content: "";
    height: 1px;
    background: #d5d5d5;
    flex: 1;
}

.md-lit-text-heading span {
    flex: 0 0 auto;
}

/* Сам текст произведения */
.md-lit-private-text {
    font-size: 18px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .md-lit-public-section {
        padding: 18px;
        margin-bottom: 28px;
    }

    .md-lit-public-heading {
        font-size: 21px;
    }

    .md-lit-text-heading {
    gap: 10px;
    font-size: 19px;
}

    .md-lit-private-text {
        font-size: 17px;
        line-height: 1.65;
    }
}
.md-lit-illustrations-notice {
    margin: 14px 0 26px;
    padding: 14px 17px;
    background: #f4f7f1;
    border-left: 4px solid #879b70;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
}

.md-lit-illustrations-notice .fa {
    margin-right: 7px;
    color: #71845f;
}
/* Полноэкранный TinyMCE должен быть выше фиксированной шапки сайта */
.mce-tinymce.mce-fullscreen {
    z-index: 2147483647 !important;
}
@media (max-width: 767px) {
    #taskReaderContent,
    #taskReaderContent .md-lit-private-text,
    #taskReaderContent .md-lit-private-text p,
    #taskReaderContent .md-lit-private-text li {
        line-height: 1.45 !important;
    }

    #taskReaderContent .md-lit-private-text p {
        margin-top: 0 !important;
        margin-bottom: 0.75em !important;
    }

    #taskReaderContent .md-lit-reading-marker,
    #taskReaderContent .md-lit-reading-marker__number,
    #taskReaderContent .md-lit-reading-marker__label {
        line-height: 1.25 !important;
    }
}
/* Главная страница: спокойное современное боковое меню */
.navbar-grey .nav.sidebar-links > li {
    border-bottom: 1px solid #edf0f2;
}

.navbar-grey .nav.sidebar-links > li > a {
    color: #2f3a40;
    text-align: left;
    font-size: 18px;
    line-height: 1.35;
    text-transform: none;
    font-weight: 500;
    padding: 13px 22px;
    background: transparent;
}

.navbar-grey .nav.sidebar-links > li > a:hover,
.navbar-grey .nav.sidebar-links > li > a:focus {
    color: #337ab7;
    background: #f6f7f8;
    text-decoration: none;
}
/* Описание рабочего пространства на странице групп */
.kts-page-intro {
    max-width: 900px;
    margin: -4px 0 26px;
    color: #666;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .kts-page-intro {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.5;
    }
}



/* Модалка добавления / редактирования группы */
.kts-group-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.kts-group-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kts-group-delete {
    color: #c94b45;
    font-size: 14px;
    text-decoration: none;
}

.kts-group-delete:hover,
.kts-group-delete:focus {
    color: #a94442;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .kts-group-modal-footer {
        align-items: center;
    }

    .kts-group-modal-actions {
        margin-left: auto;
    }
}
/* Сообщение об отсутствии личной карты развития */
.kts-empty-card-note {
    margin: 28px 0 12px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Шапка рабочего пространства — окончательная иерархия */

.kts-workspace-heading {
    width: 100%;
    margin: 6px 0 30px !important;
    text-align: center !important;
}

#ktsPageTitle {
    margin: 0 !important;
    padding: 0 10px 12px !important;

    border-bottom: 1px solid #c8d0d4 !important;

    color: #45545e !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;

    text-align: center !important;
}

.kts-workspace-context {
    display: block !important;

    margin: 0 !important;
    padding: 9px 10px 0 !important;

    color: #68747b !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;

    text-align: center !important;
}
@media (max-width: 767px) {

    #ktsPageTitle {
        font-size: 28px !important;
        padding-bottom: 9px !important;
    }

    .kts-workspace-context {
        padding-top: 7px !important;
        font-size: 21px !important;
    }

}

/* Карточка ребёнка в рабочем пространстве */

#kts_groups .group_kid {
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}

#kts_groups .group_kid > .kts-kid-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100% !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 9px 12px !important;
    box-sizing: border-box;
    position: static !important;
    float: none !important;
    border: 1px solid #dfe6ea !important;
    border-radius: 7px;
    background: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

#kts_groups .group_kid > .kts-kid-row:hover {
    border-color: #bfd0d8 !important;
    background: #f8fbfc !important;
}

#kts_groups .kts-kid-main {
    min-width: 0;
    color: #2f3437;
    font-size: 15px;
    line-height: 1.35;
}

#kts_groups .kts-kid-main .l_name,
#kts_groups .kts-kid-main .name {
    color: inherit;
    font-weight: 500;
}

#kts_groups .kts-kid-main .k_age {
    margin-left: 5px;
    color: #7a858b;
    font-size: 13px;
    font-weight: 400;
}

#kts_groups .group_kid > .kts-kid-row:hover .l_name,
#kts_groups .group_kid > .kts-kid-row:hover .name {
    color: #337ab7;
}

#kts_groups .kts-kid-actions {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 14px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    float: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: default;
    white-space: nowrap;
}

#kts_groups .kts-kid-actions .show_results {
    display: none !important;
}

#kts_groups .kts-kid-actions .kid_edit,
#kts_groups .kts-kid-actions .move {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    border: 0 !important;
    background: transparent !important;
    color: #5f7887 !important;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
}

#kts_groups .kts-kid-actions .kid_edit:hover,
#kts_groups .kts-kid-actions .kid_edit:focus,
#kts_groups .kts-kid-actions .move:hover {
    color: #337ab7 !important;
    text-decoration: underline;
}

#kts_groups .kts-kid-actions .no_actual {
    display: inline-block !important;
    margin: 0 !important;
    padding: 2px 7px !important;
    border: 0 !important;
    border-radius: 10px;
    background: #fff5df !important;
    color: #8a6d3b !important;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 767px) {
    #kts_groups .group_kid > .kts-kid-row {
        align-items: flex-start;
        gap: 8px;
    }

    #kts_groups .kts-kid-actions {
        gap: 5px 10px;
    }
}

/* KidsTesting: кнопки горизонтальной навигации только на мобильных */

.kts-card-form .kts-level-nav {
    display: none !important;
}

@media (max-width: 767px) {
    .kts-card-form .kts-level-nav {
        display: inline-block !important;
    }
}
/* Планирование: переключатель возраста годового плана */

.md-user-age-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
}

.md-user-age-switch__label {
    margin-right: 2px;
    font-size: 14px;
    color: #6b7280;
}

.md-user-age-switch__item {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #d9e1e5;
    border-radius: 16px;
    background: #fff;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none !important;
}

a.md-user-age-switch__item:hover {
    background: #f5f7f8;
}

.md-user-age-switch__item.active {
    background: #eef4f8;
    border-color: #9fb8c8;
    color: #253746;
    font-weight: 600;
    cursor: default;
}

/* ---------------------------------------------------------
   Пиктограмма группы
   --------------------------------------------------------- */

.kts-group-icon-picker {
    display: grid;
    grid-template-columns: repeat(9, 44px);
    gap: 7px;

    margin-top: 7px;
}

.kts-group-icon-choice {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid #d7dde1;
    border-radius: 8px;

    background: #fff;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.kts-group-icon-choice:hover {
    border-color: #9fb9ca;
    background: #f6fafc;
    transform: translateY(-1px);
}

.kts-group-icon-choice.active {
    border-color: #5bc0de;
    background: #eef9fd;
    box-shadow: 0 0 0 2px rgba(91, 192, 222, .18);
}

.kts-group-icon-empty {
    color: #a5adb1;
    font-size: 22px;
}


/* Значок рядом с названием группы */

#kts_groups .kts-group-icon {
    display: none;

    margin-right: 5px;

    font-size: 21px;
    line-height: 1;

    vertical-align: -2px;
}

#kts_groups .dou_group[data-icon]:not([data-icon=""])
.kts-group-icon {
    display: inline-block;
}


/* Пока используем emoji как первый набор */

#kts_groups .dou_group[data-icon="sun"]
.kts-group-icon::before {
    content: "☀️";
}

#kts_groups .dou_group[data-icon="star"]
.kts-group-icon::before {
    content: "⭐";
}

#kts_groups .dou_group[data-icon="rainbow"]
.kts-group-icon::before {
    content: "🌈";
}

#kts_groups .dou_group[data-icon="flower"]
.kts-group-icon::before {
    content: "🌼";
}

#kts_groups .dou_group[data-icon="leaf"]
.kts-group-icon::before {
    content: "🍃";
}

#kts_groups .dou_group[data-icon="butterfly"]
.kts-group-icon::before {
    content: "🦋";
}

#kts_groups .dou_group[data-icon="bee"]
.kts-group-icon::before {
    content: "🐝";
}

#kts_groups .dou_group[data-icon="ladybug"]
.kts-group-icon::before {
    content: "🐞";
}

#kts_groups .dou_group[data-icon="fish"]
.kts-group-icon::before {
    content: "🐟";
}

#kts_groups .dou_group[data-icon="frog"]
.kts-group-icon::before {
    content: "🐸";
}

#kts_groups .dou_group[data-icon="cat"]
.kts-group-icon::before {
    content: "🐱";
}

#kts_groups .dou_group[data-icon="rabbit"]
.kts-group-icon::before {
    content: "🐰";
}

#kts_groups .dou_group[data-icon="bear"]
.kts-group-icon::before {
    content: "🐻";
}

#kts_groups .dou_group[data-icon="rocket"]
.kts-group-icon::before {
    content: "🚀";
}

#kts_groups .dou_group[data-icon="train"]
.kts-group-icon::before {
    content: "🚂";
}

#kts_groups .dou_group[data-icon="boat"]
.kts-group-icon::before {
    content: "⛵";
}

#kts_groups .dou_group[data-icon="bell"]
.kts-group-icon::before {
    content: "🔔";
}

#kts_groups .dou_group[data-icon="squirrel"]
.kts-group-icon::before {
    content: "🐿️";
}

#kts_groups .dou_group[data-icon="hedgehog"]
.kts-group-icon::before {
    content: "🦔";
}

#kts_groups .dou_group[data-icon="fox"]
.kts-group-icon::before {
    content: "🦊";
}

#kts_groups .dou_group[data-icon="owl"]
.kts-group-icon::before {
    content: "🦉";
}

#kts_groups .dou_group[data-icon="dog"]
.kts-group-icon::before {
    content: "🐶";
}

#kts_groups .dou_group[data-icon="chick"]
.kts-group-icon::before {
    content: "🐥";
}

#kts_groups .dou_group[data-icon="turtle"]
.kts-group-icon::before {
    content: "🐢";
}

#kts_groups .dou_group[data-icon="dolphin"]
.kts-group-icon::before {
    content: "🐬";
}

#kts_groups .dou_group[data-icon="whale"]
.kts-group-icon::before {
    content: "🐳";
}

#kts_groups .dou_group[data-icon="octopus"]
.kts-group-icon::before {
    content: "🐙";
}

#kts_groups .dou_group[data-icon="sunflower"]
.kts-group-icon::before {
    content: "🌻";
}

#kts_groups .dou_group[data-icon="tulip"]
.kts-group-icon::before {
    content: "🌷";
}

#kts_groups .dou_group[data-icon="apple"]
.kts-group-icon::before {
    content: "🍎";
}

#kts_groups .dou_group[data-icon="strawberry"]
.kts-group-icon::before {
    content: "🍓";
}

#kts_groups .dou_group[data-icon="cherries"]
.kts-group-icon::before {
    content: "🍒";
}

#kts_groups .dou_group[data-icon="cloud"]
.kts-group-icon::before {
    content: "☁️";
}

#kts_groups .dou_group[data-icon="moon"]
.kts-group-icon::before {
    content: "🌙";
}

#kts_groups .dou_group[data-icon="heart"]
.kts-group-icon::before {
    content: "❤️";
}

#kts_groups .dou_group[data-icon="balloon"]
.kts-group-icon::before {
    content: "🎈";
}

#kts_groups .dou_group[data-icon="palette"]
.kts-group-icon::before {
    content: "🎨";
}

#kts_groups .dou_group[data-icon="ball"]
.kts-group-icon::before {
    content: "⚽";
}

#kts_groups .dou_group[data-icon="house"]
.kts-group-icon::before {
    content: "🏠";
}

#kts_groups .dou_group[data-icon="car"]
.kts-group-icon::before {
    content: "🚗";
}

#kts_groups .dou_group[data-icon="plane"]
.kts-group-icon::before {
    content: "✈️";
}

@media (max-width: 767px) {

    .kts-group-icon-picker {
        grid-template-columns: repeat(6, 44px);
    }

}
@media (max-width: 767px) {
    ul.smarttag-tags-wrapper {
        display: none !important;
    }
}

/* =========================================================
   Рабочее пространство 1088 — карточки групп
   Единая актуальная версия
   ========================================================= */

#kts_groups {
    margin-top: 18px;
    padding: 0 12px;
}

#kts_groups > ol.sortable {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

#kts_groups > ol.sortable > li {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
    list-style: none;
}

#kts_groups > ol.sortable > li.kts-group-item--ungrouped {
    grid-column: 1 / -1 !important;
}

/* Сама карточка: один внешний контур, без коробок внутри */
#kts_groups .kts-group-card {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    box-sizing: border-box;
    float: none !important;
    position: static !important;
    overflow: visible !important;
    border: 1px solid #dbe3e7 !important;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(44, 62, 72, .05) !important;
    line-height: 1.4 !important;
}

#kts_groups .kts-group-card:hover {
    border-color: #c4d2d9 !important;
}

/* Сбрасываем старые стили .dou_group у внутренних блоков */
#kts_groups .kts-group-card > div,
#kts_groups .kts-group-card__title,
#kts_groups .kts-group-card .g_name,
#kts_groups .kts-group-card__summary,
#kts_groups .kts-group-card__diagnostics,
#kts_groups .kts-group-card__manage {
    min-height: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

#kts_groups .kts-group-card__top {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
}

#kts_groups .kts-group-card__title {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
}

#kts_groups .kts-group-card .g_name {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #2f3437;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal !important;
}

#kts_groups .kts-group-card .g_age {
    display: inline-block !important;
    margin: 0 !important;
    padding: 2px 8px !important;
    border: 0 !important;
    border-radius: 11px;
    background: #f0f3f4 !important;
    color: #758087;
    font-size: 12px;
    font-weight: 400;
    line-height: 19px;
    white-space: nowrap;
}

#kts_groups .kts-group-card__edit {
    flex: 0 0 auto;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #6e828d !important;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}

#kts_groups .kts-group-card__edit:hover,
#kts_groups .kts-group-card__edit:focus {
    color: #337ab7 !important;
    text-decoration: underline;
}

#kts_groups .kts-group-card__summary {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
    font-size: 13px;
    line-height: 1.35;
}

#kts_groups .kts-group-card__summary .group_open {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #607c8d !important;
    text-decoration: none;
}

#kts_groups .kts-group-card__summary .group_open::before,
#kts_groups .kts-group-card__summary .group_open::after {
    display: none !important;
    content: none !important;
}

#kts_groups .kts-group-card__summary .group_open > i {
    display: none !important;
}

#kts_groups .kts-group-card__summary .group_open:hover,
#kts_groups .kts-group-card__summary .group_open:focus {
    color: #337ab7 !important;
    text-decoration: underline;
}

/* Два основных действия */
#kts_groups .kts-group-card__diagnostics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
}

#kts_groups .kts-group-card__diagnostic-btn {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    margin: 0 !important;
    padding: 9px 12px !important;
    border: 1px solid #c7d8e1 !important;
    border-radius: 7px;
    background: #f8fbfd !important;
    color: #2f6f9f !important;
    box-shadow: none !important;
    text-align: left;
    text-decoration: none !important;
}

#kts_groups .kts-group-card__diagnostic-btn strong {
    display: block;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

#kts_groups .kts-group-card__diagnostic-btn span {
    display: block;
    margin-top: 2px;
    color: #7a8a93 !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
}

#kts_groups .kts-group-card__diagnostic-btn:hover,
#kts_groups .kts-group-card__diagnostic-btn:focus {
    border-color: #94b7c9 !important;
    background: #eef7fb !important;
    color: #23527c !important;
}

/* Вторичные действия — одной спокойной строкой */
#kts_groups .kts-group-card__manage {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    width: auto !important;
    margin: 15px 0 0 !important;
    padding: 11px 0 0 !important;
    border-top: 1px solid #edf1f3 !important;
    background: transparent !important;
    position: static !important;
    float: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 12px;
    line-height: 1.35;
}

#kts_groups .kts-group-card__manage a,
#kts_groups .kts-group-card__manage span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    border: 0 !important;
    background: transparent !important;
    color: #617b89 !important;
    box-shadow: none !important;
    text-decoration: none;
}

#kts_groups .kts-group-card__manage a:hover,
#kts_groups .kts-group-card__manage a:focus,
#kts_groups .kts-group-card__manage span:hover {
    color: #337ab7 !important;
    text-decoration: underline;
}

/* Дети без группы показываются только когда они реально есть */
#kts_groups .kts-group-card--ungrouped {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 16px !important;
    border-color: #eadfc8 !important;
    background: #fffaf1 !important;
    box-shadow: none !important;
}

#kts_groups .kts-group-card__ungrouped-text {
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#kts_groups .kts-group-card--ungrouped .group_open {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #7d6c4d !important;
    font-size: 12px;
    text-decoration: none;
}

#kts_groups .kts-group-card--ungrouped .group_open::before,
#kts_groups .kts-group-card--ungrouped .group_open::after {
    display: none !important;
    content: none !important;
}

#kts_groups .kts-group-card--ungrouped .kts-group-card__manage {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
}

#kts_groups > ol.sortable > li > ol {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Панель воспитателей выравниваем по карточкам */
#mdDouMembersCollapse,
#mdDouMembersCollapse + *,
#kts_groups + .panel,
#kts_groups ~ .panel {
    margin-left: 12px;
    margin-right: 12px;
}

#kts_groups ~ .panel .panel-heading {
    background: #f5f7f8;
}

@media (max-width: 767px) {
    #kts_groups {
        padding: 0;
    }

    #kts_groups > ol.sortable {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px;
    }

    #kts_groups .kts-group-card {
        padding: 15px !important;
    }

    #kts_groups .kts-group-card__top {
        gap: 10px;
    }

    #kts_groups .kts-group-card__diagnostics {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #kts_groups .kts-group-card__diagnostic-btn {
        min-height: 50px;
    }

    #kts_groups .kts-group-card--ungrouped {
        display: block !important;
    }

    #kts_groups .kts-group-card--ungrouped .kts-group-card__manage {
        margin-top: 9px !important;
        padding-top: 8px !important;
        border-top: 1px solid #eadfc8 !important;
    }
}
.kts-kids-arrow {
    margin-left: 5px;
    font-size: 11px;
}

.group_open .kts-kids-arrow--opened {
    display: none;
}

.group_open .kts-kids-arrow--closed {
    display: inline;
}

.group_open.opened .kts-kids-arrow--opened {
    display: inline;
}

.group_open.opened .kts-kids-arrow--closed {
    display: none;
}
/* Дети — такая же карточка, как диагностические,
   но занимает обе колонки */
.kts-group-card__children-btn {
    grid-column: 1 / -1;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.kts-group-card__children-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.kts-group-card__children-info > span {
    margin-top: 2px;
}

.kts-group-card__children-arrow {
    margin-left: 15px;
    font-size: 15px;
    line-height: 1;
    transition: transform .15s ease;
}

.kts-group-card__children-btn.opened .kts-group-card__children-arrow {
    transform: rotate(180deg);
}
/* Широкая кнопка "Дети группы" */
.kts-group-card__children-btn {
    grid-column: 1 / -1;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 14px;
    height: 36px !important;
padding-top: 8px !important;
padding-bottom: 8px !important;
}

/* Убираем старые стрелки/иконки group_open только у этой кнопки */
.kts-group-card__children-btn::before,
.kts-group-card__children-btn::after {
    display: none !important;
    content: none !important;
}

.kts-group-card__children-btn strong {
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.2;
}

.kts-group-card__children-count {
    font-size: 13px;
    font-weight: 400;
    color: #718491;
    line-height: 1.2;
}

.kts-group-card__children-arrow {
    margin-left: auto;
    font-size: 14px;
    line-height: 1;
    color: #527997;
    transition: transform .15s ease;
}

.kts-group-card__children-btn.opened .kts-group-card__children-arrow {
    transform: rotate(180deg);
}
.kts-group-card__children-btn {
    grid-column: 1 / -1;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 14px;

    height: 38px !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box;
}
/* Музыкальные произведения */
.panel-activity-8 {
    border-color: #9fb9cf;
}

.panel-activity-8 .panel-heading {
    border-color: #9fb9cf;
}
/* Скриншоты в инструкциях */
.instruction-screen {
    display: block;
    width: 100%;
    max-width: 873px;
    height: auto;
    margin: 12px auto 22px;
    box-sizing: border-box;
    border: 1px solid #d9e0e5;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(30, 45, 60, 0.06);
    background: #fff;
}
/* Кнопка действия в быстром просмотре занятия */

html body .md-public-task-preview
.md-public-task-preview__actions
a.md-public-task-preview__full,
html body .md-public-task-preview
.md-public-task-preview__actions
a.md-public-task-preview__full:link,
html body .md-public-task-preview
.md-public-task-preview__actions
a.md-public-task-preview__full:visited,
html body .md-public-task-preview
.md-public-task-preview__actions
a.md-public-task-preview__full:hover,
html body .md-public-task-preview
.md-public-task-preview__actions
a.md-public-task-preview__full:focus,
html body .md-public-task-preview
.md-public-task-preview__actions
a.md-public-task-preview__full:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 7px 11px !important;

    color: #28659f !important;
    -webkit-text-fill-color: #28659f !important;

    font-size: 14px !important;
    line-height: 1.2 !important;

    text-decoration: none !important;

    background: #fff !important;
    border: 1px solid #cbd7df !important;
    border-radius: 6px !important;
}


/* Мобильная кнопка "Поделиться" */

@media (max-width: 900px), (pointer: coarse) {

    html body .md-public-task-preview
    .md-public-task-preview__actions
    a.md-public-task-preview__full,
    html body .md-public-task-preview
    .md-public-task-preview__actions
    a.md-public-task-preview__full:link,
    html body .md-public-task-preview
    .md-public-task-preview__actions
    a.md-public-task-preview__full:visited,
    html body .md-public-task-preview
    .md-public-task-preview__actions
    a.md-public-task-preview__full:hover,
    html body .md-public-task-preview
    .md-public-task-preview__actions
    a.md-public-task-preview__full:focus,
    html body .md-public-task-preview
    .md-public-task-preview__actions
    a.md-public-task-preview__full:active {

        min-height: 40px !important;
        padding: 8px 14px !important;

        color: #fff !important;
        -webkit-text-fill-color: #fff !important;

        font-size: 14px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;

        background: #3aa8cf !important;
        border-color: #3198bd !important;

        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16) !important;
        text-decoration: none !important;
    }
}

.dk-task-context {
    margin: 24px 0 30px;
    padding: 22px 24px;
    background: #f7f8f4;
    border: 1px solid #dfe3d8;
    border-radius: 8px;
}

.dk-task-context__header {
    margin-bottom: 18px;
}

.dk-task-context__kicker {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6d7565;
}

.dk-task-context__title {
    margin: 0 0 7px;
    font-size: 22px;
    line-height: 1.25;
}

.dk-task-context__intro {
    margin: 0;
    max-width: 800px;
    color: #555;
    line-height: 1.5;
}

.dk-task-context__issue + .dk-task-context__issue {
    margin-top: 22px;
}

.dk-task-context__issue-title {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #4f5949;
}

.dk-task-context__item {
    padding: 16px 18px;
    background: #fff;
    border-left: 3px solid #aab59b;
}

.dk-task-context__item + .dk-task-context__item {
    margin-top: 10px;
}

.dk-task-context__meta {
    margin-bottom: 4px;
    font-size: 13px;
    color: #777;
}

.dk-task-context__item-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.35;
}

.dk-task-context__part {
    margin-top: 10px;
}

.dk-task-context__part p {
    margin: 4px 0 0;
    line-height: 1.5;
}

.dk-task-context__part-title {
    font-weight: 600;
}

.dk-task-context__relation {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    background: #edf0e8;
    font-size: 12px;
    font-weight: 600;
    color: #56604f;
}

.dk-task-context__part--continuation {
    padding-top: 10px;
    border-top: 1px solid #eceee9;
}

@media (max-width: 767px) {
    .dk-task-context {
        margin: 18px 0 24px;
        padding: 16px 14px;
    }

    .dk-task-context__item {
        padding: 14px;
    }

    .dk-task-context__title {
        font-size: 20px;
    }
}
.dk-issue {
    max-width: 980px;
    margin: 0 auto 40px;
}

.dk-issue__header {
    margin-bottom: 28px;
    padding: 26px 28px;
    background: #f7f8f4;
    border: 1px solid #dfe3d8;
    border-radius: 8px;
}

.dk-issue__kicker {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6d7565;
}

.dk-issue__title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
}

.dk-issue__lead {
    margin: 0;
    max-width: 820px;
    font-size: 17px;
    line-height: 1.55;
    color: #555;
}

.dk-issue__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dfe3d8;
    font-size: 14px;
    color: #596052;
}

.dk-issue__summary strong {
    font-size: 18px;
    color: #333;
}

.dk-issue__items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dk-issue-item {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e3e3df;
    border-radius: 7px;
}

.dk-issue-item--linked {
    border-left: 4px solid #aab59b;
}

.dk-issue-item__meta {
    margin-bottom: 5px;
    font-size: 13px;
    color: #777;
}

.dk-issue-item__title {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.35;
}

.dk-issue-item__action {
    margin: 0;
    line-height: 1.55;
}

.dk-issue-item__continuation {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #eceee9;
}

.dk-issue-item__continuation-title {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #55604e;
}

.dk-issue-task + .dk-issue-task {
    margin-top: 14px;
}

.dk-issue-task__relation {
    display: inline-block;
    margin-bottom: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #edf0e8;
    font-size: 12px;
    font-weight: 600;
    color: #56604f;
}

.dk-issue-task__title {
    display: block;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
}

.dk-issue-task__note {
    margin: 5px 0 0;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 767px) {
    .dk-issue__header {
        padding: 20px 16px;
    }

    .dk-issue__title {
        font-size: 25px;
    }

    .dk-issue__lead {
        font-size: 16px;
    }

    .dk-issue-item {
        padding: 16px;
    }

    .dk-issue__summary {
        display: block;
    }

    .dk-issue__summary span {
        display: block;
        margin-top: 6px;
    }
}
.dk-issue__bridge {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
}

.dk-issue__bridge-step {
    padding: 16px 17px;
    background: #fff;
    border: 1px solid #dde2d8;
    border-radius: 7px;
}

.dk-issue__bridge-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-bottom: 9px;
    border-radius: 50%;
    background: #edf0e8;
    font-size: 13px;
    font-weight: 700;
    color: #56604f;
}

.dk-issue__bridge-title {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.dk-issue__bridge-text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.dk-issue__bridge-arrow {
    align-self: center;
    font-size: 25px;
    color: #9ba78f;
}

.dk-issue__bridge-note {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-left: 3px solid #aab59b;
    background: rgba(255,255,255,.55);
    font-size: 15px;
    line-height: 1.55;
}

.dk-issue__for-teacher {
    margin-top: 30px;
    padding: 24px 27px;
    background: #f7f8f4;
    border: 1px solid #dfe3d8;
    border-radius: 8px;
}

.dk-issue__for-teacher-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.3;
}

.dk-issue__for-teacher p {
    margin: 0 0 11px;
    line-height: 1.6;
}

.dk-issue__for-teacher p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .dk-issue__bridge {
        display: block;
    }

    .dk-issue__bridge-step {
        margin-bottom: 8px;
    }

    .dk-issue__bridge-arrow {
        margin: 2px 0 8px;
        text-align: center;
        transform: rotate(90deg);
    }

    .dk-issue__bridge-note {
        margin-top: 15px;
    }

    .dk-issue__for-teacher {
        padding: 19px 16px;
    }
}
/* Детский календарь — ссылки на страницы JPG */

.dk-issue-item__original {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dk-issue-item__original-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.dk-issue-item__jpgs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dk-issue-item__jpg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #bca47f;
    border-radius: 5px;
    background: #fff8ed;
    color: #6d4f2d !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.dk-issue-item__jpg:hover,
.dk-issue-item__jpg:focus {
    background: #eee0ca;
    color: #493117 !important;
    text-decoration: none !important;
}
/* JPG Детского календаря в Bootstrap modal */

.dk-jpg-bootstrap-modal .modal-dialog {
    width: min(1100px, 94%);
}

.dk-jpg-bootstrap-modal__body {
    text-align: center;
    padding: 12px;
}

.dk-jpg-bootstrap-modal__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
}

.dk-jpg-bootstrap-modal .modal-title {
    padding-right: 35px;
    font-size: 17px;
    line-height: 1.35;
}

@media (max-width: 767px) {

    .dk-jpg-bootstrap-modal .modal-dialog {
        width: auto;
        margin: 10px;
    }

    .dk-jpg-bootstrap-modal__image {
        max-height: 76vh;
    }
}
/* ==========================================================
   Игры из Детского календаря
   ========================================================== */

.dk-game-list {
    margin-top: 36px;
}

.dk-game-list__head {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #f8f5ef;
    border: 1px solid #e4ddd1;
    border-radius: 8px;
}

.dk-game-list__head h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.dk-game-list__head p {
    margin: 0;
    color: #666;
    line-height: 1.55;
}

.dk-game-list__age {
    margin-top: 28px;
}

.dk-game-list__age-title {
    margin: 0 0 14px;
    font-size: 20px;
}

.dk-game-list__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dk-game-card {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #ddd7cc;
    border-radius: 7px;
}

.dk-game-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-bottom: 7px;
    color: #777;
    font-size: 13px;
}

.dk-game-card__meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: #bbb;
}

.dk-game-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

.dk-game-card__title a {
    color: #5f472d;
    text-decoration: none;
}

.dk-game-card__title a:hover,
.dk-game-card__title a:focus {
    color: #3d2b19;
    text-decoration: underline;
}

.dk-game-card__open {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .dk-game-list__cards {
        grid-template-columns: 1fr;
    }

    .dk-game-list__head {
        padding: 15px;
    }
}
.dk-game-card__parts {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dk-game-card__part {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #ddd2c0;
    border-radius: 5px;
    background: #faf7f1;
    font-size: 13px;
}

.dk-game-card__part a {
    font-weight: 600;
}

.dk-game-card__part-pages {
    color: #777;
    font-size: 12px;
}
/* ДК в поиске занятий: начинаем после плавающих карточек mSearch2 */

.dk-game-list {
    clear: both;
    display: flow-root;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dk-game-list__age {
    clear: both;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dk-game-list__cards {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dk-game-card {
    width: auto;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .dk-game-list__cards {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Навигация списка игр ДК
   ========================================================= */

.dk-game-list__nav {
    clear: both;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 26px;
    padding: 11px 13px;
    background: #f7f7f5;
    border: 1px solid #dedbd4;
    border-radius: 7px;
}

.dk-game-list__nav-label {
    margin-right: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.dk-game-list__nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid #d6c8b2;
    border-radius: 5px;
    background: #fff;
    color: #60482f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.dk-game-list__nav a:hover,
.dk-game-list__nav a:focus {
    background: #f3eadc;
    color: #45311d;
    text-decoration: none;
}

.dk-game-list__nav-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 5px;
    border-radius: 10px;
    background: #eee8de;
    color: #777;
    font-size: 11px;
    text-align: center;
}


/* =========================================================
   Действия карточки
   ========================================================= */

.dk-game-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 11px;
}

.dk-game-card__view {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #bca47f;
    border-radius: 5px;
    background: #fff8ed;
    color: #684b2a !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.dk-game-card__view:hover,
.dk-game-card__view:focus {
    background: #eee0ca;
    color: #493117 !important;
    text-decoration: none !important;
}

.dk-game-card__issue {
    font-size: 13px;
    color: #777 !important;
    text-decoration: underline;
}

.dk-game-card__mixed {
    display: inline-block;
    margin-bottom: 7px;
    padding: 2px 7px;
    border-radius: 3px;
    background: #f2f0eb;
    color: #777;
    font-size: 11px;
}


/* =========================================================
   Продолжающаяся игра
   ========================================================= */

.dk-game-card__parts {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 11px;
}

.dk-game-card__part {
    display: block;
    padding: 8px 10px;
    border: 1px solid #ddd2c0;
    border-radius: 5px;
    background: #faf7f1;
}

.dk-game-card__part-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
}

.dk-game-card__part-head > a,
.dk-game-card__part-head > span:first-child {
    font-weight: 700;
}

.dk-game-card__part-pages {
    color: #777;
    font-size: 12px;
}

.dk-game-card__part-actions {
    display: flex;
    gap: 13px;
    margin-top: 4px;
    font-size: 12px;
}


/* =========================================================
   Возврат к возрастам
   ========================================================= */

.dk-game-list__back {
    margin-top: 12px;
    text-align: right;
    font-size: 12px;
}

.dk-game-list__back a {
    color: #777;
}


/* =========================================================
   Bootstrap-модалка страниц ДК
   ========================================================= */

.dk-game-modal .modal-dialog {
    width: auto;
    max-width: 1080px;
    margin: 30px auto;
}

.dk-game-modal .modal-body {
    max-height: 76vh;
    overflow: auto;
    padding: 14px;
    background: #f7f7f7;
}

.dk-game-modal .modal-header .close {
    font-size: 30px;
    line-height: 22px;
    opacity: .55;
}

.dk-game-modal .modal-header .close:hover {
    opacity: .9;
}

.dk-game-modal__page {
    margin: 0 auto 18px;
    text-align: center;
}

.dk-game-modal__page:last-child {
    margin-bottom: 0;
}

.dk-game-modal__page img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 68vh;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.18);
}

.dk-game-modal__page-label {
    margin-top: 6px;
    color: #777;
    font-size: 12px;
}


@media (max-width: 767px) {

    .dk-game-list__nav {
        align-items: stretch;
    }

    .dk-game-list__nav-label {
        width: 100%;
    }

    .dk-game-list__nav a {
        flex: 1 1 auto;
        justify-content: space-between;
    }

    .dk-game-card__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .dk-game-modal .modal-dialog {
        margin: 10px;
    }

    .dk-game-modal .modal-body {
        max-height: 78vh;
        padding: 10px;
    }
}
.navbar .header .site-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 10px;
}