
.clock-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.clock-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://psv4.userapi.com/s/v1/d2/HlqQm8L-gAQMhu_347ZL9LAksqEBr1_oYC3pVLMr7Sp22ksTgz7XEg2olPYtEsG8YE6_By0Yidawbg5PAwB4M88v8KipvoI9PKRqU2XInHnbFHYokj2f0lP_oegAi8N2ZxpwYRXq3mkH/clock.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

/* Часовая стрелка - линия (ИСПРАВЛЕННО) */
.hour-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 120px;
    background-color: #8c1913;
    border-radius: 3px;
    transform-origin: bottom center; /* Точка вращения внизу */
    transform: translate(-50%, -100%); /* Центрируем снизу вверх */
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Минутная стрелка - линия (ИСПРАВЛЕННО) */
.minute-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 160px;
    background-color: #8c1913;
    border-radius: 2px;
    transform-origin: bottom center; /* Точка вращения внизу */
    transform: translate(-50%, -100%); /* Центрируем снизу вверх */
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background-color: #8c1913;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 550px) {
    .clock-container {
        width: 350px;
        height: 350px;
    }
    
    .hour-hand {
        width: 5px;
        height: 84px; /* 120 * 350/500 */
    }
    
    .minute-hand {
        width: 3px;
        height: 112px; /* 160 * 350/500 */
    }
    
    .center-dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 400px) {
    .clock-container {
        width: 280px;
        height: 280px;
    }
    
    .hour-hand {
        width: 4px;
        height: 67px; /* 120 * 280/500 */
    }
    
    .minute-hand {
        width: 2.5px;
        height: 90px; /* 160 * 280/500 */
    }
    
    .center-dot {
        width: 10px;
        height: 10px;
    }
}