:root {
  --ink: #1e252b;
  --muted: #63707a;
  --line: #dde3e7;
  --paper: #f5f7f8;
  --white: #ffffff;
  --black: #11171c;
  --yellow: #f2c230;
  --yellow-strong: #d8a400;
  --blue: #155d72;
  --shadow: 0 18px 50px rgba(16, 24, 30, 0.13);
  --menu-font-size: 15px;
  --menu-font-weight: 800;
  --menu-line-height: 1.2;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

body.dark-mode {
  --ink: #f1f5f7;
  --muted: #aab6bd;
  --line: #34414a;
  --paper: #11171c;
  --white: #192127;
  --blue: #78c7de;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

body.dark-mode .header {
  background: rgba(25, 33, 39, 0.96);
}

body.dark-mode .nav,
body.dark-mode .icon-btn {
  color: #f1f5f7;
}

body.dark-mode .brand-icon,
body.dark-mode .button.primary,
body.dark-mode .contact button {
  color: #11171c;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 66px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--black);
  background: var(--yellow);
  border-radius: 4px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.3vw, 34px);
  min-width: 0;
  color: var(--black);
  font-size: var(--menu-font-size);
  font-weight: var(--menu-font-weight);
  line-height: var(--menu-line-height);
  white-space: nowrap;
}

.nav-link {
  position: relative;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav a {
  position: relative;
}

.nav-link.is-active,
.nav a.is-active,
.nav a:hover,
.nav-link:hover {
  color: var(--yellow-strong);
}

.nav-link.is-active::after,
.nav-link[aria-expanded="true"]::after,
.nav-link:hover::after,
.nav a:hover::after,
.nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--black);
  content: "";
}

body.dark-mode .nav-link.is-active::after,
body.dark-mode .nav-link[aria-expanded="true"]::after,
body.dark-mode .nav a.is-active::after {
  background: #f1f5f7;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.icon-btn {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--black);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--paper);
}

.icon-btn.is-active {
  background: var(--yellow);
  color: #11171c;
}

.icon-btn svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-menu {
  position: relative;
}

.language-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 142px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.language-panel button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.language-panel button:hover {
  background: var(--paper);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  padding: 110px 18px 30px;
  background: rgba(11, 16, 20, 0.68);
}

.search-box {
  width: min(680px, 100%);
  padding: 26px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.search-box input {
  margin: 8px 0 16px;
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-results a,
.search-results span {
  display: block;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.close-btn {
  float: right;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.inquiry-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(390px, 92vw);
  height: 100vh;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.drawer-head h2 {
  margin: 0;
  font-size: 28px;
}

.inquiry-drawer ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 20px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #11171c;
  background: var(--yellow);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.products-mega {
  position: sticky;
  top: 66px;
  z-index: 19;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 32px rgba(16, 24, 30, 0.12);
}

.subnav-mega {
  position: sticky;
  top: 66px;
  z-index: 19;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 24px rgba(16, 24, 30, 0.08);
}

.subnav-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  overflow-x: auto;
  color: var(--ink);
  font-size: var(--menu-font-size);
  font-weight: var(--menu-font-weight);
  line-height: var(--menu-line-height);
  white-space: nowrap;
}

.subnav-row a {
  position: relative;
  padding: 16px 0 16px;
}

.subnav-row a:hover,
.subnav-row a:first-child {
  color: var(--yellow-strong);
}

.subnav-row a:hover::after,
.subnav-row a:first-child::after {
  position: absolute;
  right: -3px;
  bottom: 17px;
  left: -3px;
  height: 2px;
  background: var(--black);
  content: "";
}

.mega-heading {
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--yellow);
  background: #1d1d1d;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.mega-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: var(--white);
}

.mega-content a {
  display: grid;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mega-content a:first-child {
  border-left: 1px solid var(--line);
}

.mega-content img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--white);
}

.mega-content strong {
  display: none;
}

.mega-content span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.product-subpanel {
  color: var(--black);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.product-subpanel[hidden] {
  display: none !important;
}

.product-subtabs {
  display: flex;
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  min-height: 78px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.product-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(56px, 10vw, 150px);
  padding: 24px clamp(18px, 5vw, 72px) 28px;
}

.powertrain-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-subtabs a,
.product-link-grid a,
.product-simple-panel a {
  position: relative;
  width: fit-content;
  font-size: var(--menu-font-size);
  font-weight: var(--menu-font-weight);
  line-height: var(--menu-line-height);
}

.product-subtabs a:hover,
.product-subtabs a.is-active,
.product-link-grid a:hover,
.product-simple-panel a:hover {
  color: var(--yellow-strong);
}

.product-subtabs a:hover::after,
.product-subtabs a.is-active::after,
.product-link-grid a:hover::after,
.product-simple-panel a:hover::after {
  position: absolute;
  right: -3px;
  bottom: -1px;
  left: -3px;
  height: 2px;
  background: var(--black);
  content: "";
}

.product-simple-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(36px, 8vw, 120px);
  padding: 30px clamp(18px, 5vw, 72px) 34px;
}

.button,
.contact button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.contact button {
  color: var(--black);
  background: var(--yellow);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  padding: 92px clamp(18px, 6vw, 88px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 18, 22, 0.74), rgba(12, 18, 22, 0.34) 44%, rgba(12, 18, 22, 0.08)),
    url("./home-hero.png") center / cover;
}

