:root {
  --ink: #111;
  --muted: #686868;
  --line: #e1e1e1;
  --panel: #f7f7f7;
  --soft: #f2f4f3;
  --accent: #16bfa8;
  --accent-dark: #0a8e7e;
  --white: #fff;
  --max: 1260px;
  --header: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Arial,
    Helvetica Neue,
    Helvetica,
    sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus,
a:focus,
select:focus,
input:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.top-strip {
  height: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 34px;
  background: #efefef;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.top-strip span:nth-child(2) {
  justify-self: center;
}

.top-strip a {
  justify-self: end;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 38px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-left,
.header-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  justify-content: flex-end;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a,
.nav-product {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  padding: 10px 0;
}

.nav-product::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.brand-mark {
  width: min(260px, 36vw);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  max-height: 38px;
  object-fit: contain;
}

.icon-btn,
.mobile-menu-btn {
  border: 0;
  background: transparent;
  color: #111;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.search-glyph {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #111;
  border-radius: 50%;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  background: #111;
  transform: rotate(45deg);
  transform-origin: left center;
}

.mobile-menu-btn {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
}

.mega-menu,
.mobile-panel,
.search-panel {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 25;
  display: none;
  background: #fff;
  border-bottom: 1px solid #111;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.08);
}

.mega-menu.is-open,
.mobile-panel.is-open,
.search-panel.is-open {
  display: block;
}

.mega-menu {
  top: calc(var(--header) + 24px);
  padding: 28px 34px 30px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
  max-width: 1460px;
  margin: 0 auto;
}

.mega-column h3 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #4b4b4b;
  font-size: 15px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.mega-column h3 a {
  color: inherit;
}

.mega-product-link {
  display: block;
  padding: 6px 0;
  color: #1f2933;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.45;
  text-transform: uppercase;
}

.mega-column h3 a:hover,
.mega-product-link:hover,
.main-nav a:hover,
.nav-product:hover {
  color: var(--accent-dark);
}

.mobile-panel {
  top: calc(var(--header) + 24px);
  padding: 18px 24px 26px;
}

.mobile-panel a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.mobile-panel .mobile-category {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.search-panel {
  top: calc(var(--header) + 24px);
  padding: 24px 38px 26px;
}

.search-box {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 18px;
}

.search-box label {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #111;
  outline: none;
  padding: 13px 0;
  font-size: 28px;
}

.search-results {
  max-width: 860px;
  margin: 20px auto 0;
  display: grid;
  gap: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px;
  background: var(--panel);
}

.search-result img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
}

.search-result strong {
  display: block;
  font-size: 15px;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

main {
  min-height: 65vh;
}

main:focus {
  outline: none;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 28px;
}

.section-tight {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 28px;
}

.hero {
  position: relative;
  height: min(650px, calc(100vh - 230px));
  min-height: 500px;
  overflow: hidden;
  background: #111;
}

.hero + .section {
  padding-top: 42px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 360ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 9vw, 138px);
  top: 50%;
  z-index: 2;
  width: min(560px, 74vw);
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.38);
}

.hero-copy.dark {
  color: #0b1733;
  text-shadow: none;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p {
  width: min(520px, 100%);
  margin: 0 0 34px;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.35;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
}

.btn-light {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
}

.contact-card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 32px 36px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.contact-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
}

.contact-close::before,
.contact-close::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 19px;
  width: 16px;
  height: 2px;
  background: #111;
}

.contact-close::before {
  transform: rotate(45deg);
}

.contact-close::after {
  transform: rotate(-45deg);
}

.contact-logo {
  width: min(250px, 76%);
  max-height: 54px;
  margin: 6px auto 22px;
  object-fit: contain;
}

.contact-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-lines a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #111;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hero-nav {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  pointer-events: auto;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-arrow::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.hero-arrow.prev::before {
  transform: translateX(3px) rotate(-45deg);
}

.hero-arrow.next::before {
  transform: translateX(-3px) rotate(135deg);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  background: rgba(255, 255, 255, 0.54);
}

.hero-dot.is-active {
  background: #111;
}

