/* ============================================================
   Anhui Anheng Bearing Co., Ltd. (AHAHB) — Static Website
   Pure CSS, zero external dependencies. System font stack only.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0B2B4B;          /* deep navy — primary */
  --steel: #1E5C97;         /* industrial steel blue */
  --steel-soft: #EAF1F8;    /* light steel tint */
  --accent: #F0862B;        /* industrial orange CTA */
  --accent-dark: #D26E14;
  --ink: #26313D;           /* body text */
  --muted: #5B6B7B;         /* secondary text */
  --line: #DDE5EC;          /* hairlines */
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --shadow-sm: 0 1px 3px rgba(11, 43, 75, 0.10);
  --shadow-md: 0 6px 24px rgba(11, 43, 75, 0.12);
  --radius: 4px;
  --header-h: 72px;
  --container: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--navy); }
ul, ol { list-style: none; }

h1, h2, h3 { line-height: 1.25; color: var(--navy); font-weight: 700; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }

.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(11, 43, 75, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.scrolled {
  background: #0B2B4B;
  box-shadow: var(--shadow-md);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.brand-light .brand-mark { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, 0.6); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; }
.nav-link {
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-link.active { color: #fff; background: rgba(30, 92, 151, 0.55); }
.nav-cta { padding: 10px 20px; font-size: 0.85rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy) url("../images/workshop-hall.jpg") center 30% / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 43, 75, 0.94) 0%, rgba(11, 43, 75, 0.82) 45%, rgba(11, 43, 75, 0.55) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: var(--header-h); padding-bottom: 60px; }

.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 18em;
  margin-bottom: 20px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 44em;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero split: copy left, bearing product visual right */
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero-visual { position: relative; width: 100%; max-width: 520px; justify-self: end; }
.hero-visual-main {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.hero-visual-main img { display: block; width: 100%; height: auto; }
.hero-visual-main figcaption {
  padding: 12px 18px;
  background: #fff;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}
.hero-visual-float {
  position: absolute;
  left: -30px;
  bottom: 46px;
  margin: 0;
  width: clamp(110px, 32%, 160px);
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.hero-visual-float img { display: block; width: 100%; height: auto; border-radius: 8px; }
.hero-badge {
  position: absolute;
  top: -16px;
  right: -8px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-rule {
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin: 18px auto 0;
  border-radius: 2px;
}
.section-desc { margin-top: 18px; color: var(--muted); }

/* ---------- About ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.about-text p { margin-bottom: 18px; }
.about-text strong { color: var(--navy); }
.quality-motto {
  border-left: 4px solid var(--accent);
  background: var(--steel-soft);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
  font-weight: 600;
}

.about-media { display: flex; flex-direction: column; gap: 20px; }
.media-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.media-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-frame figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.cert-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 12px;
  align-items: stretch;
}
.cert-strip img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.cert-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: var(--navy);
  border-radius: var(--radius);
}
.cert-note strong { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; }
.cert-note span { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; line-height: 1.5; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 43, 75, 0.85));
  pointer-events: none;
}

.gallery-head { text-align: center; margin-bottom: 28px; }
.gallery-head h3 { font-size: 1.3rem; margin-bottom: 6px; }
.gallery-head p { color: var(--muted); font-size: 0.92rem; }
.product-gallery { margin-bottom: 64px; }

/* ---------- Timeline ---------- */
.timeline-wrap { border-top: 1px solid var(--line); padding-top: 56px; }
.timeline-title { text-align: center; font-size: 1.4rem; margin-bottom: 40px; }
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 2px solid var(--line);
}
.timeline-item { position: relative; padding: 0 0 34px 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--steel-soft);
  padding: 2px 12px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.timeline-item p { color: var(--muted); }
.timeline-item strong { color: var(--navy); }

/* ---------- Banner strip ---------- */
.banner-strip { line-height: 0; }
.banner-strip img { width: 100%; height: 220px; object-fit: cover; object-position: center 35%; }

/* ---------- Products: tabs ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 40px;
}
.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.tab-btn .tab-sub {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tab-btn:hover { border-color: var(--steel); }
.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tab-btn.active .tab-sub { color: var(--accent); }

.tab-panel { animation: panelIn 0.35s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel-text p { color: var(--muted); }
.panel-text strong { color: var(--navy); }
.panel-img { margin-bottom: 18px; }
.panel-img img { aspect-ratio: 4 / 3; }

/* Spec table */
.table-wrap { overflow-x: auto; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 380px;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  font-size: 1rem;
}
.spec-table thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.spec-table tbody th {
  font-weight: 700;
  color: var(--steel);
  white-space: nowrap;
}
.spec-table tbody td, .spec-table tbody th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.spec-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.spec-table tbody tr { transition: background-color 0.15s ease; }
.spec-table tbody tr:hover { background: var(--steel-soft); }

/* Series overview figure */
.series-overview {
  margin: 0 auto 48px;
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.series-overview img { width: 100%; object-fit: cover; }
.series-overview figcaption {
  padding: 10px 16px;
  font-size: 0.84rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Variants ---------- */
.variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0 64px;
}
.variant-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--steel);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.variant-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--steel); letter-spacing: 0.04em; }
.variant-card p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Applications ---------- */
.applications {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.applications h3 { text-align: center; font-size: 1.3rem; margin-bottom: 32px; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.app-item:hover { border-color: var(--steel); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.app-icon { width: 38px; height: 38px; color: var(--steel); }
.app-icon svg { width: 100%; height: 100%; }

/* ---------- Services ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--steel-soft);
}
.service-card > p { color: var(--muted); margin-bottom: 16px; }
.service-card strong { color: var(--navy); }

.cert-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: auto;
}
.cert-cards:has(.cert-card:only-child),
.cert-cards[data-count="1"] { grid-template-columns: 1fr; }
.cert-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.cert-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}
.cert-card:hover img { transform: scale(1.04); }
.cert-card figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  border-top: 1px solid var(--line);
}

/* 3-image R&D card: stack third image full width */
.cert-cards .cert-card:nth-child(3) { grid-column: 1 / -1; }
.cert-cards .cert-card:nth-child(3) img { height: 150px; object-position: center; }

.service-cta-card {
  background: var(--navy);
  border-color: var(--navy);
  align-items: flex-start;
  justify-content: center;
}
.service-cta-card h3 { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.15); }
.service-cta-card p { color: rgba(255, 255, 255, 0.8); }
.service-cta-card .btn { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--steel) url("../images/production-line.jpg") center / cover no-repeat;
  position: relative;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 43, 75, 0.85);
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.8); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  font-style: normal;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.contact-row {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
}
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--steel-soft);
  border-radius: 50%;
  color: var(--steel);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-row h3 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.contact-row p { color: var(--muted); font-size: 0.95rem; }
.contact-row a { font-weight: 600; }

/* Contact card: grouped blocks (Manufacturer / Export Company) */
.contact-group + .contact-group .contact-block-title,
.contact-group + .contact-row { border-top: 1px solid var(--line); }

.contact-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--steel-soft);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact-block-title::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

