.display-4 {
    font-size: 3rem;
}

.display-5 {
    font-size: 2.5rem;
}

.display-6 {
    font-size: 2rem;
}

.navbar .nav-link {
    color: #333333 !important;
}

footer.footer {
    font-size: 0.85em;
    background-color: #F0F0F0;
    color: #777;
    padding-top: 15px;
    padding-bottom: 15px;
}

footer.footer a {
    color: #777;
}

table.data-table {
    width: 100%;
    table-layout: fixed;
}

table.data-table tr td {
    max-width:50%;
    width: 50%;
    word-break: break-word;
}

table.data-table tr td:nth-child(1) {
    font-weight: bold;
}

table.data-table tr td:nth-child(2) sup {
    --bs-text-opacity: 1;
    color: rgba(0, 0, 0, .5) !important;
}

div.callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    background-color: #f8f9fa;;
    border-left: 0.25rem solid #dee2e6;
}

.exercise a {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.exercise a:hover {
    background-color: #e9ecef;
}

.exercise a span {
    font-weight: 500;
}

.solution-steps {
}

.solution-step-badge {
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: 0.375rem;
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    margin-bottom: 7px;
}

.solution-step-badge.step {
    color: #FFFFFF;
    background-color: #9299a0;
}

.solution-step-badge.answer {
    color: #FFFFFF;
    background-color: #198754bf;
}

.solution-steps .type-primary {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    padding: 20px 20px 0 20px;
    margin-bottom: 20px;
}

.solution-steps .type-primary .type-strong {
    font-weight: 500;
}

.solution-steps .type-secondary {
    font-weight: 300;
}

.preim-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px; /* отступ для полосы прокрутки */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

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

.preim-gallery {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.preim-card {
  width: 280px;
  height: 350px;
  scroll-snap-align: start;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.preim-card a, .breadcrumbs a, .teacher-thumb a {
    color: #333333;
    text-decoration: none;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 960px;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 960px;
    }
}
