/*
Theme Name: Fledex Premium Redesign
Theme URI: https://fledex.uz
Description: Премиальная, современная, высокотехнологичная тема WordPress для компании Fledex.uz. Специализируется на IP-телефонии, интеграции CRM и создании колл-центров «под ключ».
Version: 1.0.15
Author: Antigravity AI
Author URI: https://google.dev
License: GNU GPLv2 or later
Text Domain: fledex-theme
*/

/* --- 1. DESIGN SYSTEM & CUSTOM VARIABLES --- */
:root {
    /* Color Palette */
    --color-bg-main: #140305;       /* Deep tech dark burgundy */
    --color-bg-card: rgba(30, 9, 11, 0.7); /* Glassmorphic card background with warm red tint */
    --color-bg-card-hover: rgba(45, 12, 15, 0.85);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(214, 40, 40, 0.35);
    
    --color-primary: #d62828;      /* Crimson Red */
    --color-primary-rgb: 214, 40, 40;
    --color-secondary: #b8860b;    /* Dark Gold */
    --color-secondary-rgb: 184, 134, 11;
    
    --color-text-title: #faebeb;
    --color-text-body: #d4c4bf;    /* Muted warm sandy text */
    --color-text-muted: #9e8c87;
    
    --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --grad-dark: linear-gradient(180deg, #140305 0%, #1e0608 100%);
    --grad-glow: 0 0 25px rgba(214, 40, 40, 0.25);
    --brand-bg-image: url('assets/images/fledex-header-footer-bg.png?v=2');
    
    /* Layout */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --container-max-width: 1200px;
}

/* --- 2. RESET & BASE STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    filter: brightness(0.8);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 -1px 1px rgba(255,255,255,0.05);
}

/* Screen Reader Text & Skip Link Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius-md);
    color: var(--color-text-title);
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    left: 20px;
    padding: 12px 24px;
    position: fixed;
    top: 20px;
    width: auto;
    height: auto;
    z-index: 100000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(var(--color-secondary-rgb), 0.3);
    outline: none;
    text-decoration: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. LAYOUT & CONTAINERS --- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    scroll-margin-top: 110px;
}

.section-title, .hero-content h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 45%, #c4c4c4 50%, #ffffff 65%, #f2f2f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.hero-content h1 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.section-title span, .hero-content h1 span {
    background: linear-gradient(135deg, #ff8a8a 0%, #d62828 40%, #b8860b 80%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(214, 40, 40, 0.4));
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d62828, #b8860b);
    margin: 0.75rem auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.5);
}

/* --- 4. BUTTONS & UI COMPONENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(130, 15, 20, 0.6) 0%, rgba(40, 0, 5, 0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 134, 11, 0.35); /* Dark Gold */
    color: #faebeb;
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.15), 0 8px 24px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(160, 20, 25, 0.7) 0%, rgba(60, 0, 10, 0.9) 100%);
    border-color: rgba(184, 134, 11, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.3), 0 12px 32px rgba(184, 134, 11, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #faebeb;
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    box-shadow: var(--grad-glow);
    transform: translateY(-2px);
}

