:root {
  --brand-primary: #087dbd;
  --brand-strong: color-mix(in srgb, var(--brand-primary) 78%, #052c52);
  --ink-950: #0c1928;
  --ink-900: #13253a;
  --ink-800: #22364d;
  --ink-700: #40536a;
  --ink-600: #64748b;
  --ink-500: #8290a3;
  --line: #e3e9f0;
  --line-strong: #d4dde7;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --surface-blue: #eef6fb;
  --shadow-sm: 0 8px 24px rgba(14, 35, 61, .07);
  --shadow-md: 0 18px 50px rgba(14, 35, 61, .12);
  --content: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --site-header-height: 72px;
  --product-detail-reserve: 360px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--ink-950);
  background: var(--surface);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea { font: inherit; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-primary) 42%, transparent);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--site-header-height);
  border-bottom: 1px solid rgba(213, 223, 234, .8);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 18px rgba(11, 29, 51, .035);
  backdrop-filter: blur(16px) saturate(150%);
}

.header-inner {
  width: min(var(--content), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  width: 146px;
  flex: 0 0 146px;
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 126px;
  max-height: 50px;
  object-fit: contain;
}

.brand-text {
  color: var(--ink-900);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand.brand--text {
  width: auto;
  max-width: 320px;
  min-width: 0;
  flex: 1 1 320px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.brand--text .brand-text {
  max-width: 100%;
  color: var(--brand-strong);
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.18;
  letter-spacing: .01em;
  white-space: normal;
  text-wrap: balance;
}

.brand-subtitle {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-600);
  font-size: .625rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .14em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.has-text-brand {
  gap: clamp(16px, 2vw, 28px);
}

.has-text-brand .nav {
  min-width: 0;
  flex: 0 1 auto;
}

.has-text-brand .nav-item > a {
  min-width: 72px;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 1rem;
}

.nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.nav-item > a {
  position: relative;
  min-width: 82px;
  height: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  font-size: 1.3125rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.nav-item > a::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand-primary);
  transform: scaleX(0);
  transition: transform .22s ease;
}

.nav-item > a:hover,
.nav-item > a.active {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand-primary) 6%, white);
}

.nav-item > a:hover::after,
.nav-item > a.active::after { transform: scaleX(1); }

.nav-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  min-width: 200px;
  padding: 10px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-primary);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-dropdown a {
  padding: 10px 13px;
  border-radius: 7px;
  color: var(--ink-700);
  font-size: .875rem;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, padding-left .18s ease;
}

.nav-dropdown a:hover {
  padding-left: 17px;
  color: var(--brand-strong);
  background: var(--surface-blue);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.langs {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.langs a {
  color: var(--ink-500);
  font-size: .75rem;
  transition: color .18s ease;
}

.langs a:first-child { color: #d84b33; }
.langs a:hover, .langs a.active { color: var(--brand-strong); font-weight: 700; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-900);
  background: var(--surface);
  font-size: 1.35rem;
}

/* Home hero */
.hero {
  position: relative;
  width: 80%;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

.hero-banners .hero-slide:first-child {
  position: relative;
  inset: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 21, 40, .38), rgba(5, 21, 40, .02) 62%), linear-gradient(0deg, rgba(5, 21, 40, .16), transparent 40%);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: max(6vw, calc((100% - var(--content)) / 2));
  max-width: 720px;
  color: #fff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .3);
  transform: translateY(-50%);
}

.hero-copy strong {
  display: block;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.22;
  letter-spacing: .05em;
}

.hero-copy small {
  display: block;
  max-width: 650px;
  margin-top: 16px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  color: #fff;
  background: rgba(7, 22, 41, .34);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: background-color .2s ease, transform .2s ease;
}

.hero-arrow:hover { background: rgba(7, 22, 41, .64); transform: translateY(-50%) scale(1.04); }
.hero-prev { left: max(18px, 3vw); }
.hero-next { right: max(18px, 3vw); }

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

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: transparent;
  transition: width .25s ease, background-color .25s ease;
}

