.gramotey__header {
  padding: 20px 0 30px;
}

.gramotey__header-settings {
  -webkit-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
  cursor: pointer;
}

.puzzle-subheader_style_green .gramotey__header-settings svg path {
  fill: #fff;
}

.gramotey__header-how-to {
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  margin-top: 7px;
}

.gramotey__header-how-to a {
  border-bottom: 1px solid #2F4051;
  text-decoration: none;
  color: #2F4051 !important;
}

.gramotey__header-settings:hover {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

.gramotey__header-settings svg path {
  fill: #2F4051;
}

.gramotey__header-button {
  font-size: 24px;
  color: #8f8;
  margin: 0 -20px 15px 40px;
  background: initial;
  vertical-align: bottom;
  border: solid 2px #8f8;
  padding: 3px 10px;
  border-radius: 20px;
}

.gramotey__header-button:hover {
  background-color: #4c4;
}

.gramotey__header-progress {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.gramotey__header-progress.admin {
    width: 65%;
    margin-left: 8%;
}

.gramotey__header-progress-clickable {
    cursor: pointer;
}

.gramotey__header-progress-header {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.gramotey__stat {
  float: right;
  margin: 20px;
  width: 20%;
  height: 600px;
  border: dashed 1px green;
  font-size: 14px;
  overflow-y: auto;
}

.gramotey__stat .outer_bar {
  margin: 3px 0;
  padding: 5px 25px 2px;
}

.gramotey__stat .inner_bar {
  background-color: white;
  height: 5px;
}

.gramotey__stat span {
  display: inline-block;
  margin: 5px 10px 5px 0;
  font-size: 12px;
}

.gramotey__stat span:not(.inner_bar) {
  vertical-align: super;
}

.gramotey__no-task {
  margin: 20px;
  font-size: 32px;
  /* color: red; */
}

.gramotey__task-count {
  font-size: 12px;
  color: #7d7d7d;
  font-family: 'MuseoNew', Arial, sans-serif, Helvetica;
}

.gramotey__task-item {
  padding: 40px 0;
  border-bottom: 1px dashed #e7e7e7;
  position: relative;
}

.gramotey__task-admin-button {
  float: right;
  color: green;
  border: solid 1px green;
  border-radius: 10px;
  margin: 10px 10px 0 0;
  padding: 1px 5px;
}

.gramotey__task-phrase-button {
  margin-right: 20px;
  width: 70px;
  height: 60px;
}

.gramotey__task_rtl .gramotey__task-phrase-button {
  margin-right: 0;
  margin-left: 20px;
}

.gramotey__task-phrase-button-play {
  display: block;
  width: 70px;
  height: 60px;
  border-bottom: 4px solid #459e60;
  border-radius: 3px;
  background: #50b46f url('/wp-content/themes/english/assets/antago/img/icon_headphones.svg') center no-repeat;
  z-index: 2;
}

.gramotey__task-phrase-button-record {
  display: block;
  width: 70px;
  height: 70px;
  background: transparent url('/wp-content/themes/english/assets/antago/img/icon_microphone.svg') center no-repeat;
  z-index: 2;
  position: relative;
  top: -5px;
}

.gramotey__task-words-keypress {
  position: absolute;
  left: 50%;
  bottom: -45px;
  margin-left: -13px;
}

.gramotey__task-phrase-button-play:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .27);
}

.gramotey__task-phrase {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-flow: row nowrap;
  -moz-flex-flow: row nowrap;
  -ms-flex-flow: row nowrap;
  -o-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -ms-align-items: center;
  align-items: center;
  margin-top: 30px;
}

.gramotey__task-phrase-button-slow-text {
  text-align: center;
  line-height: 1;
  margin-top: 5px;
  font-size: 9px;
}

.gramotey__task-phrase-button-slow-text span {
  line-height: 1;
  font-size: 9px;
  color: #1caaec;
  cursor: pointer;
  border-bottom: 1px dashed #1caaec;
  display: inline-block;
  vertical-align: top;
}

.gramotey__task-phrase-text-tsln {
  font-size: 16px;
  opacity: 0.6;
}

.gramotey__task-phrase-text {
  font-size: 24px;
  direction: ltr !important;
}

.gramotey__task-phrase-text .is-wrong {
  font-weight: 600;
  background: none;
  color: #e02711;
}

.gramotey__task-spoken-text {
  display: block;
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: blue;
}

.gramotey__task-form {
  margin-top: 25px;
}

.gramotey__task-title {
  font-size: 16px;
  margin-bottom: 4px;
  margin-top: 8px;
}

.gramotey__task-item.is-passed .gramotey__task-title {
  font-size: 14px;
  margin-top: 4px;
}

.gramotey__task-count {
  font-size: 11px;
  margin-bottom: 4px;
}

/* task main box */
.gramotey__task-form .gramotey__task-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: #606060;
}

.gramotey__task-title-example {
  margin-top: 7px;
  color: #cbcbcb;
  font-size: 14px;
}

.gramotey__task_rtl .gramotey__task-title-example {
  direction: ltr !important;
  text-align: right;
}

.gramotey__task-form-input-blank, .gramotey__task-form-output-blank {
  margin: 0;
  border: none;
  border-bottom: solid 1px !important;
  width: 93px;
  height: 35px;
  font-size: inherit;
  font-family: inherit;
  color: #69b945;
}

