/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --bg: #0c0a09;
    --surface: #1c1917;
    --surface-light: #292524;
    --copper: #b45309;
    --copper-light: #d97706;
    --copper-dark: #92400e;
    --bronze: #a16207;
    --terracotta: #c2410c;
    --sand: #d6d3d1;
    --gradient-warm: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
    --gradient-copper: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    --text: #fafaf9;
    --text-secondary: #a8a29e;
    --text-muted: #78716c;
    --glass: rgba(251, 247, 237, 0.03);
    --glass-border: rgba(251, 247, 237, 0.08);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-copper: 0 10px 30px rgba(180, 83, 9, 0.3);
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Scrollbar & Selection */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--copper);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--copper-light);
}

::selection {
    background: rgba(180, 83, 9, 0.3);
    color: var(--text);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(180, 83, 9, 0); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--surface);
    border-top-color: var(--copper);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: var(--shadow-copper);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(180, 83, 9, 0.6);
}

.back-to-top::before {
    content: '↑';
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

nav.scrolled {
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 5%;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    background: var(--gradient-warm);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

.nav-links {
    display: none;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-warm);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--copper-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: none;
    background: var(--gradient-warm);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-copper);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 5% 4rem;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(180, 83, 9, 0.15) 0%, transparent 50%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--copper-light);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(180, 83, 9, 0.3);
    animation: float 3s ease-in-out infinite;
}

.hero-badge span {
    animation: pulse 2s infinite;
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 .no-break {
    white-space: nowrap;
}

.hero h1 span {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-warm);
    color: white;
    box-shadow: var(--shadow-copper);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(180, 83, 9, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--copper);
    background: var(--surface-light);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--copper);
    box-shadow: var(--shadow-copper);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-warm);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Sections Common */
