/*ВЫБОР ЦВЕТА ДОМА*/
.color-section {
    width: 100%;
    background: #FFFFFF;
    padding: 60px 0 70px;
}

.color-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.color-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 38px;
    color: #000000;
    text-align: center;
    margin: 0 0 36px;
}

.color-viewer {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e0e0;
    user-select: none;
    aspect-ratio: 1180 / 690;
}

.color-main-img {
    width: 100%;
    height: 590px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    -webkit-user-drag: none;
}

.color-main-img.fading {
    opacity: 0;
}

.color-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 66px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.15);
    box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-sizing: border-box;
    white-space: nowrap;
}

.color-panel-item {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.color-panel-item--active {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.color-swatch-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.color-panel-mobile-wrap {
    display: none;
    max-width: 1180px;
    margin: 12px auto 0;
}

.color-panel-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    height: 70px;
    border-radius: 10px;
    box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.1);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

.color-panel-mobile::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1200px) {
    .color-title {
        font-size: 34px;
    }

    .color-main-img {
        height: 480px;
    }

    .color-panel-item {
        width: 40px;
        height: 40px;
    }

    .color-panel {
        gap: 6px;
        padding: 0 12px;
        height: 60px;
    }
}

@media (max-width: 1000px) {
    .color-title {
        font-size: 28px;
        line-height: 34px;
    }

    .color-main-img {
        height: 400px;
    }

    .color-panel {
        gap: 5px;
        padding: 0 10px;
        height: 56px;
    }

    .color-panel-item {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .color-section {
        padding: 36px 0 40px;
        background: #F5F5F5;
    }

    .color-title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
    }

    .color-panel {
        display: none;
    }

    .color-panel-mobile-wrap {
        display: block;
    }

    .color-viewer {
        border-radius: 12px;
    }

    .color-main-img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .color-panel-item {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .color-title {
        font-size: 22px;
        line-height: 28px;
    }

    .color-panel-item {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 380px) {
    .color-title {
        font-size: 20px;
        line-height: 26px;
    }

    .color-panel-item {
        width: 38px;
        height: 38px;
    }
}


.coloring-swiper {
    width: 100%;
    height: 100%;
}

.coloring-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.coloring-swiper .swiper-pagination {
    width: auto;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 18px;
    height: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 16px;
}

.coloring-swiper .swiper-pagination-bullet {
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    opacity: 1;
    scale: unset;
    transform: unset;
}

@media (max-width: 768px) {
    .coloring-swiper .swiper-pagination {
        gap: 8px;
        padding: 4px 10px;
        max-width: calc(100% - 24px);
        bottom: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .coloring-swiper .swiper-pagination::-webkit-scrollbar {
        display: none;
    }

    .coloring-swiper .swiper-pagination-bullet {
        flex: 0 0 auto;
    }

    .coloring-swiper .swiper-pagination-bullet svg {
        width: 24px;
        height: auto;
        display: block;
    }

    .coloring-swiper .swiper-pagination-bullet-active svg {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .coloring-swiper .swiper-pagination {
        gap: 6px;
        padding: 3px 8px;
    }

    .coloring-swiper .swiper-pagination-bullet svg {
        width: 22px;
    }

    .coloring-swiper .swiper-pagination-bullet-active svg {
        width: 28px;
    }
}