.gramotey__task-form-textarea .puzzle-textarea {
  padding: 14px 18px 12px;
  min-height: 80px;
}

.gramotey__task-form-wrongs {
  margin: 60px 0 10px 90px;
  padding-bottom: 40px;
  min-height: 100px;
  position: relative;
}

span.gramotey_empty_value {
    position: relative;
    left: 10px;
	display: inline-block;
	width: 25px;
    vertical-align: top;
}

span.gramotey_empty_value span {
	position: absolute;
    left: -11px;
	display: inline-block;
	width: 25px;
	height: 25px;
	border: solid 1px grey;
	border-radius: 20px;
}

._hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.gramotey__task-form-footer-hint {
  font-size: 12px;
  color: #9e9e9e;
}

.gramotey-hlink {
  line-height: 1;
  font-size: 16px;
  color: #1caaec;
  cursor: pointer;
  margin-right: 50px;
}

.gramotey-hlink_rtl {
  margin-right: 0px;
  margin-left: 50px;
}

.gramotey__task-form-skip span,
.gramotey__task-form-postpone span:not(.xclose) {
  border-bottom: 1px dashed #1caaec;
  margin-right: 4px;
}

.gramotey__task-form-skip svg path {
  fill: #1caaec;
}

.gramotey__task-form-postpone {
  position: relative;
}

.gramotey__task-form-postpone span.xclose {
  position: absolute;
  top: -3px;
  right: -20px;
  margin-left: 5px;
  font-size: 22px;
}

.gramotey__task-checkboxes .checkbox-line__text_fz_medium {
  font-size: 16px;
}

/* result box */
.gramotey__task-phrase-text .gramotey__task-title {
  font-size: 14px;
  color: #606060;
  font-weight: normal;
}

.gramotey__task-analysis {
  margin-top: 40px;
  font-size: 16px;
}

.gramotey__task-analysis-comments {
  font-size: 16px;
  margin-bottom: 10px;
}

.gramotey__task-analysis-result {
  /* font-size: 20px; */
  /* font-weight: 500; */
  margin-bottom: 5px;
}

.gramotey__task-analysis-result a,
.gramotey__task-analysis-recommend a {
  text-decoration: none;
  color: #00a9ef;
}

.gramotey__task-actions {
  font-size: 16px;
}

.gramotey__task-analysis-result-title {
  color: #707070;
/*
font-weight: normal;
font-size: 16px;
text-decoration: underline;
*/
}

.gramotey__task-analysis-result-right {
  font-weight: 500;
  color: #50b46f;
}

.gramotey__task-analysis-result-wrong {
  font-weight: 500;
  color: #e02711;
}

.gramotey__task-analysis-result-missing-wrapper {
  color: #e02711; /* == puzzle-text_style_red */
  opacity: 0.3;
  display: inline-block;
  vertical-align: bottom;
  width: 12px;
  overflow: hidden;
}

.gramotey__task-analysis-info {
  font-size: 16px;
  line-height: 1.56;
}

.gramotey__task-analysis-result-missing-wrapper:hover {
  opacity: 0.7;
  width: auto;
  cursor: default;
}

.gramotey__task-analysis-result-missing {
  display: none
}

.gramotey__task-analysis-result-missing-wrapper:hover > .gramotey__task-analysis-result-missing {
  display: inline
}

.gramotey__task-analysis-result-error {
  font-size: 80%;
  margin-left: 20px;
  font-style: italic;
}

.gramotey__task-analysis-bold {
  /* color: blue; */
  font-weight: bold;
}

.gramotey__task-target-word {
  font-weight: bold;
}

.gramotey__task-target-vtags {
  font-style: italic;
}

.gramotey__task-asterisk-hint {
  font-size: 90%;
  font-weight: bold;
  cursor: default;
}

.is-passed-tpl {
  display: none;
}

.gramotey__header-task-types .j-gm__confirm {
  margin: auto;
}

.gramotey__header-task-types .j-gm__confirm button.user_log {
  position: absolute;
  top: 50px;
}

.gramotey__header-task-types button {
  margin-left: 20px;
}

.gramotey__done-task {
  color: #7bc07a; /* == puzzle-text_style_green */
  font-weight: bold;
  text-align: center;
  font-size: 36px;
  margin-top: 20px;
  margin-bottom: 50px;
}

.gramotey__task-reload, .gramotey__task-back-to-plan {
  margin: 20px 20px 0 20px;
}

.gramotey__task-hr {
  margin: 40px 0;
}

.puzzle-subheader_gramotey .puzzle-subheader__title {
  position: relative;
}

#TasksContainer.ready {
  margin-bottom: 0 !important;
}

.completed.TaskText {
  color: #7bc07a; /* == puzzle-text_style_green */
}

span.predicate {
  font-style: italic;
  opacity: 0.7;
}

span.predct_bold {
  font-style: italic;
  color: green;
}

span.subject,
span.dobject {
  font-style: italic;
  color: green;
}

span.subject_word_who,
span.subject_word_what,
span.dobject_word_whom,
span.dobject_word_what {
  font-weight: bold;
  color: green;
}

