body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: #4738AD;
    color: white;
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: center; /* Центрируем пункты меню */
    align-items: center;
    background: #99043e;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    width: 100%;
position: sticky; top: 0; z-index: 9999;}

.logo {
    height: 40px;
    position: absolute;
    left: 20px; /* Логотип остается слева */
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: yellow;
    text-decoration: none;
color: #f5b82a;}

main {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* На десктопе располагаем карусель справа от текста */
@media (min-width: 768px) {
    .content {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 900px;
        margin: 0 auto;
        text-align: left;
    }

    .text {
        flex: 1;
    }

    .carousel {
        flex: 1;
        margin-left: 20px;
    }
}

.download {
    background: yellow;
    color: #234670;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.carousel {
    position: relative;
    width: 320px;
    margin-top: 20px;
}

.carousel img {
    width: 100%;
    border-radius: 10px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }


@media (max-width: 768px) {
    .carousel, .slider, .carousel-container {
        margin-left: auto;
        margin-right: auto;
        display: block;
        text-align: center;
    }
}
