:root {
  --page: #ffffff;
  --panel: #f7f4ee;
  --text: #333333;
  --heading: #222222;
  --wood: #967249;
  --wood-dark: #755536;
  --button: #444444;
  --line: #e6dfd4;
  --muted: #6f6a63;
  --shadow: 0 18px 40px rgba(50, 43, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--heading);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wood);
  border-radius: 4px;
  color: var(--wood);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--heading);
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--heading);
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--wood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--heading);
}

.hero {
  min-height: calc(100svh - 112px);
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.hero-home,
.hero-about {
  background-image:
    linear-gradient(90deg, rgba(24, 22, 19, 0.72), rgba(24, 22, 19, 0.28)),
    url("../images/factory-workshop.webp");
}

.hero-content {
  max-width: 760px;
  padding-block: 80px;
}

.hero-content.center {
  margin-inline: auto;
  text-align: center;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: inherit;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
}

.hero-copy,
.page-hero p {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  background: var(--panel);
  padding: 86px 0 72px;
}

.page-hero h1 {
  color: var(--heading);
}

.page-hero p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--wood);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e7d7c0;
}

.section {
  padding: 88px 0;
}

.section-tint {
  background: var(--panel);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.copy-block h2,
.mission h2,
.cta-inner h2,
.terms h2,
.detail-copy h1,
.price-panel h2,
.form-layout h2,
.contact-panel h2 {
  margin: 0;
  color: var(--heading);
  font-size: 28px;
  line-height: 1.25;
}

.section-heading p + h2 {
  margin-top: 4px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button-row.center {
  justify-content: center;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 20px;
  color: #fff;
  background: var(--button);
  font-weight: 700;
  line-height: 1.2;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn:hover {
  background: var(--wood-dark);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--button);
}

.btn-secondary {
  color: var(--heading);
  background: #fff;
  border-color: var(--line);
}

.btn-secondary:hover {
  color: #fff;
  border-color: var(--wood-dark);
}

.btn-light {
  color: var(--heading);
  background: #fff;
}

.btn-outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.62);
}

.btn-outline-light:hover {
  border-color: #fff;
}

.btn-small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
}

.category-grid,
.product-grid,
.custom-grid,
.feature-grid,
.process-grid,
.advantage-grid,
.stats-grid,
.logo-wall,
.case-gallery {
  display: grid;
  gap: 22px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card > span {
  display: block;
  padding: 16px;
  color: var(--heading);
  font-weight: 800;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.process-card,
.custom-card,
.price-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-card {
  padding: 24px;
}

.feature-card h3,
.process-card h3,
.custom-card h2,
.product-card.listing h2 {
  margin: 14px 0 8px;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.3;
}

.feature-card p,
.process-card p,
.custom-card p,
.product-card.listing p,
.copy-block p,
.mission p,
.price-panel p,
.form-layout p,
.contact-panel p,
.terms p,
.cta-inner p {
  color: var(--muted);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--wood);
  background: var(--panel);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid.detailed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
  padding: 22px;
}

.process-card strong {
  display: block;
  color: var(--wood);
  font-size: 32px;
  line-height: 1;
}

.process-card span {
  display: block;
  margin-top: 12px;
  color: var(--heading);
  font-weight: 800;
}

.process-card.with-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 18px 0 0;
  border-radius: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.image-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.image-frame img,
.custom-card img,
.case-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.copy-block p {
  margin: 18px 0 0;
}

.mission h2 {
  text-align: center;
}

.mission p {
  margin: 20px 0 0;
}

.center-text {
  text-align: center;
}

.advantage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advantage-grid article {
  min-height: 112px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  color: var(--heading);
  font-weight: 800;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}

.stats-grid strong {
  display: block;
  color: var(--wood);
  font-size: 36px;
  line-height: 1.1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--heading);
  font-weight: 700;
}

.logo-wall {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.logo-wall span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.cta-band {
  background: var(--button);
  color: #fff;
  padding: 76px 0;
}

.cta-inner {
  max-width: 820px;
  text-align: center;
}

.cta-inner h2 {
  color: #fff;
}

.cta-inner p {
  margin: 16px auto 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-inner .button-row {
  justify-content: center;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card.listing {
  display: flex;
  flex-direction: column;
}

.product-card.listing div {
  padding: 18px;
}

.product-cn {
  margin: 0 0 4px;
  color: var(--wood);
  font-weight: 800;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.product-price,
.detail-price strong {
  color: var(--wood-dark);
  font-weight: 800;
}

.detail-price {
  margin: 18px 0 0;
  color: var(--heading);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: start;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbs button.active {
  border-color: var(--wood);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.spec-list,
.contact-list {
  margin: 24px 0 0;
}

.spec-list div,
.contact-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt,
.contact-list dt {
  color: var(--heading);
  font-weight: 800;
}

.spec-list dd,
.contact-list dd {
  margin: 0;
  color: var(--muted);
}

.price-panel {
  padding: 28px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.price-row strong {
  color: var(--heading);
}

.custom-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.custom-card {
  overflow: hidden;
}

.custom-card h2,
.custom-card p {
  padding-inline: 18px;
}

.custom-card p {
  padding-bottom: 18px;
}

.case-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-gallery img {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.map-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.map-panel iframe {
  width: 100%;
  height: 430px;
  display: block;
  border: 0;
}

.contact-panel {
  padding: 28px;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--heading);
  font-weight: 700;
}

.inquiry-form label:has(textarea),
.inquiry-form button,
.form-status {
  grid-column: 1 / -1;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 11px 12px;
  color: var(--text);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  outline: 2px solid rgba(150, 114, 73, 0.28);
  border-color: var(--wood);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--wood-dark);
  font-weight: 700;
}

.site-footer {
  background: #25221f;
  color: rgba(255, 255, 255, 0.78);
  padding: 46px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 36px;
  align-items: start;
}

.footer-brand .brand-mark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
}

.footer-brand strong {
  color: #fff;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.58);
}

.footer-nav {
  display: grid;
  gap: 8px;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--wood);
  color: #fff;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.whatsapp-float:hover {
  background: var(--wood-dark);
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .category-grid,
  .feature-grid.three,
  .feature-grid.six,
  .process-grid.compact,
  .process-grid.detailed,
  .advantage-grid,
  .stats-grid,
  .logo-wall,
  .product-grid,
  .custom-grid,
  .case-gallery,
  .split,
  .detail-grid,
  .contact-grid,
  .form-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-layout,
  .detail-grid,
  .contact-grid,
  .split {
    gap: 34px;
  }

  .footer-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 66px;
  }

  .site-nav {
    top: 66px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: calc(100svh - 104px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 62px 0 54px;
  }

  .category-grid,
  .feature-grid.three,
  .feature-grid.six,
  .process-grid.compact,
  .process-grid.detailed,
  .advantage-grid,
  .stats-grid,
  .logo-wall,
  .product-grid,
  .custom-grid,
  .case-gallery,
  .split,
  .detail-grid,
  .contact-grid,
  .form-layout,
  .footer-grid,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .button-row,
  .button-row.center {
    align-items: stretch;
  }

  .button-row .btn {
    width: 100%;
  }

  .spec-list div,
  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .map-panel iframe {
    height: 320px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}
