[file name]: styles.css
[file content begin]
/* Custom styles compatible with Bootstrap 4.3.1 */

.test-variables {
    color: var(--custom-primary, red);
    background: var(--custom-secondary, blue);
}

:root {
    --custom-primary: #2c3e50;
    --custom-secondary: #4a6491;
    --custom-light: #f5f7fa;
}

.custom-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.custom-body {
    background-color: var(--custom-light);
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.custom-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.custom-header {
    background: linear-gradient(135deg, var(--custom-primary), var(--custom-secondary));
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.custom-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.custom-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.custom-content {
    padding: 30px;
}

.custom-section {
    margin-bottom: 30px;
}

.custom-section h2 {
    color: var(--custom-primary);
    border-bottom: 2px solid var(--custom-secondary);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 400;
}

.custom-text {
    margin-bottom: 15px;
    text-align: justify;
}

.custom-modern-approaches {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--custom-secondary);
}

.custom-approach-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    transition: transform 0.3s ease;
}

.custom-approach-item:hover {
    transform: translateX(5px);
}

.custom-approach-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.custom-approach-item h3 {
    color: var(--custom-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 500;
}

.custom-examples {
    font-style: italic;
    color: #555;
    margin-top: 5px;
}

.custom-chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow-x: auto; /* Добавляем горизонтальный скролл если нужно */
}

.custom-moor-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 300px;
    padding: 20px 0;
    border-bottom: 2px solid #ddd;
    position: relative;
    min-width: 500px; /* Минимальная ширина для графика */
}

.custom-chart-bar {
    background: linear-gradient(to top, var(--custom-secondary), var(--custom-primary));
    width: 60px;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0; /* Начальное состояние для анимации */
    transform: scaleY(0);
    transform-origin: bottom;
    visibility: visible;
    flex-shrink: 0; /* Не сжимать столбцы */
    animation: customBarAnimation 0.8s ease forwards; /* Добавляем анимацию */
}

.custom-chart-bar:hover {
    transform: scaleY(1.05);
    background: linear-gradient(to top, #5d7cb0, #3a506e);
}

.custom-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

.custom-bar-value {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--custom-primary);
}

.custom-chart-title {
    text-align: center;
    margin-bottom: 10px;
    color: var(--custom-primary);
    font-weight: bold;
}

.custom-chart-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.custom-footer {
    text-align: center;
    padding: 20px;
    background-color: var(--custom-primary);
    color: white;
    font-size: 0.9rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.custom-table th, 
.custom-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.custom-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.custom-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Стили для кастомных кнопок и ссылок */
.btn-custom-secondary {
    background: linear-gradient(135deg, var(--custom-secondary), #5d7cb0);
    color: white !important;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-custom-secondary:hover {
    background: linear-gradient(135deg, #5d7cb0, var(--custom-secondary));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

.btn-custom-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Альтернативный вариант - более минималистичный */
.btn-custom-outline {
    background: transparent;
    color: var(--custom-secondary) !important;
    padding: 8px 18px;
    border: 2px solid var(--custom-secondary);
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background: var(--custom-secondary);
    color: white !important;
    text-decoration: none;
}

/* Стили для обычных текстовых ссылок */
.custom-link {
    color: var(--custom-secondary);
    text-decoration: none;
    border-bottom: 1px dotted var(--custom-secondary);
    transition: all 0.3s ease;
}

.custom-link:hover {
    color: var(--custom-primary);
    border-bottom: 1px solid var(--custom-primary);
    text-decoration: none;
}

/* Специфичные стили для ссылки на учебник */
.textbook-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: var(--custom-light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.textbook-link:hover {
    background: #e8ecef;
    transform: translateX(5px);
}

.text-custom-primary { color: var(--custom-primary) !important; }
.text-custom-secondary { color: var(--custom-secondary) !important; }
.bg-custom-primary { background-color: var(--custom-primary) !important; }
.bg-custom-secondary { background-color: var(--custom-secondary) !important; }

/* УЛУЧШЕННЫЕ МЕДИА-ЗАПРОСЫ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .custom-header h1 {
        font-size: 1.8rem;
    }
    
    .custom-content {
        padding: 15px;
    }
    
    .custom-moor-chart {
        height: 250px;
        min-width: 400px; /* Уменьшили минимальную ширину */
        padding: 15px 0;
        gap: 8px; /* Добавляем отступ между столбцами */
    }
    
    .custom-chart-bar {
        width: 45px;
    }
    
    .custom-bar-label {
        font-size: 0.7rem;
        bottom: -20px;
    }
    
    .custom-bar-value {
        font-size: 0.7rem;
        top: -20px;
    }
    
    .custom-chart-container {
        padding: 15px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .custom-body {
        padding: 10px;
    }
    
    .custom-container {
        border-radius: 8px;
    }
    
    .custom-header {
        padding: 20px 15px;
    }
    
    .custom-content {
        padding: 10px;
    }
    
    .custom-moor-chart {
        height: 200px;
        min-width: 350px; /* Еще меньше для очень маленьких экранов */
        gap: 5px;
        justify-content: space-around; /* Равномерное распределение */
    }
    
    .custom-chart-bar {
        width: 35px;
        flex: 0 0 auto;
    }
    
    .custom-bar-label {
        font-size: 0.65rem;
        bottom: -18px;
        transform: translateX(-50%) rotate(-45deg); /* Наклонные подписи */
        transform-origin: center;
        white-space: nowrap;
    }
    
    .custom-bar-value {
        font-size: 0.65rem;
        top: -18px;
    }
    
    /* Улучшаем таблицу для мобильных */
    .custom-table {
        font-size: 0.9rem;
    }
    
    .custom-table th, 
    .custom-table td {
        padding: 8px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .custom-moor-chart {
        min-width: 320px;
        height: 180px;
    }
    
    .custom-chart-bar {
        width: 30px;
    }
    
    .custom-bar-label {
        font-size: 0.6rem;
        bottom: -16px;
    }
    
    .custom-bar-value {
        font-size: 0.6rem;
        top: -16px;
    }
}

@keyframes customBarAnimation {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@media (max-width: 768px) {
    .btn-custom-secondary,
    .btn-custom-outline {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-custom-secondary,
    .btn-custom-outline {
        padding: 6px 12px;
        font-size: 0.85rem;
        display: block;
        text-align: center;
        margin: 5px 0;
    }
}

/* Добавляем задержку для каждого столбца */
.custom-chart-bar:nth-child(1) { animation-delay: 0.1s; }
.custom-chart-bar:nth-child(2) { animation-delay: 0.2s; }
.custom-chart-bar:nth-child(3) { animation-delay: 0.3s; }
.custom-chart-bar:nth-child(4) { animation-delay: 0.4s; }
.custom-chart-bar:nth-child(5) { animation-delay: 0.5s; }
.custom-chart-bar:nth-child(6) { animation-delay: 0.6s; }
.custom-chart-bar:nth-child(7) { animation-delay: 0.7s; }
.custom-chart-bar:nth-child(8) { animation-delay: 0.8s; }
.custom-chart-bar:nth-child(9) { animation-delay: 0.9s; }
.custom-chart-bar:nth-child(10) { animation-delay: 1.0s; }
[file content end]