/* ==========================================================================
   Astra PC — Silicon Hardware Architecture Styling (2026 Edition)
   Anti-AI-Slop Compliant: Clean Precision Engineering Aesthetics
   Hardware Micro-Trace WebGL Shader Background, Deep Neutral Contrast
   Zero Blurry Outlines, No Pill-Shaped Generic Headers, Clean Typography
   ========================================================================== */

:root {
    /* Base Neutral Substrate */
    --bg-base: #080b0f;
    --bg-surface: rgba(13, 17, 23, 0.72);
    --bg-surface-solid: #0d1117;
    --bg-surface-elevated: rgba(22, 27, 34, 0.82);
    --bg-surface-hover: rgba(30, 38, 48, 0.88);

    /* Micro-borders (Subtle, Structural, Non-distracting) */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.22);
    --border-focus: #38bdf8;

    /* Semantic Hardware Accents */
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-cyan: #38bdf8;
    --accent-copper: #f97316;
    --accent-emerald: #10b981;

    /* High-contrast Technical Typography */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #8492a6;
    --text-dim: #475569;

    /* Dimensions & Radii */
    --max-w: 1180px;
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 24px;
    --radius-lg: 10px;

    /* Typographic System */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --transition: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Scaffolding */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: transparent;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hardware Micro-Architecture WebGL Canvas */
#bgShader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Readability Overlay Mask */
.shader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 25%, rgba(8, 11, 15, 0.42) 0%, rgba(8, 11, 15, 0.88) 100%);
}

.shell {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.mono {
    font-family: var(--font-mono);
    font-feature-settings: "tnum" 1;
}

/* Navigation Header */
.topbar {
    position: sticky;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 50;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 0;
    width: calc(100% - 20px);
    border-radius: 20px;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-badge {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: #1e2633;
    border: 1px solid var(--border-medium);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.1em;
}

.brand-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Action Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
}

.btn-secondary {
    background-color: var(--bg-surface-elevated);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-medium);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* Hero Section (No hero-visual, Clean High-density Architectural Headline) */
.hero {
    padding: 84px 0 68px;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
    max-width: 840px;
    padding-top: 128px;
}

.hero-label {
    display: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    /* display: flex; */
    align-items: center;
    gap: 8px;
}

.hero-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.hero h1 {
    font-size: 42px;
    line-height: 1.18;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.metric-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Engineering Disciplines Section */
.section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.section-head {
    margin-bottom: 40px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    /* color: var(--accent-cyan); */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}

.section-head h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-head p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 680px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pillar-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color var(--transition), background var(--transition);
}

.pillar-box:hover {
    border-color: var(--border-medium);
    background: var(--bg-surface-elevated);
}

.pillar-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.pillar-box h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pillar-box p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Detailed Modular Curriculum Grid */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.curriculum-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color var(--transition);
}

.curriculum-item:hover {
    border-color: var(--border-medium);
}

.curriculum-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    /* color: var(--accent-cyan); */
    margin-bottom: 10px;
}

.curriculum-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.curriculum-item p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.curriculum-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Methodology Steps */
.methodology-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.step-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 22px;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.step-index {
    display: none;
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-blue);
    position: absolute;
    top: -10px;
    left: 0px;
}

.step-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #ffffff;
    margin-top: 1px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Labs Hardware Specification Table */
.spec-table-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.spec-table th {
    background: var(--bg-surface-solid);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.spec-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-unit {
    font-weight: 600;
    color: var(--text-primary);
}

.spec-status {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-emerald);
}

/* Pricing Section — Clean Industrial Definition List */
.pricing-section {
    padding: 72px 0 90px;
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tariff-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    backdrop-filter: blur(8px);
    transition: border-color var(--transition), background var(--transition);
}

.tariff-row:hover {
    border-color: var(--border-medium);
    background: var(--bg-surface-elevated);
}

.tariff-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.tariff-category {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
}

.tariff-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.tariff-desc {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 680px;
}

.tariff-specs {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.tariff-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.tariff-price {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
    font-feature-settings: "tnum" 1;
    white-space: nowrap;
}

.tariff-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-buy {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.btn-buy:hover {
    background: var(--accent-blue-hover);
}

/* FAQ Technical Grid */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.faq-item {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 22px;
    backdrop-filter: blur(8px);
}

.faq-item h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #ffffff;
}

.faq-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Modal Lead Dialog (Yukassa Invoicing Mode) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 9, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #0e1218;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.modal-head {
    padding: 18px 24px;
    background: #121720;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-head h3 {
    font-size: 16px;
    color: #ffffff;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}

.selected-plan-summary {
    background: #080b0f;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
}

.summary-price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-emerald);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    background: #080b0f;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 13px;
    color: #ffffff;
    font-family: var(--font-sans);
    transition: border-color var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    cursor: pointer;
    margin-bottom: 22px;
}

.form-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--accent-blue);
}

.form-checkbox-label a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.form-checkbox-label a:hover {
    color: #ffffff;
}

.btn-submit {
    width: 100%;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-submit:hover {
    background: var(--accent-blue-hover);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-state {
    text-align: center;
    padding: 20px 8px;
}

.success-icon {
    font-size: 38px;
    color: var(--accent-emerald);
    margin-bottom: 12px;
}

.success-state h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
}

.success-state p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 22px;
}

/* Site Footer & Official Legal Requisites (Yukassa Compliance 2026) */
.site-footer {
    background: #080b0f;
    border-top: 1px solid var(--border-subtle);
    padding: 56px 0 36px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    line-height: 1.65;
    margin-bottom: 12px;
}

.footer-col strong {
    color: var(--text-secondary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links-list a:hover {
    color: #ffffff;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.badge-pill {
    background: #121720;
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

/* Legal Documents Article Styling */
.doc-body {
    background-color: var(--bg-base);
}

.doc-main {
    padding: 56px 0 80px;
}

.doc-article {
    max-width: 820px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 48px;
}

.doc-header {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.doc-header h1 {
    font-size: 26px;
    line-height: 1.3;
    margin: 8px 0;
}

.doc-effective-date {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.doc-section {
    margin-bottom: 28px;
}

.doc-section h2 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 12px;
}

.doc-section p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.doc-list {
    margin-left: 20px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.doc-footer-meta {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive Breakpoints (Strict 375px Mobile Audit) */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .methodology-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    .methodology-row {
        grid-template-columns: 1fr;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .tariff-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .tariff-actions {
        width: 100%;
        justify-content: space-between;
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero-lead {
        font-size: 15px;
    }
    .doc-article {
        padding: 24px 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}