html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

.container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; }
.column,
.columns {
  width: 100%;
  float: left;
  box-sizing: border-box; }

@media (min-width: 400px) {
  .container {
    width: 85%;
    padding: 0; }
}

@media (min-width: 550px) {
  .container {
    width: 80%; }
  .column,
  .columns {
    margin-left: 4%; }
  .column:first-child,
  .columns:first-child {
    margin-left: 0; }

  .one.column,
  .one.columns                    { width: 4.66666666667%; }
  .two.columns                    { width: 13.3333333333%; }
  .three.columns                  { width: 22%;            }
  .four.columns                   { width: 30.6666666667%; }
  .five.columns                   { width: 39.3333333333%; }
  .six.columns                    { width: 48%;            }
  .seven.columns                  { width: 56.6666666667%; }
  .eight.columns                  { width: 65.3333333333%; }
  .nine.columns                   { width: 74.0%;          }
  .ten.columns                    { width: 82.6666666667%; }
  .eleven.columns                 { width: 91.3333333333%; }
  .twelve.columns                 { width: 100%; margin-left: 0; }

  .one-third.column               { width: 30.6666666667%; }
  .two-thirds.column              { width: 65.3333333333%; }

  .one-half.column                { width: 48%; }

  .offset-by-one.column,
  .offset-by-one.columns          { margin-left: 8.66666666667%; }
  .offset-by-two.column,
  .offset-by-two.columns          { margin-left: 17.3333333333%; }
  .offset-by-three.column,
  .offset-by-three.columns        { margin-left: 26%;            }
  .offset-by-four.column,
  .offset-by-four.columns         { margin-left: 34.6666666667%; }
  .offset-by-five.column,
  .offset-by-five.columns         { margin-left: 43.3333333333%; }
  .offset-by-six.column,
  .offset-by-six.columns          { margin-left: 52%;            }
  .offset-by-seven.column,
  .offset-by-seven.columns        { margin-left: 60.6666666667%; }
  .offset-by-eight.column,
  .offset-by-eight.columns        { margin-left: 69.3333333333%; }
  .offset-by-nine.column,
  .offset-by-nine.columns         { margin-left: 78.0%;          }
  .offset-by-ten.column,
  .offset-by-ten.columns          { margin-left: 86.6666666667%; }
  .offset-by-eleven.column,
  .offset-by-eleven.columns       { margin-left: 95.3333333333%; }

  .offset-by-one-third.column,
  .offset-by-one-third.columns    { margin-left: 34.6666666667%; }
  .offset-by-two-thirds.column,
  .offset-by-two-thirds.columns   { margin-left: 69.3333333333%; }

  .offset-by-one-half.column,
  .offset-by-one-half.columns     { margin-left: 52%; }

}

@font-face {
  font-family: 'GoloS';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(GolosR.woff2) format('woff2');
 }

@font-face {
  font-family: 'GoloS';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(GolosDB.woff2) format('woff2');
 }

@font-face {
  font-family: 'GoloS';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(GolosB.woff2) format('woff2');
 }

html {
  font-size: 62.5%; }
body {
  font-size: 1.5em;
  line-height: 1.6;
  font-weight: 400;
  font-family: 'GoloS', Arial;
  color: #222; }

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 300; }
h1 { font-size: 4.0rem; line-height: 1.2;  letter-spacing: -.1rem;}
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h3 { font-size: 3.0rem; line-height: 1.3;  letter-spacing: -.1rem; }
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h5 { font-size: 1.8rem; line-height: 1.5;  letter-spacing: -.05rem; }
h6 { font-size: 1.5rem; line-height: 1.6;  letter-spacing: 0; }

@media (min-width: 550px) {
  h1 { font-size: 5.0rem; }
  h2 { font-size: 4.2rem; }
  h3 { font-size: 3.6rem; }
  h4 { font-size: 3.0rem; }
  h5 { font-size: 2.4rem; }
  h6 { font-size: 1.5rem; }
}

p {
  margin-top: 0; }

a {
  color: #0b5ea7; }
a:hover {
  color: #0FA0CE; }

.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-block;
  height: 38px;
  padding: 0 30px;
  color: #555;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: .1rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #bbb;
  cursor: pointer;
  box-sizing: border-box; }
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
  color: #333;
  border-color: #888;
  outline: 0; }
.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary {
  color: #FFF;
  background-color: #33C3F0;
  border-color: #33C3F0; }
.button.button-primary:hover,
button.button-primary:hover,
input[type="submit"].button-primary:hover,
input[type="reset"].button-primary:hover,
input[type="button"].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type="submit"].button-primary:focus,
input[type="reset"].button-primary:focus,
input[type="button"].button-primary:focus {
  color: #FFF;
  background-color: #1EAEDB;
  border-color: #1EAEDB; }

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  height: 38px;
  padding: 6px 10px;
  background-color: #fff;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box; }
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; }
textarea {
  min-height: 65px;
  padding-top: 6px;
  padding-bottom: 6px; }
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border: 1px solid #33C3F0;
  outline: 0; }
