body { margin: 0; }
canvas { display: block; position: absolute; top: 0; left: 0; z-index: 1; }

.slider-container input[type="range"] {
    border: 1px solid rgba(0, 132, 255, 0.5); /* Обводка трека */
        backdrop-filter: blur(5px);  
    -webkit-backdrop-filter: blur(5px);
    border-radius: 5px;
    background: #fff; /* Прозрачный фон для корректного отображения linear-gradient */
    position: relative;
    overflow: hidden;
}

/* Стили для thumb */
.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: #fff; /* Прозрачный фон thumb */
    border: 1px solid rgba(0, 132, 255, 0.5); /* Обводка thumb */
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 132, 255, 0.5); /* Лёгкое свечение */
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: #fff; /* Прозрачный фон thumb */
    border: 1px solid rgba(0, 132, 255, 0.5); /* Обводка thumb */
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 132, 255, 0.5); /* Лёгкое свечение */
}

/* Фон неактивной части трека с blur */
.slider-container input[type="range"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7);
    filter: blur(5px);
    z-index: -1;
}

    

.sprite-div {
    width: 45px;
    height: 45px;
    border: solid 1px rgba(0, 132, 255,0.5); 
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(5px);  
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
}
.sprite-div img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.label.text {
    margin-top: -110px;
    position: fixed;
    z-index: 9999;
    border: solid 1px rgba(0, 132, 255,0.5); 
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(15px);  
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    width: 300px;
    border-radius: 15px;
    padding: 15px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: left;
    pointer-events: auto;
}
.label.text .brief-text {
    font-size: 16px;
    margin-bottom: 0px;
}
.label.text .toggle-btn {
    color: #0059ff;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    padding: 0px;
    margin-bottom: 10px;
    pointer-events: auto;
}
.label.text .full-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease-out;
    display: block;
}
.label.text .full-text.active {
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.label.text .full-text.active::-webkit-scrollbar {
    display: none;
}
@media (max-height: 600px) {
    .label.text .full-text.active {
        max-height: 60vh;
    }
}
.label.text .description {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: left;
}
.label.text .description .content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
    display: block;
}
.label.text .accordion-item {
    margin: 10px 0;
}
.label.text .accordion-header {
    cursor: pointer;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    font-size: 14px;
    text-align: left;
    pointer-events: auto;
}
.label.text .accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    text-align: left;
    font-size: 13px;
    
    border-radius: 3px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.label.text .accordion-content.active {
    max-height: 500px;
    padding: 8px;
}


.photo-slider {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
    margin: 10px 0;
    border-radius: 8px;
}
.photo-slider .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}
.photo-slider .slides.no-transition {
    transition: none;
}
.photo-slider .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.photo-slider .slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.photo-slider .slide img.loaded {
    opacity: 1;
}
.photo-slider .prev,
.photo-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0;
    pointer-events: auto;
}
.photo-slider .prev {
    left: 0px;
}
.photo-slider .next {
    right: 0px;
}
.photo-slider .prev:hover,
.photo-slider .next:hover {
    background: rgba(0, 0, 0, 0.1);
}

.price-slider {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
    overflow: hidden;
}

.price-slider .price-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.price-slider .price-slide {
    flex: 0 0 100%;
    text-align: center;
}

.price-slider .price-link {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 0px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.price-slider .price {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
}

.price-slider .weight {
    font-size: 1em;
    color: #c2c2c2;
}

.price-slider .prev,
.price-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.0);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.price-slider .prev {
    left: 0;
}

.price-slider .next {
    right: 0;
}

.price-slider .no-transition {
    transition: none !important;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.preloader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #0059ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Стили для кнопки меню */
.menu-toggle-btn {
    margin-top: 165px;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1001;
    background: rgba(15, 15, 15, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 0px solid rgba(0, 132, 255, 0.5);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    pointer-events: auto;
    font-size: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-toggle-btn img {
    width: 50px;
    height: 50px;
}
/* Стили для меню моделей */
.model-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 132, 255, 0.5);
    border-radius: 15px;
    padding: 10px;
    width: 310px;
    height: 310px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.3);
    display: none;
}
.model-menu::-webkit-scrollbar {
    width: 6px;
}
.model-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}
.model-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}
.model-menu.active {
    display: block;
}
.model-menu .model-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}
.model-menu button {
    display: flex;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 5px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}
.model-menu button:hover {
    background: rgba(255, 255, 255, 0.2);
}
.model-menu button.active {
    background: rgba(0, 132, 255, 0.5);
}
.model-menu button img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 5px;
    object-fit: cover;
}
.model-menu button span {
    flex: 1;
    font-size: 12px;
    line-height: 1.2;
}

/* Стили для статического контента */
#static-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
}
#static-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
}
#static-content article {
    margin-bottom: 30px;
}
#static-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
#static-content p {
    font-size: 1em;
    line-height: 1.6;
}
#static-content ul {
    list-style: none;
    padding: 0;
}
#static-content li {
    margin-bottom: 5px;
}
#static-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

