/* ==========================================================================
   LASERPRO Systems - Core Architectural Stylesheet (2026)
   ========================================================================== */

   :root {
    --bg: #07080c;
    --surface: #0e1017;
    --surface-hover: #151824;
    --surface-input: #11131c;
    --laser: #00ff66;
    --laser-glow: rgba(0, 255, 102, 0.3);
    --laser-amber: #ffaa00;
    --laser-amber-glow: rgba(255, 170, 0, 0.25);
    --text-pure: #ffffff;
    --text-main: #e2e4ed;
    --text-muted: #848a9e;
    --border: #1d2130;
    --border-focus: #353b52;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
}

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Оболочки и сетки */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Премиальная навигация */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 8, 12, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--text-pure);
    letter-spacing: 0.5px;
}

.brand-logo .dot {
    width: 8px;
    height: 8px;
    background: var(--laser);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--laser);
    animation: pulse 1.5s infinite alternate;
}

.menu-grid {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.menu-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-btn:hover, .menu-btn.active {
    color: var(--text-pure);
    background: var(--surface);
}

.menu-btn.active {
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Селектор языка */
.lang-select-box {
    position: relative;
    font-family: var(--font-mono);
    font-size: 12px;
}

.lang-current {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-pure);
    padding: 10px 28px 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.lang-current::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 52%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-top-color: var(--text-muted);
}

.lang-list {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1001;
    min-width: 80px;
}

.lang-list a {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.lang-list a:hover, .lang-list a.active {
    background: var(--surface-hover);
    color: var(--laser);
}

/* Гео-индексация (Бегущая строка) */
.geo-bar {
    background: #040508;
    border-bottom: 1px solid var(--border);
    margin-top: 80px;
    padding: 12px 0;
    overflow: hidden;
}

.geo-track {
    display: flex;
    gap: 80px;
    white-space: nowrap;
    animation: scrollTrack 40s linear infinite;
    width: max-content;
}

.geo-item {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.geo-item span {
    color: var(--laser);
}

/* Главный экран (Hero) */
.hero-section {
    padding: 80px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--laser);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-meta::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--laser);
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.2vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-pure);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-section h1 span {
    display: block;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85em;
    margin-top: 6px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 560px;
}

/* Кнопки вызова действий */
.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 28px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--laser);
    color: #000;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 35px var(--laser-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-pure);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Терминал симулятора */
.terminal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    position: relative;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.terminal-status {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--laser);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--laser);
}

.status-dot.burning {
    background: var(--laser-amber);
    box-shadow: 0 0 12px var(--laser-amber);
    animation: pulse 0.4s infinite alternate;
}

.screen-container {
    background: #030406;
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.input-block label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-block select, .input-block input {
    width: 100%;
    background: var(--surface-input);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: var(--transition);
}

.input-block select:focus, .input-block input:focus {
    border-color: var(--border-focus);
}

/* Карточки ценностей (Почему мы?) */
.values-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--laser);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
}

.value-info h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-pure);
    margin-bottom: 8px;
}

.value-info p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
}

/* Секция направлений работы */
.section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.section-title span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid-blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.block-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    transition: var(--transition);
    text-decoration: none;
}

.block-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-4px);
    background: var(--surface-hover);
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.block-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-pure);
    margin-top: 32px;
    margin-bottom: 12px;
}

.block-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 300;
}

.card-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--laser);
    text-transform: uppercase;
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Спецификации / Инженерные тарифы */
.specs-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    align-items: center;
}

.spec-row.table-header {
    background: rgba(255, 255, 255, 0.01);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-material {
    font-weight: 600;
    color: var(--text-pure);
    font-size: 15px;
}

.spec-desc {
    color: var(--text-muted);
    font-weight: 300;
}

.spec-price {
    font-family: var(--font-mono);
    color: var(--laser);
    text-align: right;
    font-weight: 700;
    font-size: 15px;
}

/* FAQ (Вопросы и ответы) */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-pure);
}

.faq-trigger span {
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
    font-size: 14.5px;
    color: var(--text-muted);
    font-weight: 300;
}

.faq-answer p {
    padding-bottom: 24px;
}

.faq-item.active {
    border-color: var(--border-focus);
}

.faq-item.active .faq-trigger span {
    transform: rotate(45deg);
    color: var(--laser);
}

/* Подвал и SEO-модуль */
.matrix-seo {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: #040508;
}

.matrix-seo h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-pure);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.matrix-seo p {
    font-size: 12px;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.8;
}

footer {
    border-top: 1px solid var(--border);
    background: #020305;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* Анимации */
@keyframes scrollTrack {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .grid-blocks { grid-template-columns: repeat(2, 1fr); }
    .values-grid { gap: 24px; }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-section h1 { text-align: center; }
    .hero-description { margin: 0 auto 32px; text-align: center; }
    .hero-meta { justify-content: center; width: 100%; }
    .cta-group { justify-content: center; }
    .values-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .nav-inner { height: 72px; }
    .menu-grid { display: none; } /* Скрыто на мобильных для чистоты интерфейса */
    .hero-section { padding: 48px 0 80px; }
    .grid-blocks { grid-template-columns: 1fr; }
    .spec-row { grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; }
    .spec-desc { grid-column: span 2; }
    .spec-price { text-align: left; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}