span.subject_word_who::after {
  content: "/who";
  color: orange;
}

span.dobject_word_whom::after {
  content: "/whom";
  color: orange;
}

span.dobject_word_what::after,
span.subject_word_what::after {
  content: "/what";
  color: blue;
}

/* ------------------------------------- admin page ----------------------------------------- */

.gramotey__admin {
  width: 100%;
  margin: 0 10px;
}

.gramotey__admin--message {
  margin-top: 20px;
  font-size: 32px;
  color: #e02712; /* == puzzle-text_style_red */
}

.gramotey__admin-to-task-type {
  float: right;
  margin: 0 30px;
}

.gramotey__admin-to-task-type form {
  margin: 0;
}

.gramotey__admin-to-task-type form * {
  vertical-align: middle;
}

.gramotey__admin-to-task-type input {
  width: 10px;
  vertical-align: top;
}

.gramotey__admin-add-sent {
  margin: 10px 0;
}

.gramotey__admin-add-sent-link, .gramotey__admin-import-sents-link {
  cursor: pointer;
  vertical-align: top;
}

.gramotey__admin-add-sent-text {
  margin-left: 20px;
  border: 1px dotted;
  padding: 7px;
}

.gramotey__admin-sents-table th,
.gramotey__admin-sents-table td {
  text-align: left;
  padding-right: 15px;
}

