/* ============================================
   AWAH — Artisans Working At Heights | Factory Website Style System
   设计方向：工业精密感 / 克制 / 拒绝AI套版
   ============================================ */

/* --- CSS 变量 --- */
:root {
  --color-black: #0d0d0d;
  --color-black-light: #1a1a1a;
  --color-accent: #c62028;
  --color-accent-deep: #9a1820;
  --color-gray: #666666;
  --color-gray-light: #999999;
  --color-white: #ffffff;
  --color-offwhite: #f5f5f5;
  --color-border: #e0e0e0;
  --color-shadow: rgba(0, 0, 0, 0.06);
  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
  --max-width: 1280px;
  --nav-height: 116px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

/* Top utility bar */
.nav-top {
  background: var(--color-black);
  height: 36px;
  display: flex;
  align-items: center;
}

.nav-top .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-top-left {
  display: flex;
  gap: 1.75rem;
}

.nav-top-left a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-gray-light);
  transition: color 0.2s;
}

.nav-top-left a:hover {
  color: #fff;
}

.nav-top-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-top-right > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-gray-light);
  transition: color 0.2s;
}

.nav-top-right > a:hover {
  color: var(--color-accent);
}

.nav-top-right svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-top-right .social-link svg {
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
}

/* Main brand bar */
.nav-main {
  background: transparent;
  height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
}

