:root {
    --primary: #0066cc; /* Глубокий синий акцент */
    --secondary: #6366f1;
    --bg-main: #f8fafc; /* Светлый фон */
    --bg-card: #ffffff; /* Белые панели */
    --text-main: #0f172a; /* Темный текст */
    --text-muted: #475569;
    --border: #e2e8f0;
    --font-main: 'Space Grotesk', sans-serif;
    --font-tech: 'Oxanium', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { width: 100%; height: 100%; background: var(--bg-main); color: var(--text-main); font-family: var(--font-main); overflow-x: hidden; }

/* Фоновый WebGL-контейнер */
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 1; pointer-events: none; opacity: 0.6; }

/* Главный контейнер разметки */
.app-container { position: relative; z-index: 10; width: 100%; min-height: 100vh; display: flex; flex-direction: column; pointer-events: none; }
.app-container a, .app-container button, .interactive-element, select { pointer-events: auto; }

/* Адаптивная шапка */
header { background: rgba(0, 0, 0, 0.8); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1400px; margin: 0 auto; width: 100%; }
.logo { font-family: var(--font-tech); font-weight: 900; font-size: 24px; color: var(--text-main); text-decoration: none; }
.logo span { color: var(--primary); }

/* Элементы управления и навигация */
.nav-container { display: flex; align-items: center; gap: 20px; }
.main-nav { display: flex; gap: 20px; list-style: none; }
.main-nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: 0.2s; }
.main-nav a:hover { color: var(--primary); }

.lang-selector { background: #fff; border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--text-muted); outline: none; }
.btn-order { background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; transition: 0.2s; }
.btn-order:hover { background: #0052a3; box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2); }

/* Контентные сетки */
.main-content { display: grid; grid-template-columns: 320px 1fr; gap: 30px; padding: 40px 20px; max-width: 1400px; margin: 0 auto; width: 100%; flex-grow: 1; align-items: start; }
.services-menu { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.service-item { background: transparent; border: 1px solid transparent; padding: 12px 16px; border-radius: 8px; cursor: pointer; text-align: left; color: var(--text-muted); font-family: var(--font-tech); font-size: 13px; font-weight: 700; text-transform: uppercase; transition: 0.2s; outline: none; }
.service-item:hover { background: #f1f5f9; color: var(--text-main); }
.service-item.active { color: #fff; background: var(--primary); }

.details-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 40px; min-height: 400px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.details-panel h1 { font-family: var(--font-tech); font-size: 28px; color: var(--text-main); margin-bottom: 15px; }
.details-panel p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Стилизация форм */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; color: var(--text-muted); }
.form-input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-family: inherit; color: var(--text-main); outline: none; }
.form-textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; height: 120px; resize: vertical; font-family: inherit; color: var(--text-main); outline: none; }

/* Подвал */
footer { background: #000000; border-top: 1px solid var(--border); padding: 40px 20px; margin-top: auto; }
.footer-wrap { display: flex; justify-content: space-between; align-items: start; max-width: 1400px; margin: 0 auto; width: 100%; gap: 30px; }
.footer-info { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 15px; margin-top: 10px; }
.social-icons a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.social-icons a:hover { color: var(--primary); }

/* Окно согласия cookie (GDPR COMPLIANCE) */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 15px; }
.cookie-banner p a { color: var(--primary); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.btn-cookie-accept { background: var(--primary); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-cookie-accept:hover { background: #0052a3; }

/* Планшетные и мобильные экраны */
@media (max-width: 1024px) {
    .main-content { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
    .services-menu { flex-direction: row; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .service-item { display: inline-block; }
    .footer-wrap { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-direction: column; gap: 10px; }
    .nav-container { gap: 10px; }
    .main-nav { display: none; }
}
@media (max-width: 480px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: 100%; }
}