.gramotey__admin-sents-table thead[data-id='title'] th {
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.gramotey__admin-sents-table thead[data-id='title']:hover {
  position: relative;
}

.gramotey__admin-sents-table thead[data-id='title'] th:hover {
  color: green;
  position: absolute;
  top: -4px;
  max-width: initial;
  background: white;
  border-radius: 20px;
  font-size: 120%; /* correlates with 'top' */
}

.gramotey__admin-sents-table thead th[data-key='id'],
.gramotey__admin-sents-table thead th[data-key='src'],
.gramotey__admin-sents-table thead th[data-key='src_id'],
.gramotey__admin-sents-table thead th[data-key='v_attrs'],
.gramotey__admin-sents-table thead th[data-key='off'] {
  max-width: 50px;
}

.gramotey__admin-sents-table thead th[data-key='x_off'] {
  max-width: 100px;
}

.gramotey__admin-sents-table thead[data-id='select'] th[data-key='id'] select,
.gramotey__admin-sents-table thead[data-id='select'] th[data-key='src'] select,
.gramotey__admin-sents-table thead[data-id='select'] th[data-key='src_id'] select,
.gramotey__admin-sents-table thead[data-id='select'] th[data-key='v_attrs'] select,
.gramotey__admin-sents-table thead[data-id='select'] th[data-key='off'] select {
  max-width: 50px;
}

.gramotey__admin-sents-table thead[data-id='select'] th[data-key='x_off'] select {
  max-width: 100px;
}

.gramotey__admin-sents-table th select {
  position: relative;
}

.gramotey__admin-sents-table th select + input {
  display: none;
}

.gramotey__admin-sents-table th select[value='other'] + input {
  display: block;
  position: absolute;
  margin-top: 10px;
  padding: 2px 5px;
  border-radius: 7px;
  box-shadow: 0px 0px 2px #888;
}

.gramotey__admin-sents-table td:first-child {
  font-weight: bold;
  cursor: pointer;
}

.gramotey__admin-sents-table td:nth-child(2),  /* post */
.gramotey__admin-sents-table td:nth-child(3) { /* piece */
  cursor: pointer;
}

.gramotey__admin-sents-table tbody tr:hover {
  background-color: #f4f4f4;
}

.gramotey__admin-sents-table tr.disabled {
  opacity: 0.3;
}

.gramotey__admin-sents-table tr.off {
  background-color: #fef2dd;
}

.gramotey__admin-sents-table tr.off:hover {
  background-color: #fee4aa;
}

.gramotey__admin-sents-table tr.x_off {
  background-color: #f2fedd;
}

.gramotey__admin-sents-table tr.x_off:hover {
  background-color: #e4feaa;
}

.gramotey__admin-sents-table tr.off.x_off {
  background-color: #f2ddfe;
}

.gramotey__admin-sents-table tr.off.x_off:hover {
  background-color: #e4aafe;
}

.gramotey__admin-task-types-name  {
  display: inline-block;
  margin-right: 10px;
}

.gramotey__admin-task-types-name h3 {
  padding: 5px 0;
}

.gramotey__admin-row-selectors {
  font-size: 80%;
  float: right;
  cursor: default;
}

.gramotey__admin-row-selectors table tr {
  border-bottom: 1px dotted lightgrey;
}

.gramotey__admin-row-selectors table.gramotey__admin-task-error-messages tr.available {
  background-color: #efe;
}

.gramotey__admin-row-selectors table.gramotey__admin-task-error-messages td {
  padding: 0 15px;
}

.gramotey__admin-row-selectors table {
  margin: 0px 50px 20px;
  border: dotted 1px lightgrey;
}

.gramotey__admin-task-types-table tr td.on,
.gramotey__admin-task-types-table tr td.x_on { /* checkbox column */
  text-align: center;
  position: relative;
}

/* ------------------------------------- sent admin modal ---------------------------------------- */

.gramotey__admin-sent-modal {
  display: table;
  position: fixed;
  top: 0px; left: 0px;
  margin-left: 50px;
  box-shadow: 0px 0px 20px #888;
  background-color:rgba(0,0,0,0.2);
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.gramotey__admin-sent-wrap {
  display: table-cell;
  vertical-align: middle;
}

.gramotey__admin-sent {
  margin-left: auto;
  margin-right: auto;
  width: 700px;
  padding: 20px;
  background: white;
}

.gramotey__admin-sent-close {
  float: right;
  font-size: 40px;
  position: relative;
  top: -10px; /* partially compensate gramotey__admin-sent's padding top */
  cursor: pointer;
}

.gramotey__admin-sent-text {
  font-size: 120%;
  border-bottom: solid 1px;
  padding-bottom: 10px;
  cursor: default;
}

.gramotey__admin-sent-table {
  text-align: left;
  margin-bottom: 20px;
}

.gramotey__admin-sent-table tr.off td {
  opacity: 0.2;
}
.gramotey__admin-sent-table tr.off td:nth-last-child(-n+2)  {
    opacity: 1;
}
.gramotey__admin-sent-table th {
  padding-left: 3px;              /* same as for td */
}

.gramotey__admin-sent-table td {
  padding: 5px 25px 5px 3px;
}

.gramotey__admin-sent-notask {
  color: #aaa;
  background-color: #f8f8f8;
}

.gramotey__admin-sent-table td.task_name {
  font-size: 90%;
}

.gramotey__admin-sent-table th.task_name,
.gramotey__admin-sent-table tr:not(.gramotey__admin-sent-notask) td.task_name {
  cursor: pointer;
}

.gramotey__admin-sent-table td.right {
  font-style: italic;
}

.gramotey__admin-sent-notask td.right {
  font-style: initial;
  font-family: Verdana;
}

.gramotey__admin-sent-table td.on,
.gramotey__admin-sent-table td.x_on {
  text-align: center;
}

.gramotey__admin-sent-error {
  font-size: 32px;
  color: red;
  margin: 50px 20px;
  font-style: italic;
}

.gramotey__admin-sent-text span.excluded_note {
  font-weight: bold;
  color: orange;
  font-style: italic;
  margin-left: 30px;
}

.balloon-row span.word {
  min-width: 40px;
}

/* from page-listening.css */
.balloon-row .word-wrapper:hover {
  background: #1caaec; /* 71b26f; */
  color: #fff;
  border-radius: 2px;
  padding: 0 1px;
  margin: 0 -1px;
  cursor: default;
}

.gramotey__learning-debug .drawbars {
  margin: 40px 30px 0 40px;
  display: inline-block;
  font-size: 14px;
}

.gramotey__learning-debug .skill {
  margin: 20px 30px 0 40px;
  font-size: 150%;
  color: green;
}

.gramotey__learning-debug .levels {
  width: 70%;
  overflow: auto;
}

.gramotey__learning-debug .task_levels {
  width: 20%;
  overflow: auto;
}

.gramotey__learning-debug .sents ul {
  font-size: 12px;
  margin: 30px auto;
  width: 900px;
  height: 200px;
  list-style-type: none;
  overflow: auto;
}

.gramotey__learning-debug .sents b {
  display: block;
  margin: 30px auto;
  width: 900px;
  height: 50px;
}

.gramotey__learning-debug .sents li {
  padding: 2px;
}

.gramotey__learning-debug .sents li:hover {
  background-color: #eee;
}

.gramotey__learning-debug .sents li.selected {
  font-weight: bold;
}

.gramotey__learning-debug .sents li span {
  display:inline-block;
  padding: 0 15px;
  width: 60px;
}

.gramotey__learning-skill-able {
  background-color: green !important;
}

/*------------map------------------*/

@media screen and (min-width: 1200px) {
  .container-fluid_1350 {
    max-width: 1350px;
  }
}

.gramotey-puzzle-page {
  margin-bottom: 50px;
  padding-top: 50px;
}

.gramotey-puzzle-page h1 {
  font-size: 32px;
  color: #2f4051;
  font-weight: 300;
  text-align: center;
  padding-bottom: 50px;
}

.gramotey-puzzle {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.gramotey-puzzle-fakediv { display: none }

.gramotey-puzzle-item {
  height: 204px;
  border-top: solid 4px #ffffff;
  border-left: solid 4px #ffffff;
  border-bottom: none;
  border-right: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  cursor: pointer;
}

.gramotey-puzzle-item.disabled,
.gramotey-puzzle-item.disabled::before,
.gramotey-puzzle-item.disabled::after {
  background-color: #e3e3e3 !important;
}

.gramotey-puzzle-item.disabled .gramotey-puzzle-item__title {
  opacity: 0.5;
}

.gramotey-puzzle-item .gramotey-puzzle-item {
  border: none;
}

@media screen and (min-width: 1200px) {
  .gramotey-puzzle-item.no-border-left-4      { border-left: none; }
  .gramotey-puzzle-item.no-border-right-4     { border-right: none; }
  .gramotey-puzzle-item.no-border-top-4       { border-top: none; }
  .gramotey-puzzle-item.no-border-bottom-4    { border-bottom: none; }
  .gramotey-puzzle-fakediv { z-index: 4 }
}

.gramotey-puzzle-item_inner {
  width: 100%;
}

.gramotey-puzzle-item_inner,
.gramotey-puzzle-item_inner::after,
.gramotey-puzzle-item_inner::before {
  background-color: inherit;
}

.gramotey-puzzle-item_red,
.gramotey-puzzle-item_red::after,
.gramotey-puzzle-item_red::before {
  background-color: #f7a67d;
}

.gramotey-puzzle-item_yellow,
.gramotey-puzzle-item_yellow::after,
.gramotey-puzzle-item_yellow::before {
  background-color: #ede858;
}

.gramotey-puzzle-item_green,
.gramotey-puzzle-item_green::after,
.gramotey-puzzle-item_green::before {
  background-color: #88ce8b;
}

.gramotey-puzzle-item_min {
  width: 25%;
}

.gramotey-puzzle-item_big {
  width: 50%;
}

.gramotey-puzzle-item-1::after {
  content: '';
  position: absolute;
  right: -33px;
  top: 50%;
  margin-top: -20px;
  width: 29px;
  height: 40px;
  border-radius: 100% 100% 100% 100% / 60% 100% 100% 60%;
  border: solid 4px #ffffff;
  border-left: none;
}

.gramotey-puzzle-item-1::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -32px;
  margin-left: -22px;
  width: 40px;
  height: 29px;
  border-radius: 60% 60% 100% 100% / 100% 100% 100% 100%;
  border: solid 4px #ffffff;
  border-top: none;
}

.gramotey-puzzle-item-2::after,
.gramotey-puzzle-item-2::before {
  content: '';
  position: absolute;
  bottom: -32px;
  width: 40px;
  height: 29px;
  border-radius: 60% 60% 100% 100% / 100% 100% 100% 100%;
  border: solid 4px #ffffff;
  border-top: none;
}

.gramotey-puzzle-item-2::after {
  left: 25%;
  margin-left: -22px;
}

.gramotey-puzzle-item-2::before {
  right: 25%;
  margin-right: -22px;
}

.gramotey-puzzle-item-3::before {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -22px;
  top: -32px;
  width: 40px;
  height: 29px;
  border-radius: 100% 100% 60% 60% / 100% 100% 100% 100%;
  border: solid 4px #ffffff;
  border-bottom: none;
}

.gramotey-puzzle-item-3::after {
  content: '';
  position: absolute;
  left: -33px;
  top: 50%;
  margin-top: -20px;
  width: 29px;
  height: 40px;
  border-radius: 100% 100% 100% 100% / 100% 60% 60% 100%;
  border: solid 4px #ffffff;
  border-right: none;
}

.gramotey-puzzle-item-6::after {
  content: '';
  position: absolute;
  right: -33px;
  top: 50%;
  margin-top: -20px;
  width: 29px;
  height: 40px;
  border-radius: 100% 100% 100% 100% / 60% 100% 100% 60%;
  border: solid 4px #ffffff;
  border-left: none;
}

.gramotey-puzzle-item-7::after,
.gramotey-puzzle-item-7::before {
  content: '';
  position: absolute;
  top: -32px;
  width: 40px;
  height: 29px;
  border-radius: 100% 100% 60% 60% / 100% 100% 100% 100%;
  border: solid 4px #ffffff;
  border-bottom: none;
}

.gramotey-puzzle-item-7::after {
  left: 25%;
  margin-left: -22px;
}

.gramotey-puzzle-item-7::before {
  right: 25%;
  margin-right: -22px;
}

.gramotey-puzzle-item-8::after {
  content: '';
  position: absolute;
  left: -33px;
  top: 50%;
  margin-top: -20px;
  width: 29px;
  height: 40px;
  border-radius: 100% 100% 100% 100% / 100% 60% 60% 100%;
  border: solid 4px #ffffff;
  border-right: none;
}

.gramotey-puzzle-item__title {
  font-weight: bold;
  font-size: 28px;
  color: #2f4051;
  margin: 0 25px 10px;
  text-align: center;
  line-height: 34px;
}

.gramotey-puzzle__progress-line {
  width: 196px;
  height: 8px;
  position: relative;
  margin-bottom: 13px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.3);
  border-radius: 5px;
}

.gramotey-puzzle-item_red .gramotey-puzzle__progress-line {
  background-color: #e89775;
}

.gramotey-puzzle-item_yellow .gramotey-puzzle__progress-line {
  background-color: #dcb32e;
}

.gramotey-puzzle-item_green .gramotey-puzzle__progress-line {
  background-color: #69aa6c;
}

.gramotey-puzzle__progress-line-complete {
  position: absolute;
  left: 0;
  top: 0;
  height: inherit;
  background-color: #fff;
  border-radius: 5px;
}

.gramotey-puzzle-item__percent {
  font-weight: 500;
  font-size: 14px;
  color: #2f4051;
}

.gramotey-puzzle__header {
  margin-bottom: 4px;
}

.gramotey-puzzle__back-title {
  font-size: 12px;
  font-weight: bold;
}

.gramotey-puzzle__back {
  text-decoration: none;
  color: #2f4051;
}

.gramotey-puzzle__filter {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  justify-content: flex-end;
  -webkit-flex-flow: row nowrap;
  -moz-flex-flow: row nowrap;
  -ms-flex-flow: row nowrap;
  -o-flex-flow: row nowrap;
  flex-flow: row nowrap;
}

.gramotey-puzzle__filter-item {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #bfced9;
  padding: 0 20px;
  cursor: pointer;
}

.gramotey-puzzle__filter-item:hover {
  color: #79c257;
}

.gramotey-puzzle__filter-item.is-active {
  color: #79c257;
}

.gramotey-puzzle__filter-item:last-child {
  padding-right: 0;
}

/*---------------*/

.gramotey-progress-box-height {
  /* height: 420px; <--- set up dynamically */
}

.gramotey-progress-box {
  direction: rtl;
  margin-top: 13px;
  padding: 0 3px;
  max-height: 420px;
  overflow: hidden;
  cursor: grab;
}

.gramotey-progress-box.moved {
  cursor: grabbing;
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.1), 0 17px 50px 0 rgba(0,0,0,0.05) !important
}