.section-heading {
  margin: 0 0 24px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.section-subtitle {
  max-width: 760px;
  margin: -8px auto 42px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.category-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.category-tile:hover img {
  transform: scale(1.035);
}

.category-tile-copy {
  position: absolute;
  left: 34px;
  top: 50%;
  width: min(360px, calc(100% - 68px));
  transform: translateY(-50%);
}

.category-tile-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  text-transform: uppercase;
}

.category-tile-copy p {
  margin: 0 0 22px;
  color: #505050;
  font-size: 16px;
}

.featured-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.product-card {
  position: relative;
  display: block;
  min-width: 0;
}

.product-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid transparent;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.product-card:hover .product-card-image {
  border-color: var(--line);
  transform: translateY(-2px);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card h3 {
  min-height: 54px;
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
}

.product-card .price {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.category-header {
  padding: 48px 24px 28px;
  border-bottom: 2px solid #111;
  text-align: center;
}

.category-header h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 400;
}

.category-tools {
  border-bottom: 2px solid #111;
}

.category-tools-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.product-count {
  font-size: 20px;
  font-style: italic;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.sort-control select {
  border: 0;
  border-bottom: 1px solid #111;
  background: #fff;
  padding: 8px 26px 8px 0;
  outline: none;
}

.category-products {
  max-width: 1500px;
  margin: 0 auto;
  padding: 52px 36px 82px;
}

.product-detail {
  max-width: 1500px;
  margin: 0 auto;
  padding: 62px 36px 90px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: start;
}

.gallery-main {
  display: grid;
  place-items: center;
  min-height: 610px;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: min(70vh, 610px);
  object-fit: contain;
}

.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.thumb {
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
}

.thumb.is-active {
  border-color: #111;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-info h1 {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 4px solid #111;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.detail-price {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 900;
}

.detail-description {
  margin: 0 0 32px;
  color: #222;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

.detail-info .btn {
  margin: 0 0 30px;
}

.detail-panel {
  margin-top: 0;
  padding-top: 22px;
  border-top: 3px solid #111;
}

.detail-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
  text-transform: uppercase;
}

.detail-list {
  margin: 0;
  padding-left: 22px;
}

.detail-list li {
  margin: 0 0 14px;
  color: #303030;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

.breadcrumb {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.about-hero {
  padding: 48px 24px 90px;
  text-align: center;
}

.about-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  font-weight: 400;
}

.about-hero-media {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.about-hero-media img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.about-hero-media span {
  position: absolute;
  left: 50%;
  top: 62%;
  width: min(90%, 720px);
  color: #fff;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%);
}

.about-copy {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px 84px;
}

.about-copy h2,
.history-section h2,
.factory-section h2 {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #bdbdbd;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-copy p {
  max-width: 880px;
  margin: 0 auto;
  color: #737373;
  font-size: 19px;
  line-height: 1.7;
}

.about-copy p + p {
  margin-top: 18px;
}

.history-section,
.factory-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 86px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.history-card {
  background: #fff;
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}

.history-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.history-card-content {
  padding: 20px 22px 26px;
}

.history-card h3 {
  margin: 0 0 9px;
  font-size: 28px;
}

.history-card p {
  margin: 0;
  color: #707070;
  font-size: 15px;
  line-height: 1.55;
}

.factory-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 22px 0 22px 56px;
  border-bottom: 1px solid #bdbdbd;
  color: #666;
  font-size: 18px;
  line-height: 1.7;
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  margin-top: 70px;
}

.factory-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.social-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.site-footer {
  background: #090909;
  color: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 28px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 44px;
  align-items: start;
}

.footer-logo {
  width: 230px;
  margin-bottom: 26px;
}

.footer-inner h3 {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-inner p,
.footer-inner a {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
}

.empty-state {
  padding: 60px 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1000px) {
  .site-header {
    padding: 0 18px;
  }

  .main-nav {
    gap: 18px;
  }

  .mega-grid,
  .featured-grid,
  .product-grid,
  .history-grid,
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    min-height: 460px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-strip {
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    min-height: 24px;
    padding: 4px 12px;
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  .top-strip span:first-child,
  .top-strip a {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto 1fr;
    height: 64px;
  }

  :root {
    --header: 64px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .brand-mark {
    width: min(210px, 44vw);
  }

  .mega-menu {
    display: none !important;
  }

  .search-panel {
    padding: 20px;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-box input {
    font-size: 22px;
  }

  .search-result {
    grid-template-columns: 54px 1fr;
  }

  .search-result .price {
    grid-column: 2;
  }

  .hero {
    height: calc(100vh - 220px);
    min-height: 420px;
  }

  .hero-copy {
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero-arrow {
    display: none;
  }

  .section,
  .section-tight,
  .category-products,
  .product-detail {
    padding-left: 20px;
    padding-right: 20px;
  }

  .category-tiles,
  .featured-grid,
  .product-grid,
  .history-grid,
  .social-grid,
  .factory-grid {
    grid-template-columns: 1fr;
  }

  .category-tools-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px;
  }

  .category-tile {
    aspect-ratio: 16 / 10;
  }

  .gallery-main {
    min-height: 330px;
  }

  .gallery-main img {
    height: 330px;
  }

  .factory-intro {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
}