label,
legend {
  display: block;
  margin-bottom: .5rem;
  font-weight: 500; }
fieldset {
  padding: 0;
  border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
  display: inline;
  margin: 0;
  vertical-align: middle; }

label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
label:has(input[type="checkbox"]) input[type="checkbox"],
label:has(input[type="radio"]) input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
}

label > .label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal; }

ul {
  list-style: circle inside; }
ol {
  list-style: decimal inside; }
ol, ul {
  padding-left: 0;
  margin-top: 0; }
ul ul,
ul ol,
ol ol,
ol ul {
  margin: 1.5rem 0 1.5rem 3rem;
  font-size: 90%; }
li {
  margin-bottom: 1rem; }

code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 4px; }
pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre; }

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #E1E1E1; }
th:first-child,
td:first-child {
  padding-left: 0; }
th:last-child,
td:last-child {
  padding-right: 0; }

button,
.button {
  margin-bottom: 1rem; }
input,
textarea,
select,
fieldset {
  margin-bottom: 1.5rem; }
pre,
blockquote,
dl,
figure,
table,
p,
ul,
ol,
form {
  margin-bottom: 2.5rem; }

.u-full-width {
  width: 100%;
  box-sizing: border-box; }
.u-max-full-width {
  max-width: 100%;
  box-sizing: border-box; }
.u-pull-right {
  float: right; }
.u-pull-left {
  float: left; }

