:root {
    --stripe-opacity-1: 0.6;
    --stripe-opacity-2: 0.1;
    --stripe-color-1: 51, 51, 51;
    --stripe-color-2: 68, 68, 68;
    --stripe-width: 7px;
    --stripe-angle: 120deg;
}

body {
    margin: 0;
    padding: 0;
    background: 
        repeating-linear-gradient(
            var(--stripe-angle),
            rgba(var(--stripe-color-1), var(--stripe-opacity-1)),
            rgba(var(--stripe-color-1), var(--stripe-opacity-1)) var(--stripe-width),
            rgba(var(--stripe-color-2), var(--stripe-opacity-2)) var(--stripe-width),
            rgba(var(--stripe-color-2), var(--stripe-opacity-2)) calc(var(--stripe-width) * 2)
        ),
        #222;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.logo {
    width: auto; /* Сохраняем оригинальный размер */
    height: auto;
    max-width: 100%; /* Ограничиваем максимальную ширину */
    max-height: 90vh; /* Ограничиваем максимальную высоту */
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    color: white;
    max-width: 250px;
    z-index: 10;
}

.content {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 50px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.control-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

input[type="range"] {
    width: 100%;
}

.math-example {
    font-size: 24px;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.math-row {
    margin: 10px 0;
}

.divider {
    border-top: 1px solid white;
    margin: 15px auto;
    width: 80%;
}

/* Медиа-запросы только для случаев, когда экран меньше логотипа */
@media (max-width: 800px) {
    .logo {
        width: 90vw; /* Занимает 90% ширины экрана */
        height: auto; /* Сохраняет пропорции */
    }
    
    .controls {
        top: 10px;
        right: 10px;
        padding: 10px;
        max-width: 200px;
    }
    
    .content {
        padding: 20px;
        max-width: 90%;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    :root {
        --stripe-width: 5px;
    }
    
    .controls {
        top: auto;
        bottom: 10px;
        max-width: 150px;
        padding: 8px;
    }
    
    .content {
        padding: 15px;
    }
    
    .math-example {
        font-size: 18px;
        padding: 15px;
    }
    
    label {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .logo {
        width: 85vw;
    }
    
    .controls {
        max-width: 130px;
    }
    
    .math-example {
        font-size: 16px;
        padding: 12px;
    }
}