/* Custom Premium Industrial Styling for СпецТехника */

:root {
    --primary-color: #ff8c00;
    --primary-hover: #ffb77d;
    --bg-color: #131314;
    --card-bg: #1b1b1c;
    --outline-color: #564334;
}

h2 {
    color: #ffb77d !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #131314;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2b;
    border: 2px solid #131314;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}

/* Grid Dots Background */
.industrial-grid {
    background-color: #131314;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 140, 0, 0.04) 1.5px, transparent 0);
    background-size: 30px 30px;
}

/* Diamond Plate texture background */
.diamond-plate {
    background-color: #1a1a1b;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20L0 40V0L20 20zM20 20L40 0V40L20 20z' fill='%232a2a2b' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Warning Hazard stripe border decoration */
.hazard-stripe {
    background: repeating-linear-gradient(
        -45deg,
        #ff8c00,
        #ff8c00 12px,
        #131314 12px,
        #131314 24px
    );
}

/* Keyframes & Animations */
@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spinSlow 30s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom form and active outlines */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2) !important;
    border-color: #ff8c00 !important;
}

/* Asymmetrical image filters and visual distinctiveness */
.group:hover img {
    filter: grayscale(0%) contrast(110%);
}

img {
    filter: grayscale(30%) contrast(100%);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Interactive custom card styling */
article {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}

article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    pointer-events: none;
    transition: all 0.3s ease;
}

article:hover::before {
    border-color: #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
}

/* Mobile-first margins and padding tweaks */
@media (max-width: 768px) {
    .py-section-gap {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}