.hero-content {
  max-width: 760px;
}

.label {
  margin: 0 0 12px;
  color: var(--yellow-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .label {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.company-intro {
  display: grid;
  gap: clamp(54px, 7vw, 96px);
  padding: clamp(48px, 6vw, 88px) clamp(18px, 6vw, 88px);
  background: #f3f5f6;
}

.company-block {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(460px, 1.45fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}

.company-block img {
  order: 2;
}

.company-block p {
  order: 1;
}

.company-block:nth-child(even) {
  grid-template-columns: minmax(460px, 1.45fr) minmax(320px, 0.85fr);
}

.company-block:nth-child(even) img {
  order: 0;
}

.company-block:nth-child(even) p {
  order: 2;
}

.company-block img {
  width: 100%;
  height: clamp(300px, 32vw, 430px);
  object-fit: cover;
}

.company-block p {
  margin: 0;
  padding: 0;
  color: #27323a;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.72;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-info span {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.quick-info strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
}

.section {
  padding: clamp(62px, 8vw, 104px) clamp(18px, 6vw, 88px);
}

.section-title {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-title p,
.product-card p,
.capability-text p,
.capability-list p,
.contact p {
  color: var(--muted);
}

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

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(16, 24, 30, 0.06);
}

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

.product-card div {
  padding: 22px;
}

.product-card a {
  color: var(--blue);
  font-weight: 900;
}

.category-page {
  padding: clamp(42px, 6vw, 80px) clamp(18px, 5vw, 56px);
  background: var(--paper);
  scroll-margin-top: 150px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-bottom: 18px;
  padding: 0 24px 0 34px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 22px;
  font-weight: 800;
}

.home-icon {
  display: inline-grid;
  place-items: center;
  width: 1.1em;
  height: 1.1em;
  margin-right: 2px;
  transform: translateX(6px);
  line-height: 1;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 10.5 12 3l8 7.5V20a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 20v-9.5Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 17v-3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.category-hero {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.category-copy {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  min-height: 624px;
  padding: 88px 86px;
  color: var(--white);
  background: #11171c;
}

.category-copy h2 {
  margin-bottom: 0;
  color: var(--yellow);
  font-size: clamp(52px, 4.7vw, 74px);
  line-height: 1.08;
}

.category-copy p:not(.label) {
  align-self: end;
  margin: 0 0 78px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.65;
}

.category-hero img {
  width: 100%;
  height: 100%;
  min-height: 624px;
  object-fit: cover;
}

.machine-list {
  display: grid;
  gap: clamp(38px, 6vw, 68px);
  margin-top: clamp(42px, 7vw, 82px);
}

.machine-group {
  scroll-margin-top: 150px;
}

.machine-group h3 {
  margin: 0;
  padding-bottom: 20px;
  color: var(--ink);
  border-bottom: 1px solid #c9d0d4;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.machine-item {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(34px, 6vw, 70px) 18px 0;
}

.machine-item img {
  width: min(560px, 88%);
  max-height: 260px;
  object-fit: contain;
}

.attachment-list {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 76px) clamp(22px, 3.4vw, 58px);
  padding-top: clamp(42px, 5vw, 68px);
  border-top: 1px solid #c9d0d4;
}

.attachment-list .machine-item {
  grid-column: span 2;
  gap: clamp(18px, 2vw, 26px);
  align-content: start;
  min-height: 230px;
  padding: 0;
}

.attachment-list .machine-item:nth-child(6) {
  grid-column: 2 / span 2;
}

.attachment-list .machine-item:nth-child(7) {
  grid-column: 4 / span 2;
}

.attachment-list .machine-item:nth-child(8) {
  grid-column: 6 / span 2;
}

.attachment-list .machine-item:nth-child(9) {
  grid-column: 8 / span 2;
}

.attachment-list .machine-item img {
  width: min(170px, 92%);
  height: 130px;
  object-fit: contain;
}

.attachment-list .machine-item span {
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.2;
}

.powertrain-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
  margin-top: clamp(42px, 7vw, 82px);
  padding: 0;
  background: #f0f0f0;
}

.powertrain-item {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  min-height: 520px;
  padding: clamp(34px, 6vw, 70px) 28px 28px;
  background: var(--white);
}

.powertrain-item img {
  align-self: center;
  width: min(430px, 86%);
  max-height: 330px;
  object-fit: contain;
}

.powertrain-item span {
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.machine-item span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.cases {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 46px;
  align-items: center;
  color: var(--white);
  background: var(--black);
}

.capability-text p,
.capability-list p {
  color: rgba(255, 255, 255, 0.74);
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability-list article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.capability-list strong {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 24px;
}

.quality {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  align-items: stretch;
  background: var(--white);
}

.quality img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.quality div {
  padding: clamp(38px, 6vw, 72px);
}

.quality ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding-left: 22px;
  color: #3c4850;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 48px;
}

.contact-box {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-box span {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #c8d2d8;
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

#formMessage {
  min-height: 24px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 6vw, 88px);
  color: var(--white);
  background: #0e1418;
}

@media (max-width: 920px) {
  .header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .products-mega,
  .subnav-mega {
    top: 118px;
  }

  .mega-content {
    grid-template-columns: 1fr;
  }

  .product-subtabs {
    overflow-x: auto;
  }

  .product-link-grid,
  .powertrain-link-grid {
    grid-template-columns: 1fr;
  }

  .header-tools {
    margin-left: auto;
  }

  .quick-info,
  .product-grid,
  .company-block,
  .company-block:nth-child(even),
  .attachment-list,
  .powertrain-list,
  .capability,
  .quality,
  .contact {
    grid-template-columns: 1fr;
  }

  .company-block:nth-child(even) img {
    order: 0;
  }

  .company-block:nth-child(even) p {
    order: 0;
  }

  .attachment-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attachment-list .machine-item,
  .attachment-list .machine-item:nth-child(6),
  .attachment-list .machine-item:nth-child(7),
  .attachment-list .machine-item:nth-child(8),
  .attachment-list .machine-item:nth-child(9) {
    grid-column: auto;
  }

  .quality img {
    min-height: 320px;
  }
}

@media (max-width: 580px) {
  .category-hero {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .products-mega,
  .subnav-mega {
    top: 106px;
  }

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

  .attachment-list .machine-item,
  .attachment-list .machine-item:nth-child(6),
  .attachment-list .machine-item:nth-child(7),
  .attachment-list .machine-item:nth-child(8),
  .attachment-list .machine-item:nth-child(9) {
    grid-column: auto;
  }

  .subnav-row {
    gap: 24px;
    min-height: 62px;
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 590px;
    padding-top: 72px;
  }

  .powertrain-item {
    min-height: 420px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
