/* Shared styling for model detail pages */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #2D3E50;
  --red: #C8232C;
  --anthracite: #3a3a3a;
  --mid: #6b6b6b;
  --light: #f5f5f3;
  --white: #ffffff;
  --beige: #f0ece4;
  --border: #e0dcd5;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--anthracite); background: var(--white); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(45,62,80,0.97); backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.lang-switcher { display: flex; gap: 8px; }
.lang-btn { background: none; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; transition: all 0.2s; }
.lang-btn.active, .lang-btn:hover { background: white; color: var(--navy); border-color: white; }

.lang-block { display: none; }
.lang-block.active { display: contents; }

/* BACK LINK */
.back-link {
  position: fixed; top: 88px; left: 24px; z-index: 99;
  background: rgba(255,255,255,0.92); color: var(--navy);
  padding: 8px 14px; border-radius: 4px; font-size: 13px; font-weight: 600;
  text-decoration: none; backdrop-filter: blur(8px);
  transition: all 0.2s; border: 1px solid var(--border);
}
.back-link:hover { background: white; transform: translateX(-2px); }

/* HERO */
.model-hero {
  position: relative; height: 70vh; min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.model-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: brightness(0.55);
}
.model-hero-content {
  position: relative; z-index: 2; text-align: center; color: white;
  padding: 0 24px; max-width: 800px;
}
.model-tag-large {
  display: inline-block; background: var(--red); color: white;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 2px; margin-bottom: 20px;
}
.model-hero h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.05;
  letter-spacing: -1.5px; margin-bottom: 16px;
}
.model-hero p {
  font-size: clamp(15px, 1.8vw, 19px); opacity: 0.88; line-height: 1.6;
  max-width: 560px; margin: 0 auto 32px;
}
.btn-primary {
  background: var(--red); color: white; padding: 16px 36px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
  border: none; border-radius: 4px; cursor: pointer; text-decoration: none;
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: #a81a22; transform: translateY(-1px); }

/* SPECS BAR */
.specs-bar {
  background: var(--navy); color: white; padding: 32px 48px;
}
.specs-bar-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px;
  text-align: center;
}
.spec-block .spec-val-big {
  font-size: 28px; font-weight: 800; color: white; margin-bottom: 4px;
}
.spec-block .spec-label-small {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55); font-weight: 600;
}

/* SECTIONS */
section.model-section { padding: 80px 48px; }
.model-section-inner { max-width: 1160px; margin: 0 auto; }
.model-section h2 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: var(--navy);
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.model-section .label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.model-section p {
  font-size: 16px; line-height: 1.75; color: var(--anthracite); margin-bottom: 14px;
  max-width: 760px;
}
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; max-width: 760px; }
.feature-list li {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--anthracite);
  display: flex; align-items: flex-start; gap: 12px;
}
.feature-list li::before {
  content: '✓'; color: var(--red); font-weight: 800; flex-shrink: 0;
}

/* GALLERY */
.gallery-section { background: var(--light); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.gallery-cell {
  aspect-ratio: 4/3; overflow: hidden; border-radius: 4px;
  background: var(--border); position: relative; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-cell.placeholder {
  background: linear-gradient(135deg, #d8d4cc 0%, #c0bcb4 100%);
  display: flex; align-items: center; justify-content: center;
  cursor: default; pointer-events: none;
}
.gallery-cell.placeholder:hover { transform: none; box-shadow: none; }
.gallery-cell.placeholder .placeholder-inner {
  text-align: center; padding: 16px; color: rgba(45,62,80,0.55);
}
.gallery-cell.placeholder .placeholder-icon { font-size: 32px; margin-bottom: 6px; opacity: 0.5; }
.gallery-cell.placeholder .placeholder-name {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}

/* BLUEPRINT */
.blueprint-section { background: var(--beige); text-align: center; }
.blueprint-img-wrapper {
  margin-top: 32px; background: white; padding: 24px; border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); display: inline-block; max-width: 100%;
}
.blueprint-img-wrapper img {
  max-width: 100%; height: auto; display: block;
}
.blueprint-download {
  display: inline-block; margin-top: 24px; color: var(--navy);
  text-decoration: none; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.blueprint-download:hover { color: var(--red); }

/* CTA */
.model-cta-section {
  background: var(--navy); color: white; text-align: center;
  padding: 80px 48px;
}
.model-cta-section h2 { color: white; margin-bottom: 12px; }
.model-cta-section p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 28px; }

/* LIGHTBOX */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 16px; right: 24px; background: none; border: none;
  color: white; font-size: 32px; cursor: pointer; line-height: 1;
}

/* FOOTER */
footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  padding: 48px; font-size: 13px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { color: white; font-weight: 700; font-size: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-note { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 24px; max-width: 1160px; margin-left: auto; margin-right: auto; line-height: 1.6; }

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .specs-bar { padding: 24px; }
  section.model-section { padding: 56px 24px; }
  .model-cta-section { padding: 56px 24px; }
  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .back-link { top: 80px; left: 16px; }
}