/* --- 5. GLASSMORPHIC CARDS --- */
.glass-card {
    background: rgba(30, 9, 11, 0.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(var(--color-primary-rgb), 0.1);
}

/* --- 6. HEADER / NAV BAR --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background:
        linear-gradient(90deg, rgba(10, 0, 1, 0.9) 0%, rgba(30, 2, 3, 0.78) 34%, rgba(17, 9, 14, 0.88) 68%, rgba(22, 7, 3, 0.94) 100%),
        radial-gradient(circle at 12% 50%, rgba(118, 10, 8, 0.44), transparent 24%),
        var(--brand-bg-image);
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center, center, center 47%;
    background-repeat: no-repeat;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 34px rgba(8, 0, 0, 0.38), inset 0 -1px 0 rgba(230, 172, 95, 0.1);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background:
        linear-gradient(90deg, rgba(10, 0, 1, 0.94) 0%, rgba(38, 3, 4, 0.86) 45%, rgba(16, 7, 12, 0.94) 100%),
        radial-gradient(circle at 10% 50%, rgba(98, 8, 7, 0.38), transparent 22%),
        var(--brand-bg-image);
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center, center, center 47%;
    background-repeat: no-repeat;
    box-shadow: 0 12px 34px rgba(8, 0, 0, 0.48), inset 0 -1px 0 rgba(230, 172, 95, 0.14);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    height: 80px;
    transition: var(--transition-smooth);
    position: relative;
}

.site-header.scrolled .header-container {
    height: 65px;
}

.logo {
    flex: 0 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-logo-img {
    display: block;
    width: clamp(150px, 15vw, 220px);
    height: 58px;
    background: linear-gradient(180deg, #e64242 0%, #8c0d12 40%, #5c0006 100%);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center left;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center left;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8)) drop-shadow(0 -1px 1px rgba(255, 120, 120, 0.5));
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.site-logo-img::before,
.site-logo-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgba(255, 215, 0, 0.5) 48%, #fffb99 50%, rgba(255, 215, 0, 0.5) 52%, transparent 60%);
    mix-blend-mode: color-dodge;
    pointer-events: none;
    animation: logoLightning 15s infinite;
}

.site-logo-img::after {
    animation-delay: 0.3s;
}

@keyframes logoLightning {
    0%, 9% {
        left: -150%;
        opacity: 0;
        transform: skewX(-25deg);
    }
    10% {
        opacity: 1;
    }
    14% {
        left: 150%;
        opacity: 1;
        transform: skewX(-25deg);
    }
    15%, 59% {
        left: 150%;
        opacity: 0;
        transform: skewX(-25deg);
    }
    
    60% {
        left: 150%;
        opacity: 0;
        transform: skewX(35deg);
    }
    61% {
        opacity: 1;
    }
    65% {
        left: -150%;
        opacity: 1;
        transform: skewX(35deg);
    }
    66%, 100% {
        left: -150%;
        opacity: 0;
        transform: skewX(35deg);
    }
}

.site-header.scrolled .site-logo-img {
    width: clamp(138px, 13vw, 190px);
    max-height: 50px;
}

.logo-dot {
    display: none;
}

.main-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    overflow: visible;
}

.main-navigation > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    list-style: none;
    gap: clamp(0.75rem, 1.8vw, 2rem);
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    min-width: 0;
    max-width: none;
}

.main-navigation a {
    color: #d7c8c1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item a {
    color: #faebeb;
    text-shadow: 0 0 14px rgba(184, 121, 43, 0.32);
}

.main-navigation .menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-navigation .menu-item-has-children > a::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.72;
}

.main-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    z-index: 1002;
    display: grid;
    min-width: 280px;
    max-width: 340px;
    padding: 0.65rem;
    margin: 0;
    list-style: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 73, 31, 0.18), transparent 36%),
        linear-gradient(145deg, rgba(20, 1, 1, 0.99), rgba(55, 5, 6, 0.98));
    border: 1px solid rgba(179, 67, 45, 0.32);
    border-radius: var(--border-radius-md);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48), 0 0 24px rgba(var(--color-primary-rgb), 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: var(--transition-smooth);
    visibility: hidden;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.main-navigation .sub-menu::before {
    position: absolute;
    top: -1rem;
    right: 0;
    left: 0;
    height: 1rem;
    content: "";
}

.main-navigation .sub-menu a {
    padding: 0.72rem 0.8rem;
    color: #dccdc5;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: normal;
}

.main-navigation .sub-menu a:hover {
    color: #faebeb;
    background: linear-gradient(135deg, rgba(214, 40, 40, 0.22), rgba(184, 121, 43, 0.11));
    text-shadow: none;
}

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



.phone-link {
    color: #faebeb;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link:hover {
    color: var(--color-secondary);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background-color: #faebeb;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* --- 7. HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}



.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content-centered p {
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 850;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-text-body);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow-sphere {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--grad-primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: floatSphere 8s ease-in-out infinite alternate;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.25);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 12px rgba(184, 134, 11, 0.15);
}

/* --- 8. SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(130, 15, 20, 0.6) 0%, rgba(40, 0, 5, 0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 134, 11, 0.35); /* Dark Gold */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #faebeb;
    font-size: 1.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.15), 0 8px 24px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.service-card:hover .service-icon::before {
    transform: translateX(100%);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(160, 20, 25, 0.7) 0%, rgba(60, 0, 10, 0.9) 100%);
    border-color: rgba(184, 134, 11, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.3), 0 12px 32px rgba(184, 134, 11, 0.25);
    color: #faebeb;
    transform: translateY(-2px);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-body);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.25rem;
}

.service-link i {
    transition: var(--transition-smooth);
}

.service-card:hover .service-link i {
    transform: translateX(3px);
}

/* --- 9. INTERACTIVE CRM ANIMATION SECTION --- */
.crm-showcase {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(var(--color-secondary-rgb), 0.04) 0%, transparent 60%);
}

.crm-visual-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 350px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
}

.crm-node {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #161c2d;
    border: 2px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.crm-node.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.45), inset 0 0 15px rgba(var(--color-primary-rgb), 0.15);
}

