/* Шрифты подключены через <link> в HTML (быстрее, чем @import) */

:root {
    --primary: #102B19;
    --primary-dark: #0B1E11;
    --accent: #1E8A4C;
    --accent-hover: #176839;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body { 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
    -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, h5, h6, .nav-link { font-family: 'Manrope', sans-serif; }

/* Smooth transitions for every link/interactive element site-wide */
a, button {
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Contact form footer CTAs (Max call + WhatsApp) */
.form-footer-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
@media (max-width: 639px) {
    .form-footer-ctas { grid-template-columns: 1fr; }
}
.form-footer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-align: center;
}
.form-footer-cta.cta-call {
    background: rgba(21, 117, 60, 0.08);
    border: 1px solid rgba(21, 117, 60, 0.25);
    color: #15753C;
}
.form-footer-cta.cta-call:hover {
    background: rgba(21, 117, 60, 0.15);
    transform: translateY(-1px);
}
.form-footer-cta.cta-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #1DA851;
}
.form-footer-cta.cta-whatsapp:hover {
    background: rgba(37, 211, 102, 0.18);
    transform: translateY(-1px);
}

/* Custom scrollbars */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0B1E11; z-index: 9999; display: flex;
    justify-content: center; align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
    width: 44px; height: 44px; border: 3px solid rgba(30, 138, 76, 0.25);
    border-radius: 50%; border-top-color: #1E8A4C; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero Video Background */
.hero-video-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: 0;
}
.hero-video-wrapper video, .hero-video-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero-video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(7, 18, 11, 0.75) 0%, rgba(7, 18, 11, 0.45) 45%, rgba(7, 18, 11, 0.75) 100%);
    z-index: 1;
}
@media (min-width: 768px) {
    .hero-video-overlay {
        background: linear-gradient(90deg, rgba(7, 18, 11, 0.85) 0%, rgba(7, 18, 11, 0.5) 48%, rgba(7, 18, 11, 0.1) 100%);
    }
}

.catalog-bg {
    background-color: #0A1C10; 
    background-image: linear-gradient(rgba(10, 28, 16, 0.85), rgba(10, 28, 16, 0.92)), url('img/hero-bg.jpg');
    background-size: cover; background-position: center;
}

/* Premium Buttons */
.btn-primary {
    background: linear-gradient(135deg, #1E8A4C 0%, #156839 100%);
    box-shadow: 0 4px 14px rgba(30, 138, 76, 0.3); 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
}
.btn-primary:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(30, 138, 76, 0.5);
    background: linear-gradient(135deg, #23A35A 0%, #1A7540 100%);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    touch-action: manipulation;
}
.btn-outline:hover { 
    background: rgba(255,255,255,0.14); 
    border-color: #fff; 
    transform: translateY(-2px); 
}
.btn-outline:active {
    transform: translateY(0);
}

/* Filter Buttons */
.filter-btn {
    border: 1px solid #e2e8f0; 
    background: white; 
    color: #475569;
    white-space: nowrap;
    transition: all 0.2s ease;
    touch-action: manipulation;
}
.filter-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.filter-btn.active {
    background: #1E8A4C; 
    color: white; 
    border-color: #1E8A4C; 
    box-shadow: 0 4px 12px rgba(30,138,76,0.25);
}

/* Cards & Hover Effects */
.premium-card {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.06);
}
.premium-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 16px 32px rgba(0,0,0,0.08); 
}
.img-wrapper { overflow: hidden; }
.img-wrapper img { transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.premium-card:hover .img-wrapper img { transform: scale(1.06); }

/* Smooth mobile menu */
#mobile-menu {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    max-height: 0; 
    opacity: 0; 
    overflow: hidden;
}
#mobile-menu.active { 
    max-height: 500px; 
    opacity: 1; 
}

.modern-input {
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    transition: all 0.2s ease;
    font-size: 15px;
}
.modern-input:focus { 
    background: #fff; 
    border-color: #1E8A4C; 
    box-shadow: 0 0 0 3px rgba(30, 138, 76, 0.12); 
}

/* Marquee for Partners */
.marquee-container {
    overflow: hidden; 
    white-space: nowrap; 
    width: 100%; 
    position: relative;
    padding: 16px 0; 
    background: #fff; 
    border-top: 1px solid #f1f5f9; 
    border-bottom: 1px solid #f1f5f9;
}
.marquee-container::before, .marquee-container::after {
    content: ""; position: absolute; top: 0; width: 60px; height: 100%; z-index: 2; pointer-events: none;
}
@media (min-width: 768px) {
    .marquee-container::before, .marquee-container::after { width: 120px; }
}
.marquee-container::before { left: 0; background: linear-gradient(to right, white, transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, white, transparent); }

.marquee-content {
    display: inline-block; 
    animation: marquee 28s linear infinite;
}
.marquee-content img {
    display: inline-block; 
    height: 32px; 
    margin: 0 24px; 
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease;
    vertical-align: middle;
}
@media (min-width: 768px) {
    .marquee-content img { height: 40px; margin: 0 40px; }
}
.marquee-content img:hover { filter: grayscale(0%) opacity(1); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* FAQ Accordion */
.faq-answer {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.35s ease-out, opacity 0.25s ease;
    opacity: 0;
}
.faq-answer.open { opacity: 1; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* Review Card Styles */
.review-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -10px rgba(16, 43, 25, 0.08);
    border-color: rgba(30, 138, 76, 0.3);
}

/* Step badges for workflow on mobile */
.step-badge {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #fff;
    padding: 13px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
}
.whatsapp-fab:active {
    transform: translateY(0) scale(0.98);
}
.whatsapp-fab-label {
    display: none;
}
@media (min-width: 640px) {
    .whatsapp-fab-label { display: inline; }
}
@media (max-width: 639px) {
    .whatsapp-fab {
        padding: 14px;
        border-radius: 50%;
        bottom: 20px;
        right: 16px;
    }
}

/* WhatsApp inline button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ===== Responsive fixes ===== */
@media (max-width: 375px) {
    .container { padding-left: 12px; padding-right: 12px; }
    /* Hero font */
    .text-5xl { font-size: 2rem !important; }
    .text-4xl { font-size: 1.75rem !important; }
    /* Gallery thumbs compact */
    .gallery-thumb { width: 64px !important; height: 64px !important; }
}

@media (max-width: 480px) {
    /* Catalog grid single column */
    #catalog-grid { gap: 16px !important; }
    /* Filter chips smaller */
    .filter-btn { padding: 6px 12px; font-size: 11px; }
    /* Price inputs */
    #price-min, #price-max { width: 72px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
    /* Tablet catalog grid */
    #catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Active Navigation Link */
.nav-active {
    color: white !important;
    border-bottom: 2px solid #15753C;
    padding-bottom: 4px;
    margin-bottom: -6px; /* Offset the padding to not break layout */
}

.bg-max-gradient {
    background: linear-gradient(309deg, #0cf -6.06%, #007aff 33.55%, #630eff 65.79%, #aa4cff 96.45%);
}
.hover\:bg-max-gradient:hover {
    background: linear-gradient(309deg, #0cf -6.06%, #007aff 33.55%, #630eff 65.79%, #aa4cff 96.45%);
}