.gramotey-progress_line__scrolled_down_shadow,
.gramotey-progress_line__scrolled_up_shadow {
  position: absolute;
  left: 0;
  width: 100%;
  /* height: 520px;       same as gramotey-progress-box */
  margin: 0 3px;          /* same as padding of gramotey-progress-box */
  z-index: 3;             /* > gramote-progress-line__content */
}

.gramotey-progress_line__scrolled_down_shadow {
  top: 0;
}

.gramotey-progress_line__scrolled_up_shadow {
  /* bottom: 0; */
  bottom: 60px;                /* Warning: == size of div.gramotey-progress-details-link */
}

.gramotey-progress-box.scrolled_down .gramotey-progress_line__scrolled_down_shadow {
  box-shadow: 0 50px 50px -30px white inset;
}

.gramotey-progress-box.scrolled_up .gramotey-progress_line__scrolled_up_shadow {
  box-shadow: 0 -50px 50px -30px white inset;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* IE/Edge */
  user-select: none;
}

.gramotey-progress-line {
  direction: ltr;
  height: 60px;
  width: 100%;
  background-color: #f3f6fb;
  margin-bottom: 4px;
  position: relative;
}

.gramotey-progress-line__complete {
  height: inherit;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.gramotey-progress-line__content {
  position: relative;
  z-index: 2;
  height: inherit;
  padding: 0 15px 0 26px;
}

.gramotey-progress-line__text {
  padding: 0 !important;
}

.gramotey-progress-details-link {
/*
  margin-left: 50px; /-* complements margin-right:50px in gramotey-hlink *-/
*/
  display: block;
  margin: 25px auto 0;
  width: 50px;
  height: 35px;      /* Warning: height + margin-top == bottom(.gramotey-progress_line__scrolled_up_shadow) */
}

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

  .container-fluid_992 {
    max-width: 992px;
  }

  .gramotey-puzzle-item_min{
    width: 33.33%;
  }

  @media screen and (min-width: 992px) {
    .gramotey-puzzle-item.no-border-left-3      { border-left: none; }
    .gramotey-puzzle-item.no-border-right-3     { border-right: none; }
    .gramotey-puzzle-item.no-border-top-3       { border-top: none; }
    .gramotey-puzzle-item.no-border-bottom-3    { border-bottom: none; }
    .gramotey-puzzle-fakediv { z-index: 3 }
  }
}

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

  .container-fluid_767 {
    max-width: 767px;
  }

  .gramotey-puzzle-item_min{
    width: 50%;
  }

  @media screen and (min-width: 767px) {
    .gramotey-puzzle-item.no-border-left-2      { border-left: none; }
    .gramotey-puzzle-item.no-border-right-2     { border-right: none; }
    .gramotey-puzzle-item.no-border-top-2       { border-top: none; }
    .gramotey-puzzle-item.no-border-bottom-2    { border-bottom: none; }
    .gramotey-puzzle-fakediv { z-index: 2 }
  }

