/* Custom CSS for Rockstone KZ */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Typography improvements */
body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Custom utilities */
.container {
    max-width: 1280px;
}

/* Background grid pattern (как на главной) */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

/* Page Loader Progress Bar Animation */
.loader-progress {
    width: 0%;
    animation: loaderProgress 1.5s ease-out forwards;
}

@keyframes loaderProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Form improvements */
input:focus, textarea:focus {
    outline: none;
}

/* Button hover effects */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image lazy loading placeholder */
img[data-src] {
    background: #f5f5f4;
}

/* Header Styles */
.header-transparent {
    background: rgba(13, 13, 13, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Navigation Link Underline */
.nav-link {
    position: relative;
}

.nav-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #e0663a, #d4a847);
    transition: width 0.3s ease;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

/* Hamburger Menu Icon */
.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.hamburger-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

/* Hamburger Animation - Open State */
.hamburger.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-overlay.active .mobile-menu-item:nth-child(5) {
    transition-delay: 0.3s;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