.nav-main.light {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 72px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

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

.nav-main.light .nav-links a {
  color: var(--color-black);
}

.nav-main.light .nav-links a::after {
  background: var(--color-black);
}

.nav-main.light .nav-links a:hover,
.nav-main.light .nav-links a.active {
  color: var(--color-black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none; border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-main.light .nav-toggle span {
  background: var(--color-black);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
}

.section-tight { padding: 4rem 2rem; }

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-gray);
  font-size: 1.05rem;
  max-width: 560px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover { background: var(--color-accent-deep); }

.btn-outline {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-black);
}

.btn-outline:hover {
  background: var(--color-black);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 0.4rem 0;
  border-bottom: 1.5px solid transparent;
}

.btn-ghost:hover { border-bottom-color: var(--color-accent); }

/* --- Hero (Home) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem 0;
  box-sizing: border-box;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
  padding: 4rem 0;
  color: #fff;
  overflow-wrap: break-word;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.hero-content h1 span {
  color: var(--color-accent);
}

.hero-content .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero-content .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-content .btn-outline:hover {
  background: #fff;
  color: var(--color-black);
  border-color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.35rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: calc(var(--nav-height) + 5rem) 2rem 4rem;
  background: var(--color-black);
  color: #fff;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.page-hero .breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-gray-light);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a { color: var(--color-gray-light); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .breadcrumb-current { color: var(--color-accent); }
.page-hero .breadcrumb .breadcrumb-sep { color: var(--color-gray-light); }

/* --- About Page --- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-intro-text p {
  font-size: 1.05rem;
  color: var(--color-black-light);
  margin-bottom: 1.5rem;
}

.about-timeline {
  border-left: 2px solid var(--color-border);
  padding-left: 2rem;
}

.about-timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.about-timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem; top: 0.35rem;
  width: 12px; height: 12px;
  border: 2px solid var(--color-accent);
  background: var(--color-white);
  border-radius: 50%;
}

.about-timeline-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

.about-timeline-item h4 {
  margin: 0.3rem 0 0.3rem;
}

.about-timeline-item p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.about-value-item {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--color-border);
}

.about-value-icon {
  width: 48px; height: 48px;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.about-value-icon svg {
  width: 22px; height: 22px;
  stroke: #fff;
}

.about-value-item h4 {
  margin-bottom: 0.5rem;
}

.about-value-item p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* --- Products Page --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-card:hover {
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  border-color: #ccc;
}

.product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}

.product-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-card-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.product-card-body {
  padding: 1rem;
}

.product-card-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  color: #0f1111;
}

.product-card-body p {
  font-size: 0.8rem;
  color: #565959;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.product-card-specs .spec {
  font-size: 0.75rem;
  color: #565959;
  font-family: var(--font-mono);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: #f4f4f4;
  transition: opacity 0.2s;
}

.gallery-item:hover {
  opacity: 0.85;
}

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

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Product Detail Page --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery {
  padding: 0;
}

.product-main-img-wrap {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  max-width: 520px;
}

.product-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.product-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.product-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}

.product-thumbs img:hover,
.product-thumbs img.active {
  border-color: var(--color-accent);
}

.product-info .product-desc {
  color: var(--color-gray);
  line-height: 1.8;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

/* --- Related Products --- */
.related-section {
  background: var(--color-offwhite);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.related-card-image {
  background: var(--color-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-body {
  padding: 1rem;
}

.related-card-body h4 {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.related-card-body p {
  font-size: 0.75rem;
  color: var(--color-gray);
}

/* --- Product Detail Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--color-offwhite); }

.modal-image {
  background: #f4f4f4;
  padding: 1.5rem 1.5rem 1rem;
}

.modal-main-img-wrap {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.modal-main-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.modal-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.modal-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}

.modal-thumbs img:hover,
.modal-thumbs img.active {
  border-color: var(--color-accent);
}

.modal-body { padding: 2.5rem; }

.modal-body h2 { margin-bottom: 1rem; }
.modal-body .specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.specs-table th {
  background: var(--color-offwhite);
  font-weight: 600;
  width: 30%;
}

/* --- About Intro Image --- */
.about-intro-image {
  display: flex;
  align-items: center;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--color-border);
}

/* --- Section Dark Variant --- */
.section-dark {
  background: var(--color-black);
  color: #fff;
}

/* --- Vision & Mission --- */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.vision-block .section-label {
  color: var(--color-accent);
}

.vision-block h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: #fff;
}

.vision-block p {
  color: var(--color-gray-light);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 480px;
}

/* --- Journey Timeline --- */
.journey-scroll {
  margin-top: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-bottom: 1rem;
}

.journey-scroll::-webkit-scrollbar {
  height: 4px;
}

.journey-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.journey-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.journey-track {
  display: flex;
  gap: 1.5rem;
  min-width: max-content;
}

.journey-card {
  flex: 0 0 340px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.journey-era {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.journey-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.journey-card p {
  color: var(--color-gray);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* --- Contact Page --- */
.contact-header {
  margin-bottom: 2.5rem;
}

.contact-header h2 {
  margin-bottom: 0.75rem;
}

.contact-header p {
  color: var(--color-gray);
  line-height: 1.6;
}

.contact-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 2.5rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-card-value {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-black);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea { min-height: 140px; }

/* --- News Page --- */
.news-list {
  display: grid;
  gap: 2rem;
}

.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.news-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px var(--color-shadow);
}

.news-item-image {
  height: 100%;
  min-height: 200px;
  background: var(--color-black-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item-body {
  padding: 1.75rem 1.75rem 1.75rem 0;
}

.news-item-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.news-item-body h3 {
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.news-item:hover h3 { color: var(--color-accent); }

.news-item-body p {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.news-sidebar-list {
  display: grid;
  gap: 2rem;
}

.news-sidebar-card {
  padding: 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.news-sidebar-card:hover { background: var(--color-offwhite); }

.news-sidebar-card .news-item-date {
  font-size: 0.75rem;
}

.news-sidebar-card h4 {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

/* --- News Article Content --- */
.news-content { max-width: 780px; margin: 0 auto; padding: 0 1rem; }

@media (max-width: 1024px) {
  .news-content { max-width: min(90%, 680px); }
}

@media (max-width: 768px) {
  .news-content { max-width: 100%; }
}
.news-content h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.news-content h3:first-child { margin-top: 0; }
.news-content p { font-size: 1rem; color: var(--color-black-light); line-height: 1.9; margin-bottom: 1.25rem; }
.news-content ul, .news-content ol { margin: 0 0 1.25rem 1.5rem; }
.news-content ul { list-style: disc; }
.news-content ol { list-style: decimal; }
.news-content li { font-size: 1rem; color: var(--color-black-light); line-height: 1.9; margin-bottom: 0.4rem; }
.news-content strong { font-weight: 700; color: var(--color-black); }
.news-content em { font-style: italic; }
.news-content a { color: var(--color-accent); text-decoration: underline; }
.news-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.news-content td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; line-height: 1.6; }

.news-categories {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
}

.news-categories h4 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.news-categories li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-offwhite);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-gray);
  transition: color 0.2s;
}

.news-categories li:hover { color: var(--color-accent); }

.news-categories li span {
  float: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* --- Map Section --- */
.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--color-black-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  margin-top: 2rem;
}

.map-placeholder-inner {
  text-align: center;
  color: var(--color-gray-light);
}

.map-placeholder-inner svg {
  opacity: 0.3;
  margin-bottom: 0.75rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-black);
  color: var(--color-gray-light);
  padding: 5rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo {
  color: #fff;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--color-gray-light);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--color-accent);
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col a,
.footer-col li {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gray-light);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 54px;
  height: 54px;
  background: var(--color-black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-black);
  padding: 2.5rem 2rem;
}

.trust-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item {
  padding: 1rem;
}

.trust-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.trust-label {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Certifications Strip --- */
.cert-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.cert-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cert-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent);
}

.cert-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.cert-desc {
  font-size: 0.8rem;
  color: var(--color-gray);
  max-width: 200px;
}

/* --- CTA Row (3-column) --- */
.cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-card {
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  text-align: center;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.cta-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cta-card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cta-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.cta-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: var(--color-gray);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cta-card .btn-ghost {
  margin-top: auto;
}

/* --- Product Comparison Table --- */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table thead th {
  background: var(--color-black);
  color: #fff;
  padding: 1rem 1.25rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.compare-table thead th:first-child {
  background: var(--color-black-light);
  color: var(--color-gray-light);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-table tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.compare-table tbody td:first-child {
  background: var(--color-offwhite);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-gray);
}

.compare-table tbody tr:hover td {
  background: #fafafa;
}

.compare-table tbody tr:hover td:first-child {
  background: var(--color-offwhite);
}

/* --- Application Scenarios --- */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.scenario-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.scenario-card:hover {
  border-color: var(--color-accent);
}

.scenario-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: var(--color-black-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scenario-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
}

.scenario-card h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.scenario-card p {
  font-size: 0.8rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .faq-list { max-width: 100%; }
}

.faq-item {
  border: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(0);
}

.faq-item .faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.8;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-offwhite);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
}

.team-avatar svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-gray-light);
}

.team-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --- Factory Grid --- */
.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.factory-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  display: block;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 54px;
  height: 54px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* --- Product Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--color-gray);
}

.filter-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-tab.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* --- News Subscribe --- */
.news-subscribe {
  max-width: 480px;
  margin: 3rem auto 0;
  text-align: center;
}

.news-subscribe h4 {
  margin-bottom: 0.5rem;
}

.news-subscribe p {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-bottom: 1.25rem;
}

.subscribe-row {
  display: flex;
  gap: 0.5rem;
}

.subscribe-row input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.subscribe-row input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.subscribe-row .btn {
  white-space: nowrap;
}

/* --- Download Grid & Cards --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.download-card {
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.download-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: #ccc;
}

.download-card-top {
  background: var(--color-offwhite);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.download-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.download-card-icon {
  width: 42px;
  height: 42px;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.download-card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.download-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.download-card-body p {
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-gray-light);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.download-card .btn-sm {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Trust Inline --- */
.trust-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--color-gray);
}