.dot.active { width: 28px; background: #fff; }
.hero-generic {
  height: clamp(344px, 37.6vw, 520px);
  background:
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--brand-primary) 72%, #7dd7ff) 0, transparent 24%),
    radial-gradient(circle at 18% 85%, color-mix(in srgb, var(--brand-primary) 30%, transparent) 0, transparent 31%),
    linear-gradient(125deg, #091a2c 0%, #123653 55%, #0a5d88 100%);
}
.hero-generic::before,.hero-generic::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%;pointer-events:none}.hero-generic::before{width:520px;height:520px;right:-120px;bottom:-260px}.hero-generic::after{width:340px;height:340px;right:90px;bottom:-210px}
.hero-empty { position:relative;z-index:2;width:min(var(--content),calc(100% - 40px));height:100%;margin:auto;display:flex;align-items:center;color:#fff; }
.hero-empty>div{max-width:720px}.hero-empty h1{margin:0;font-size:clamp(2.3rem,4.6vw,4.4rem);line-height:1.15;letter-spacing:.03em}.hero-empty p{max-width:620px;margin:20px 0 0;color:rgba(255,255,255,.78);font-size:clamp(1rem,1.6vw,1.25rem);line-height:1.8}.hero-empty a{display:inline-flex;margin-top:30px;padding:12px 20px;align-items:center;justify-content:center;gap:12px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(255,255,255,.1);font-size:.9rem;font-weight:650;text-align:center;backdrop-filter:blur(8px);transition:background-color .2s ease,transform .2s ease}.hero-empty a:hover{background:rgba(255,255,255,.2);transform:translateY(-2px)}

/* Home sections */
.section {
  position: relative;
  padding: clamp(70px, 7vw, 108px) 20px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--brand-primary);
}

.section-head h2 {
  margin: 0;
  color: var(--ink-950);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: .025em;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.85;
}

.pale-section {
  overflow: hidden;
  background: linear-gradient(145deg, #f7f9fc 0%, #edf3f8 100%);
}

.pale-section::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 7%, transparent);
  pointer-events: none;
}

.product-grid,
.custom-grid,
.news-grid,
.service-grid {
  position: relative;
  z-index: 1;
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
}

.home-product-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-7px);
}

