:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #ed8936;
    --siemens: #009999;
    --mitsubishi: #cc0000;
    --whatsapp: #25D366;
    --bg: #f7fafc;
    --text: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Skip link for accessibility */
.skip-link:focus { top: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600;
    text-decoration: none; transition: all 0.2s; border: none; cursor: pointer;
    height: 42px; line-height: 1; font-size: 0.9rem;
}
.btn-whatsapp { background: var(--whatsapp); color: white; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.btn-share { background: var(--primary); color: white; }
.btn-share:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-outline { background: white; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Multi-language display rules */
[data-lang="en"] .zh, [data-lang="en"] .ru, [data-lang="en"] .fr, [data-lang="en"] .es, [data-lang="en"] .ar { display: none; }
[data-lang="zh"] .en, [data-lang="zh"] .ru, [data-lang="zh"] .fr, [data-lang="zh"] .es, [data-lang="zh"] .ar { display: none; }
[data-lang="ru"] .en, [data-lang="ru"] .zh, [data-lang="ru"] .fr, [data-lang="ru"] .es, [data-lang="ru"] .ar { display: none; }
[data-lang="fr"] .en, [data-lang="fr"] .zh, [data-lang="fr"] .ru, [data-lang="fr"] .es, [data-lang="fr"] .ar { display: none; }
[data-lang="es"] .en, [data-lang="es"] .zh, [data-lang="es"] .ru, [data-lang="es"] .fr, [data-lang="es"] .ar { display: none; }
[data-lang="ar"] .en, [data-lang="ar"] .zh, [data-lang="ar"] .ru, [data-lang="ar"] .fr, [data-lang="ar"] .es { display: none; }

/* Header */
header {
    background: var(--white);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 1.5rem; max-width: 1400px; margin: 0 auto;
    gap: 3rem;
}

/* Logo Section - Minimal */
.logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; flex-shrink: 0;
    min-width: auto;
}
.logo::before {
    content: '';
    width: 4px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.logo-text {
    font-size: 1.15rem; font-weight: 800;
    color: var(--primary); letter-spacing: -0.3px;
    line-height: 1.2;
}
.logo-sub {
    display: none;
}

/* Navigation - Label Style */
nav {
    display: flex; gap: 1rem; flex: 1;
    justify-content: flex-start;
}
nav a {
    color: var(--text); text-decoration: none;
    font-weight: 600; font-size: 1rem;
    position: relative; padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid transparent;
}
nav a::after {
    display: none;
}
nav a:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Header Actions - Right */
.header-actions {
    display: flex; align-items: center; gap: 1.5rem;
    flex-shrink: 0;
}

.lang-toggle {
    display: flex; background: var(--bg);
    border-radius: 8px; padding: 5px;
    gap: 2px;
    border: 1px solid var(--border);
    position: relative;
}
.lang-btn {
    padding: 0.4rem 0.85rem; border: none; background: none;
    font-size: 0.75rem; cursor: pointer; border-radius: 5px;
    color: var(--text-light); font-weight: 600;
    transition: all 0.2s ease;
}
.lang-btn.active {
    background: white; color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Language Dropdown */
.lang-select {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s ease;
    position: relative;
    min-width: 110px;
    justify-content: space-between;
    height: 42px;
    line-height: 1;
}

.lang-trigger:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

.lang-trigger::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    color: var(--text-light);
    order: 3;
}

.lang-select.open .lang-trigger::after {
    transform: rotate(180deg);
}

/* Language Dropdown Menu */
.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.8rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    width: auto;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1002;
}

.lang-select.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: visible;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--bg);
    padding-left: 1.35rem;
}

.lang-option.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 700;
}

.lang-option.active::before {
    content: '✓';
    margin-left: 0.3rem;
    font-weight: bold;
}

