.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 45px;
}

.screenshot-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    width: 100%;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshot-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 calc((100% - 2rem) / 3);
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .screenshot-item {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0;
    }

    .screenshot-item {
        flex: 0 0 80%;
    }

    .carousel-btn {
        display: none !important;
    }
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #475569;
    /* Темный оттенок slate-600 */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background-color: #1e293b;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.language-switch {
    position: absolute;
    top: 24px;
    right: 32px;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: .9rem;
    font-weight: 600;
}

.language-switch a {
    color: #6c757d;
    text-decoration: none;
    transition: color .2s;
}

.language-switch a:hover {
    color: #0d6efd;
}

.language-switch .active {
    color: #212529;
    pointer-events: none;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.home-link {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    text-decoration: none;
}

.home-link:hover {
    text-decoration: underline;
}