/*
.gramotey-puzzle-item-3::before {
content: '';
position: absolute;
left: 50%;
bottom: -32px;
margin-left: -22px;
width: 40px;
height: 29px;
border-radius: 60% 60% 100% 100% / 100% 100% 100% 100%;
border: solid 4px #ffffff;
border-top: none;
}

.gramotey-puzzle-item-3::after {
right: -33px;
left: auto;
border-radius: 100% 100% 100% 100% / 60% 100% 100% 60%;
border-left: none;
border-right:  4px solid #fff;
}
*/

.gramotey-puzzle-item-2::before,
.gramotey-puzzle-item-7::before {
  display: none;
}

.gramotey-puzzle-item-2::after,
.gramotey-puzzle-item-7::after{
  left: 50%;
}

.gramotey-puzzle-item-6::after {
  left: -33px;
  right: auto;
  border-radius: 100% 100% 100% 100% / 100% 60% 60% 100%;
  border-right: none;
  border-left:  4px solid #fff;
}

.gramotey-puzzle-item-8::before,
.gramotey-puzzle-item-6::before{
  left: 50%;
  margin-left: -22px;
  content: '';
  position: absolute;
  top: -32px;
  width: 40px;
  height: 29px;
  border-radius: 100% 100% 60% 60% / 100% 100% 100% 100%;
  border: solid 4px #ffffff;
  border-bottom: none;
}

}

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

  .container-fluid_500 {
    max-width: 500px;
  }

  .gramotey-puzzle-item_min,
  .gramotey-puzzle-item_big{
    width: 100%;
  }

  .gramotey-puzzle-item__title {
    font-size: 22px;
  }

  .gramotey-puzzle-item::after,
  .gramotey-puzzle-item::before{
    /* display: none; */
  }

  .gramotey-puzzle-item                       { border-left: none; }
  .gramotey-puzzle-item                       { border-right: none; }
  .gramotey-puzzle-item.no-border-top-1       { border-top: none; }
  .gramotey-puzzle-item.no-border-bottom-1    { border-bottom: none; }
}

