.keyboard-container {
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
}
.keyboard-inner {
    display: inline-flex;
    gap: 20px;
    margin: auto;
}
.numlock-text {
    font-size: 0.7rem;
    line-height: 0.9rem;
}
.footer-link {
    color: #4B5563;
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #1E40AF;
}
/* Анимация для привлечения внимания к новой клавише */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.key-pressed-animation {
    animation: pulse 0.5s ease-in-out;
}
/* Улучшенная структура разделов */
.section-card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: white;
    padding: 1.1rem;
    margin-bottom: 1.1rem;
}
.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E40AF;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
}
/* Адаптивная таблица сочетаний клавиш */
.shortcut-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.shortcut-table th,
.shortcut-table td {
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
}
.shortcut-table th {
    background-color: #F3F4F6;
    font-weight: 600;
}
.shortcut-table tr:nth-child(even) {
    background-color: #F9FAFB;
}
/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.breadcrumbs a {
    color: #2563EB;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: #6B7280;
}
/* Стили для мобильной версии */
@media (max-width: 640px) {
    .keyboard-inner {
        gap: 10px;
    }
    .shortcut-table {
        font-size: 0.875rem;
    }
}
/* Оптимизация для печати */
@media print {
    .no-print {
        display: none;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    .section-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* Улучшенный дизайн кнопок */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: #2563EB;
    color: white;
    border: 1px solid #2563EB;
}
.btn-primary:hover {
    background-color: #1D4ED8;
    border-color: #1D4ED8;
}
.btn-secondary {
    background-color: #6B7280;
    color: white;
    border: 1px solid #6B7280;
}
.btn-secondary:hover {
    background-color: #4B5563;
    border-color: #4B5563;
}
/* Оптимизация для людей с ограниченными возможностями */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}