/*
Theme Name: Dawid Łoś 3D Studio
Theme URI: https://3d.dawidlos.pl
Author: Dawid Łoś
Author URI: https://3d.dawidlos.pl
Description: Dedykowany, nowocześnie zaprojektowany motyw WordPress dla Studia Druku 3D, Skanowania HD i Inżynierii CAD z pełną możliwością edycji w WP Customizer i zarządzenia modelami przez Custom Post Type.
Version: 1.0.0
Text Domain: dawidlos3d
Tags: 3d-printing, cad, dark-mode, responsive-layout, custom-menu, custom-logo, custom-colors
*/

/* ==========================================================================
   DESIGN SYSTEM - TECH SLATE (ELEGANCKI KONTRASTOWY MOTYW 21. WIEKU)
   ========================================================================== */
:root {
    /* Color Palette - Sleek Tech Slate Dark */
    --bg-main: #0b0f19;             /* Ultra-Sleek Dark Slate Background */
    --bg-subtle: #111827;           /* Card Outer Background */
    --bg-white: #1f2937;            /* Surface Card Fill */
    --bg-elevated: #374151;
    --bg-glass: rgba(31, 41, 55, 0.94);

    --color-primary: #38bdf8;        /* Bright Precision Cyan */
    --color-primary-dark: #0284c7;
    --color-primary-light: rgba(56, 189, 248, 0.14);
    --color-primary-glow: rgba(56, 189, 248, 0.3);

    --color-accent: #60a5fa;         /* Technical Blue */
    --color-accent-light: rgba(96, 165, 250, 0.14);
    
    --color-emerald: #34d399;
    --color-allegro: #ff6b00;

    --text-main: #f9fafb;            /* Pure White Headings */
    --text-body: #d1d5db;            /* High Contrast Gray Text */
    --text-muted: #9ca3af;           /* Muted Text */
    --text-light: #6b7280;

    --border-color: #374151;         /* Crisp Dark Slate Borders */
    --border-hover: #4b5563;
    --border-active: #38bdf8;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Radii */
    --container-width: 1240px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

main {
    position: relative;
    z-index: 1;
}

/* Background Technical Grid */
.bg-grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Section Common Headers */
.section-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 48px auto;
}
.section-header.text-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}
.subpage-hero .section-header {
    margin-bottom: 0;
}
.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--color-primary);
    color: #0b0f19;
    font-weight: 700;
    box-shadow: 0 4px 14px var(--color-primary-glow);
}
.btn-primary:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}
.btn-secondary {
    background: var(--bg-white);
    color: var(--text-main);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}
.btn-block {
    width: 100%;
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-smooth);
}
.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0f19;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px var(--color-primary-glow);
}
.logo-accent {
    color: var(--color-primary);
}

.nav-menu ul {
    display: flex;
    gap: 24px;
}
.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    white-space: nowrap;
    padding: 6px 0;
    position: relative;
}
.nav-link:hover,
.nav-link.active,
.current-menu-item > a {
    color: var(--color-primary);
}
.nav-link.active::after,
.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}
.mobile-nav {
    margin-top: 40px;
}
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}
.mobile-link.active,
.mobile-nav .current-menu-item > a {
    color: var(--color-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 80px 0 100px 0;
    position: relative;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-lead strong {
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-highlights {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-body);
}
.h-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.h-icon-vector {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Hero Visual Box */
.visual-glass-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--color-emerald);
    border-radius: 50%;
}
.hero-img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
}
.visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}
.visual-info strong {
    display: block;
    color: var(--text-main);
    font-family: var(--font-heading);
}
.visual-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.tag-pill {
    padding: 6px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Hero Stats Bar */
.hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.h-stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.h-stat-box .h-stat-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-primary);
}
.h-stat-box .h-stat-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ==========================================================================
   SCENARIOS GRID
   ========================================================================== */
.guide-section {
    padding: 90px 0;
    background: var(--bg-subtle);
}
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.scenario-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}
.scenario-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.sc-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.scenario-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.35;
}
.scenario-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ==========================================================================
   PILLARS SECTION (MOŻLIWOŚCI)
   ========================================================================== */
.pillars-section {
    padding: 90px 0;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.pillar-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.pillar-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.p-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.p-card-icon-box {
    width: 52px;
    height: 52px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
}
.p-card-badge {
    padding: 6px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}
.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}
.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.pillar-card p strong {
    color: var(--text-main);
}
.p-card-list {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.p-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-body);
}
.p-card-list .list-icon {
    color: var(--color-emerald);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ==========================================================================
   SUBPAGE TEASERS SECTION (STRONA GŁÓWNA - 3 KARTY PODSTRON)
   ========================================================================== */
.subpage-teasers-section {
    padding: 90px 0;
    background: var(--bg-subtle);
}
.teasers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.teaser-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}
.teaser-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.teaser-icon-header {
    width: 60px;
    height: 60px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}
.teaser-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}
.teaser-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
    flex-grow: 1;
}

/* ==========================================================================
   BEFORE & AFTER SLIDER (100% POPRAWIONY)
   ========================================================================== */
.before-after-section {
    padding: 90px 0;
}
.ba-slider-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    height: 480px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    user-select: none;
    background: #090d16;
}
.ba-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 2;
}
.ba-before img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 900px;
    max-width: none;
    object-fit: cover;
}
.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 18px;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    z-index: 4;
    white-space: nowrap;
}
.ba-label-before {
    left: 20px;
    color: var(--color-allegro);
}
.ba-label-after {
    right: 20px;
    color: var(--color-primary);
}
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    z-index: 5;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-handle-line {
    width: 4px;
    height: 100%;
    background: var(--color-primary);
}
.ba-handle-button {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #0b0f19;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px var(--color-primary-glow);
}