/*---------- modal -------------*/

.gramotey-modal {
  padding: 20px;
  margin-bottom: 10px;
}

.puzzle-modal_gramotey .jBox-container {
  background-color: transparent;
  box-shadow: none;
}

.jBox-closeButton-box.puzzle-gramotey-close-bt .jBox-closeButton {
  top: 40px;
  right: 40px;
  width: 18px;
  height: 18px;
  background: transparent;
  background-image: none;
  border-radius: 0;
  border: none;
  background-image: url('/templates/svg/icons/gramotey/close.svg');
}

.jBox-closeButton-box.puzzle-gramotey-close-bt .jBox-closeButton svg {
  display: none;
}

.gramotey-modal__statistics-box-progress-svg {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.gramotey-modal__statistics-box-progress-svg svg path {
  stroke: #6eba4d;
}

.gramotey-modal__statistics-box-progress-svg svg circle {
  stroke: #fff;
}

.gramotey-modal__inset {
  padding-top: 40px;
  background-color: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, .4), 0 0 5px rgba(0, 0, 0, .4);
  border-radius: 3px;
  width: 848px;
}

.gramotey-modal__title {
  font-size: 18px;
  line-height: 1.1;
  font-weight: bold;
  color: #2f4051;
  padding: 0 40px 12px;
}

.gramotey-modal__title svg g {
  opacity: 1;
  fill: #000;
}

.gramotey-modal__content {
  max-height: 75vh !important;
  overflow-y: auto;
}

.gramotey-modal__top {
  padding: 0 20px 0 40px;
}

.gramotey-modal__tab-list {
  font-size: 0;
}

.gramotey-modal__tab-item {
  color: #bfced9;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.8px;
  display: inline-block;
  vertical-align: top;
  margin-right: 20px;
  text-transform: uppercase;
}

.gramotey-modal__tab-item:hover {
  color: #7957c2;
}

.gramotey-modal__tab-item span {
  cursor: pointer;
}

.gramotey-modal__tab-item.active {
  color: #79c257;
}

.gramotey-modal__statistics-box {
  background-color: #f4f7fb;
  min-height: 177px;
  padding: 20px 30px 10px;
  box-sizing: border-box;
  margin-bottom: 20px;
  cursor: default;
}

.gramotey-modal__statistics-box .rjs-loading {
    min-height: 100px;
    margin-top: 10px;
}

.gramotey-modal__statistics-box-title {
  font-size: 13px;
  color: #2f4051;
  font-weight: bold;
}

.gramotey-modal__statistics-box-progress {
  text-align: center;
  position: relative;
  margin-top: 15px;
}

.gramotey-modal__statistics-box-progress .gramotey-modal__reload_stat {
    margin-top: 25px;
}

.gramotey-modal__statistics-box-progress-text {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 32px;
  color: #2F4051;
  letter-spacing: 0;
}

.gramotey-modal__statistics-box table {
  width: 100%;
}

.gramotey-modal__statistics-box table td {
  font-size: 14px;
  color: #2f4051;
  padding-bottom: 18px;
}

.gramotey-modal__statistics-box table td:first-child {
  width: 60%;
}

.gramotey-modal__description {
  font-size: 14px;
  line-height: 1.57;
  font-weight: 500;
  color: #2f4051;
}

/**/

.gramotey-modal__full_description {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: rgb(47, 64, 81);
  padding: 33px 20px 0 40px;
}

.gramotey-modal__full_description p {
  margin-bottom: 29px;
}

.gramotey-modal__full_description blockquote {
  border-left: 5px solid rgb(121, 194, 87);
  padding-left: 24px;
  padding-top: 9px;
  padding-bottom: 8px;
  margin-bottom: 29px;
}

.gramotey-modal__full_description-forms {
  margin-bottom: 37px;
}

.gramotey-modal__full_description-forms-box {
  margin-bottom: 24px;
}

.gramotey-modal__full_description-forms-box p {
  padding-bottom: 0;
  margin-bottom: 0;
}

.gramotey-modal__full_description-regulations-title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.11;
  color: rgb(47, 64, 81);
  margin-bottom: 24px;
}

.gramotey-modal__full_description-regulations-box {
  margin-bottom: 31px;
}

.gramotey-modal__full_description-regulations-box-caption {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  color: rgb(47, 64, 81);
  margin-bottom: 15px;
}

.gramotey-modal__full_description-regulations-box-caption-txt {
  margin-left: 15px;
  max-width: calc(100% - 42px);
}

