:root {
  --ink: #222;
  --muted: #666;
  --line: #e8e8e8;
  --paper: #fff;
  --soft: #f5f5f5;
  --brand: #9a1f24;
  --brand-dark: #74171b;
  --footer: #202020;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.7;
}

body[dir="rtl"] {
  direction: rtl;
  font-family: Arial, "Tahoma", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
  color: #777;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.phone {
  color: var(--brand);
  font-weight: 700;
}

.nav-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  min-width: 310px;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
  line-height: 1.25;
}

.brand strong {
  font-size: 20px;
  font-weight: 700;
}

.brand em {
  margin-top: 2px;
  color: #777;
  font-size: 12px;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.nav-links {
  display: flex;
  margin-left: auto;
  align-items: stretch;
  align-self: stretch;
}

body[dir="rtl"] .nav-links {
  margin-right: auto;
  margin-left: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #333;
  font-size: 16px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.language-select {
  height: 36px;
  min-width: 96px;
  border: 1px solid var(--line);
  background: #fff;
  color: #333;
  padding: 0 8px;
  font-size: 14px;
}

.banner {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.banner img {
  width: 100%;
  height: min(680px, 54vw);
  min-height: 360px;
  object-fit: cover;
  object-position: center 64%;
}

.carousel-track {
  position: relative;
  height: min(680px, 54vw);
  min-height: 360px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.banner::after,
.sub-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.14) 58%, rgba(0, 0, 0, 0));
}

body[dir="rtl"] .banner::after,
body[dir="rtl"] .sub-banner::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.14) 58%, rgba(0, 0, 0, 0));
}

.banner-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(32px, calc((100vw - 1200px) / 2));
  max-width: 620px;
  transform: translateY(-50%);
  color: #fff;
}

body[dir="rtl"] .banner-copy {
  right: max(32px, calc((100vw - 1200px) / 2));
  left: auto;
}

.banner-copy p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  text-transform: uppercase;
}

.banner-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
}

.banner-copy span {
  display: block;
  max-width: 540px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.carousel-dots {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100vw - 1200px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

body[dir="rtl"] .carousel-dots {
  right: auto;
  left: max(32px, calc((100vw - 1200px) / 2));
}

.carousel-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dots button.active {
  width: 52px;
  background: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.products-preview .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.products-preview .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

.product-grid .reveal:nth-child(2),
.contact-section .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.product-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.product-grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.product-grid .reveal:nth-child(5) {
  transition-delay: 0.08s;
}

.product-grid .reveal:nth-child(6) {
  transition-delay: 0.16s;
}

.product-grid .reveal:nth-child(7) {
  transition-delay: 0.24s;
}

.product-grid .reveal:nth-child(8) {
  transition-delay: 0.32s;
}

.section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-title {
  margin-bottom: 38px;
  text-align: center;
}

.section-title h2 {
  position: relative;
  margin: 0;
  padding-bottom: 14px;
  font-size: 34px;
  line-height: 1.2;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 54px;
  height: 3px;
  background: var(--brand);
  transform: translateX(-50%);
}

.section-title p {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 26px;
}

.products-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 62%;
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card h3 {
  margin: 0;
  padding: 17px 18px;
  font-size: 18px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.about-band {
  background: var(--soft);
}

.about-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  padding: 74px 0;
}

.about-home h2,
.company-copy h2,
.contact-box h2 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.25;
}

.about-home p,
.company-copy p,
.contact-box p {
  margin: 0 0 14px;
  color: var(--muted);
}

.about-home img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 62%;
}

.more-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 18px;
  padding: 0 24px;
  background: var(--brand);
  color: #fff;
}

.more-link:hover {
  background: var(--brand-dark);
}

.sub-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  color: #fff;
}

.sub-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
}

body[data-page="contact"] .sub-banner img {
  object-position: center 24%;
}

body[data-page="about"] .sub-banner img {
  object-position: center 64%;
}

.sub-banner > div {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(32px, calc((100vw - 1200px) / 2));
  width: min(620px, calc(100% - 64px));
  transform: translateY(-50%);
}

body[dir="rtl"] .sub-banner > div {
  right: max(32px, calc((100vw - 1200px) / 2));
  left: auto;
}

.sub-banner h1 {
  margin: 0;
  font-size: 46px;
}

.sub-banner p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.company-section,
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.info-list div {
  padding: 18px 20px;
  background: var(--soft);
  border-left: 4px solid var(--brand);
}

body[dir="rtl"] .info-list div {
  border-right: 4px solid var(--brand);
  border-left: 0;
}

.info-list strong,
.info-list span {
  display: block;
}

.info-list span {
  margin-top: 4px;
  color: var(--muted);
}

.company-images {
  display: grid;
  gap: 20px;
}

.company-images img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center 62%;
  border: 1px solid var(--line);
}

.contact-box {
  min-height: 310px;
  padding: 34px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.qr {
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin-top: 18px;
  border: 8px solid #fff;
}

.is-zoomable {
  cursor: zoom-in;
}

.is-previewing {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(0, 0, 0, 0.82);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 92px);
  object-fit: contain;
  background: #fff;
}

.image-lightbox__close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

body[dir="rtl"] .image-lightbox__close {
  right: auto;
  left: 24px;
}

.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner strong {
  color: #fff;
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    order: 5;
    flex-direction: column;
    align-self: auto;
    margin: 0;
    border-top: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }

  .language-select {
    order: 4;
  }

  .products-preview,
  .product-grid,
  .about-home,
  .company-section,
  .contact-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 0;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand em {
    display: none;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .banner img {
    min-height: 420px;
  }

  .carousel-track {
    min-height: 420px;
  }

  .banner-copy h1 {
    font-size: 34px;
  }

  .banner-copy span,
  .sub-banner p {
    font-size: 16px;
  }

  .section {
    padding: 54px 0;
  }

  .products-preview,
  .product-grid,
  .about-home,
  .company-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .product-card img,
  .about-home img {
    height: 260px;
  }

  .sub-banner {
    height: 280px;
  }

  .sub-banner h1 {
    font-size: 36px;
  }
}
