:root {
  --navy: #071827;
  --slate: #667381;
  --line: #dde3ea;
  --surface: #f5f7fa;
  --accent: #e4572e;
  --ink: #101820;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  background: var(--surface);
}

button {
  font: inherit;
}

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

.product-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 250, .94);
  backdrop-filter: blur(16px);
}

.product-header img {
  width: 154px;
  display: block;
}

.product-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.product-switcher {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 1px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.product-switcher a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.product-switcher a:hover,
.product-switcher a.active {
  color: var(--navy);
  background: var(--surface);
}

.product-switcher a.active {
  box-shadow: inset 0 -3px 0 var(--accent);
}

main {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

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

h1 {
  color: var(--navy);
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.06;
  font-weight: 900;
  word-break: keep-all;
}

.product-lead {
  margin-top: 24px;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.75;
  word-break: keep-all;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

button.secondary-button {
  cursor: pointer;
}

.manual-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 24px;
}

.manual-modal.open {
  display: grid;
  place-items: center;
}

.manual-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 39, .72);
}

.manual-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

.manual-modal-panel header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.manual-modal-panel header span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.manual-modal-panel header strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
}

.manual-modal-panel header button {
  min-width: 72px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.manual-content {
  overflow: auto;
  padding: 24px;
}

.manual-intro {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(260px, .65fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.manual-intro > p,
.manual-warning {
  border-radius: 8px;
  background: var(--navy);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

.manual-intro > p {
  padding: 24px;
}

.manual-direction {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.manual-direction article,
.manual-steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 24, 39, .06);
}

.manual-direction article {
  padding: 20px;
}

.manual-photo {
  overflow: hidden;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.manual-photo-hero {
  margin: 0;
}

.manual-photo img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.manual-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.manual-photo-pair .manual-photo {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.manual-photo-pair .manual-photo + .manual-photo {
  border-left: 1px solid var(--line);
}

.manual-photo-pair img {
  height: 280px;
  object-fit: contain;
}

.manual-direction span,
.manual-steps li > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.manual-direction strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
}

.manual-direction p,
.manual-steps p {
  margin-top: 8px;
  color: var(--slate);
  line-height: 1.65;
}

.manual-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.manual-steps li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.manual-steps strong {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.manual-speed {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.manual-speed .section-head {
  margin-bottom: 16px;
}

.manual-speed .section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.manual-speed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.manual-speed-grid article {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 24, 39, .06);
}

.manual-speed-grid .manual-photo {
  margin: 0;
}

.manual-speed-grid img {
  max-height: 240px;
}

.manual-speed-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.manual-speed-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
}

.manual-speed-grid p {
  margin-top: 10px;
  color: var(--slate);
  line-height: 1.65;
}

.manual-warning {
  margin-top: 18px;
  padding: 22px;
}

.manual-warning.danger {
  background: #3a1210;
}

.manual-warning.danger strong {
  color: #ffd4c9;
}

.manual-warning strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.manual-warning p {
  margin-top: 8px;
}

.product-visual {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(7, 24, 39, .12);
}

.product-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.detail-section {
  padding: 28px 0 52px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  font-weight: 900;
}

.section-head p {
  margin-top: 14px;
  color: var(--slate);
  line-height: 1.72;
}

.feature-grid,
.spec-grid,
.detail-image-grid,
.drawing-grid,
.related-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.detail-image-grid {
  grid-template-columns: repeat(2, 1fr);
}

.detail-image-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 24, 39, .06);
}

.detail-image-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.drawing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.drawing-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 24, 39, .06);
}

.drawing-preview {
  display: block;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.drawing-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  padding: 12px;
}

.drawing-grid article > div {
  padding: 22px;
}

.drawing-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.drawing-grid h3 {
  margin-top: 10px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 900;
}

.drawing-grid p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.65;
}

.drawing-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.spec-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.spec-card,
.related-card,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 24, 39, .06);
}

.feature-card,
.spec-card {
  padding: 24px;
}

.feature-card span,
.spec-card span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3,
.spec-card strong {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}

.feature-card p,
.spec-card p {
  margin-top: 12px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.65;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  background: var(--navy);
}

.cta-panel h2 {
  color: #fff;
  font-size: 28px;
}

.cta-panel p {
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.related-grid {
  grid-template-columns: repeat(5, 1fr);
}

.related-card {
  overflow: hidden;
}

.related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.related-card strong {
  display: block;
  padding: 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .product-hero,
  .feature-grid,
  .detail-image-grid,
  .drawing-grid,
  .spec-grid,
  .related-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .product-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .product-header nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .product-switcher {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 18px;
  }

  .product-switcher a {
    min-height: 46px;
    padding: 0 14px;
  }

  .manual-modal {
    padding: 12px;
  }

  .manual-modal-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .manual-modal-panel header {
    align-items: flex-start;
  }

  .manual-content {
    padding: 16px;
  }

  .manual-intro,
  .manual-direction,
  .manual-speed-grid,
  .manual-speed-grid article,
  .manual-steps li {
    grid-template-columns: 1fr;
  }

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

  .manual-photo-pair img {
    height: 220px;
  }

  .manual-photo-hero {
    max-width: 360px;
  }
}