.gramotey-modal__full_description-regulations-box-text {
  font-size: 16px;
  line-height: 1.5;
  color: rgb(47, 64, 81);
  padding-left: 42px;
}

/**/

.gramotey-modal__similar {
  background-color: #f4f7fb;
  padding-left: 40px;
  padding-right: 20px;
  padding-top: 26px;
  padding-bottom: 30px;
  border-radius: 0 0 0 3px;
}

.gramotey-modal__similar-title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.1;
  color: #2f4051;
  margin-bottom: 24px;
}

.gramotey-modal__similar-title span {
  font-size: 16px;
  color: #bfced9;
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
  margin-left: 6px;
}

.gramotey-modal-item {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15);
  max-width: 220px;
  margin: 0 30px 30px 0;
}

.gramotey-modal-item:last-child {
  margin-right: 0;
}

.gramotey-modal-item.passed .gramotey-modal-item__top::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: rgba(255,255,255,0.5);
}

.gramotey-modal-item.passed .gramotey-modal-item__bottom {
  opacity: 0.5;
}

.gramotey-modal-item li.exercise-item { /* li is included from exercise_card.tpl */
  list-style-type: none;
}

.puzzle-tooltip_gramotey .jBox-container {
  border-radius: 0;
}

.puzzle-tooltip_gramotey .jBox-content {
  font-size: 12px;
  color: #333;
  font-weight: bold;
  line-height: 1.5;
  padding: 5px 8px !important;
}

.puzzle-tooltip_gramotey .jBox-pointer {
  display: none;
}

.puzzle-modal_gramotey .jBox-container {
  border-radius: 3px;
}

.puzzle-modal_gramotey .jBox-content {
  padding: 0 !important;
}

.gramotey-modal-show-more {
  cursor: pointer;
  text-align: center;
  color: #0a7bd1;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px dotted #0a7bd1;
}

.gramotey-modal__prev {
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -8px;
}

.gramotey-modal__next {
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -8px;
}


.gramotey-modal__up {
  cursor: pointer;
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -8px;
}

.gramotey-modal__up svg {
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

.gramotey-modal__down {
  cursor: pointer;
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -8px;
}

.gramotey-modal__down svg {
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

.gramotey-free-week__banner {
  text-align: center;
  padding: 15px 0;
}

.gramotey-free-week__banner-pic {
  position: relative;
  display: inline-block;
}

.gramotey-free-week__banner-close {
  cursor: pointer;
  position: absolute;
  right: -20px;
  top: 50%;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  -o-transform: translate(0, -50%);
  transform: translate(0, -50%);
}

.gramotey-free-week__banner-close svg path {
  fill: #b7c7d4;
}

.puzzle-subheader_style_lightgreen .gramotey-free-week__banner-close svg path {
  fill: #fff;
}

.puzzle-subheader_style_lightgreen .gramotey-free-week__banner {
  padding: 25px 0 0;
}

/* Small devices (tablets, 768px and up) */
@media only screen and (max-width : 992px) {

  .gramotey-modal__inset {
    width: auto;
  }

}

/*Extra small devices (phones)*/

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

  .listening__keys-info,
  .task-wrapper .task__text,
  .gramotey__task-form-wrongs {
    margin-left: 0 !important;
  }

  .gramotey-progress-box {
    display: none !important;
  }

}

.commInput{
  display: none;
  margin: 0;
  background-color: #79c177;
  color: white;
  padding: 4px;
  border-radius: .25rem;
  position: absolute;
  z-index: 3;
}

.commInput>textarea{
  width: 100%;
  margin-bottom: 5px;
  font-size: 15px;
  border: none;
  resize: both;
}

.commInput>span{
  color: white;
  font-weight: 700;
  font-size: 15px;
}

.commInput>button{
  color: white;
  font-size: 15px;
  width: 100%;
  background-color:#007bff;
  border-radius: .25rem;
}

.commStar{
  position: absolute;
  display: inline;
  cursor: default;
}

.commBlock{
  display: none;
  position: absolute;
  background: #007bff;
  border: 1px solid #3f0e0e;
  border-radius: .25rem;
  padding: 5px;
  color:#fff;
  z-index: 3;
}

.commBlock>span{
  color: #ffefe7;
}

.irrverb__title{
  text-align: center !important;
  font-size: 30px !important;
}

.irrverb__task{
  display: block !important;
  text-align: center !important;
}

.irrverb__analysis div{
  margin-left: 0;
  text-align: center;
  margin-top: 15px;
  font-size: 24px;
}

.irrverb__form{
  margin-left: 0;
  text-align: center;
  margin-top: 30px;
}

.irrverb__analysis{
  padding: 0;
  border: 0;
  margin-top: 0;
  text-align: center;
}

.irrverb__analysis>div>span{
  font-size: 24px;
}

.irrverb__task-phrase-text{
  font-size: 50px;
  margin-bottom: 30px;
}

.irrverb__task-phrase-text>*,.irrverb__task-phrase-text>*:hover{
  margin: 0 30px 0 30px !important;
}

.irrverb__task-form-input-blank{
  width: 200px;
  height: 50px;
  color: #1f9fcf;
}

.irrverb__popover{
  background: #50b46f;
}

.irrverb__header{
  background: #1da5de;
}

.irrverb__header_progress_bar{
  background-color: #82cbe7;
}
