:root {
    --primary: #0a192f;
    --secondary: #1e3a5f;
    --accent: #ff4d00;
    --text-light: #ffffff;
    --text-dim: #a8b2d1;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; line-height: 1.6; color: #333; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.header { background: var(--primary); padding: 15px 0; border-bottom: 2px solid var(--accent); position: sticky; top: 0; z-index: 1000; }
.header-top { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-size: 24px; font-weight: 900; letter-spacing: 1px; }
.logo img { height: 40px; width: auto; }
.logo span { color: var(--accent); }

.menu { display: flex; list-style: none; gap: 25px; }
.menu a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; transition: 0.3s; }
.menu a:hover, .menu a.active { color: var(--accent); }

.geo-box { text-align: right; }
#current-city { display: block; color: var(--text-dim); font-size: 11px; text-transform: uppercase; }
#current-phone { color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; }

/* HERO */
.hero { position: relative; height: 500px; display: flex; align-items: center; overflow: hidden; background: #000; color: #fff; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); z-index: 1; opacity: 0.5; object-fit: cover; }
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--text-dim); max-width: 800px; margin: 0 auto; }

.hero-mini { height: 300px; }

/* CALCULATOR */
.calculator-section { padding: 80px 0; background: #f8fafc; }
.calc-grid { display: grid; gap: 30px; background: #fff; padding: 40px; border-radius: 15px; box-shadow: var(--shadow); border: 1px solid var(--border); }

.calc-inputs label { display: block; font-size: 12px; font-weight: 800; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; }
.calc-inputs select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; font-weight: 600; color: var(--primary); }

.geo-params-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
.param-box { background: #f1f5f9; padding: 15px; border-radius: 8px; text-align: center; }
.param-box label { font-size: 10px; margin-bottom: 5px; display: block; }
.param-val { font-size: 16px; font-weight: 800; color: var(--primary); }

.calc-result { background: var(--primary); padding: 40px; border-radius: 12px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.result-item { margin-bottom: 30px; text-align: center; }
.result-item label { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 10px; }
.result-item span { font-size: 48px; font-weight: 900; color: var(--accent); line-height: 1; }

.btn-primary { background: var(--accent); color: #fff; border: none; padding: 20px; border-radius: 8px; font-weight: 800; font-size: 16px; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.btn-primary:hover { background: #e64500; transform: translateY(-2px); }
.calc-disclaimer { font-size: 11px; color: var(--text-dim); margin-top: 20px; line-height: 1.4; }

/* INDUSTRY GRID (CATALOG) */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 40px 0; }
.industry-card { background: #fff; border: 1px solid var(--border); padding: 30px; border-radius: 12px; transition: 0.3s; }
.industry-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow); }
.industry-card h3 { color: var(--primary); margin-bottom: 15px; font-size: 20px; }
.industry-meta p { font-size: 14px; color: #666; margin-bottom: 10px; }
.industry-meta strong { font-size: 11px; color: var(--accent); text-transform: uppercase; display: block; margin-top: 15px; }

/* TECH TABLE */
.tech-table-container { overflow-x: auto; margin-top: 30px; }
.tech-table { width: 100%; border-collapse: collapse; background: #fff; }
.tech-table th { background: var(--primary); color: #fff; padding: 15px; text-align: left; font-size: 13px; text-transform: uppercase; }
.tech-table td { padding: 15px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.tech-table tr:hover { background: #f1f5f9; }

/* FOOTER */
.footer { background: var(--primary); color: #fff; padding: 60px 0; border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { color: var(--text-dim); font-size: 13px; }
.footer h4 { color: var(--accent); margin-bottom: 20px; font-size: 16px; text-transform: uppercase; }
.footer-standards a { display: block; color: #fff; text-decoration: none; margin-bottom: 10px; font-size: 14px; transition: 0.3s; }
.footer-standards a:hover { color: var(--accent); padding-left: 5px; }
.footer-contacts p { margin-bottom: 10px; font-size: 14px; color: var(--text-dim); }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: none; z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: #fff; width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; border-radius: 12px; padding: 40px; position: relative; }
.passport-view { color: #000; font-family: 'Courier New', Courier, monospace; }
.passport-header { text-align: center; border-bottom: 2px solid #000; padding-bottom: 20px; }
.passport-info p { margin-bottom: 10px; font-size: 16px; }
.seal-img { height: 120px; opacity: 0.8; }

/* BURGER */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger span { width: 25px; height: 3px; background: #fff; transition: 0.3s; }

@media (max-width: 992px) {
    .header-top { padding: 0 10px; }
    .menu { display: none; }
    .burger { display: flex; }
    .calc-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 32px; }
}

/* PRINT ENGINE: ГАРАНТИЯ ОДНОЙ СТРАНИЦЫ ПАСПОРТА */
@media print {
    body > *:not(.modal-overlay) { display: none !important; }
    .modal-overlay { display: block !important; position: absolute; top: 0; left: 0; background: #fff; padding: 0; }
    .modal-content { max-height: none; overflow: visible; padding: 0; border: none; width: 100% !important; max-width: 100% !important; }
    .modal-actions, .btn-close, #btn-print-passport { display: none !important; }
    .passport-view { width: 100%; margin: 0; padding: 0; }
    @page { size: A4; margin: 10mm; }
}

/* ВИЗУАЛЬНЫЕ ХЛЕБНЫЕ КРОШКИ */
.breadcrumbs { background: #f1f5f9; padding: 12px 0; border-bottom: 1px solid #e2e8f0; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.breadcrumbs .container { display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; font-weight: 800; }
.breadcrumbs span { color: #cbd5e1; font-weight: 400; }
.breadcrumbs b { color: var(--primary); font-weight: 800; }