.trust-inline svg {
  width: 18px;
  height: 18px;
  stroke: #2d8a4e;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .about-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .vision-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-row { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-top { display: none; }

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

  .journey-card {
    flex: 0 0 280px;
  }

  .about-intro-image {
    margin-top: 2rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }

  .nav-links a {
    color: var(--color-black);
  }

  .nav-links a::after {
    background: var(--color-black);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--color-black);
  }

  .nav-main {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-main.light {
    background: rgba(255, 255, 255, 0.94);
  }

  .nav-toggle span {
    background: var(--color-black);
  }

  .nav-main.light .nav-toggle span {
    background: var(--color-black);
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

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

  .about-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-container { flex-direction: column; }
  .news-item { grid-template-columns: 1fr; }
  .news-item-image { min-height: 200px; }
  .news-item-body { padding: 1.75rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 4rem 1.5rem; }
  .page-hero { padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem; }
  .footer { padding: 3rem 1.5rem 1.5rem; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-strip { gap: 2rem; }
  .factory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .contact-form { padding: 1.5rem; }
  .form-row { flex-direction: column; gap: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .factory-grid { grid-template-columns: 1fr; }
  .subscribe-row { flex-direction: column; }
  .whatsapp-float { bottom: 4.5rem; right: 1rem; }
  .back-to-top { right: 1rem; bottom: 0.5rem; }
}

/* --- Russian language overrides --- */
html[lang="ru"] .hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

html[lang="ru"] .hero-content .lead {
  font-size: 1.05rem;
  max-width: 600px;
}

html[lang="ru"] .hero-content .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

html[lang="ru"] .hero-stat-label {
  font-size: 0.7rem;
}

/* --- Brazilian Portuguese overrides --- */
html[lang="pt-BR"] .hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

html[lang="pt-BR"] .hero-content .lead {
  font-size: 1rem;
  max-width: 100%;
}

html[lang="pt-BR"] .hero-stat-label {
  font-size: 0.7rem;
}