/* Text column must be allowed to shrink so long company names wrap */
.contact-row > div { min-width: 0; }
.contact-row h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-row h4.contact-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}
.contact-row p { overflow-wrap: break-word; }
.contact-role { font-size: 0.88rem; font-weight: 400; color: var(--muted); }
.contact-wa {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--accent-dark);
}
.contact-wa:hover { color: var(--accent); text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-office {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}
.form-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-field label span { color: var(--accent); }
.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--steel);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 92, 151, 0.15);
}
.form-field input.invalid,
.form-field textarea.invalid { border-color: #C0392B; background: #FDF3F2; }

.form-status {
  min-height: 22px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.form-status.ok { color: #1E7E34; font-weight: 600; }
.form-status.err { color: #C0392B; font-weight: 600; }

/* ---------- Websites & online showrooms ---------- */
.link-block { margin-top: 56px; }
.link-block-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.link-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.link-card a:hover {
  border-color: var(--steel);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--navy);
}
.link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.link-domain {
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.link-card svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.footer-brand p { margin-top: 16px; max-width: 30em; }
.footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.75); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { line-height: 1.6; }
.footer-contact strong { color: #fff; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-export { margin-top: 6px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
  z-index: 90;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 25, 42, 0.92);
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  max-width: min(920px, 86vw);
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-top: 14px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-close {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 1.2rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(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; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tab-panel { animation: none; }
  .gallery-item, .gallery-item img, .cert-card img { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-self: start; max-width: 540px; }
  .hero-visual-float { left: -16px; bottom: 40px; }
}

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0B2B4B;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 99;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; gap: 2px; width: 100%; }
  .nav-link { padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta { margin-top: 16px; width: 100%; }

  .section { padding: 72px 0; }
  .panel-grid { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .variants { grid-template-columns: 1fr; }
  .lightbox-nav { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .service-cards { grid-template-columns: 1fr; }
  .cert-strip { grid-template-columns: 1fr 1fr; }
  .cert-note { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 18px 36px; }
  .tabs { grid-template-columns: 1fr; max-width: none; }
  .tab-btn { flex-direction: row; justify-content: space-between; }
  .hero { min-height: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-visual-float { left: -6px; bottom: 28px; width: 96px; }
  .hero-badge { top: -13px; right: 0; font-size: 0.72rem; padding: 7px 12px; }
  .hero-visual-main figcaption { font-size: 0.78rem; padding: 10px 12px; }
  .banner-strip img { height: 120px; }
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .lightbox { padding: 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .link-grid { grid-template-columns: 1fr; }
  .link-block { margin-top: 40px; }
  .contact-block-title { padding: 12px 18px; }
  .contact-row { padding: 18px; gap: 14px; }
  .contact-icon { flex: 0 0 40px; width: 40px; height: 40px; }
}