.lang-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Flag colors - Option */
.lang-option[data-lang="en"] .lang-flag {
    background: linear-gradient(135deg, #012169 0%, #002868 100%);
}
.lang-option[data-lang="zh"] .lang-flag {
    background: linear-gradient(135deg, #de2910 0%, #c60c30 100%);
}
.lang-option[data-lang="ru"] .lang-flag {
    background: linear-gradient(to right, #0047ab 33%, white 33%, white 66%, #d52b1e 66%);
}
.lang-option[data-lang="fr"] .lang-flag {
    background: linear-gradient(to right, #002395 33%, white 33%, white 66%, #ED2939 66%);
}
.lang-option[data-lang="es"] .lang-flag {
    background: linear-gradient(to bottom, #c60b1e 25%, #ffc400 25%, #ffc400 50%, #c60b1e 50%, #c60b1e 75%, #ffc400 75%, #ffc400 100%);
}
.lang-option[data-lang="ar"] .lang-flag {
    background: linear-gradient(135deg, #207e4a 0%, #000000 100%);
}

/* Flag colors - Trigger button */
.lang-trigger[data-lang="en"] .lang-flag {
    background: linear-gradient(135deg, #012169 0%, #002868 100%) !important;
}
.lang-trigger[data-lang="zh"] .lang-flag {
    background: linear-gradient(135deg, #de2910 0%, #c60c30 100%) !important;
}
.lang-trigger[data-lang="ru"] .lang-flag {
    background: linear-gradient(to right, #0047ab 33%, white 33%, white 66%, #d52b1e 66%) !important;
}
.lang-trigger[data-lang="fr"] .lang-flag {
    background: linear-gradient(to right, #002395 33%, white 33%, white 66%, #ED2939 66%) !important;
}
.lang-trigger[data-lang="es"] .lang-flag {
    background: linear-gradient(to bottom, #c60b1e 25%, #ffc400 25%, #ffc400 50%, #c60b1e 50%, #c60b1e 75%, #ffc400 75%, #ffc400 100%) !important;
}
.lang-trigger[data-lang="ar"] .lang-flag {
    background: linear-gradient(135deg, #207e4a 0%, #000000 100%) !important;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-current-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; padding: 4rem 0;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.85rem; margin-bottom: 1.5rem;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.7; }
.hero-image { border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.3); }
.hero-image img { width: 100%; height: auto; display: block; }

/* Stats */
.stats-bar { background: white; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); }

/* Products */
.products { background: white; }
.cat-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center; }
.cat-tab {
    padding: 0.625rem 1.25rem; border: 2px solid var(--border); border-radius: 8px;
    background: white; cursor: pointer; font-weight: 500; font-size: 0.9rem;
    transition: all 0.2s;
}
.cat-tab:hover { border-color: var(--primary); }
.cat-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.cat-tab.siemens.active { background: var(--siemens); border-color: var(--siemens); }
.cat-tab.mitsubishi.active { background: var(--mitsubishi); border-color: var(--mitsubishi); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card {
    background: var(--bg); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); transition: all 0.3s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card.featured { border: 1px solid var(--border); }
.product-image { height: 200px; overflow: hidden; background: white; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.product-content { padding: 1.25rem; }
.product-brand { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.25rem; }
.product-brand.siemens { color: var(--siemens); }
.product-brand.mitsubishi { color: var(--mitsubishi); }
.product-title { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; line-height: 1.3; }
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.product-btn {
    width: 100%; padding: 0.75rem; background: var(--whatsapp); border: none;
    border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    color: white; text-decoration: none; display: block; text-align: center;
}
.product-btn:hover { background: #1da851; }

.cat-content { display: none; }
.cat-content.active { display: block; }

/* Cabinets */
.cabinets { background: var(--bg); }
.cabinets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cabinet-card {
    background: white; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border); transition: all 0.2s;
}
.cabinet-card:hover { box-shadow: var(--shadow); }
.cabinet-image { height: 150px; overflow: hidden; background: #fafafa; }
.cabinet-image img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.cabinet-content { padding: 1rem; }
.cabinet-title { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.cabinet-price { font-size: 1rem; font-weight: 700; color: var(--primary); }

/* Services */
.services { background: white; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; border-radius: 16px; padding: 2.5rem; position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.service-card::before {
    content: ''; position: absolute; top: -50%; right: -50%;
    width: 100%; height: 100%; background: rgba(255,255,255,0.05);
    border-radius: 50%; transform: rotate(-15deg);
}
.service-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.service-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.service-desc { opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.7; }
.service-list { list-style: none; margin-bottom: 1.5rem; }
.service-list li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.service-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.875rem 1.5rem; background: white; color: var(--primary);
    border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.2s;
    margin-top: auto;
}
.service-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Why Us */
.why-us { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card {
    background: white; padding: 2rem; border-radius: 12px;
    border: 1px solid var(--border); text-align: center;
}
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.why-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* Process */
.process { background: white; }
.process-steps { display: flex; justify-content: space-between; position: relative; }
.process-steps::before {
    content: ''; position: absolute; top: 24px; left: 10%; right: 10%;
    height: 2px; background: var(--border);
}
.process-step { text-align: center; position: relative; flex: 1; }
.step-number {
    width: 48px; height: 48px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin: 0 auto 1rem; position: relative; z-index: 1;
}
.step-title { font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.step-desc { font-size: 0.85rem; color: var(--text-light); }

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; text-align: center; padding: 4rem 0;
}
.cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-contact { margin-top: 1.5rem; font-size: 0.95rem; opacity: 0.85; }

/* Share Dropdown */
.share-dropdown { position: relative; }
.share-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    min-width: 220px;
    margin-top: 0.75rem;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.share-dropdown.active .share-menu {
    display: block !important;
}
.share-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}
.share-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: white;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}
.share-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.share-item:hover::before {
    transform: scaleX(1);
}
.share-item:hover {
    background: #f9fafb;
}
.share-item svg {
    min-width: 20px;
    min-height: 20px;
    width: 20px;
    height: 20px;
}

/* Footer */
footer {
    background: #ffffff;
    color: var(--text);
    padding: 2.5rem 0;
    border-top: 1px solid #e5e7eb;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.footer-brand {
    max-width: 600px;
}
.footer-brand h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}
.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}
.footer-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
.footer-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--primary);
}
.footer-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}
.footer-links a:hover svg {
    color: white;
}
.footer-links svg {
    width: 20px;
    height: 20px;
    transition: color 0.2s ease;
}
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Copyable Links */
.copy-link {
    position: relative;
    cursor: pointer;
}

.copy-link:hover {
    opacity: 1 !important;
}

.copy-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copy-link:hover::after {
    opacity: 0.6;
}

/* Copied state */
.copy-link.copied {
    animation: copyPulse 0.4s ease;
}

@keyframes copyPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-image { max-width: 500px; margin: 0 auto; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .cabinets-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    nav { display: none; }
    .header-inner { gap: 1rem; }
    .logo { min-width: auto; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .products-grid { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; gap: 1.5rem; }
    .process-steps::before { display: none; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }

    /* Mobile Header */
    .header-inner {
        flex-wrap: wrap;
        padding: 1rem 1rem;
    }
    .logo { min-width: 100%; margin-bottom: 0.5rem; }
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }
    nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }
    .header-actions {
        width: 100%;
        gap: 1rem;
    }
    .btn-whatsapp {
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
    }

    /* Mobile Language Menu Fix */
    .lang-menu {
        right: auto;
        left: 0;
        min-width: 160px;
    }
}