/* ============================================
   CLOPEN V2 - Full-Width Immersive Design
   Transparent Header + Mega Menu + Cinematic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* === Tokens === */
:root {
  --dark: #0a0a0a;
  --dark-90: #141414;
  --dark-80: #1a1a1a;
  --dark-70: #222;
  --dark-60: #333;
  --surface: #fafafa;
  --surface-alt: #f0f0f0;
  --white: #ffffff;
  --accent: #00a6ff;
  --accent-dim: rgba(0,166,255,0.12);
  --accent-hover: #33bbff;
  --warm: #ff6b35;
  --text: #0a0a0a;
  --text-mid: #555;
  --text-light: #888;
  --text-inv: #f5f5f5;
  --text-inv-mid: rgba(255,255,255,0.6);
  --border: #e0e0e0;
  --border-dark: rgba(255,255,255,0.1);

  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --header-h: 80px;
  --max-w: 1320px;
  --radius: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 48px rgba(0,0,0,0.12);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* === Typography === */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-desc {
  color: var(--text-mid);
  font-size: 1.15rem;
  max-width: 520px;
  line-height: 1.75;
}

/* === Header - Transparent to Solid === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: all 0.5s var(--ease);
}

/* Transparent state (default on hero pages) */
.header--transparent {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header--transparent .logo-dark { display: none; }
.header--transparent .logo-light { display: block; }
.header--transparent .nav-link { color: rgba(255,255,255,0.8); }
.header--transparent .nav-link:hover { color: white; }
.header--transparent .header-cta { border-color: rgba(255,255,255,0.3); color: white; }
.header--transparent .header-cta:hover { background: white; color: var(--dark); border-color: white; }
.header--transparent .hamburger span { background: white; }
.header--transparent .lang-btn { color: rgba(255,255,255,0.5); }
.header--transparent .lang-btn.active { color: white; }

/* Solid state (on scroll or inner pages) */
.header--solid {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.header--solid .nav-link { color: var(--text-mid); }
.header--solid .nav-link:hover { color: var(--dark); }
.header--solid .header-cta { border-color: var(--dark); color: var(--dark); }
.header--solid .header-cta:hover { background: var(--dark); color: white; }
.header--solid .lang-btn { color: var(--text-light); }
.header--solid .lang-btn.active { color: var(--dark); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 40px; transition: opacity 0.3s; }
.logo-light { display: none; }
.logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  gap: 2px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-btn .flag { width: 18px; height: 12px; flex-shrink: 0; border-radius: 1px; }

.header-cta {
  padding: 10px 24px;
  border: 1.5px solid;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
}

/* === Mega Menu === */
.mega-trigger { position: relative; }
.mega-trigger .nav-arrow {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s;
}
.mega-trigger:hover .nav-arrow { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.4s var(--ease);
  z-index: 999;
}
.mega-menu.active,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.mega-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.mega-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.mega-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.mega-card:hover::before { transform: scaleX(1); }

.mega-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--surface);
}
.mega-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.mega-card:hover .mega-card-img img { transform: scale(1.05); }

.mega-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.mega-card p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px 0;
  background: var(--dark);
  transition: all 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === Mobile Nav === */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 8px;
}
.mobile-nav a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-inv);
  padding: 12px 24px;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent); }

.mobile-mega-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.mobile-mega-links a {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--accent);
}
.mobile-mega-links a:hover { color: var(--accent); }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  overflow: hidden;
  padding-bottom: 80px;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.85) 100%),
    linear-gradient(135deg, rgba(0,166,255,0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.hero h1 {
  color: white;
  margin-bottom: 24px;
  max-width: 800px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: var(--text-inv-mid);
  font-size: 1.2rem;
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-fill:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,166,255,0.3); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-line:hover { border-color: white; background: rgba(255,255,255,0.05); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* === Stats Band === */
.stats-band {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 0;
}
.stats-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 48px 40px;
  border-right: 1px solid var(--border-dark);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.82rem;
  color: var(--text-inv-mid);
  letter-spacing: 0.04em;
}

/* === Products Section === */
.products-section {
  padding: 120px 0;
}
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.products-header-text { max-width: 500px; }
.products-header .section-title { margin-bottom: 12px; }

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.product-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.product-card-bg {
  position: absolute;
  background: var(--dark);
}
.product-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.6s var(--ease);
}
.product-card:hover .product-card-bg img {
  opacity: 0.4;
  transform: scale(1.05);
}

.product-card-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}
.product-card-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
  z-index: -1;
}