section {
    padding: 4rem 5%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-tag {
    display: inline-block;
    background: var(--surface);
    color: var(--copper-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(180, 83, 9, 0.3);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Applications */
.applications {
    background: var(--surface);
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.application-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s;
    cursor: pointer;
}

.application-card:hover {
    transform: translateY(-10px);
    border-color: rgba(180, 83, 9, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.application-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.application-card:hover .application-image img {
    transform: scale(1.1);
}

.application-content {
    padding: 1.5rem;
}

.application-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.application-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Textures */
.textures-section {
    background: var(--surface);
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.textures-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.textures-filter .filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.textures-filter .filter-btn:hover,
.textures-filter .filter-btn.active {
    background: var(--copper);
    color: white;
    border-color: var(--copper);
}

.textures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.texture-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.texture-card:hover {
    transform: translateY(-10px);
    border-color: rgba(180, 83, 9, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.texture-card.hidden {
    display: none;
}

.texture-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.texture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.texture-card:hover .texture-image img {
    transform: scale(1.1);
}

.texture-info {
    padding: 1.5rem;
}

.texture-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: color 0.3s;
}

.texture-card:hover .texture-info h3 {
    color: var(--copper-light);
}

.texture-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.texture-tag {
    display: inline-block;
    background: rgba(180, 83, 9, 0.15);
    color: var(--copper-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.texture-tag.marble-tag {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.texture-tag.special-tag {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

/* Powder Coating */
.powder-coating {
    background: var(--bg);
    padding: 4rem 5%;
}

.powder-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.powder-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--copper-light);
}

.powder-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.powder-facts {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.fact-item {
    text-align: center;
}

.fact-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-warm);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fact-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.powder-features {
    display: grid;
    gap: 0.5rem;
}

.powder-feature {
    padding: 0.8rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.powder-feature:hover {
    border-color: var(--copper);
    transform: translateX(5px);
}

.powder-feature strong {
    color: var(--copper-light);
}

.powder-colors h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ral-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ral-color {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ral-color span {
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    z-index: 2;
    white-space: nowrap;
    font-size: 0.65rem;
}

.ral-color:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ral-color.selected {
    box-shadow: 0 0 0 3px var(--copper);
}

.ral-selected {
    text-align: center;
    padding: 0.8rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Powder Gallery - ИСПРАВЛЕННЫЕ СТИЛИ */
.powder-gallery {
    margin-top: 2rem;
}

.powder-gallery h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.powder-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.powder-example {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.powder-example .img-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.powder-example .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.powder-example:hover .img-container img {
    transform: scale(1.1);
}

.powder-example span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.7) 60%, transparent 100%);
    color: white;
    font-size: 0.85rem;
    z-index: 5;
    transform: translateY(10%);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.powder-example:hover span {
    transform: translateY(0);
    opacity: 1;
}

/* Portfolio */
.portfolio {
    background: var(--surface);
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.portfolio-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--copper);
    color: white;
    border-color: var(--copper);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.4s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.7) 50%, rgba(12, 10, 9, 0.3) 100%);
    inset: 0;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 5;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-category {
    color: var(--copper-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease 0.15s;
}

.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.portfolio-item:hover .portfolio-location {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-gallery-hint {
    color: var(--copper-light);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease 0.25s;
}

.portfolio-item:hover .portfolio-gallery-hint {
    transform: translateY(0);
    opacity: 1;
}

/* Video Section */
.video-section {
    background: var(--bg);
    padding: 4rem 5%;
}

.video-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.video-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.4s;
    width: 100%;
    max-width: 350px;
    flex: 0 0 auto;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: rgba(180, 83, 9, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: transform 0.3s;
}

.video-card:hover .video-play {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.1rem;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Articles */
.articles {
    background: var(--surface);
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(180, 83, 9, 0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 1.5rem;
}

.article-tag {
    display: inline-block;
    background: rgba(180, 83, 9, 0.2);
    color: var(--copper-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.article-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.article-read {
    color: var(--copper-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Certificates */
.certificates {
    background: var(--bg);
    padding: 4rem 5%;
}

.cert-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cert-carousel::-webkit-scrollbar {
    display: none;
}

.cert-card.cert-download {
    flex: 0 0 280px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-card.cert-download:hover {
    transform: translateY(-10px);
    border-color: var(--copper);
    box-shadow: var(--shadow-copper);
}

.cert-icon {
    margin-bottom: 1.5rem;
}

.cert-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    min-height: 2.4em;
    display: flex;
    align-items: center;
}

.cert-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cert-btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.cert-nav {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-nav:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: white;
}

.cert-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cert-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.cert-dot {
    width: 10px;
    height: 10px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.cert-dot.active {
    background: var(--copper);
    border-color: var(--copper);
    transform: scale(1.2);
}

/* Calculator */
.calculator {
    background: var(--surface);
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.calc-container {
    background: var(--bg);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    max-width: 800px;
    margin: 0 auto;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.calc-field label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.calc-field input,
.calc-field select {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
    height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.calc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8a29e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.calc-result {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--glass-border);
}

.calc-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-warm);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calc-quantity-field.piece-mode input {
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.calc-quantity-field.piece-mode label {
    color: var(--copper-light);
}

/* Contacts */
.contacts-section {
    background: var(--bg);
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
}

.contacts-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contacts-map iframe {
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s;
}

.contacts-map:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* CTA */
.cta-section {
    background: var(--bg);
    text-align: center;
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(180, 83, 9, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s infinite;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: var(--surface);
    padding: 3rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
}

.social-link:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--copper-light);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 1rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    border: 1px solid var(--glass-border);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
}

.modal-close:hover {
    background: var(--copper);
    color: white;
    transform: rotate(90deg);
}

/* Gallery Modal */
.gallery-modal {
    padding: 2rem;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-modal h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--text);
}

.gallery-image-wrapper {
    flex: 1;
    display: flex;
    gap: 1rem;
    min-height: 0;
}

.gallery-image-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-image-area img {
    max-width: 100%;
    max-height: calc(90vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-sidebar {
    width: 6px;
    background: var(--gradient-warm);
    border-radius: 3px;
    flex-shrink: 0;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-shrink: 0;
}

.gallery-nav button {
    width: 50px;
    height: 50px;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-nav button:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: white;
}

.gallery-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#galleryCounter {
    color: var(--text-secondary);
    font-size: 1rem;
    min-width: 60px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}

/* Order Modal */
.order-modal {
    padding: 2rem;
    max-width: 500px;
}

.order-modal h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.form-field input[type="file"] {
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Privacy Modal */
.privacy-modal {
    padding: 2rem;
    max-width: 800px;
    max-height: 85vh;
}

.privacy-modal h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--text);
}

.privacy-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.privacy-content h3 {
    color: var(--copper-light);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
}

.privacy-content p {
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Notification */
.form-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    word-wrap: break-word;
}

.form-notification.success {
    background: #10b981;
    color: white;
}

.form-notification.error {
    background: #ef4444;
    color: white;
}

.form-notification button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

/* Video Modal */
.video-modal {
    padding: 0;
    overflow: hidden;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.video-container {
    width: 100%;
    height: 100%;
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   IMAGE OPTIMIZATION STYLES
   ============================================ */

.img-container {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    width: 100%;
    height: 100%;
}

.img-low {
    position: absolute;
    inset: 0;
    filter: blur(15px);
    transform: scale(1.05);
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-low.loaded {
    opacity: 0;
}

.img-main {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-main.loaded {
    opacity: 1;
}

.img-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--surface) 25%,
        var(--surface-light) 50%,
        var(--surface) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    z-index: 0;
}

.img-skeleton.loaded {
    display: none;
}

.img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (min-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ral-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: inline-block;
    }

    .mobile-menu-btn {
        display: none;
    }

    .calc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .powder-content {
        grid-template-columns: 1fr 1fr;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    section {
        padding: 5rem 5%;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .applications-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cert-card.cert-download {
        flex: 0 0 300px;
    }
}

@media (min-width: 1280px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .textures-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .textures-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .gallery-modal {
        padding: 1rem;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .gallery-image-area img {
        max-height: calc(100vh - 160px);
    }

    .gallery-sidebar {
        width: 4px;
    }

    .gallery-nav button {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .cert-carousel-wrapper {
        padding: 0 1rem;
    }

    .cert-nav {
        display: none;
    }

    .cert-card.cert-download {
        flex: 0 0 260px;
    }
}

@media (max-width: 480px) {
    .textures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .img-low, .img-main, .img-skeleton {
        transition: none;
        animation: none;
    }

    .img-low { display: none; }
    .img-main { opacity: 1; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

@media print {
    nav, .back-to-top, .btn, .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}