/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--purple);
    color: var(--white);
    font-family: Arial, sans-serif;
    text-align: left;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

/* Контейнер для фонового изображения на главной странице */
body:not(.transparent-bg)::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 750px;
    max-width: 40%;
    background-image: var(--background-image);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: -1;
    border-radius: 0 0 0 80px;
    pointer-events: none;
}

/* Прозрачный фон для страниц ML, Data Analysis, BigData */
body.transparent-bg {
    background-image: none;
}

body.transparent-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: var(--background-size);
    background-position: calc(100% - 20px) 120px;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
}

/* ===== МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ ===== */
@media (max-width: 1200px) {
    body:not(.transparent-bg)::after {
        width: 600px;
        max-width: 35%;
        border-radius: 0 0 0 60px;
    }
    body.transparent-bg::before {
        background-size: 800px 1000px;
        background-position: calc(100% - 100px) 100px;
    }
}

@media (max-width: 900px) {
    body:not(.transparent-bg)::after {
        width: 450px;
        max-width: 30%;
        border-radius: 0 0 0 50px;
    }
    body.transparent-bg::before {
        background-size: 600px 800px;
        background-position: calc(100% - 80px) 80px;
    }
}

@media (max-width: 768px) {
    body:not(.transparent-bg)::after {
        width: 280px;
        max-width: 25%;
        border-radius: 0 0 0 40px;
    }
    body.transparent-bg::before {
        background-size: 400px 600px;
        background-position: calc(100% - 60px) 60px;
    }
}

@media (max-width: 480px) {
    body:not(.transparent-bg)::after {
        width: 180px;
        max-width: 20%;
        border-radius: 0 0 0 30px;
    }
    body.transparent-bg::before {
        background-size: 250px 350px;
        background-position: calc(100% - 30px) 30px;
    }
}