.product-card-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.product-card h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 8px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease);
}
.product-card:hover h3 { transform: translateY(0); }

.product-card-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s var(--ease) 0.05s;
  margin-bottom: 16px;
}
.product-card:hover .product-card-desc { opacity: 1; transform: translateY(0); }

.product-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease) 0.1s;
}
.product-card-arrow svg { width: 18px; height: 18px; transition: transform 0.3s; }
.product-card:hover .product-card-arrow { opacity: 1; transform: translateX(0); }
.product-card:hover .product-card-arrow svg { transform: translateX(4px); }

/* === About Section === */
.about-section {
  padding: 120px 0;
  background: var(--surface);
  position: relative;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.about-visual {
  position: relative;
  overflow: hidden;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,166,255,0.1) 0%, transparent 100%);
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  background: var(--white);
}
.about-text .section-desc { margin-bottom: 36px; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.trust-tag {
  padding: 6px 16px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  transition: all 0.3s;
}
.trust-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--dark);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-dark:hover { background: var(--dark-80); transform: translateY(-2px); }

/* === CTA Section === */
.cta-section {
  padding: 120px 0;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-section h2 { color: white; margin-bottom: 16px; position: relative; }
.cta-section .section-desc {
  color: var(--text-inv-mid);
  margin: 0 auto 40px;
  text-align: center;
}
.cta-btns { display: flex; justify-content: center; gap: 16px; position: relative; }

/* === Footer === */
.footer {
  background: var(--dark-90);
  color: var(--text-inv-mid);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand .logo-img { height: 36px; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 20px; font-size: 0.9rem; line-height: 1.8; }

.footer h4 {
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer li { margin-bottom: 12px; }
.footer li a {
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer li a:hover { color: white; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}
.footer-contact-item span { font-size: 0.9rem; }

.footer-bottom {
  padding: 24px 0;
  font-size: 0.78rem;
  color: var(--text-inv-mid);
}

/* === Page Header (Inner Pages) === */
.page-hero {
  min-height: 360px;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  padding-bottom: 48px;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,166,255,0.05) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-family: var(--mono);
}
.page-hero .breadcrumb a { color: var(--text-inv-mid); transition: color 0.3s; }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb .sep { color: var(--text-inv-mid); }
.page-hero .breadcrumb .current { color: var(--accent); }

.page-hero h1 { color: white; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 10px; }
.page-hero p { color: var(--text-inv-mid); font-size: 1.1rem; max-width: 560px; }

/* === Products Page === */
.products-page { padding: 80px 0; }

.product-category-block {
  margin-bottom: 72px;
}
.product-category-block h2 {
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-category-block h2::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}
.product-category-block > p { color: var(--text-mid); margin-bottom: 28px; font-size: 1.05rem; }

.category-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.category-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.category-images img:hover { border-color: var(--accent); }

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-list-card {
  display: block;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-list-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.product-list-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.product-list-card:hover::before { transform: scaleY(1); }

.product-list-card .card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-list-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-list-card h4 { font-size: 1rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.product-list-card p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 12px; line-height: 1.5; }
.product-list-card .tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-right: 4px;
}

/* === Product Detail === */
.product-detail { padding: 48px 0 80px; }
/* Content breadcrumb (light bg) */
.product-detail .breadcrumb,
.products-page .breadcrumb,
.about-page .breadcrumb,
.contact-page .breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  font-family: var(--mono);
}
.product-detail .breadcrumb a,
.products-page .breadcrumb a,
.about-page .breadcrumb a,
.contact-page .breadcrumb a { color: var(--text-light); transition: color 0.3s; }
.product-detail .breadcrumb a:hover,
.products-page .breadcrumb a:hover,
.about-page .breadcrumb a:hover,
.contact-page .breadcrumb a:hover { color: var(--dark); }
.product-detail .breadcrumb .sep,
.products-page .breadcrumb .sep,
.about-page .breadcrumb .sep,
.contact-page .breadcrumb .sep { color: var(--text-light); }
.product-detail .breadcrumb .current,
.products-page .breadcrumb .current,
.about-page .breadcrumb .current,
.contact-page .breadcrumb .current { color: var(--accent); }
.product-detail .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
}

.product-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-detail .container .breadcrumb,
.product-detail .container .section-label {
  grid-column: 1 / -1;
}

.sub-product {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.sub-product::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.sub-product:hover { border-color: var(--accent); }
.sub-product:hover::before { transform: scaleY(1); }

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.product-gallery img:hover { border-color: var(--accent); }

.sub-product h3 {
  margin-bottom: 24px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-product-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.sub-product-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.sub-product-images img:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table th, .specs-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.specs-table th {
  background: var(--surface);
  font-weight: 600;
  width: 220px;
  color: var(--dark);
}
.specs-table tr:hover td { background: var(--accent-dim); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }

.specs-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--mono);
}

/* === About Page === */
.about-page { padding: 80px 0; }
.about-page-body { max-width: 760px; margin: 0 auto; }
.about-page-body p { color: var(--text-mid); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.85; }
.about-page-body h2 { margin-top: 56px; margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  margin: 40px 0;
}
.value-card {
  padding: 40px 32px;
  background: var(--white);
  text-align: center;
  transition: background 0.3s;
}
.value-card:hover { background: var(--surface); }
.value-card svg { margin: 0 auto 16px; }
.value-card h4 { margin-bottom: 8px; font-size: 1rem; }
.value-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }

