/* tutorial.css - стили для страницы учебника */

/* Заголовок */
.tutorial-header {
    padding: 30px 0 10px;
}

.tutorial-title {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: clamp(2rem, 8vw, 3.5rem);
    letter-spacing: 4px;
    margin: 0;
    text-align: center;
    border-bottom: 2px solid var(--color-yellow);
    padding-bottom: 15px;
}

/* Основная секция */
.tutorial-section {
    padding: 20px 0 60px;
}

/* Левая колонка с главами */
.chapters-wrapper {
    background: #161616;
    border-radius: 12px;
    padding: 20px;
}

.chapters-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chapter-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chapter-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.chapter-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chapter-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.chapter-info {
    flex: 1;
}

.chapter-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.chapter-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Правая колонка - вступление */
.welcome-card {
    background: #161616;
    border-radius: 12px;
    padding: 30px;
}

.welcome-heading {
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
    border-left: 4px solid var(--color-yellow);
    padding-left: 20px;
}

.welcome-paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.welcome-quote {
    margin: 30px 0 0;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 4px solid var(--color-green);
}

.welcome-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.welcome-quote cite {
    font-size: 0.95rem;
    color: var(--color-yellow);
    font-style: normal;
    display: block;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 991px) {
    .chapters-wrapper {
        margin-bottom: 20px;
    }
    
    .welcome-heading {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .tutorial-header {
        padding: 20px 0 5px;
    }
    
    .tutorial-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .welcome-card {
        padding: 25px 20px;
    }
    
    .welcome-heading {
        font-size: 1.5rem;
        padding-left: 15px;
    }
}

@media (max-width: 576px) {
    .chapter-card {
        padding: 12px 15px;
    }
    
    .chapter-icon img {
        width: 35px;
        height: 35px;
    }
    
    .chapter-name {
        font-size: 1.1rem;
    }
    
    .chapter-desc {
        font-size: 0.85rem;
    }
    
    .welcome-paragraph {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* =========================
   ВСТУПЛЕНИЕ ГЛАВЫ
========================= */
.chapter-intro {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    font-style: italic !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: 26px !important;
    max-width: 900px;
}

/* =========================
   БЛОКИ (оставили, т.к. хорошо зашли)
========================= */
.chapter-content .content-block {
    margin-bottom: 22px !important;
    padding: 18px 20px !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

/* =========================
   ЗАГОЛОВКИ
========================= */
.chapter-content .content-block-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #fff !important;
    margin-bottom: 10px !important;
    padding-left: 12px;
    border-left: 3px solid var(--color-yellow);
}

/* =========================
   ТЕКСТ (чуть плотнее, без перегиба)
========================= */
.chapter-content .content-block-text,
.chapter-content .content-block-text p,
.chapter-content .content-block-text li,
.chapter-content .content-block-text td {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.chapter-content .content-block-text p {
    margin: 0 0 10px 0 !important;
}

/* =========================
   ВЫДЕЛЕНИЯ (без лишнего цвета)
========================= */
.chapter-content .content-block-text strong {
    font-weight: 600 !important;
    color: #fff !important;
}

/* =========================
   СПИСКИ (аккуратно, без перегруза)
========================= */
.chapter-content .content-list {
    margin: 10px 0 12px 0 !important;
    padding-left: 18px !important;
}

.chapter-content .content-list li {
    margin-bottom: 6px !important;
    line-height: 1.5;
}

/* =========================
   SUMMARY
========================= */
.chapter-summary {
    margin-top: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.chapter-summary .summary-list li {
    margin-bottom: 6px;
}