/* Основные стили, такие же, как были ранее */
@font-face {
    font-family: 'CustomFont';
    src: url('fonts/11391.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #F5F4EF;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    background-image: url('images/background.png');
    background-repeat: repeat;
    background-size: cover;
    background-size: 460px 460px;
    font-family: 'Montserrat', sans-serif;
}

.outer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.container {
    width: 1240px;
    height: 408px;
    border: 1px solid black;
    display: flex;
    box-sizing: border-box;
    z-index: 3; /* Обеспечивает нахождение контейнера перед слайдером */
}

.left-block {
    width: 808px;
    background-color: #414141;
    padding: 45px 45px 45px 60px;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    height: 100%;
}

.text-center h1 {
    margin: 0;
    font-family: 'CustomFont', serif;
    font-size: 72px;
    font-weight: 300;
    text-align: left;
}

.right-block {
    width: 432px;
    background-color: transparent;
    padding: 40px 40px 40px 40px;
    box-sizing: border-box;
    color: black;
}

.right-block p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    width: 322px;
    height: 308px;
    top: 50px;
    left: 50px;
}

.second-container {
    width: 1239px;
    height: 800px;
    border: 1px solid black;
    border-top: none;
    border-bottom: none;
    background-color: transparent;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    z-index: 1; /* Обеспечивает нахождение второго контейнера перед слайдером */
}

.inner-block {
    width: 280px;
    height: 616px;
    position: absolute;
    top: 100px;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4; /* Обеспечивает нахождение блока перед слайдером */
}

.inner-block .button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 70px;
    border-radius: 100px;
    background-color: #FFFFFF;
    transition: border-color 0.3s, background-color 0.3s;
    margin-bottom: 10px;
    cursor: pointer;
    z-index: 4; /* Обеспечивает нахождение кнопок перед слайдером */
}

/* Изменение фона при наведении */
.inner-block .button-container.image-light:hover {
    background-color: #FFE48F;
}

.inner-block .button-container.image-medium:hover {
    background-color: #FFD7B3;
}

.inner-block .button-container.image-hight:hover {
    background-color: #FFBCB8;
}

/* Активное состояние */
.inner-block .button-container.image-light.active {
    background-color: #FFE48F;
}

.inner-block .button-container.image-medium.active {
    background-color: #FFD7B3;
}

.inner-block .button-container.image-hight.active {
    background-color: #FFBCB8;
}


.inner-block img {
    display: block;
    margin-right: 10px;
}

.image-sun {
    width: auto;
    height: 230px;
    z-index: 4; /* Обеспечивает нахождение изображения перед слайдером */
}

.image-strelka {
    width: 42px;
    height: 52px;
    margin: 20px 0;
    z-index: 4; /* Обеспечивает нахождение стрелки перед слайдером */
}

.image-text {
    font-family: 'CustomFont', serif;
    font-size: 24px;
    font-weight: 300;
    color: black;
    z-index: 4; /* Обеспечивает нахождение текста перед слайдером */
}

.instruction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}


.instruction-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.instruction-block {
    width: 300px;
    height: 84px;
    background-color: #F08221;
    border-radius: 100px;
    position: absolute;
    top: 50px;
    right: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 44px;
    box-sizing: border-box;
    z-index: 7; /* Обеспечивает нахождение инструкции перед слайдером */
    cursor: pointer;
}

.instruction-window {
    width: 300px;
    height: 456px;
    overflow: hidden;
    background-color: #F5F4EF;
    display: none;
    border: 1px solid black;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    padding-top: 90px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    visibility: hidden;
    margin-top: 10px;
    position: absolute;
    top: 40px;
    right: -100px;
    transform: translateX(-50%);
    z-index: 6; /* Обеспечивает нахождение всплывающего окна инструкции перед слайдером */
}


.instruction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 30px 0;
}

.instruction-item img {
    width: 40px;
    height: 40px;
}

.instruction-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #414141;
    margin: 0;
}

.instruction-item-border {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}


.instruction-block p {
    font-family: 'CustomFont', serif;
    font-size: 34px;
    color: white;
    margin: 0 10px 0 0;
    font-weight: 300;
}

.instruction-block .image-question {
    width: 25px;
    height: 25px;
    margin-left: 10px;
}

.info-block {
    display: none;
    width: 300px;
    height: 520px;
    background-color: white;
    border: 1px solid black;
    position: absolute;
    top: 154px;
    right: 50px;
    flex-direction: column;
    box-sizing: border-box;
    padding: 10px;
    overflow: hidden;
    z-index: 5; /* Обеспечивает нахождение информационного блока перед слайдером */
}

.info-block .info-title {
    font-family: 'CustomFont', serif;
    font-size: 26px;
    font-weight: 300;
    margin: 10px 0 20px 0;
    text-align: left;
}

