/* ============================================
   Critical Fixes - Navigation, Footer, Text
   ============================================ */

/* 1. FIX NAVIGATION - Make it responsive and properly aligned */
.navbar {
    background: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.phone-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--robo-blue) !important;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.phone-link span {
    display: inline-block !important;
}

.phone-link i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Hide menu items on smaller screens */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 2rem 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .phone-link span {
        display: none !important;
    }
    
    .phone-link {
        padding: 0.5rem;
    }
}

@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }
    
    .nav-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }
}

/* 2. FIX CTA SECTION TEXT CONTRAST */
.cta-section {
    background: #F0F6FF !important;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--text-primary) !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #374151 !important; /* Darker gray for better contrast */
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-section .form-hint,
.cta-section .privacy-note {
    color: #4B5563 !important; /* Medium gray for readability */
    font-size: 0.875rem;
    margin-top: 1rem;
}

.cta-section .form-hint i,
.cta-section .privacy-note i {
    color: var(--robo-blue);
    margin-right: 0.5rem;
}

/* Form inputs in CTA */
.cta-section input,
.cta-section textarea {
    background: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    color: var(--text-primary) !important;
    padding: 14px 16px;
    font-size: 1rem;
}

.cta-section input::placeholder,
.cta-section textarea::placeholder {
    color: #6B7280 !important;
}

.cta-section .btn {
    background: var(--brand-gradient) !important;
    color: #FFFFFF !important;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 115, 209, 0.2);
}

/* 3. FIX FOOTER LOGO COLOR */
footer .logo,
.footer .logo {
    color: var(--robo-blue) !important;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

footer .logo i,
.footer .logo i {
    color: var(--robo-blue) !important;
}

footer .logo span,
.footer .logo span {
    color: var(--text-primary) !important;
}

/* 4. FIX "УВЕЛИЧИВАЮТ ПРОДАЖИ" - SINGLE COLOR NO GRADIENT */
.conversion-metric,
.stats-number,
.metric-value {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: #1E40AF !important; /* Single solid blue color */
    font-weight: 700 !important;
    text-fill-color: #1E40AF !important;
}

/* Remove any gradient classes */
.gradient-text,
.text-gradient {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #1E40AF !important;
}

/* Pulse animation with single color */
.conversion-metric {
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

/* 5. FIX FOOTER LAYOUT AND ALIGNMENT */
footer,
.footer {
    background: linear-gradient(180deg, #F0F6FF 0%, #E8F1FF 100%) !important;
    padding: 60px 0 30px;
    margin-top: 0;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column:first-child {
    max-width: 300px;
}

.footer-column h3 {
    color: var(--text-primary) !important;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column p {
    color: var(--text-secondary) !important;
    line-height: 1.6;
    margin: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #4B5563 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--robo-blue) !important;
}

/* Footer contact info */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.footer-contact-item i {
    color: var(--robo-blue);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item span {
    line-height: 1.5;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(37, 115, 209, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #6B7280 !important;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #6B7280 !important;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--robo-blue) !important;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    
    .footer-column:first-child {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-socials {
        justify-content: center;
    }
}

/* Tablet Footer */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Ensure proper spacing for all sections */
section {
    padding: 80px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Fix overlapping issues */
* {
    box-sizing: border-box;
}

/* Ensure text is never cut off */
.text-truncate {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
}

/* Fix floating elements positioning */
.conversion-card,
.floating-card {
    position: absolute;
    z-index: 10;
}

@media (max-width: 768px) {
    .conversion-card,
    .floating-card {
        position: static !important;
        margin: 1rem auto;
        display: block;
    }
}

/* Ensure all content is visible */
.overflow-hidden {
    overflow: visible !important;
}

/* Fix any clipping issues */
.hero,
.page-hero {
    overflow: visible;
}

.hero .container {
    position: relative;
    z-index: 2;
}