/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
    opacity: 0.9;
}
/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background_vosp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.7;
}

/* Затемнение фона для лучшей читаемости */
.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
}

/* Основной контент */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Шапка */
.header-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #1a252f;
    transform: translateX(-3px);
}

.back-arrow {
    font-size: 18px;
}

.page-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 20px;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* Контейнер с боковыми панелями и основным текстом */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
    margin-bottom: 50px;
}

/* Боковые панели */
.sidebar-left,
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.side-image {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.side-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.side-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Основной текст */
.main-text {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.text-section {
    margin-bottom: 50px;
}

.text-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.text-section p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.text-section p:last-child {
    margin-bottom: 0;
}

/* Список задач */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #2ecc71;
    transition: transform 0.3s ease;
}

.task-item:hover {
    transform: translateX(10px);
    background: #edf2f7;
}

.task-item h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.task-item p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Этапы (таймлайн) */
.stages-timeline {
    position: relative;
    padding-left: 40px;
}

.stages-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3498db;
    opacity: 0.3;
}

.stage {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.stage:last-child {
    margin-bottom: 0;
}

.stage-number {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
}

.stage-content {
    flex: 1;
}

.stage-content h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stage-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Формы работы */
.forms-section {
    margin-bottom: 50px;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.form-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #e74c3c;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.form-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.form-card p {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Роль школы и родителей */
.roles-section {
    margin-bottom: 50px;
}

.roles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.role-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.role-card h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.role-card ul {
    list-style-type: none;
    padding: 0;
}

.role-card li {
    padding: 12px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.role-card li:last-child {
    border-bottom: none;
}

.role-card li:before {
    content: "•";
    color: #3498db;
    font-size: 24px;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Практические советы */
.advice-section {
    margin-bottom: 50px;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.advice-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    border: 2px solid #f1c40f;
}

.advice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #f39c12;
}

.advice-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.advice-card p {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Футер */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 2px solid #eee;
    color: #7f8c8d;
    font-size: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.footer p {
    margin: 10px 0;
}

.footer p:first-child {
    font-weight: 600;
    color: #2c3e50;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.side-image,
.text-section,
.task-item,
.stage,
.form-card,
.role-card,
.advice-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .content-with-sidebar {
        grid-template-columns: 200px 1fr 200px;
        gap: 20px;
    }
    
    .side-image img {
        height: 150px;
    }
    
    .main-text {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        position: static;
        order: 2;
        margin-top: 30px;
    }
    
    .main-text {
        order: 1;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .page-title {
        font-size: 30px;
        margin-top: 50px;
    }
    
    .roles-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .back-button {
        position: static;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .header-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 26px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .sidebar-left,
    .sidebar-right {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .text-section p {
        font-size: 16px;
    }
    
    .stage-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stage-content h3 {
        font-size: 20px;
    }
    
    .forms-grid,
    .advice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .sidebar-left,
    .sidebar-right {
        grid-template-columns: 1fr;
    }
    
    .main-text {
        padding: 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .stage {
        flex-direction: column;
        gap: 10px;
    }
    
    .stages-timeline {
        padding-left: 0;
    }
    
    .stages-timeline::before {
        display: none;
    }
    
    .stage-number {
        align-self: flex-start;
    }
    
    .footer {
        padding: 20px;
        font-size: 14px;
    }
}