.crm-node.secondary-active {
    border-color: var(--color-secondary);
    box-shadow: 0 0 25px rgba(var(--color-secondary-rgb), 0.45), inset 0 0 15px rgba(var(--color-secondary-rgb), 0.15);
}

.crm-node svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
    margin-bottom: 0.25rem;
}

.crm-node span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #faebeb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crm-line {
    position: absolute;
    top: 50%;
    left: 15%;
    width: 70%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
    z-index: 1;
}

.crm-pulse {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--color-primary);
    z-index: 5;
    animation: flowPulse 10.5s infinite linear;
}

.crm-caption {
    text-align: center;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    font-weight: 500;
    transition: opacity 0.4s ease;
}

/* --- 10. ADVANTAGES / WHY US --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-feature-settings: "tnum";
}

.stat-lbl {
    font-size: 0.95rem;
    font-weight: 600;
    color: #faebeb;
}

.features-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.feature-list-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-ul {
    list-style: none;
}

.feature-li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.feature-li svg {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-li h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.feature-li p {
    font-size: 0.9rem;
    color: var(--color-text-body);
}

/* --- 12. CONTACT FORM & FOOTER --- */
.footer-contact {
    padding-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info-panel h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info-panel p {
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.18);
}

.contact-detail-text span {
    display: block;
}

.contact-detail-text .label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.contact-detail-text .value {
    color: rgba(250, 235, 235, 0.5);
    font-weight: 600;
}

/* Forms */
.wpcf7-form, .custom-lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    color: #faebeb;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.25);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.custom-lead-form .btn {
    grid-column: span 2;
    margin-top: 0.5rem;
    cursor: pointer !important;
}

.custom-lead-form:invalid .btn,
.btn:disabled {
    cursor: pointer !important;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(12, 0, 1, 0.94) 0%, rgba(45, 4, 5, 0.82) 43%, rgba(17, 8, 13, 0.94) 100%),
        radial-gradient(circle at 8% 18%, rgba(118, 10, 8, 0.32), transparent 28%),
        radial-gradient(circle at 92% 85%, rgba(139, 73, 31, 0.14), transparent 30%),
        var(--brand-bg-image);
    background-size: 100% 100%, 100% 100%, 100% 100%, cover;
    background-position: center, center, center, center 52%;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(152, 36, 25, 0.42);
    box-shadow: inset 0 1px 0 rgba(230, 172, 95, 0.1);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.site-footer::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 52%, transparent 53%),
        repeating-radial-gradient(circle at 86% 18%, rgba(184, 121, 43, 0.14) 0 1px, transparent 1px 18px);
    opacity: 0.28;
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo a {
    display: inline-flex;
    line-height: 0;
}

.footer-logo img {
    display: block;
    width: min(220px, 100%);
    height: auto;
    max-height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.46));
}

.footer-about p {
    color: #d7c8c1;
    max-width: 420px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.footer-col h4 {
    color: #faebeb;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 14px rgba(184, 121, 43, 0.2);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: #d7c8c1;
}

.footer-col a:hover {
    color: var(--color-secondary);
}

.footer-contacts {
    color: #d7c8c1;
    font-size: 0.9rem;
    opacity: 0.5;
}

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

.footer-contacts strong {
    color: #faebeb;
}

.footer-bottom {
    border-top: 1px solid rgba(230, 172, 95, 0.13);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a9968f;
}

.footer-meta {
    font-size: 0.8rem;
}

.footer-meta a {
    color: #c5afa6;
}

.footer-meta a:hover {
    color: var(--color-secondary);
}

/* --- 13. ANIMATIONS --- */
@keyframes floatSphere {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

@keyframes flowPulse {
    0%, 28% {
        left: 15%;
        background-color: var(--color-primary);
        box-shadow: 0 0 15px var(--color-primary);
    }
    33.3%, 61% {
        left: 50%;
        background-color: var(--color-primary);
        box-shadow: 0 0 15px var(--color-primary);
    }
    66.6%, 100% {
        left: 85%;
        background-color: var(--color-secondary);
        box-shadow: 0 0 15px var(--color-secondary);
    }
}

/* --- 13.5 PREMIUM EFFECTS --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
}

/* Custom Native Cursors */
body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cdefs%3E%3Cfilter id='s' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='0' dy='2' stdDeviation='2' flood-color='rgba(0,0,0,0.5)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M1 1v18l5-5 4.5 8 2.5-1.5-4.5-8h6.5z' fill='%23d62828' stroke='%23ffffff' stroke-width='1.2' stroke-linejoin='round' filter='url(%23s)'/%3E%3C/svg%3E") 1 1, auto !important;
}

a, button, .btn, input[type="submit"], .custom-lead-form .btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cdefs%3E%3Cfilter id='s' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='0' dy='2' stdDeviation='2' flood-color='rgba(0,0,0,0.5)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M1 1v18l5-5 4.5 8 2.5-1.5-4.5-8h6.5z' fill='%23b8860b' stroke='%23ffffff' stroke-width='1.2' stroke-linejoin='round' filter='url(%23s)'/%3E%3C/svg%3E") 1 1, pointer !important;
}