.info-block p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: black;
    margin: 0;
    text-align: center;
}

/* Стили для ссылок */
.product-link {
    color: orange;
    text-decoration: underline;
}

.text-image-block {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fff;
}

.text-image-block p {
    text-align: left;
    margin: 0;
}

.light-info-image, .medium-info-image, .high-info-image {
    width: 100%;
    height: 190px;
    margin: 16px 0;
    opacity: 1;
}

.additional-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.uv-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.uv-text {
    width: 180px;
    height: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #414141;
}

.uv-text a {
    text-decoration: underline;
    color: #3C3C3C;
}

.footer-container {
    display: flex;
    justify-content: center; /* Центрирует элементы футера */
    align-items: center;
    background-color: #F08221;
    padding: 0px 20px; /* Уменьшает внутренние отступы футера */
    width: 100%; /* Растягивает футер на всю ширину экрана */
    max-width: 1240px; /* Ограничивает максимальную ширину футера */
    border: 1px solid black;
    border-top: none;
    box-sizing: border-box;
    margin-top: 0px;
    margin-bottom: 10px;
    z-index: 3;
}

.footer-item1, .footer-item2 {
    display: flex;
    align-items: center;
    width: 300px;
    height: 78px;
    padding: 0px 20px;
    border-radius: 100px;
    border: 1px solid black;
    background-color: #fff;
    margin: 0 10px; /* Добавляет отступ между элементами */
    z-index: 3;
}


.footer-item1 img, .footer-item2 img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-item1 p, .footer-item2 p {
    width: 210px;
    height: 42px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #414141;
    margin-left: 20px;
}

.uv-popup {
    width: 90vw; /* Сделаем ширину на 90% от ширины экрана */
    max-width: 860px; /* Максимальная ширина сохраняется */
    height: 860px; /* Высота на 90% от высоты экрана */
    max-height: 840px; /* Максимальная высота на 90% от высоты экрана */
    background-color: #F5F4EF;
    display: none;
    border: 1px solid black;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    visibility: hidden;
    position: fixed; /* Fixed position to stay in front */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000; /* Highest z-index to ensure it's in front */
    overflow: hidden; /* Ensure that content inside can scroll */
}

.uv-popup-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 75vh; /* Limit content height to allow scrolling */
    padding-right: 10px; /* Add some padding on the right for scrollbar */
}


.uv-popup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0;
}

.uv-popup-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    color: #F08221;
    margin-left: 50px;
    margin-right: -150px;
    flex: 1;
}

.uv-popup-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #414141;
    margin: 0;
    flex: 2;
}

.uv-popup-item-border {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.uv-popup-header {
    width: 820px;
    height: 84px;
    background-color: #F08221;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -3;
}

.uv-popup-header p {
    font-family: 'CustomFont', serif;
    font-size: 34px;
    color: #FFFFFF;
    margin: 0;
}

.uv-popup-item2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0;
    margin-top: 10px;
}

.uv-popup-item2 p {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    color: #767474;
    margin: 0;
    margin-right: 200px;
    margin-left: -30px;
    flex: 2;
}

.uv-popup-item2 img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-left: 50px;
    margin-right: 50px;
}

#hotspot-popup {
    width: 300px;
    height: auto;
    top: 55%;
    left: 16%;
    padding: 32px;
    gap: 10px;
    border-radius: 50px;
    background: #414141;
    position: absolute;
    z-index: 6; /* Обеспечивает нахождение всплывающего окна с хотспотом перед слайдером */
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transform: translate(-50%, -50%);
}

#hotspot-popup h2 {
    font-family: 'CustomFont', serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 31.2px;
    letter-spacing: -0.03em;
    text-align: left;
    color: #ffffff;
}

#hotspot-popup p {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    text-align: left;
    color: #ffffff;
}

#hotspot-popup .image-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#hotspot-popup img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
}

#hotspot-popup .close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    text-align: left;
    color: #ffffff;
}

.spinner {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #F08221; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 35%;
    left: 45%;
    transform: translate(-50%, -50%);
    z-index: 0; /* Above other elements */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slider-container {
    width: 1240px;
    height: 800px;
    background-color: transparent;
    overflow: hidden;
    position: relative; /* Изменено с absolute на relative */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    margin-bottom: 0; /* Убедитесь, что нет внешних отступов */
}


#slider {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Изображение будет полностью вписано в контейнер без обрезки */
    background-color: #000; /* Можно добавить фон, если изображение меньше контейнера */
}


/* Styles for hotspots */
.hotspot {
    position: absolute;
    width: 8px;
    height: 8px;
    cursor: pointer;
}

.inner-sphere {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.outer-ring1, .outer-ring2 {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite;
}

.outer-ring1 {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.outer-ring2 {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.hotspot:hover {
    transform: scale(1.2);
}
