/* Блок онлайн-камер (Figma 236:58591 десктоп, 236:58424 планшет, 236:58496 мобилка). */

/* Белый отступ до следующей (серой) секции — по макету. */
.cameras-block {
    margin-bottom: 68px;
}

/* min-width: 0 — иначе flex-элемент растягивается до max-content ленты слайдов. */
.cameras-container {
    width: 100%;
    min-width: 0;
}

.cameras-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.cameras-slider-wrapper {
    position: relative;
}

.cameras-swiper {
    overflow: hidden;
}

.cameras-slide {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cameras-facade {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 261px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: var(--Surface-Dark, #33333A);
    cursor: pointer;
}

.cameras-facade__play {
    display: block;
    width: 68px;
    height: 68px;
}

.cameras-facade__play img {
    width: 100%;
    height: 100%;
    display: block;
}

.cameras-facade:hover .cameras-facade__play {
    filter: brightness(0.94);
}

.cameras-facade__label {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translate(-50%, 50%);
    color: var(--Base-White, #FFF);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

/* Iframe трансляции подставляется на место фасада по клику. */
.cameras-slide iframe {
    display: block;
    width: 100%;
    height: 261px;
    border: 0;
    border-radius: 4px;
    background: var(--Surface-Dark, #33333A);
}

.cameras-slide__title {
    margin: 0;
    color: var(--Text-Primary, #1E2433);
    font-size: var(--font-camera-title, 16px);
    font-weight: 500;
    line-height: 20px;
}

/* Стрелки — круглые, за пределами слайдера, по центру превью (только десктоп). */
.cameras-arrow {
    position: absolute;
    top: 104px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--Brand-Secondary, #454452);
    cursor: pointer;
}

.cameras-arrow img {
    width: 24px;
    height: 24px;
    display: block;
}

.cameras-arrow--prev {
    left: -72px;
}

.cameras-arrow--prev img {
    transform: rotate(180deg);
}

.cameras-arrow--next {
    right: -72px;
}

.cameras-arrow.swiper-button-disabled {
    background: var(--Gray-200, #ABABB1);
    cursor: default;
}

/* Точки-пагинация (Figma 141:3564): стеклянная пилюля, видна на планшете и мобилке. */
.cameras-dots {
    display: none;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 30px auto 0;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
}

.cameras-dots:empty {
    display: none !important;
}

.cameras-dot {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.33);
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.cameras-dot.active {
    border: 1px solid var(--Surface-Dark, #33333A);
    background: rgba(0, 0, 0, 0.33);
}

.cameras-dot.far {
    width: 12px;
    height: 12px;
}

@media (max-width: 1439px) {
    .cameras-block {
        margin-bottom: 60px;
    }

    .cameras-header {
        margin-bottom: 16px;
    }

    .cameras-slide {
        gap: 8px;
    }

    .cameras-facade,
    .cameras-slide iframe {
        height: 190px;
    }

    .cameras-facade__label {
        bottom: 18px;
    }

    .cameras-arrow {
        display: none;
    }

    .cameras-dots {
        display: flex;
    }
}

@media (max-width: 989px) {
    .cameras-block {
        margin-bottom: 48px;
    }

    .cameras-header {
        justify-content: center;
        margin-bottom: 14px;
    }

    .cameras-header .font-section-title {
        text-align: center;
    }

    /* Кнопка «Все камеры» на мобилке в макете отсутствует. */
    .cameras-header__btn {
        display: none;
    }

    .cameras-dots {
        margin-top: 18px;
    }
}
