:root {
  color-scheme: light;
  --ink: #1e2933;
  --muted: #5b6875;
  --line: #d9e1e8;
  --blue: #276fb5;
  --teal: #178a8e;
  --green: #2f8f64;
  --gold: #c88a2f;
  --red: #b95b51;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --mist: #ecf3f7;
  --shadow: 0 18px 42px rgba(25, 47, 70, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 225, 232, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

nav a:hover,
.text-link:hover {
  color: var(--blue);
}

.header-actions,
.hero-actions,
.company-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-button,
.cart-button,
.contact-link,
.primary-button,
.secondary-button,
.filter-button,
.text-link {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.icon-button {
  width: 42px;
  padding: 0;
  background: var(--paper);
}

.contact-link,
.primary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.secondary-button,
.cart-button,
.filter-button,
.text-link {
  background: var(--paper);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.contact-link:hover,
.filter-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.secondary-button:hover,
.cart-button:hover,
.filter-button:hover,
.icon-button:hover {
  border-color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 7vw, 84px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 74px);
  background:
    linear-gradient(112deg, #f7fbfc 0%, #f7fbfc 48%, #eaf2f1 48%, #f2f7fb 100%);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text,
.section-heading {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-media {
  margin: 0;
  align-self: stretch;
  min-height: 430px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.compact-band {
  padding-top: 22px;
  padding-bottom: 22px;
  background: var(--ink);
  color: #fff;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.16);
}

.fact-grid div {
  min-height: 96px;
  padding: 20px;
  background: var(--ink);
}

.fact-grid strong {
  display: block;
  font-size: 30px;
}

.fact-grid span {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2 {
  color: var(--ink);
}

.row-heading {
  display: flex;
  max-width: none;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

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

.range-grid article,
.product-card,
.catalog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.range-grid img,
.product-card img,
.catalog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.range-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.range-grid h3,
.range-grid p,
.product-card-body {
  padding-left: 18px;
  padding-right: 18px;
}

.range-grid h3 {
  margin-top: 18px;
}

.range-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.products-section {
  background: var(--soft);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.search input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.product-card-body {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.product-card-body p {
  color: var(--muted);
  line-height: 1.55;
}

.inquiry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.inquiry-row a {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}

.inquiry-row a:first-child {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.inquiry-row.three {
  grid-template-columns: 1fr 1fr;
}

.empty-state {
  margin: 22px 0 0;
  color: var(--muted);
}

.workflow {
  background: #fff;
}

.catalogs-section {
  background: #fff;
}

.cases-section {
  background: var(--mist);
}

.catalog-grid {
  margin-top: 20px;
}

.catalog-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

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

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.case-card div {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.case-card p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.catalog-card div {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.item-no {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.spec-list dt {
  color: var(--muted);
  font-size: 13px;
}

.spec-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.spec-list.detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.spec-list.detail div {
  grid-template-columns: 92px 1fr;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.workflow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  position: relative;
  min-height: 56px;
  padding: 15px 18px 15px 58px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.workflow-list li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  counter-increment: workflow;
  content: counter(workflow, decimal-leading-zero);
  color: var(--ink);
  font-weight: 800;
}

.workflow-layout img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.company {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 36px;
  align-items: center;
  background: var(--mist);
}

.company-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.company-media {
  display: grid;
  gap: 14px;
}

.company-media video,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #0f1f2b;
}

.video-placeholder {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
}

.video-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.video-placeholder p {
  position: relative;
  max-width: 520px;
  margin: 0;
  padding: 20px;
  text-align: center;
  font-weight: 800;
}

.company-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.company-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.footer {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: center;
  padding: clamp(42px, 6vw, 68px) clamp(18px, 5vw, 72px);
  background: #182633;
  color: #fff;
}

.footer img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.15;
}

.footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.6;
}

address {
  font-style: normal;
}

.footer-contact {
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(620px, 100%);
}

.footer-contact-title {
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 800;
}

.footer-contact a {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 66px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  font-weight: 700;
}

.footer-contact strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
}

address a:hover {
  color: #87d9d7;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: end;
  background: rgba(15, 25, 35, 0.38);
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  width: min(440px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
  font-size: 24px;
}

.cart-items {
  overflow: auto;
  padding: 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-line span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.remove-cart {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.cart-actions {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.detail-page {
  background: var(--soft);
}

.detail-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px);
}

.detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}

.thumb-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thumb-gallery img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 4px;
  box-shadow: none;
}

.detail-copy {
  padding: clamp(20px, 4vw, 42px);
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-header {
  position: static;
}

.admin-page {
  background: var(--soft);
}

.admin-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
}

.admin-intro p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}

.wide-admin-form {
  position: static;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-admin-form h2,
.wide-admin-form .form-note,
.wide-admin-form .form-actions {
  grid-column: 1 / -1;
}

.admin-help-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-help-panel p,
.form-note {
  color: var(--muted);
  line-height: 1.6;
}

.admin-form,
.admin-list {
  display: grid;
  gap: 12px;
}

.admin-form {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-form h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

.admin-form textarea {
  min-height: 90px;
  resize: vertical;
}

.image-manager {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.image-manager-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.image-manager-head strong {
  color: var(--ink);
}

.upload-actions {
  display: grid;
  gap: 8px;
  align-items: start;
}

.upload-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.image-sort-list {
  display: grid;
  gap: 8px;
}

.image-sort-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.image-sort-item img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.image-sort-item span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-sort-item button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-item img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.admin-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.danger {
  color: var(--red);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .workflow-layout,
  .company {
    grid-template-columns: 1fr;
  }

  .range-grid,
  .product-grid,
  .catalog-grid,
  .case-grid,
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-tools,
  .row-heading,
  .footer,
  .detail-hero,
  .admin-layout,
  .wide-admin-form {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .footer-contact {
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .brand span {
    font-size: 15px;
  }

  .contact-link {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  h1 {
    font-size: 40px;
  }

  .range-grid,
  .product-grid,
  .catalog-grid,
  .case-grid,
  .fact-grid,
  .company-gallery,
  .thumb-gallery,
  .inquiry-row,
  .spec-list.detail,
  .admin-item,
  .image-sort-item {
    grid-template-columns: 1fr;
  }

  .spec-list div,
  .spec-list.detail div {
    grid-template-columns: 1fr;
  }

  .footer-contact a {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-contact strong {
    font-size: 21px;
  }
}