hr {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
  border-width: 0;
  border-top: 1px solid #E1E1E1; }

.container:after,
.row:after,
.u-cf {
  content: "";
  display: table;
  clear: both; }

body {
  background-color: #f5f5f5;
}

.header {
  background-color: #fff;
  border-bottom: 1px solid #e1e1e1;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo:hover {
  color: #000000;
  text-decoration: none;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-text div {
  font-size: 1.2rem;
  color: #222;
  font-weight: normal;
  line-height: 1.2;
}

@media (max-width: 475px) {
  .header-divider,
  .header-text {
    display: none !important;
  }
}

.nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav a {
  color: #222;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav a:hover {
  color: #222;
  text-decoration: none;
  opacity: 0.7;
}

.nav a svg {
  display: block;
}

.card {
  background-color: #fff;
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.dashboard-student-links a {
  color: #000;
}
.dashboard-student-links a:hover {
  color: #333;
}

.student-page-other-students a {
  color: #000;
}
.student-page-other-students a:hover {
  color: #333;
}

.row--less-gap .six.columns {
  width: 49%;
}
.row--less-gap .six.columns + .six.columns {
  margin-left: 2%;
}

.tutor-card {
  background-color: #fff;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tutor-name {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.tutor-subject {
  color: #33C3F0;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tutor-description {
  color: #666;
  margin-bottom: 1rem;
}

.tutor-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
}

.dashboard-menu {
  background-color: #fff;
  border-radius: 4px;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.dashboard-menu::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  z-index: 10;
}

.dashboard-menu .swiper-wrapper {
  display: flex;
}

.dashboard-menu .swiper-slide {
  width: auto;
  flex-shrink: 0;
}

.dashboard-menu .swiper-slide.dashboard-menu-spacer {
  width: 30px;
  min-width: 30px;
  pointer-events: none;
}

.dashboard-menu-link {
  display: block;
  padding: 1rem 0.8rem;
  color: #222;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
}

.dashboard-menu-link:hover {
  color: #222;
  text-decoration: underline;
}

.dashboard-menu-link.active {
  color: #222;
  font-weight: 500;
}

.dashboard-menu-badge {
  display: inline-block;
  min-width: 1.4em;
  padding: 0.15rem 0.4rem;
  margin-left: 0.25rem;
  border-radius: 10px;
  background-color: #c62828;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  vertical-align: middle;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive .dashboard-planner-table {
  min-width: 480px;
}

.table-responsive-files .files-list-table {
  min-width: 560px;
  width: 100%;
  table-layout: fixed;
}
.files-list-table .files-col-name {
  min-width: 100px;
  word-break: break-word;
}
.files-list-table .files-col-context {
  min-width: 130px;
  word-break: break-word;
}
.files-list-table .files-col-size {
  white-space: nowrap;
  width: 70px;
}
.files-list-table .files-col-date {
  white-space: nowrap;
  width: 75px;
}
.files-list-table .files-col-actions {
  width: 100px;
}

table {
  width: 100%;
  background-color: #fff;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  background-color: #33C3F0;
  color: #fff;
}

.badge-success {
  background-color: #28a745;
}

.badge-warning {
  background-color: #ffc107;
  color: #222;
}

.badge-danger {
  background-color: #dc3545;
}

.badge-secondary {
  background-color: #6c757d;
  color: #fff;
}

.badge-info {
  background-color: #e8dcc4;
  color: #222;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Страница ученика: 6 карточек статистики, адаптивная сетка */
.student-page-stats-grid {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 550px) {
  .student-page-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 551px) and (max-width: 900px) {
  .student-page-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background-color: #fff;
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 300;
  color: #33C3F0;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
}

.dashboard-add-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  min-width: 0;
}
.dashboard-add-actions .button {
  width: 100%;
  min-width: 0;
  text-align: center;
  text-decoration: none;
}

input[type="date"],
input[type="time"],
input[type="month"] {
  height: 38px;
  padding: 6px 10px;
  background-color: #fff;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="month"]:focus {
  border: 1px solid #33C3F0;
  outline: 0;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site > .container {
  flex: 1 0 auto;
  margin-bottom: 3rem;
}
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1.5rem 0 0.5rem 0;
  border-top: 1px solid #e1e1e1;
  background: #f8f9fa;
  color: #666;
  font-size: 1.3rem;
}
.site-footer__copy {
  margin: 0;
}

@media (max-width: 970px) {
  .dashboard-add-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .dom-buttons-container,
  .dom-buttons-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .dom-buttons-row .dom-top-button,
  .dom-buttons-container .dom-top-button {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 550px) {
  .header .container {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start !important;
  }
  
  .header .container > div:first-child {
    flex: 1;
    justify-content: flex-start;
  }
  
  .nav {
    flex-direction: row;
    width: auto;
    margin-left: auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .dashboard-add-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 0.5rem 0.4rem;
  }

  .stat-value {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .eight.columns {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .six.columns {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .search-submit-wrap {
    width: 100%;
  }
  .search-submit-wrap input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
  }
  
  .site-footer__links a {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .site-footer__links span {
    display: none;
  }
  
  .dom-buttons-container,
  .dom-buttons-row {
    display: flex !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    flex: 1 1 100% !important;
  }
  
  .dom-top-button,
  .dom-buttons-row .dom-top-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: normal !important;
    flex-shrink: 0 !important;
  }
  
  .demo-header-content {
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .demo-badge {
    flex-shrink: 0 !important;
    margin-left: 0 !important;
  }
}

.dom-send-hw-spoiler summary,
.dom-sent-hw-spoiler summary,
.dom-teacher-comments-spoiler summary {
  display: none !important;
}
.dom-send-hw-spoiler:not([open]),
.dom-sent-hw-spoiler:not([open]),
.dom-teacher-comments-spoiler:not([open]) {
  border: none !important;
  background: transparent !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.dom-send-hw-spoiler:not([open]) > div,
.dom-sent-hw-spoiler:not([open]) > div,
.dom-teacher-comments-spoiler:not([open]) > div {
  display: none !important;
}

.lessons-feedback-form {
  margin-bottom: 0 !important;
}

.lessons-actions-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.lessons-actions-col .lessons-action-form {
  margin-bottom: 0 !important;
  width: 100%;
}

.dom-flip-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
  width: 100%;
}
.dom-flip-card {
  perspective: 1000px;
  cursor: pointer;
  min-height: 140px;
  width: 100%;
}
.dom-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 140px;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}
.dom-flip-card.flipped .dom-flip-card-inner {
  transform: rotateY(180deg);
}
.dom-flip-card-front,
.dom-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 140px;
  left: 0;
  top: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
.dom-flip-card-front {
  background: #e8eae9;
  color: #333;
  font-weight: normal;
  font-size: 1.55rem;
  line-height: 1.45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.dom-flip-card-back {
  background: #e8eae9;
  color: #333;
  transform: rotateY(180deg);
  font-size: 1.4rem;
  line-height: 1.55;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.dom-flip-card-back-inner {
  width: 100%;
  text-align: center;
}

.dom-quiz {
  margin-top: 1rem;
  min-width: 0;
}
.dom-quiz-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  padding: 1.25rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.dom-quiz-card h4 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;
}
.dom-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.dom-quiz-opt {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  background: #fafafa;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.dom-quiz-opt:hover {
  border-color: #4a90d9;
  background: #f0f6ff;
}
.dom-quiz-opt input {
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.dom-quiz-opt.correct {
  border-color: #2e7d32;
  background: #e8f5e9;
}
.dom-quiz-opt.incorrect {
  border-color: #c62828;
  background: #ffebee;
}
.dom-quiz-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dom-quiz-result {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
}
.dom-quiz-result.success {
  color: #2e7d32;
}
.dom-quiz-result.partial {
  color: #f57c00;
}
.dom-quiz-result.fail {
  color: #c62828;
}

.dom-buttons-container {
  min-width: 0;
  flex: 0 1 auto;
}

.dom-buttons-row .dom-top-button {
  flex: 1 1 0;
  min-width: 7rem;
}

.dom-top-button {
  white-space: nowrap;
  flex-shrink: 1;
}

.content-section {
  margin-bottom: 1rem;
}
.content-add-buttons {
  margin-bottom: 1rem;
}
.content-add-buttons > p {
  margin: 0 0 0.5rem 0;
  color: #666;
}
.content-add-buttons > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.content-form-panel {
  margin-bottom: 1rem;
}
.content-form-panel h5 {
  margin-top: 0;
}
.content-form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}
.content-form-panel small,
.content-small-muted {
  color: #666;
}
.content-hint {
  margin: 0.5rem 0 0;
  color: #888;
  font-size: 0.9rem;
}
.cards-editor,
.quiz-editor,
.cards-editor-edit,
.quiz-editor-edit {
  margin: 1rem 0;
}
.content-editor-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.content-editor-add-btn {
  margin-top: 0.75rem;
}
.content-trix-tall {
  min-height: 400px;
}
.content-trix-edit {
  min-height: 200px;
}
.content-label-after {
  margin-top: 1rem;
}
.content-collection-card h5 {
  margin-top: 0;
}
.content-collection-empty {
  margin: 0;
}
.content-table th.col-type {
  width: 90px;
}
.content-table th.col-status {
  width: 100px;
}
.content-table th.col-actions {
  width: 150px;
}
.content-badge-sm {
  font-size: 1.05rem;
  font-weight: normal;
}
.content-actions-cell {
  vertical-align: middle;
  width: 150px;
}
.content-actions-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.content-actions-btns .content-btn-sm,
.content-actions-btns form.content-form-inline .content-btn-sm {
  font-size: 1.05rem;
  padding: 0.15rem 0.5rem;
  line-height: 1.2;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
}
.content-form-inline {
  display: block;
  margin: 0;
  width: 100%;
}
.content-btn-danger,
.content-actions-btns .content-btn-danger {
  background-color: #dc3545 !important;
  color: #fff !important;
  border-color: #dc3545 !important;
}
.content-btn-danger:hover,
.content-btn-danger:focus,
.content-actions-btns .content-btn-danger:hover,
.content-actions-btns .content-btn-danger:focus {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
}
.content-edit-row {
  display: none;
}
.content-edit-cell {
  background-color: #f9f9f9;
  padding: 1rem;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}
.file-item .button,
.file-item .btn-remove-file {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.file-item .file-item-download {
  flex: 1;
  min-width: 0;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-item small {
  flex-shrink: 0;
  width: 5.5rem;
  text-align: right;
}
.file-item .file-item-download:hover {
  text-decoration: none;
}
.file-item .btn-remove-file {
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
  min-height: auto;
  height: auto;
}
.content-form-panel .btn-remove-file,
.btn-remove-file {
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
  min-height: auto;
  height: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.content-quiz-options-label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.content-files-section {
  margin-top: 1rem;
}
.content-files-list {
  margin-bottom: 0.75rem;
}

.header .container > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-divider {
  width: 1px;
  height: 2rem;
  background-color: #222;
  margin: 0 0.5rem;
}
.btn-header-outline {
  border: 1px solid #222;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}
.btn-header-outline:hover {
  color: #222;
  text-decoration: none;
  opacity: 0.85;
}
.site-footer__copy .site-footer__dot,
.site-footer__links .site-footer__dot {
  margin: 0 0.5rem;
  color: #888;
}
.site-footer__links a,
.site-footer__copy a {
  color: #888;
}
.site-footer__links a:hover,
.site-footer__copy a:hover {
  color: #666;
}
.site-footer__links {
  margin-top: 0.75rem;
  font-size: 1.3rem;
}
.site-footer__cookies {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 1.2rem;
  color: #888;
}
.hero-section {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 3rem;
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  border-radius: 8px;
}
.hero-section.hero-section--bottom {
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: 2.5rem 1.5rem;
}
.hero-title {
  margin: 0 0 0.5rem;
  font-size: 2.8rem;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.02em;
  text-align: center;
}
.hero-section--platform .hero-title {
  margin-bottom: 2rem;
}
.hero-platform-caption {
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-platform-caption h3 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  color: #222;
}
.hero-platform-caption p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #555;
}
.hero-platform-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-platform-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  flex: 1 1 280px;
  max-height: 280px;
}
.hero-subtitle {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  color: #666;
  text-align: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.hero-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.hero-card.hero-card--flex {
  display: flex;
  flex-direction: column;
}
.hero-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  color: #222;
}
.hero-card p.hero-card__text {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #555;
}
.hero-card p.hero-card__text.flex-1 {
  flex: 1;
}
.hero-card .button-block {
  margin-top: 1.5rem;
}
.hero-card__text--mt {
  margin-top: 0.75rem;
}
.plus-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
  width: 100%;
}
.plus-form-inline {
  margin: 0;
  flex: 1;
  min-width: 180px;
}
.plus-login-p {
  margin: 4rem 0 0;
}
.search-form-card {
  margin-bottom: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.search-form-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.8rem;
}
.search-form-checkboxes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  line-height: 2.8rem;
}
.search-form-checkboxes label {
  margin: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: normal;
}
.search-form-checkboxes input[type="checkbox"] {
  vertical-align: middle;
  margin: 0;
}
.search-submit-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 2.8rem;
}
.search-submit-wrap .button {
  margin: 0;
}
.tutor-card-link {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.5rem;
}
.tutor-card-link:hover {
  color: inherit;
  text-decoration: none;
}
.tutor-card-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}
.tutor-card-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: top center; /* вот это добавляем */
  border-radius: 4px;
}
.tutor-card-avatar-placeholder {
  width: 120px;
  height: 120px;
  background: #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutor-card-body {
  flex: 1;
  min-width: 0;
}
.tutor-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tutor-card-name-wrap {
  flex: 1;
  min-width: 200px;
}
.tutor-card-name {
  margin-bottom: 0.3rem;
  font-size: 1.8rem;
}
.tutor-card-subject {
  margin-bottom: 0.3rem;
}
.tutor-card-price-wrap {
  flex-shrink: 0;
  text-align: right;
}
.tutor-card-price-wrap .tutor-price {
  font-size: 1.3rem;
  margin-bottom: 0;
}
.tutor-card-desc {
  margin-top: 1rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tutor-card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
  font-size: 1.3rem;
  color: #666;
}
.button-block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.button-block.button-block--mt {
  margin-top: 1.5rem;
}
.alert-info-blue {
  background: #e7f3ff;
  border: 1px solid #0d6efd;
  color: #084298;
  margin-bottom: 1rem;
}
.card-mb-2 {
  margin-bottom: 2rem;
}
.form-no-mb {
  margin-bottom: 0;
}
.label-inline-flex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
  line-height: 1;
}
.label-inline-flex input[type="checkbox"] {
  vertical-align: middle;
  margin: 0;
  flex-shrink: 0;
}
.text-muted {
  color: #666;
  font-size: 1.2rem;
  margin: 0.5rem 0 0 0;
  line-height: 1.45;
}
.text-muted-sm {
  color: #999;
  font-weight: normal;
}
.section-mb {
  margin-bottom: 1.5rem;
}
.textarea-min-200 {
  min-height: 200px;
}
.textarea-min-150 {
  min-height: 150px;
}
.section-head {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.form-row-flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.form-row-flex .text-muted {
  color: #666;
  font-size: 0.9rem;
}
.btn-mt-1 {
  margin-top: 1rem;
}
.tasks-section-mb {
  margin-bottom: 1rem;
}
.tasks-toggle-head {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.tasks-toggle-head .tasks-toggle-icon {
  font-size: 0.8rem;
  color: #666;
}
.tasks-form-actions {
  margin-top: 0.75rem;
}
.tasks-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.tasks-form-row span:first-child {
  font-weight: 600;
}
.tasks-form-row a {
  font-weight: normal;
  font-size: 1.15rem;
}
.trix-min-200 {
  min-height: 200px;
}
.content-list-box {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-height: 280px;
  overflow-y: auto;
}
.content-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  flex: 1 1 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.content-item-row .content-item-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-item-add-btn {
  flex-shrink: 0;
  font-size: 1.05rem;
  padding: 0.15rem 0.5rem;
  line-height: 1.2;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.selected-content-box {
  margin-top: 0.75rem;
}
.selected-content-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.selected-content-hint {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.tasks-edit-card {
  margin-top: 1.5rem;
  border: 2px solid #0066cc;
}
.tasks-edit-card h5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.input-readonly-bg {
  background: #eee;
}
.profile-photo-preview-wrap {
  position: relative;
}
.profile-photo-preview {
  max-width: 150px;
  max-height: 150px;
  border-radius: 4px;
  object-fit: cover;
}
.profile-photo-pending {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  background: rgba(51, 195, 240, 0.9);
  color: white;
  font-size: 0.8rem;
  padding: 2px 4px;
  border-radius: 4px;
  text-align: center;
}
.profile-photo-delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.profile-photo-delete-btn:hover {
  color: white;
  opacity: 0.9;
}
.profile-upload-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.profile-message-box {
  margin-bottom: 0.5rem;
  display: none;
}
.profile-message-box.visible {
  display: block;
}
.profile-input-hidden {
  display: none;
}
.profile-file-name {
  color: #666;
  font-size: 0.9rem;
}
.profile-small-muted {
  color: #666;
}
.profile-section-mb {
  margin-bottom: 0.5rem;
}
.profile-link-p {
  margin-top: 0;
  margin-bottom: 2rem;
  color: #666;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.contact-row span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.contact-row .contact-row-spacer {
  margin-left: 15px;
}
.input-readonly-wrap input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}
.page-h5 {
  margin-top: 0;
  margin-bottom: 2rem;
}
.page-h5.page-h5--sm {
  margin-bottom: 1rem;
}
.dom-spoiler-summary {
  display: none !important;
}
.dom-spoiler:not([open]) {
  border: none !important;
  background: transparent !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.dom-spoiler:not([open]) > div {
  display: none !important;
}
.dom-form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}
.dom-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dom-table-wrap table {
  min-width: 480px;
}
.dom-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dom-top-row .muted { color: #666; }
.dom-spoiler-inner { padding: 1.25rem; }
.dom-form-actions .button-primary { margin-top: 1.25rem; }
.dom-hint { color: #666; margin-bottom: 0.5rem; display: block; }
.dom-list-none { list-style: none; padding: 0; margin: 1rem 0 0; }
.dom-submission-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.75rem;
  background: #fff;
}
.dom-submission-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.dom-submission-meta { color: #666; font-size: 0.95rem; margin-bottom: 0.5rem; }
.dom-badge-inline { font-size: 1.3rem; font-weight: normal; }
.pagination-nav {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pagination-info {
  margin: 0 0.5rem;
  color: #666;
}
.login-wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}
.login-tabs {
  display: flex;
  border-bottom: 1px solid #e1e1e1;
  margin-bottom: 1.5rem;
}
.login-tabs .tab-link {
  flex: 1;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #999;
  border-bottom: 2px solid transparent;
  font-weight: normal;
}
.login-tabs .tab-link.active {
  color: #222;
  border-bottom-color: #222;
  font-weight: 600;
}
.login-tabs .tab-link:hover {
  color: #222;
}
.login-agree-p {
  font-size: 1.15rem;
  color: #666;
  margin: 1rem 0 0.75rem 0;
  line-height: 1.45;
}
.login-agree-p a {
  color: #666;
}
.login-consent-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem 0;
  cursor: pointer;
  font-weight: normal;
}
.login-consent-label input {
  vertical-align: middle;
  position: relative;
  top: 1px;
}
.login-submit-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
}
.login-forgot {
  margin: 0.75rem 0 0;
}
.login-forgot a {
  color: #888;
}
.stat-value--positive { color: #28a745; }
.stat-value--negative { color: #dc3545; }
.row-mt-15 { margin-top: 1.5rem; }
.text-danger { color: #dc3545; font-weight: bold; }
.text-muted-999 { color: #999; }
.badge-inline { font-size: 1rem; font-weight: normal; }
.td-desc-cell {
  border-top: none;
  padding-top: 0;
  padding-bottom: 0.75rem;
  color: #666;
  white-space: pre-wrap;
  vertical-align: top;
}
.mb-0 { margin-bottom: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.muted { color: #666; }
.muted-888 { color: #888; }
.font-09 { font-size: 0.9rem; }
.font-095 { font-size: 0.95rem; }
.font-11 { font-size: 1.1rem; }

/* Зона перетаскивания файлов — не нужно зажимать Ctrl */
.file-drop-zone {
  display: block;
  padding: 1rem 1.25rem;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: #2563eb;
  background: #eff6ff;
}
.file-drop-zone input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop-zone-text {
  color: #374151;
  font-size: 0.95rem;
}
.file-drop-zone-hint {
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.85rem;
}
.file-drop-zone-count {
  margin-top: 0.5rem;
  color: #059669;
  font-weight: 600;
}
.file-drop-zone-list {
  margin-top: 0.5rem;
  text-align: left;
}
.file-drop-zone-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.file-drop-zone-list-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-drop-zone-list-remove {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.file-drop-zone-list-remove:hover {
  background: #b91c1c;
  color: #9ca3af;
}

/* ========== Стили, перенесённые из PHP-файлов ========== */

/* Планировщик: строка с описанием */
.dashboard-planner-task-has-desc td { border-bottom: none; }
.dashboard-planner-desc-row td { border-top: none; }

.planner-task-has-desc td { border-bottom: none; }
.planner-desc-row td { border-top: none; }

/* Платежи: строка с деталями */
.payment-has-details td { border-bottom: none; }

/* Занятия: строка с заметками */
.lesson-has-notes td { border-bottom: none; }

/* Модальное окно на дашборде */
.dashboard-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.dashboard-modal-overlay.active { display: flex; }
.dashboard-modal { background: #fff; padding: 1.5rem; border-radius: 8px; max-width: 800px; width: 95%; max-height: 90vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.dashboard-modal h4 { margin-top: 0; }
.dashboard-modal-close { float: right; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #666; }
.dashboard-modal-close:hover { color: #333; }

/* Чат с ИИ (ii.php) */
.ai-chat {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  min-height: 380px;
  background: #fafafa;
}
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-behavior: smooth;
}
.ai-chat-messages::-webkit-scrollbar { width: 6px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.ai-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  padding: 0.5rem 0;
  line-height: 1.5;
  font-size: 1.75rem;
}
.ai-chat-msg.user { align-self: flex-end; }
.ai-chat-msg.assistant { align-self: flex-start; }
.ai-chat-msg .role {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 0.2rem;
}
.ai-chat-msg.user .role { text-align: right; }
.ai-chat-msg .content {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 1.75rem;
}
.ai-chat-msg.user .content {
  background: #e8f4f8;
  color: #333;
  border: 1px solid #d0e8f0;
}
.ai-chat-msg.assistant .content {
  background: #fff;
  color: #333;
  border: 1px solid #eee;
}
.ai-chat-form {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.ai-chat-form textarea {
  flex: 1;
  min-height: 56px;
  max-height: 180px;
  resize: none;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1.45;
  color: #333;
  background: #fff;
}
.ai-chat-form textarea:focus {
  outline: none;
  border-color: #aaa;
}
.ai-chat-form textarea::placeholder { color: #aaa; }
.ai-chat-form button {
  flex-shrink: 0;
  width: 56px;
  min-height: 56px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  color: #444;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.ai-chat-form button svg {
  width: 22px;
  height: 22px;
}
.ai-chat-form button:hover { background: #d5d5d5; }
.ai-chat-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ai-chat-typing {
  align-self: flex-start;
  padding: 0.5rem 0.65rem;
  color: #888;
  font-size: 1.4rem;
  font-style: italic;
}
.ai-chat-typing::after {
  content: "…";
}

/* DOM: чеклисты и квизы в контенте */
.dom-checklist { display: flex; flex-direction: column; align-items: flex-start; margin-top: 0.75rem; }
.dom-checklist-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; cursor: pointer; font-weight: normal; width: 100%; box-sizing: border-box; }
.dom-checklist-item:last-child { margin-bottom: 0; }
.dom-checklist-text { font-weight: normal; }
.dom-checklist-cb:checked + .dom-checklist-text { text-decoration: line-through; }
.dom-quiz { line-height: 1.5; font-size: 1.5rem; }
.dom-quiz .dom-quiz-card { margin-bottom: 1rem; }
.dom-quiz .dom-quiz-question { font-weight: bold; margin-bottom: 0.5rem; }
.dom-quiz .dom-quiz-options { font-weight: normal; }
.dom-quiz .dom-quiz-opt { display: flex; align-items: center; gap: 0.35em; cursor: pointer; font-weight: normal; font-size: inherit; }
.dom-quiz .dom-quiz-opt input { font-size: inherit; flex-shrink: 0; }
.dom-quiz .dom-quiz-opt-text { position: relative; top: -2px; }
.dom-quiz .dom-quiz-actions { font-weight: normal; font-size: inherit; }
.dom-quiz .dom-quiz-text-input { padding: 0.4em 0.6em; font-weight: normal; font-size: inherit; }
.dom-quiz-text-wrap.correct input { border-color: #2e7d32; background: #e8f5e9; }
.dom-quiz-text-wrap.incorrect input { border-color: #c62828; background: #ffebee; }

/* Trix: тулбар и редактор. overflow: visible нужен, чтобы диалог вставки ссылки был виден */
trix-toolbar {
  overflow: visible;
}
trix-toolbar .trix-button-row {
  overflow-x: visible;
  overflow-y: hidden;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button-row {
    overflow-x: auto;
    overflow-y: hidden;
  }
}
.trix-no-attach .trix-button-group:has(.trix-button--icon-attach) {
  display: none !important;
}
trix-editor blockquote {
  border-left: 4px solid #ccc;
  margin: 0.5em 0 0.5em 0;
  padding-left: 1em;
  color: #555;
}

/* Список учеников: границы строк */
.student-list-table tbody tr td { border-bottom: none; }
.student-list-table tbody tr:has(+ tr.student-main) td,
.student-list-table tbody tr:last-of-type td { border-bottom: 1px solid #e1e1e1; }

/* Контент: редактор квизов и карточек */
.quiz-question-block { background: #f8f8f8; padding: 1rem; margin-bottom: 0.75rem; border-radius: 6px; border: 1px solid #eee; }
.quiz-question-block h6 { margin: 0 0 0.5rem 0; font-size: 1rem; }
.quiz-option-row { display: flex; align-items: stretch; gap: 0.5rem; margin-bottom: 0.4rem; }
.quiz-option-radio-wrap { display: flex; align-items: center; align-self: stretch; flex-shrink: 0; }
.quiz-option-row input[type="radio"] { margin: 0; margin-top: -11px; }
.quiz-option-row input[type="text"] { flex: 1; min-width: 0; }
.quiz-option-row .btn-remove { flex-shrink: 0; }
.cards-row { display: flex; gap: 0.5rem; align-items: stretch; margin-bottom: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid #eee; }
.cards-row input { flex: 1; min-width: 0; }
.cards-row .btn-remove { flex-shrink: 0; padding: 0 0.75rem; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }

/* Расписание */
.schedule-grid table { border-collapse: collapse; table-layout: fixed; width: 100%; }
@media (max-width: 1050px) { .schedule-grid table { width: 800px; } }
.schedule-grid td, .schedule-grid th { border: 1px solid #ddd; padding: 0.4rem; }
.schedule-grid th { background: #f8f8f8; }
.schedule-grid .schedule-cell { cursor: pointer; vertical-align: top; min-height: 56px; }
.schedule-grid .schedule-cell:hover { background: #f5f9fc; }
.schedule-grid .schedule-cell .lesson-card { cursor: pointer; }
.schedule-grid td.schedule-col-today { background-color: #f4f9fd; }
.schedule-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.schedule-modal-overlay.active { display: flex; }
.schedule-modal { background: #fff; padding: 1.5rem; border-radius: 8px; max-width: 800px; width: 95%; max-height: 90vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.schedule-modal h4 { margin-top: 0; }
.schedule-modal-close { float: right; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #666; }
.schedule-modal-close:hover { color: #333; }
.schedule-modal-btn-transparent { background: transparent; border-color: transparent; color: #666; }
.schedule-modal-btn-transparent:hover { background: rgba(0,0,0,0.05); }

/* Чек-лист */
.diary-card.schedule-grid { padding: 1rem 2rem; }
.diary-list { display: flex; flex-direction: column; gap: 1rem; }
.diary-row { display: flex; align-items: stretch; gap: 0.5rem; font-weight: normal; height: 4rem; min-height: 4rem; box-sizing: border-box; }
.diary-btn { width: 4rem; height: 4rem; flex-shrink: 0; border: 1px solid #ddd; border-radius: 4px; background: #fff; cursor: pointer; font-size: 1.5rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #333; box-sizing: border-box; }
.diary-btn:hover { background: #f5f5f5; border-color: #ccc; }
.diary-btn-done { font-size: 1.6rem; }
.diary-btn-done:hover { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.diary-btn-delete { color: #c62828; font-size: 1.75rem; line-height: 1; }
.diary-btn-delete:hover { background: #ffebee; border-color: #ef5350; color: #b71c1c; }
.diary-btn-placeholder { visibility: hidden; pointer-events: none; }
.diary-input { flex: 1; min-width: 0; margin: 0; padding: 0.5rem 0.6rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1.4rem; height: 100%; min-height: 4rem; box-sizing: border-box; line-height: 1.4; }
.diary-input:focus { outline: none; border-color: #33C3F0; }
.diary-input.diary-done { text-decoration: line-through; color: #666; background: #f9f9f9; }
.diary-row-completed .diary-input { text-decoration: line-through; color: #666; }

/* Задания: спойлер существующих файлов */
.existing-files-spoiler summary.existing-files-spoiler-summary {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  background: #f0f4f8;
  border: 1px solid #c5d0de;
  border-radius: 8px;
  list-style: none;
}
.existing-files-spoiler summary.existing-files-spoiler-summary::-webkit-details-marker,
.existing-files-spoiler summary.existing-files-spoiler-summary::marker { display: none; }
.existing-files-spoiler summary.existing-files-spoiler-summary::before {
  content: '▼ ';
  font-size: 0.9em;
}
.existing-files-spoiler[open] summary.existing-files-spoiler-summary::before { content: '▲ '; }
.existing-files-spoiler summary.existing-files-spoiler-summary:hover {
  background: #e6eef6;
}
.existing-files-spoiler .existing-files-spoiler-hint {
  width: 100%;
  font-weight: normal;
  font-size: 0.9rem;
  color: #666;
}

/* Swiper 11.2.10 — карусель меню (объединено из swiper.min.css) */
@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