.product-card > a { display: flex; min-height: 100%; flex-direction: column; }
.product-card img { width: 100%; aspect-ratio: 1.42 / 1; display: block; object-fit: contain; background: var(--surface-soft); }
.product-card-visual{position:relative;aspect-ratio:1.42/1;background:linear-gradient(145deg,#eff5f9,#dce9f2)}.product-card-visual::before,.product-card-visual::after{content:"";position:absolute;border:1px solid color-mix(in srgb,var(--brand-primary) 25%,transparent);border-radius:50%}.product-card-visual::before{width:42%;height:42%;right:12%;top:12%}.product-card-visual::after{width:54%;height:54%;left:10%;bottom:-18%}

.card-body { flex: 1; padding: 24px 22px 22px; }
.card-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.45; }
.card-body p { min-height: 3.5em; margin: 10px 0 0; color: var(--ink-600); font-size: .9rem; line-height: 1.75; }
.card-body span,
.service-arrow { display: inline-flex; width: 38px; height: 38px; margin-top: 20px; align-items: center; justify-content: center; border-radius: 50%; color: var(--brand-strong); background: var(--surface-blue); transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.product-card:hover .card-body span { color: #fff; background: var(--brand-primary); transform: translateX(4px); }

.custom-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.icon-card {
  position: relative;
  min-height: 220px;
  padding: 34px 22px 26px;
  overflow: hidden;
  border: 1px solid rgba(218, 227, 237, .9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: color .25s ease, transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.icon-card:hover { color: #fff; background: var(--ink-900); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.line-icon { height: 62px; display: grid; place-items: center; color: var(--brand-primary); font-size: 2.3rem; font-weight: 700; transition: color .25s ease; }
.icon-card:hover .line-icon { color: #74c6ef; }
.icon-card h3 { margin: 15px 0 14px; font-size: 1.08rem; font-weight: 650; }
.icon-card strong { color: #dce3eb; font-size: 2rem; letter-spacing: .04em; }
.icon-card:hover strong { color: rgba(255, 255, 255, .18); }

.news-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); transition: transform .24s ease, box-shadow .24s ease; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.news-card a { display: block; padding-bottom: 20px; }
.news-image{aspect-ratio:1.58/1;overflow:hidden;background:linear-gradient(135deg,var(--surface-blue),#dceaf3)}
.news-card img { width: 100%; height:100%; display: block; object-fit: contain; }
.news-card h3 { min-height: 3em; margin: 20px 20px 10px; font-size: 1rem; line-height: 1.55; font-weight: 600; }
.news-card time { display: block; margin: 0 20px; color: var(--ink-500); font-size: .8125rem; }

.service-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.service-card {
  min-height: 210px;
  padding: 31px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(218, 227, 237, .9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service-card:hover { border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line)); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.service-icon { height: 56px; display: grid; place-items: center; color: var(--ink-900); font-size: 2.25rem; font-weight: 700; }
.service-card h3 { margin: 16px 0 0; font-size: 1.05rem; font-weight: 650; }
.service-card .service-arrow { margin-top: auto; }
.service-card:hover .service-arrow { color: #fff; background: var(--brand-primary); transform: translateX(4px); }

/* Footer */
.footer {
  color: #dce6f1;
  background: #15283e;
  padding: 0 0 24px;
}

.contact-strip {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.contact-strip h2 { margin: 0; color: #fff; font-size: clamp(1.65rem, 2.6vw, 2.15rem); line-height: 1.3; }
.contact-strip p { margin: 8px 0 0; color: #adbed0; font-size: .9rem; }

.contact-form { width: min(600px, 55%); display: grid; grid-template-columns: 1fr 1fr 120px; gap: 10px; }
.contact-form input,
.contact-form button { height: 46px; border: 1px solid transparent; border-radius: var(--radius-sm); }
.contact-form input { min-width: 0; padding: 0 14px; color: var(--ink-900); background: #fff; }
.contact-form input:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 22%, transparent); }
.contact-form button { color: #fff; border-color: var(--brand-primary); background: var(--brand-primary); font-weight: 650; transition: filter .18s ease, transform .18s ease; }
.contact-form button:hover { filter: brightness(.92); transform: translateY(-1px); }
.website-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.footer-notice { width: min(var(--content), calc(100% - 40px)); margin: 20px auto 0; padding: 12px 16px; border-radius: 8px; color: #d7f7e4; background: rgba(48, 168, 100, .18); }

.footer-grid {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 26px;
}

.footer-col h4,
.footer-contact h4 { margin: 0 0 17px; color: #fff; font-size: .9rem; }
.footer-col a { display: block; padding: 4px 0; color: #9fb0c2; font-size: .8125rem; transition: color .18s ease, transform .18s ease; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-contact { color: #aebed0; font-size: .8125rem; }
.footer-contact .phone { display: block; margin: 0 0 10px; color: #fff; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 650; }
.footer-contact p { margin: 7px 0; line-height: 1.65; }
.footer-contact a { color: inherit; }

.qr-row { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: center; gap: 42px; }
.qr-row > div { text-align: center; }
.qr-row img { width: 94px; height: 94px; padding: 4px; display: block; object-fit: contain; border-radius: 8px; background: #fff; }
.qr-row span { display: block; margin-top: 8px; color: #aebed0; font-size: .75rem; }
.copyright { width: min(var(--content), calc(100% - 40px)); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .09); color: #8295a9; font-size: .75rem; text-align: center; }

.floating-tools { position: fixed; right: 18px; bottom: 32px; z-index: 70; display: grid; gap: 8px; }
.floating-tools button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 11px; color: #fff; background: rgba(20, 40, 64, .88); line-height: 1; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); transition: transform .18s ease, background-color .18s ease; }
.floating-tools button:hover { background: var(--brand-strong); transform: translateY(-2px); }

/* Inner pages */
.inner-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 82% 35%, color-mix(in srgb, var(--brand-primary) 45%, transparent), transparent 24%), linear-gradient(115deg, #0b1f34, #174a6d);
}

.inner-hero::after { content: ""; position: absolute; right: -100px; bottom: -180px; width: 500px; height: 500px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; }
.inner-hero.compact { min-height: 235px; }
.inner-hero > div { position: relative; z-index: 1; width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.inner-hero h1 { max-width: 800px; margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.25; letter-spacing: .08em; text-shadow: 0 3px 22px rgba(0, 0, 0, .22); }

.breadcrumbs { width: min(var(--content), calc(100% - 40px)); min-height: 62px; margin: 0 auto; display: flex; align-items: center; gap: 11px; overflow-x: auto; color: var(--ink-500); border-bottom: 1px solid var(--line); font-size: .8125rem; white-space: nowrap; scrollbar-width: none; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs a { color: var(--ink-700); transition: color .18s ease; }
.breadcrumbs a:hover { color: var(--brand-primary); }

.listing-section,
.detail-shell,
.content-layout { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 64px 0 96px; }

.category-tabs,
.article-tabs { margin: 0 auto 44px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.subcategory-tabs { margin-top: -24px; margin-bottom: 40px; }
.category-tabs a,
.article-tabs a { padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-700); background: #fff; font-size: .875rem; text-align: center; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.category-tabs a:hover,
.category-tabs a.active,
.article-tabs a:hover,
.article-tabs a.active { color: #fff; border-color: var(--brand-primary); background: var(--brand-primary); transform: translateY(-1px); }

.listing-title { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.listing-title h2 { margin: 0; font-size: clamp(1.65rem, 2.5vw, 2.15rem); line-height: 1.3; }
.listing-title span { color: var(--ink-500); font-size: .875rem; }

.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 20px rgba(16, 38, 65, .045); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.catalog-card:hover { border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line)); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.catalog-card a { height: 100%; display: flex; flex-direction: column; }
.catalog-image{position:relative;aspect-ratio:1.22/1;overflow:hidden;background:linear-gradient(145deg,#f8fafc,#e8f0f6)}.catalog-image::after{content:"";position:absolute;inset:24%;border:1px solid color-mix(in srgb,var(--brand-primary) 22%,transparent);border-radius:50%}.catalog-card img { position:relative;z-index:1;width: 100%; height:100%; display: block; object-fit: contain; transition: transform .4s ease; }
.catalog-card > a > div:last-child { flex: 1; padding: 20px; }
.catalog-card h3 { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; }
.catalog-card p { margin: 0; color: var(--ink-600); font-size: .8125rem; line-height: 1.75; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

.pagination { margin-top: 46px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination a { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-700); background: #fff; font-size: .875rem; }
.pagination a:hover, .pagination a.active { color: #fff; border-color: var(--brand-primary); background: var(--brand-primary); }
.empty-state { padding: 80px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-500); background: var(--surface-soft); text-align: center; }

/* Details and article lists */
.product-detail { text-align: center; }
.product-detail > h1,
.article-detail > h1,
.content-panel > h1 { margin: 0 0 18px; color: var(--ink-950); font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.35; }
.detail-lead { max-width: 820px; margin: 0 auto 36px; color: var(--ink-600); line-height: 1.85; }
.product-detail-image {
  width: auto;
  max-width: min(72%, 760px);
  height: auto;
  max-height: min(520px, calc(100vh - var(--site-header-height) - var(--product-detail-reserve)));
  max-height: clamp(280px, calc(100dvh - var(--site-header-height) - var(--product-detail-reserve)), 520px);
  margin: 28px auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.article-detail { max-width: 900px; text-align: center; }
.article-detail time { display: block; margin-bottom: 38px; color: var(--ink-500); font-size: .875rem; }
.rich-text { color: var(--ink-700); font-size: 1rem; line-height: 2; text-align: left; overflow-wrap: anywhere; }
.article-gallery { margin: 0 0 40px; display: grid; gap: 20px; justify-items: center; }
.article-gallery img { width: auto; max-width: 100%; height: auto; display: block; border-radius: 6px; }

.article-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.article-list article { border-bottom: 1px solid var(--line); }
.article-list article > a { padding: 24px 0; display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
.article-list-image{width:240px;height:150px;overflow:hidden;border-radius:10px;background:linear-gradient(135deg,var(--surface-blue),#dceaf3)}.article-list img { width:100%;height:100%;display:block;object-fit:contain; }
.article-list h2 { margin: 0 0 10px; font-size: 1.18rem; line-height: 1.5; transition: color .18s ease; }
.article-list a:hover h2 { color: var(--brand-primary); }
.article-list p { margin: 0 0 12px; color: var(--ink-600); font-size: .9rem; line-height: 1.75; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-list time { color: var(--ink-500); font-size: .8125rem; }

/* Content pages */
.content-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 54px; }
.content-layout.single { grid-template-columns: 1fr; }
.side-nav { position: sticky; top: 98px; align-self: start; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.side-nav strong { padding: 19px 20px; color: #fff; background: var(--ink-900); font-size: 1rem; }
.side-nav a { padding: 13px 20px; color: var(--ink-600); border-bottom: 1px solid var(--line); font-size: .9rem; transition: color .18s ease, background-color .18s ease, padding-left .18s ease; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover, .side-nav a.active { padding-left: 25px; color: var(--brand-strong); background: var(--surface-blue); }
.content-panel { min-width: 0; }

.content-gallery { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.content-gallery img { width: 100%; height: auto; max-height: 560px; display: block; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.content-gallery.certificate-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.partner-form { margin-top: 48px; padding: clamp(24px, 4vw, 38px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.partner-form h2, .partner-form p, .partner-form textarea, .partner-form button, .partner-form > a { grid-column: 1 / -1; }
.partner-form h2 { margin: 0; font-size: 1.5rem; }
.partner-form p { margin: 0 0 10px; color: var(--ink-600); }
.partner-form input, .partner-form textarea { min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink-900); background: #fff; }
.partner-form input { height: 46px; }
.partner-form textarea { min-height: 130px; resize: vertical; }
.partner-form input:focus, .partner-form textarea:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.partner-form button { min-height: 46px; border: 0; border-radius: var(--radius-sm); color: #fff; background: var(--brand-primary); font-weight: 650; }
.partner-form > a { color: var(--brand-primary); text-align: center; }

/* Error page */
.error-main { min-height: 600px; padding: 80px 20px; display: grid; place-items: center; text-align: center; }
.error-code { color: #dbe5ee; font-size: clamp(6rem, 14vw, 10rem); line-height: .85; font-weight: 800; letter-spacing: -.06em; }
.error-main h1 { margin: 30px 0 0; font-size: 2rem; }
.error-main p { margin: 12px 0 0; color: var(--ink-600); }
.error-main a { margin-top: 24px; padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: #fff; background: var(--brand-primary); text-align: center; }

/* Responsive */
@media (max-width: 1120px) {
  :root { --site-header-height: 66px; }
  .site-header { height: var(--site-header-height); }
  .header-inner { width: calc(100% - 32px); }
  .menu-btn { display: grid; place-items: center; }
  .langs { display: none; }
  .nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    max-height: calc(100vh - 66px);
    padding: 12px 18px 24px;
    display: none;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .985);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: block; }
  .nav-item { height: auto; display: block; border-bottom: 1px solid var(--line); }
  .nav-item > a { min-height: 48px; padding: 0 8px; justify-content: flex-start; }
  .nav-item > a::after { display: none; }
  .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 12px 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown a { padding: 8px 10px; white-space: normal; }
  .nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { transform: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-contact { grid-column: 1 / -1; max-width: 520px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-gallery.certificate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero { width: 100%; }
  .hero-generic { height: clamp(220px, 50vw, 360px); }
  .hero-arrow { width: 42px; height: 48px; }
  .hero-copy { right: 70px; left: 70px; text-align: center; }
  .section { padding: 56px 18px; }
  .inner-hero, .inner-hero.compact { min-height: 180px; }
  .contact-strip { align-items: flex-start; flex-direction: column; gap: 24px; }
  .contact-form { width: 100%; }
  .news-grid { grid-template-columns: 1fr; max-width: 560px; }
  .news-card h3 { min-height: auto; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .content-layout { grid-template-columns: 1fr; gap: 32px; }
  .side-nav { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .side-nav strong { grid-column: 1 / -1; }
  .article-list article > a { grid-template-columns: 170px 1fr; gap: 20px; }
  .article-list img { width: 170px; height: 112px; }
  .content-gallery.certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { --site-header-height: 56px; --product-detail-reserve: 220px; }
  html { scroll-padding-top: 56px; }
  .site-header { height: var(--site-header-height); }
  .header-inner { width: calc(100% - 20px); }
  .brand { width: 110px; flex-basis: 110px; }
  .brand img { width: 100px; max-height: 40px; }
  .brand.brand--text { max-width: calc(100% - 48px); flex-basis: auto; }
  .brand--text .brand-text { font-size: clamp(.875rem, 4vw, 1rem); }
  .brand-subtitle { display: none; }
  .menu-btn { width: 36px; height: 36px; font-size: 1.15rem; }
  .nav { top: 56px; max-height: calc(100vh - 56px); padding-right: 12px; padding-left: 12px; }
  .nav-dropdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-generic { height: 220px; }
  .hero-empty { width: calc(100% - 32px); }
  .hero-empty h1 { font-size: 1.65rem; }
  .hero-empty p { margin-top: 10px; font-size: .8125rem; line-height: 1.6; }
  .hero-empty a { margin-top: 16px; padding: 8px 14px; font-size: .75rem; }
  .hero-copy { right: 48px; left: 48px; }
  .hero-copy strong { font-size: clamp(1rem, 5vw, 1.35rem); }
  .hero-copy small { margin-top: 5px; font-size: clamp(.6875rem, 3vw, .8rem); line-height: 1.45; }
  .hero-arrow { top: 50%; bottom: auto; width: 34px; height: 34px; border-radius: 9px; font-size: 1.5rem; transform: translateY(-50%); }
  .hero-arrow:hover { transform: translateY(-50%) scale(1.04); }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-dots { bottom: 5px; gap: 6px; }
  .dot { width: 6px; height: 6px; }
  .dot.active { width: 20px; }
  .section { padding: 38px 12px; }
  .section-head { margin-bottom: 22px; }
  .section-head::before { width: 32px; height: 3px; margin-bottom: 13px; }
  .section-head h2 { font-size: clamp(1.35rem, 6vw, 1.6rem); }
  .section-head p { margin-top: 8px; font-size: .8125rem; line-height: 1.65; }
  .home-product-grid, .custom-grid, .news-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: none; }
  .product-card, .news-card, .icon-card, .service-card { border-radius: 10px; }
  .card-body { padding: 14px 12px; }
  .card-body h3 { font-size: .9rem; overflow-wrap: anywhere; }
  .card-body p { min-height: 0; margin-top: 6px; font-size: .75rem; line-height: 1.55; }
  .card-body span, .service-arrow { width: 30px; height: 30px; margin-top: 12px; }
  .icon-card, .service-card { min-height: 145px; padding: 18px 10px 14px; }
  .line-icon { height: 38px; font-size: 1.65rem; }
  .icon-card h3 { margin: 8px 0; font-size: .875rem; overflow-wrap: anywhere; }
  .icon-card strong { font-size: 1.35rem; }
  .service-icon { height: 38px; font-size: 1.55rem; }
  .service-card h3 { margin-top: 9px; font-size: .875rem; overflow-wrap: anywhere; }
  .news-card a { padding-bottom: 13px; }
  .news-card h3 { min-height: 0; margin: 12px 12px 7px; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
  .news-card time { margin: 0 12px; font-size: .6875rem; }
  .contact-strip, .footer-grid, .qr-row, .copyright, .footer-notice { width: calc(100% - 28px); }
  .contact-strip { padding: 30px 0; gap: 18px; }
  .contact-strip h2 { font-size: 1.35rem; }
  .contact-strip p { font-size: .8125rem; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 30px; gap: 20px 14px; }
  .footer-col a, .footer-contact { overflow-wrap: anywhere; }
  .qr-row { gap: 20px; }
  .inner-hero, .inner-hero.compact { min-height: 132px; }
  .inner-hero h1 { font-size: clamp(1.45rem, 7vw, 1.8rem); }
  .inner-hero > div, .breadcrumbs, .listing-section, .detail-shell, .content-layout { width: calc(100% - 28px); }
  .breadcrumbs { min-height: 46px; gap: 8px; font-size: .75rem; }
  .listing-section, .detail-shell, .content-layout { padding: 32px 0 48px; }
  .product-detail > h1, .article-detail > h1, .content-panel > h1 { font-size: 1.45rem; }
  .detail-lead { margin-bottom: 24px; font-size: .875rem; }
  .product-detail-image { max-width: 100%; max-height: 50dvh; margin: 20px auto; }
  .category-tabs, .article-tabs { justify-content: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 7px; }
  .category-tabs a, .article-tabs a { padding: 7px 12px; font-size: .75rem; }
  .category-tabs a, .article-tabs a { flex: 0 0 auto; }
  .subcategory-tabs { margin-top: -12px; margin-bottom: 26px; }
  .listing-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .listing-title { margin-bottom: 18px; }
  .listing-title h2 { font-size: 1.35rem; }
  .empty-state { padding: 44px 14px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catalog-card img { aspect-ratio: 1.4 / 1; }
  .catalog-card > a > div:last-child { padding: 12px; }
  .catalog-card h3 { margin-bottom: 6px; font-size: .875rem; overflow-wrap: anywhere; }
  .catalog-card p { font-size: .75rem; line-height: 1.55; }
  .article-list article > a { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 15px 0; }
  .article-list-image, .article-list img { width: 92px; height: 68px; }
  .article-list h2 { margin-bottom: 7px; font-size: .95rem; }
  .article-list p { display: none; }
  .article-detail time { margin-bottom: 24px; }
  .rich-text { font-size: .9rem; line-height: 1.85; }
  .content-gallery, .content-gallery.certificate-grid { grid-template-columns: 1fr; }
  .partner-form { margin-top: 30px; padding: 18px; grid-template-columns: 1fr; }
  .partner-form input { grid-column: 1 / -1; }
  .floating-tools { right: 10px; bottom: 18px; }
  .floating-tools button { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
