/* --- ГЛОБАЛЬНЫЕ СТИЛИ --- */
body { 
    background-color: #FEF201; 
    color: #000000; 
    font-family: 'Arial', 'Helvetica', sans-serif; 
    font-weight: 600; 
    font-size: 16px; 
}

/* Адаптив шрифта */
@media (min-width: 768px) { 
    body { font-size: 18px; } 
}

/* Блоки */
.grey-block { 
    background-color: #A2A2A2; 
    color: #000000; 
    border: 4px solid #000000; 
}

.black-block { 
    background-color: #000000; 
    color: #FFFFFF; 
}

/* Элементы форм */
.grey-block input { 
    color: #000000; 
    font-weight: 700; 
}
.grey-block input::placeholder { 
    color: #404040; 
    opacity: 0.8; 
}

/* Знаки и графика */
.hazard-img, .hazard-icon { 
    object-fit: contain; 
}
/* Специфично для index */
.hazard-icon { 
    width: 100%; 
    max-width: 220px; 
    height: auto; 
}
/* Специфично для details */
.hazard-img { 
    width: 140px; 
    height: 140px; 
}

/* Оранжевая табличка */
.orange-plate {
    background-color: #ff6600; 
    border: 6px solid black; 
    color: black;
    width: 260px; 
    font-family: monospace;
    display: flex; 
    flex-direction: column; 
    margin: 0 auto;
}
.plate-row {
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 3rem; 
    line-height: 1.2; 
    letter-spacing: 2px; 
    font-weight: 900; 
    padding: 10px 0;
}
.plate-divider { 
    height: 6px; 
    background: black; 
    width: 100%; 
}

/* Лейблы данных */
.data-label { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    color: #000000; 
    font-weight: 900; 
    margin-bottom: 0.5rem; 
    opacity: 0.7;
}
.data-value { 
    color: #000000; 
    font-weight: 700; 
    font-size: 1.25rem; 
    word-wrap: break-word; 
}

/* Анимация появления */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.animate-fade-in { 
    animation: fadeIn 0.3s ease-out forwards; 
}

/* Анимация для куки-баннера */
@keyframes slideUp { 
    from { transform: translateY(100%); } 
    to { transform: translateY(0); } 
}
.animate-slide-up { 
    animation: slideUp 0.5s ease-out forwards; 
}

/* --- АНИМАЦИЯ ЛОГОТИПА (ВРАЩЕНИЕ 360) --- */
@keyframes spinLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-once {
    /* 1s - длительность, ease-out - плавное замедление в конце */
    animation: spinLogo 1s ease-out forwards;
}