/* PACIFIC TRADING HUB | PREMIUM CORPORATE FRAMEWORK v7.0
   Design: Industrial Luxury / Deep Navy & Gold / Multilingual / Fully Responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --main-blue: #0f172a;
    --navy-light: #1e293b;
    --accent-gold: #c5a059;
    --gold-bright: #e2c28d;
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #a6813c 100%);
    --success: #10b981;
    --danger: #ef4444;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--light-bg); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fluid Container */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5%; }

h1, h2, h3, h4, .brand-logo { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
section { padding: clamp(60px, 8vw, 100px) 0; }
a { text-decoration: none; transition: var(--transition); color: inherit; }
ul { list-style: none; }

/* Утилиты */
.hidden-mobile { display: block; }

/* --- ВЕРХНИЙ БАР И ЯЗЫКИ --- */
.top-status-bar { 
    background: #000; color: #94a3b8; font-size: 11px; padding: 12px 0; 
    text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-status-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.status-group { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.status-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.blink { animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.user-controls { display: flex; align-items: center; gap: 20px; }
.lang-selector { display: flex; gap: 10px; border-right: 1px solid #333; padding-right: 20px; }
.lang-btn { background: none; border: none; color: #64748b; font-size: 11px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.lang-btn.active, .lang-btn:hover { color: var(--accent-gold); }
.auth-link { color: var(--white); font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.auth-link:hover { color: var(--accent-gold); }

/* --- НАВИГАЦИЯ --- */
nav.main-nav { 
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); 
    padding: 15px 0; position: sticky; top: 0; z-index: 1000;
}
nav .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo-area { display: flex; flex-direction: column; }
.brand-logo { font-size: clamp(20px, 4vw, 24px); color: var(--white); text-transform: uppercase; line-height: 1; }
.brand-logo span { color: var(--accent-gold); }
.brand-sub { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

.nav-menu { display: flex; gap: clamp(15px, 2vw, 35px); align-items: center; }
.nav-menu a { color: #f1f5f9; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-gold); }
.nav-btn { background: var(--gold-gradient); color: var(--main-blue) !important; padding: 10px 24px; border-radius: 4px; font-weight: 800 !important; border: none; cursor: pointer; }

/* --- HERO СЕКЦИЯ --- */
.hero-section, .page-header { 
    padding: clamp(80px, 15vw, 140px) 0 clamp(60px, 10vw, 100px); 
    background: radial-gradient(circle at top right, #1e293b, #0f172a); 
    color: var(--white); 
}
.hero-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(30px, 5vw, 60px); align-items: center; }
.badge, .corp-tag { background: rgba(197, 160, 89, 0.1); color: var(--accent-gold); padding: 6px 16px; border-radius: 50px; font-size: 11px; font-weight: 700; border: 1px solid var(--accent-gold); display: inline-block; margin-bottom: 20px; }
/* Fluid Typography для H1 */
.hero-text h1, .page-header h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.2; margin-bottom: 25px; }
.hero-text p, .page-header p { font-size: clamp(15px, 2vw, 18px); color: #94a3b8; margin-bottom: 40px; max-width: 650px; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.btn { padding: 16px 32px; border-radius: 4px; font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition); border: none; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.btn-primary { background: var(--accent-gold); color: var(--main-blue); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #ffffff30; color: white; }
.btn-outline:hover { background: white; color: var(--main-blue); }

.hero-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.h-stat-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: clamp(20px, 3vw, 30px); border-radius: 12px; }
.h-stat-box strong { font-size: clamp(24px, 4vw, 32px); color: var(--accent-gold); display: block; }
.h-stat-box p { color: #64748b; font-size: 12px; margin: 0; }

/* --- СЕТКИ И КАРТОЧКИ --- */
.section-title-pro { text-align: center; margin-bottom: clamp(40px, 6vw, 60px); }
.section-title-pro h2 { font-size: clamp(24px, 4vw, 36px); color: var(--main-blue); margin-bottom: 15px; text-transform: uppercase; }
.title-line { width: 60px; height: 4px; background: var(--accent-gold); margin: 0 auto 20px; }

.category-grid, .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 4vw, 30px); margin-bottom: 40px; }
.category-card, .feature-card-pro, .contact-card { background: var(--white); padding: clamp(25px, 4vw, 40px); border-radius: 12px; text-align: center; border: 1px solid var(--border-color); transition: var(--transition); }
.category-card:hover { transform: translateY(-5px); border-color: var(--accent-gold); box-shadow: var(--shadow-soft); }
.category-card i { font-size: 36px; color: var(--accent-gold); margin-bottom: 20px; display: block; }

.grid-layout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
.product-grid-extended { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card-pro { background: var(--white); border-radius: 12px; box-shadow: var(--shadow-soft); overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); display: flex; flex-direction: column; }
.product-card-pro:hover { transform: translateY(-8px); border-color: var(--accent-gold); }
.p-card-header { background: #f1f5f9; padding: 40px 20px; text-align: center; position: relative; }
.p-card-header i { font-size: 50px; color: #cbd5e0; }
.stock-tag { position: absolute; top: 15px; left: 15px; background: var(--success); color: white; padding: 5px 12px; border-radius: 50px; font-size: 10px; font-weight: 800; }
.p-card-body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; flex-grow: 1; }
.p-features { margin: 20px 0; font-size: 14px; flex-grow: 1; }
.p-features li { margin-bottom: 8px; }
.p-price { font-size: clamp(24px, 4vw, 28px); font-weight: 800; color: var(--main-blue); margin-bottom: 20px; }
.p-btn { width: 100%; padding: 15px; background: var(--main-blue); color: white; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.p-btn:hover { background: var(--accent-gold); }

/* --- ИНСТРУМЕНТЫ (ПОИСК / ТРЕКИНГ) --- */
.tracking-section { background: #020617; }
.tools-grid-pro { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 4vw, 40px); }
.tool-card-dark { background: #0f172a; padding: clamp(25px, 4vw, 40px); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.tool-card-dark h3 { color: var(--accent-gold); margin-bottom: 10px; }
.input-pro { background: #1e293b; padding: 6px; border-radius: 6px; display: flex; border: 1px solid rgba(255,255,255,0.1); margin-top: 20px; flex-wrap: wrap; }
.input-pro input { background: transparent; border: none; color: white; padding: 12px 15px; flex-grow: 1; min-width: 200px; outline: none; }
.input-pro button { background: var(--accent-gold); border: none; border-radius: 4px; padding: 12px 25px; color: var(--main-blue); font-weight: 800; cursor: pointer; flex-shrink: 0; transition: var(--transition); }
.input-pro button:hover { opacity: 0.9; }

/* --- ТАБЛИЦЫ (ЛОГИСТИКА) --- */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.logistics-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 700px; }
.logistics-table th, .logistics-table td { padding: 15px; border-bottom: 1px solid var(--border-color); }

/* --- ЮРИДИЧЕСКИЙ ДОКУМЕНТ (COMPLIANCE) --- */
.document-view { 
    background: var(--white); padding: clamp(30px, 6vw, 80px) clamp(20px, 5vw, 100px); 
    border-radius: 8px; box-shadow: var(--shadow-premium); border-top: 8px solid var(--main-blue); 
    max-width: 1000px; margin: 0 auto; position: relative; width: 100%;
}
.document-view::before { 
    content: "STRICTLY CONFIDENTIAL"; position: absolute; top: 15px; right: 20px; 
    font-size: 9px; color: var(--danger); border: 1px solid var(--danger); padding: 4px 8px; letter-spacing: 1px; 
}
.legal-section { margin-bottom: 40px; scroll-margin-top: 100px; }
.legal-section h2 { font-size: clamp(20px, 3vw, 24px); color: var(--main-blue); border-bottom: 2px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; }

/* --- МОДАЛЬНЫЕ ОКНА --- */
.modal-overlay { 
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); 
    z-index: 3000; align-items: center; justify-content: center; backdrop-filter: blur(5px); padding: 20px; 
}
.modal-content-large { 
    background: var(--white); padding: clamp(20px, 5vw, 40px); border-radius: 8px; 
    width: 100%; max-width: 600px; position: relative; max-height: 90vh; overflow-y: auto; 
}
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 24px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.close-modal:hover { color: var(--danger); }
.form-group { margin-bottom: 15px; width: 100%; }
.form-group label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: var(--text-muted); }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; }

/* --- FAQ (АККОРДЕОН) --- */
.faq-accordion-detailed { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; width: 100%; }
.faq-box { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: var(--transition); }
.faq-box:hover { border-color: var(--accent-gold); }
.faq-q { padding: clamp(15px, 3vw, 25px) clamp(20px, 4vw, 30px); font-weight: 700; color: var(--main-blue); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fdfdfd; }
.faq-q::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-size: 12px; transition: transform 0.3s; flex-shrink: 0; margin-left: 15px; }
.faq-box.active .faq-q::after { transform: rotate(180deg); }
.faq-a { padding: 0 clamp(20px, 4vw, 30px); max-height: 0; overflow: hidden; transition: all 0.3s ease; color: var(--text-muted); }
.faq-box.active .faq-a { padding: 15px clamp(20px, 4vw, 30px) 30px; max-height: 500px; } /* Увеличил max-height для длинных ответов на мобилке */

/* --- FOOTER --- */
.main-footer { background: #020617; color: #94a3b8; padding: clamp(50px, 8vw, 80px) 0 30px; }
.footer-layout { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(30px, 5vw, 80px); }
.footer-links h4 { color: white; margin-bottom: 25px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links li { margin-bottom: 12px; font-size: 14px; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 12px; display: flex; flex-direction: column; gap: 10px; }

/* =========================================
   MEDIA QUERIES (АДАПТИВНОСТЬ)
   ========================================= */

/* Планшеты (Portrait) и ниже */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .grid-layout-2 { grid-template-columns: 1fr; }
    .stats-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
}

/* Мобильные телефоны */
@media (max-width: 768px) {
    .hidden-mobile { display: none !important; }
    
    /* Шапка и Навигация (Свайп-меню) */
    .top-status-bar .container { justify-content: center; }
    nav .container { flex-direction: column; gap: 15px; }
    .logo-area { align-items: center; text-align: center; }
    
    .nav-menu { 
        width: 100%; 
        overflow-x: auto; 
        padding-bottom: 10px; 
        justify-content: flex-start; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; /* Firefox */
    }
    .nav-menu::-webkit-scrollbar { display: none; } /* Chrome/Safari */
    .nav-menu li { flex-shrink: 0; }
    
    /* Кнопки и инпуты */
    .input-pro { flex-direction: column; background: transparent; border: none; padding: 0; }
    .input-pro input { background: #1e293b; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
    .input-pro button { margin-top: 10px; width: 100%; }
    .btn { width: 100%; }
    
    /* Footer */
    .footer-layout { grid-template-columns: 1fr; text-align: center; }
    .social-links-pro { justify-content: center; display: flex; gap: 20px; }
    
    /* Формы в модалках */
    .form-row { flex-direction: column; gap: 0; }
    
    /* Документы и текст */
    .document-view { border-radius: 0; border-left: none; border-right: none; }
    .ceo-quote { padding-left: 15px; font-size: 14px; }
}

/* Совсем маленькие экраны (iPhone SE) */
@media (max-width: 480px) {
    .status-group { flex-direction: column; gap: 10px; }
    .hero-stats-grid { grid-template-columns: 1fr; }
    .p-card-header { padding: 25px 15px; }
}