.standards-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.std-badge {
  padding: 8px 18px;
  background: var(--dark);
  color: white;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* About page stats */
.about-page .stats-band {
  border-radius: 0;
  margin: 48px -40px;
  width: calc(100% + 80px);
}

/* === Contact Page === */
.contact-page { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

.contact-form {
  padding: 48px;
  background: var(--white);
}
.contact-form h3 { margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--surface);
  transition: all 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info {
  padding: 48px;
  background: var(--dark);
  color: var(--text-inv);
}
.contact-info h3 { color: white; margin-bottom: 28px; }

.contact-cards { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-dark);
  transition: border-color 0.3s;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card .ico {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card .ico svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; }
.contact-card h4 { font-size: 0.88rem; margin-bottom: 4px; color: white; }
.contact-card p { color: var(--text-inv-mid); font-size: 0.85rem; }

.map-wrap {
  overflow: hidden;
  border: 1px solid var(--border-dark);
  height: 220px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.1); transition: filter 0.3s; }
.map-wrap:hover iframe { filter: none; }

/* === Scroll Animations === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.lightbox-close:hover { border-color: #fff; }

/* === Responsive === */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }

  .hero h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); }
  .stat-item { padding: 36px 24px; }

  .product-showcase { grid-template-columns: 1fr; }
  .product-card { aspect-ratio: 16/8; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 16/9; }
  .about-text { padding: 48px 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .mega-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-links, .header-cta, .mega-menu { display: none; }
  .hamburger { display: block; }
  .mobile-nav { display: block; }

  .hero { min-height: 100svh; padding-bottom: 60px; }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-fill, .btn-line { width: 100%; justify-content: center; }

  .stats-band-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 20px; }
  .stat-num { font-size: 2.2rem; }

  .products-section { padding: 80px 0; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .page-hero { min-height: 280px; }

  .product-list { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 1fr; gap: 16px; }
  .category-images { grid-template-columns: 1fr; gap: 16px; }
  .product-detail .container { grid-template-columns: 1fr; }
  .sub-product { padding: 24px 20px; }
  .sub-product-images { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-band-inner { grid-template-columns: 1fr; }
  .stat-item { padding: 24px 16px; border-right: none; border-bottom: 1px solid var(--border-dark); }
  .stat-item:last-child { border-bottom: none; }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