/* Floating Telegram Button Container */
.floating-tg-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9900;
    text-decoration: none !important;
}

.floating-tg-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(34, 158, 217, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    animation: tgPulse 2.5s infinite ease-in-out;
}

.floating-tg-btn svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    margin-right: 2px; /* slight visual offset for center alignment */
}

.floating-tg-label {
    background: rgba(30, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 10px 20px;
    color: #faebeb;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    opacity: 0.95;
    letter-spacing: -0.01em;
}

/* Hover effects for the container */
.floating-tg-container:hover .floating-tg-btn {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 30px rgba(34, 158, 217, 0.6);
}

.floating-tg-container:hover .floating-tg-label {
    border-color: rgba(184, 134, 11, 0.5); /* subtle gold accent */
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(184, 134, 11, 0.1);
    color: #ffffff;
}

/* Breathing animation */
@keyframes tgPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(34, 158, 217, 0.4), 0 0 0 0px rgba(34, 158, 217, 0.6);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 15px 30px rgba(34, 158, 217, 0.6), 0 0 0 12px rgba(34, 158, 217, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(34, 158, 217, 0.4), 0 0 0 0px rgba(34, 158, 217, 0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .floating-tg-container {
        bottom: 20px;
        left: 20px;
        gap: 8px;
    }
    
    .floating-tg-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-tg-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .floating-tg-label {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Hide label on extra small devices to prevent content overlap */
@media (max-width: 480px) {
    .floating-tg-label {
        display: none;
    }
}

/* Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 12. PORTFOLIO MARQUEE --- */
.portfolio-marquee-section {
    padding-top: 2rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scrollMarquee 120s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    margin: 0 1.5rem;
    background: rgba(22, 28, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: #faebeb;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.marquee-item:hover {
    border-color: rgba(var(--color-primary-rgb), 0.5);
    transform: translateY(-5px);
    color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(var(--color-primary-rgb), 0.2);
}

.marquee-logo {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin-right: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95); /* safe background for transparent logos */
    padding: 4px 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .marquee-item {
        font-size: 1.25rem;
        padding: 1.25rem 2.5rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .marquee-item {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        margin: 0 0.5rem;
    }
    .marquee-content {
        animation-duration: 90s;
    }
}

/* --- 14. RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        overflow-y: auto;
        background: rgba(11, 15, 25, 0.85);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        padding: 3rem 1.5rem;
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        transform: none;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation > ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .main-navigation li {
        max-width: min(520px, 100%);
        width: 100%;
        text-align: center;
    }

    .main-navigation a {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        font-size: 1.1rem;
        line-height: 1.4;
        white-space: normal;
    }

    .main-navigation .menu-item-has-children > a {
        justify-content: center;
    }

    .main-navigation .sub-menu {
        position: static;
        display: grid;
        width: min(520px, 100%);
        min-width: 0;
        max-width: none;
        margin: 0.75rem auto 0;
        padding: 0.65rem;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        visibility: visible;
    }

    .main-navigation .sub-menu::before {
        display: none;
    }

    .main-navigation .sub-menu a {
        display: block;
        text-align: center;
    }

    .burger-menu {
        display: flex;
        margin-right: 0.5rem;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -7px);
    }

    .nav-actions {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .wpcf7-form, .custom-lead-form {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: span 1;
    }
    
    .custom-lead-form .btn {
        grid-column: span 1;
    }
    
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .crm-visual-container {
        padding: 0 1rem;
        height: 300px;
    }
    
    .crm-node {
        width: 85px;
        height: 85px;
    }
    
    .crm-node svg {
        width: 28px;
        height: 28px;
    }
    
    .crm-node span {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .crm-visual-container {
        height: 250px;
        padding: 0 0.5rem;
    }

    .crm-node {
        width: 70px;
        height: 70px;
    }

    .crm-node svg {
        width: 24px;
        height: 24px;
        margin-bottom: 0.1rem;
    }

    .crm-node span {
        font-size: 0.55rem;
    }

    .crm-caption {
        font-size: 0.95rem;
    }
}