/* ==========================================================================
   MINI-SLICER & 3D STL VIEWPORT
   ========================================================================== */
.stl-slicer-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}
.stl-slicer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.slicer-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}
.slicer-badge {
    padding: 6px 14px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.stl-slicer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
    align-items: stretch;
    width: 100%;
}

.stl-viewport-container {
    background: #090d16;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    min-height: 480px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.stl-viewport-container.drag-over {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.stl-dropzone {
    text-align: center;
    padding: 30px 20px;
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid var(--border-color);
}
.drop-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}
.drop-icon {
    font-size: 2.8rem;
    color: var(--color-primary);
}
.drop-prompt strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
}

.stl-demo-models-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.stl-demo-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}
.btn-demo-stl {
    padding: 6px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-demo-stl:hover {
    background: var(--color-primary);
    color: #0b0f19;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.stl-canvas-box {
    position: relative;
    width: 100%;
    height: 440px;
    min-height: 400px;
    background: #090d16;
}
.stl-3d-viewport {
    width: 100%;
    height: 100%;
}
.viewport-overlay-controls {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    flex-wrap: wrap;
    gap: 8px;
}
.vp-tag {
    padding: 6px 14px;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.stl-tools-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.vp-tool-btn {
    padding: 6px 12px;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.vp-tool-btn:hover,
.vp-tool-btn.active {
    background: var(--color-primary);
    color: #0b0f19;
    border-color: var(--color-primary);
}

.stl-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.stl-fullscreen-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.stl-fs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}
.stl-fs-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}
.stl-fs-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    min-height: 0;
}
.stl-fs-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #090d16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.stl-fs-viewport {
    width: 100%;
    height: 100%;
}
.stl-fs-sidebar {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.stl-mesh-stats-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}
.stl-mesh-stats-box h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 4px;
}
.mesh-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-body);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.mesh-stat-row:last-of-type {
    border-bottom: none;
}
.slicer-tip {
    margin-top: auto;
    padding: 14px;
    background: var(--color-primary-light);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--color-primary);
    line-height: 1.4;
}

/* ==========================================================================
   KALKULATORY & WYCENA
   ========================================================================== */
.services-pricing-section,
.calculator-section {
    padding: 90px 0;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    align-items: start;
}
.calc-controls {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: var(--shadow-md);
}

.calc-step-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.step-badge-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}
.step-num-pill {
    padding: 4px 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

.calc-opts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.calc-opt-btn {
    padding: 18px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.calc-opt-btn:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.calc-opt-btn.active {
    border-color: var(--color-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}
.btn-check-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--color-primary);
    opacity: 0;
}
.calc-opt-btn.active .btn-check-badge {
    opacity: 1;
}
.calc-opt-icon-vector {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.calc-opt-btn strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-main);
}
.calc-opt-btn span {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.opt-price-tag {
    margin-top: 4px;
    padding: 2px 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.calc-color-swatches-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.calc-color-btn {
    padding: 8px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
    transition: var(--transition-smooth);
}
.calc-color-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.color-dot-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
}
.calc-val-badge {
    padding: 4px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
}
.slider-range {
    width: 100%;
    height: 8px;
    background: var(--bg-subtle);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.calc-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.calc-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.calc-summary-panel {
    position: sticky;
    top: 100px;
}
.summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}
.summary-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.price-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
}
.price-curr {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}
.price-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.b-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-body);
}

/* ==========================================================================
   SHOWCASE & GALLERY
   ========================================================================== */
.gallery-section {
    padding: 90px 0;
}
.controls-wrapper {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.search-box {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}
.search-icon-fa {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    outline: none;
}
.search-box input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-btn {
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-body);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-btn:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
}
.filter-btn.active {
    background: var(--color-primary);
    color: #0b0f19;
    border-color: var(--color-primary);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.model-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}
.model-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.model-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #111827;
}
.model-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.model-card:hover .model-img-wrapper img {
    transform: scale(1.05);
}
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-free {
    background: var(--color-emerald);
    color: #0b0f19;
}
.badge-shop {
    background: var(--color-allegro);
    color: #ffffff;
}
.badge-digital {
    background: var(--color-primary);
    color: #0b0f19;
}

.model-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.model-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}
.model-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}
.model-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.m-tag {
    padding: 3px 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.model-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.modal-img-wrapper img {
    border-radius: var(--radius-lg);
    width: 100%;
}
.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}
.modal-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.65;
}
.modal-specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-subtle);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.88rem;
}

/* CONTACT SECTION */
.contact-section {
    padding: 90px 0;
    background: var(--bg-subtle);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 12px 0;
}
.contact-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.c-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}
.c-icon-box {
    width: 44px;
    height: 44px;
    background: var(--color-primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}
.btn-copy-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.contact-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-smooth);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.slicer-tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
}
.slicer-tab-btn.active {
    background: #1f2937;
    color: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.slicer-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border-color);
}
.slicer-support-btn {
    padding: 6px 12px;
    background: #0f172a;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.slicer-support-btn.active, .slicer-support-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #090d16;
}
.layer-slice-slider-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 10px;
}
.btn-gcode-download {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}
.btn-gcode-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 14px 24px;
    background: var(--color-primary);
    color: #0b0f19;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition-smooth);
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Footer */
.main-footer {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-subtle);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.footer-links {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-body);
}
.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container,
    .calculator-wrapper,
    .stl-slicer-grid,
    .contact-wrapper,
    .teasers-grid,
    .pillars-grid,
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-menu {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .ba-slider-container {
        height: 340px;
    }
}
