/* ==========================================================================
   hy-site.css — Jiangsu Heyi English site, B2B export redesign
   --------------------------------------------------------------------------
   Build: 2026-11-14 · Author: 拾一 / YunZhi site dev-ops expert
   Scope: public header / footer / CTA / conversion blocks / new template pages
   Rules:
     1) All selectors are prefixed `hy-` so the legacy theme (style-main.css,
        bootstrap.min.css, menuzord.css) cannot collide with the new shell.
     2) Palette inherits the existing site: navy #122f4a / #163d5e,
        industrial orange #d4763a, CTA #fd7807, accent blue #2278b8.
     3) Logical properties (margin-inline, padding-inline) are used so the
        same file can serve the planned /ar/ RTL build without a second CSS.
     4) No external font/CDN dependency for the shell; system font stack keeps
        overseas TTFB low. Google Fonts already loaded by legacy pages is optional.
     5) W3C-standard CSS, no !important except where legacy theme forces a value.
   ========================================================================== */

:root {
  --hy-navy:        #122f4a;
  --hy-navy-2:      #163d5e;
  --hy-navy-deep:   #0d2337;
  --hy-orange:      #d4763a;
  --hy-orange-hot:  #fd7807;
  --hy-blue:        #2278b8;
  --hy-ink:         #1b2836;
  --hy-body:        #45576a;
  --hy-muted:       #718296;
  --hy-line:        #dde5ee;
  --hy-bg-soft:     #f4f7fa;
  --hy-white:       #ffffff;
  --hy-green:       #1f8a5b;
  --hy-red:         #b83227;
  --hy-radius:      6px;
  --hy-radius-lg:   10px;
  --hy-shadow:      0 6px 24px rgba(18, 47, 74, .09);
  --hy-shadow-sm:   0 2px 10px rgba(18, 47, 74, .07);
  --hy-wrap:        1220px;
  --hy-font:        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---- scoped reset: protects new shell from legacy global rules ---------- */
.hy-shell, .hy-shell *,
.hy-block, .hy-block *,
.hy-form, .hy-form *,
.hy-section, .hy-section *,
.hy-hero, .hy-hero *,
.hy-trust, .hy-trust *,
.hy-pdp-bar, .hy-pdp-bar *,
.hy-cookie, .hy-cookie *,
.hy-footer, .hy-footer *,
.hy-wrap, .hy-wa { box-sizing: border-box; }
/* The rule above is deliberately broad: a 100%-wide .hy-wrap with padding
   would otherwise be content-box on standalone components (cookie bar, product
   action bar) and push the page into horizontal overflow on narrow screens. */

.hy-shell,
.hy-block,
.hy-form {
  font-family: var(--hy-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--hy-body);
  -webkit-font-smoothing: antialiased;
}
.hy-shell h1, .hy-shell h2, .hy-shell h3, .hy-shell h4,
.hy-block h1, .hy-block h2, .hy-block h3, .hy-block h4,
.hy-form h1, .hy-form h2, .hy-form h3, .hy-form h4 {
  font-family: var(--hy-font);
  color: var(--hy-navy);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}
.hy-shell a, .hy-block a, .hy-form a { color: var(--hy-blue); text-decoration: none; }
.hy-shell a:hover, .hy-block a:hover, .hy-form a:hover { text-decoration: underline; }
.hy-shell img, .hy-block img { max-width: 100%; height: auto; }
.hy-shell ul, .hy-block ul, .hy-form ul { margin: 0; padding: 0; list-style: none; }
.hy-wrap { width: 100%; max-width: var(--hy-wrap); margin-inline: auto; padding-inline: 24px; }
.hy-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================ 1. Header ================================= */
.hy-shell .hy-topbar {
  background: var(--hy-navy-deep);
  color: #c8d6e5;
  font-size: 13px;
  letter-spacing: .01em;
}
.hy-shell .hy-topbar .hy-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; gap: 16px; flex-wrap: wrap;
}
.hy-topbar-contacts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
.hy-topbar-contacts a { color: #dce8f3; }
.hy-topbar-contacts a:hover { color: var(--hy-orange-hot); text-decoration: none; }
.hy-topbar-contacts svg { width: 13px; height: 13px; margin-inline-end: 6px; vertical-align: -1px; fill: currentColor; }
.hy-topbar-tag { color: #9db3c8; }

/* language switcher — five live languages; /ar/ is phase 2 */
.hy-lang { position: relative; flex: 0 0 auto; }
.hy-lang-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.28);
  color: #eaf2fa; font: inherit; font-size: 13px; cursor: pointer;
  padding: 5px 12px; border-radius: 4px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  min-width: 94px; white-space: nowrap;
}
.hy-lang-btn:hover, .hy-lang-btn[aria-expanded="true"] { border-color: var(--hy-orange); }
.hy-lang-btn svg { width: 10px; height: 10px; stroke: currentColor; fill: none; }
.hy-lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 7px);
  min-width: 190px; background: var(--hy-white); border: 1px solid var(--hy-line);
  border-radius: var(--hy-radius); box-shadow: var(--hy-shadow);
  padding: 6px; display: none; z-index: 120;
}
.hy-lang-menu.is-open { display: block; }
.hy-lang-menu a {
  display: block; padding: 8px 12px; color: var(--hy-ink); font-size: 14px;
  border-radius: 4px; white-space: nowrap;
}
.hy-lang-menu a:hover { background: var(--hy-bg-soft); text-decoration: none; }
.hy-lang-menu a[aria-current="true"] { color: var(--hy-orange); font-weight: 600; }

.hy-shell .hy-header {
  background: var(--hy-white);
  border-bottom: 1px solid var(--hy-line);
  position: relative; z-index: 100;
}
.hy-shell .hy-header .hy-wrap {
  display: flex; align-items: center; gap: 26px; min-height: 84px;
}
.hy-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.hy-brand img { width: 62px; height: 62px; object-fit: contain; flex-shrink: 0; }
.hy-brand-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
/* Full legal entity name (matches the ISO certificate and every datasheet
   footer) — a descriptive phrase here weakens brand/entity consistency. */
.hy-brand-txt strong { font-size: 15px; color: var(--hy-navy); letter-spacing: -.02em; white-space: nowrap; }
.hy-brand-txt span { font-size: 10px; color: var(--hy-muted); text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
@media (max-width: 1300px) {
  .hy-brand img { width: 52px; height: 52px; }
  .hy-brand-txt strong { font-size: 12.5px; }
  .hy-brand-txt span { font-size: 9px; }
  .hy-nav > ul > li > a { padding: 12px 9px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .hy-brand-txt strong { font-size: 12px; white-space: normal; line-height: 1.2; }
  .hy-brand-txt span { display: none; }
}

.hy-nav { margin-inline-start: auto; }
.hy-nav > ul { display: flex; align-items: center; gap: 2px; }
.hy-nav > ul > li { position: relative; }
.hy-nav > ul > li > a {
  display: block; padding: 12px 13px; color: var(--hy-navy); font-size: 14.5px;
  font-weight: 600; border-radius: 4px; white-space: nowrap;
}
.hy-nav > ul > li > a:hover,
.hy-nav > ul > li.is-active > a { color: var(--hy-orange); text-decoration: none; background: #fff5ee; }
.hy-nav .hy-drop { display: none; position: absolute; inset-inline-start: 0; top: 100%;
  min-width: 250px; background: var(--hy-white); border: 1px solid var(--hy-line);
  box-shadow: var(--hy-shadow); border-radius: var(--hy-radius); padding: 8px; z-index: 110; }
.hy-nav li:hover > .hy-drop, .hy-nav li:focus-within > .hy-drop { display: block; }
.hy-drop a { display: block; padding: 8px 12px; font-size: 14px; color: var(--hy-ink); border-radius: 4px; }
.hy-drop a:hover { background: var(--hy-bg-soft); color: var(--hy-orange); text-decoration: none; }
.hy-drop-title { display: block; padding: 8px 12px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--hy-muted); }

.hy-header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--hy-font); font-size: 14.5px; font-weight: 700; line-height: 1.2;
  padding: 12px 20px; border-radius: var(--hy-radius); border: 1.5px solid transparent;
  cursor: pointer; text-align: center; transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.hy-btn:hover { text-decoration: none; transform: translateY(-1px); }
.hy-btn-primary { background: var(--hy-orange-hot); color: #fff; border-color: var(--hy-orange-hot); }
.hy-btn-primary:hover { background: #e56b04; border-color: #e56b04; color: #fff; }
.hy-btn-outline { background: transparent; color: var(--hy-navy); border-color: var(--hy-navy); }
.hy-btn-outline:hover { background: var(--hy-navy); color: #fff; }
.hy-btn-ghost { background: #fff; color: var(--hy-navy); border-color: rgba(255,255,255,.6); }
.hy-btn-ghost:hover { background: #f0f4f8; color: var(--hy-navy); }
.hy-btn-lg { padding: 15px 28px; font-size: 16px; }
.hy-btn-sm { padding: 9px 14px; font-size: 13px; }
.hy-btn svg { width: 15px; height: 15px; fill: currentColor; }

.hy-burger { display: none; background: transparent; border: 1px solid var(--hy-line);
  border-radius: 5px; width: 44px; height: 40px; cursor: pointer; padding: 9px; }
.hy-burger span { display: block; height: 2px; background: var(--hy-navy); margin: 4px 0; border-radius: 2px; }

/* ============================ 2. Hero =================================== */
.hy-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(112deg, rgba(13,35,55,.96) 0%, rgba(18,47,74,.92) 52%, rgba(22,61,94,.72) 100%),
              url("/images/hy/factory.jpg") center / cover no-repeat;
  color: #fff;
}
.hy-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px; align-items: center; padding-block: 76px 84px; }
.hy-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 50px); line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 20px; }
.hy-hero h1 em { font-style: normal; color: #ffb26b; }
.hy-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #ffb26b; border: 1px solid rgba(255,178,107,.5);
  border-radius: 30px; padding: 5px 14px; margin-bottom: 20px; }
.hy-hero-lead { font-size: 18px; color: #dbe6f0; max-width: 620px; margin: 0 0 28px; }
.hy-hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 30px; }
.hy-hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #e7eff7; }
.hy-hero-points svg { width: 16px; height: 16px; fill: #ffb26b; flex-shrink: 0; }
.hy-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hy-hero-aside { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--hy-radius-lg); padding: 28px; backdrop-filter: blur(3px); }
.hy-hero-aside h2 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.hy-hero-aside > p { color: #c3d3e2; font-size: 13.5px; margin: 0 0 18px; }
.hy-mini-form { display: grid; gap: 10px; }
.hy-mini-form .hy-field { display: grid; gap: 5px; }
.hy-mini-form label { font-size: 12px; color: #dbe6f0; font-weight: 600; }
.hy-hero-aside .hy-btn { width: 100%; margin-top: 6px; }
.hy-hero-aside .hy-note { font-size: 11.5px; color: #a9bfd2; margin: 12px 0 0; }

/* ======================= 3. Trust / stats strip ======================== */
.hy-trust { background: var(--hy-white); border-bottom: 1px solid var(--hy-line); }
.hy-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.hy-trust-item { padding: 26px 22px; border-inline-end: 1px solid var(--hy-line); }
.hy-trust-item:last-child { border-inline-end: 0; }
.hy-trust-item strong { display: block; font-size: 24px; color: var(--hy-navy); line-height: 1.2; }
.hy-trust-item span { display: block; font-size: 13px; color: var(--hy-muted); margin-top: 4px; }
.hy-trust-item small { display: block; font-size: 11px; color: #93a3b4; margin-top: 6px; }

/* ======================= 4. Generic sections =========================== */
.hy-section { padding-block: 68px; }
.hy-section-soft { background: var(--hy-bg-soft); }
.hy-section-navy { background: var(--hy-navy); color: #d8e4ef; }
.hy-section-navy h2, .hy-section-navy h3 { color: #fff; }
.hy-section-head { max-width: 760px; margin-bottom: 38px; }
.hy-section-head .hy-kicker { display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--hy-orange); margin-bottom: 10px; }
.hy-section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.hy-section-head p { font-size: 16.5px; margin: 0; }
.hy-section-navy .hy-section-head p { color: #c4d5e4; }

.hy-grid { display: grid; gap: 22px; }
.hy-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.hy-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.hy-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.hy-card { background: var(--hy-white); border: 1px solid var(--hy-line);
  border-radius: var(--hy-radius-lg); padding: 26px; box-shadow: var(--hy-shadow-sm);
  display: flex; flex-direction: column; }
.hy-card h3 { font-size: 19px; margin-bottom: 10px; }
.hy-card p { margin: 0 0 14px; font-size: 14.5px; }
.hy-card .hy-card-link { margin-top: auto; font-weight: 700; font-size: 14px; }
.hy-card-num { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; background: #fff2e8;
  color: var(--hy-orange); font-weight: 800; font-size: 17px; margin-bottom: 16px; }
.hy-icon-list li { position: relative; padding-inline-start: 26px; margin-bottom: 12px; font-size: 15px; }
.hy-icon-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--hy-orange); }
.hy-check-list li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; }
.hy-check-list li::before { content: "\2713"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--hy-green); font-weight: 800; }

/* product matrix on home */
.hy-product-tile { position: relative; overflow: hidden; border-radius: var(--hy-radius-lg);
  border: 1px solid var(--hy-line); background: #fff; display: flex; flex-direction: column; }
.hy-product-tile img { width: 100%; height: 170px; object-fit: cover; display: block; }
.hy-product-tile-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.hy-product-tile h3 { font-size: 17px; margin-bottom: 8px; }
.hy-product-tile p { font-size: 13.5px; margin: 0 0 16px; color: var(--hy-body); }
.hy-product-tile .hy-tile-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hy-product-tile .hy-tile-actions a { font-size: 13px; font-weight: 700; }

/* factory media */
.hy-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.hy-media { border-radius: var(--hy-radius-lg); overflow: hidden; background: var(--hy-navy-deep);
  position: relative; aspect-ratio: 4 / 3; }
.hy-media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; }
.hy-media button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  background: transparent; cursor: pointer; color: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.hy-media button span.hy-play { width: 52px; height: 52px; border-radius: 50%;
  background: rgba(253,120,7,.92); display: flex; align-items: center; justify-content: center; }
.hy-media button span.hy-play::after { content: ""; margin-inline-start: 3px;
  border-inline-start: 15px solid #fff; border-block: 9px solid transparent; }
.hy-media button small { font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px #000; }
.hy-media video { width: 100%; height: 100%; object-fit: contain; display: block;
  background: #000; }
.hy-media .hy-video-error { position: absolute; inset: auto 0 0 0; margin: 0;
  padding: 10px 14px; background: rgba(18,47,74,.94); color: #fff; font-size: 13px; }

/* V3.0: "Before you write" moved below the enquiry form so the short left
   column no longer ends in a large empty area. */
.hy-contact-tips { margin-top: 24px; }
@media (max-width: 600px) {
  .hy-contact-tips { margin-top: 20px; }
}

/* The two-column enquiry layout used an INLINE grid-template-columns, which
   no media query could override; on phones the right column collapsed and a
   long email address pushed the page 40 px wider than the viewport. */
.hy-contact-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,.85fr); }
.hy-card a, .hy-check-list a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .hy-contact-grid { grid-template-columns: minmax(0,1fr); }
}

/* ======================= 5. Product page blocks ======================== */
.hy-pdp-bar { background: var(--hy-navy); color: #dce8f3; }
.hy-pdp-bar .hy-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-block: 14px; }
.hy-pdp-bar .hy-crumb { font-size: 13px; color: #a9bfd2; }
.hy-pdp-bar .hy-crumb a { color: #cfe0ee; }
.hy-pdp-bar .hy-crumb span { margin-inline: 6px; }
.hy-pdp-bar .hy-bar-actions { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.hy-pdp-quick { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0;
  border: 1px solid var(--hy-line); border-radius: var(--hy-radius-lg); overflow: hidden;
  background: #fff; margin-block: 28px; }
.hy-pdp-quick div { padding: 18px 20px; border-inline-end: 1px solid var(--hy-line); }
.hy-pdp-quick div:last-child { border-inline-end: 0; }
.hy-pdp-quick dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--hy-muted); font-weight: 700; margin-bottom: 4px; }
.hy-pdp-quick dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--hy-navy); }

.hy-datasheet { display: flex; gap: 22px; align-items: center; background: var(--hy-bg-soft);
  border: 1px solid var(--hy-line); border-inline-start: 4px solid var(--hy-orange);
  border-radius: var(--hy-radius); padding: 20px 24px; margin-block: 26px; flex-wrap: wrap; }
.hy-datasheet-icon { width: 46px; height: 46px; border-radius: 8px; background: #fff;
  border: 1px solid var(--hy-line); display: flex; align-items: center; justify-content: center;
  color: var(--hy-red); font-size: 11px; font-weight: 800; flex-shrink: 0; }
.hy-datasheet-txt { flex: 1; min-width: 210px; }
.hy-datasheet-txt strong { display: block; color: var(--hy-navy); font-size: 16px; }
.hy-datasheet-txt span { font-size: 13px; color: var(--hy-muted); }
.hy-datasheet .hy-btn { flex-shrink: 0; }

.hy-commercial { border: 1px solid var(--hy-line); border-radius: var(--hy-radius-lg);
  overflow: hidden; margin-block: 30px; }
.hy-commercial h2 { font-size: 21px; background: var(--hy-bg-soft); margin: 0;
  padding: 16px 22px; border-bottom: 1px solid var(--hy-line); }
.hy-commercial table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hy-commercial th, .hy-commercial td { padding: 13px 22px; text-align: start;
  border-bottom: 1px solid var(--hy-line); vertical-align: top; }
.hy-commercial th { width: 190px; color: var(--hy-navy); font-weight: 700; background: #fbfdff; }
.hy-commercial tr:last-child th, .hy-commercial tr:last-child td { border-bottom: 0; }

.hy-cta-band { background: linear-gradient(100deg, var(--hy-navy) 0%, var(--hy-navy-2) 100%);
  color: #fff; border-radius: var(--hy-radius-lg); padding: 34px 38px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-block: 40px; }
.hy-cta-band h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.hy-cta-band p { margin: 0; color: #cfdeeb; font-size: 15px; max-width: 620px; }
.hy-cta-band .hy-cta-actions { margin-inline-start: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* ======================= 6. Forms ====================================== */
.hy-form { background: #fff; border: 1px solid var(--hy-line);
  border-radius: var(--hy-radius-lg); padding: 30px; box-shadow: var(--hy-shadow-sm); }
.hy-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.hy-field { display: flex; flex-direction: column; gap: 6px; }
.hy-field-full { grid-column: 1 / -1; }
.hy-form label { font-size: 13.5px; font-weight: 700; color: var(--hy-navy); }
.hy-form label .hy-req { color: var(--hy-red); }
.hy-form input[type="text"], .hy-form input[type="email"], .hy-form input[type="tel"],
.hy-form input[type="number"], .hy-form select, .hy-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--hy-ink);
  padding: 11px 13px; border: 1px solid #c8d4e1; border-radius: var(--hy-radius);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.hy-form input:focus, .hy-form select:focus, .hy-form textarea:focus {
  border-color: var(--hy-blue); box-shadow: 0 0 0 3px rgba(34,120,184,.13); }
.hy-form textarea { min-height: 118px; resize: vertical; }
.hy-form .hy-hint { font-size: 12px; color: var(--hy-muted); }
.hy-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px;
  color: var(--hy-body); grid-column: 1 / -1; }
.hy-consent input { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--hy-orange); }
.hy-consent a { color: var(--hy-blue); }
.hy-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; width: 0; }
.hy-form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.hy-form-msg { font-size: 14px; font-weight: 600; min-height: 20px; }
.hy-form-msg.is-ok { color: var(--hy-green); }
.hy-form-msg.is-err { color: var(--hy-red); }
.hy-form-note { font-size: 12.5px; color: var(--hy-muted); margin: 12px 0 0; }

/* ======================= 7. Selection tool ============================= */
.hy-tool { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 26px; align-items: start; }
.hy-tool-panel { background: #fff; border: 1px solid var(--hy-line); border-radius: var(--hy-radius-lg);
  padding: 24px; box-shadow: var(--hy-shadow-sm); }
.hy-tool-panel h2 { font-size: 20px; margin-bottom: 4px; }
.hy-tool-panel > p { font-size: 13px; color: var(--hy-muted); margin: 0 0 20px; }
.hy-tool-panel .hy-field { margin-bottom: 15px; }
.hy-tool-panel .hy-btn { width: 100%; }
.hy-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hy-result { background: #fff; border: 1px solid var(--hy-line); border-radius: var(--hy-radius-lg);
  padding: 26px; box-shadow: var(--hy-shadow-sm); }
.hy-result h2 { font-size: 20px; margin-bottom: 16px; }
.hy-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.hy-result-cell { background: var(--hy-bg-soft); border: 1px solid var(--hy-line);
  border-radius: var(--hy-radius); padding: 15px; }
.hy-result-cell span { display: block; font-size: 12px; color: var(--hy-muted); font-weight: 600; }
.hy-result-cell strong { display: block; font-size: 21px; color: var(--hy-navy); margin-top: 4px;
  font-variant-numeric: tabular-nums; }
.hy-result-cell small { display: block; font-size: 11.5px; color: var(--hy-muted); margin-top: 3px; }
.hy-alert { border-radius: var(--hy-radius); padding: 14px 16px; font-size: 14px; margin-top: 18px; }
.hy-alert-warn { background: #fff6e8; border: 1px solid #f2d6a8; color: #8a5410; }
.hy-alert-ok { background: #edf8f2; border: 1px solid #bfe5d0; color: #1c6c48; }
.hy-alert-err { background: #fdf0ee; border: 1px solid #f0c8c2; color: #8f2c20; }
.hy-formula { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 14px; }
.hy-formula th, .hy-formula td { border: 1px solid var(--hy-line); padding: 10px 13px; text-align: start; }
.hy-formula th { background: var(--hy-bg-soft); color: var(--hy-navy); }
.hy-formula code { background: #f2f6fa; padding: 2px 6px; border-radius: 4px;
  font-family: Consolas, Monaco, monospace; font-size: 13.5px; color: var(--hy-navy); }
.hy-tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* certificates / FAQ / download */
.hy-cert-card { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 22px;
  background: #fff; border: 1px solid var(--hy-line); border-radius: var(--hy-radius-lg);
  padding: 22px; align-items: start; }
.hy-cert-card img { width: 100%; border: 1px solid var(--hy-line); border-radius: 4px; }
.hy-cert-card h3 { font-size: 18px; margin-bottom: 8px; }
.hy-cert-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 5px 14px;
  font-size: 13.5px; margin: 12px 0; }
.hy-cert-card dt { color: var(--hy-muted); font-weight: 600; }
.hy-cert-card dd { margin: 0; color: var(--hy-ink); }
.hy-disclaimer { background: #fff6e8; border: 1px solid #f2d6a8; border-radius: var(--hy-radius);
  padding: 16px 20px; font-size: 13.5px; color: #7c4e12; }
.hy-faq details { background: #fff; border: 1px solid var(--hy-line); border-radius: var(--hy-radius);
  padding: 16px 20px; margin-bottom: 12px; }
.hy-faq summary { cursor: pointer; font-weight: 700; color: var(--hy-navy); font-size: 16px; }
.hy-faq details p { margin: 12px 0 0; font-size: 14.5px; }
.hy-download-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 16px; align-items: center; padding: 15px 18px; background: #fff;
  border: 1px solid var(--hy-line); border-radius: var(--hy-radius); margin-bottom: 10px; }
.hy-download-row .hy-pdf { width: 40px; height: 44px; border-radius: 4px; background: #fdeeea;
  color: var(--hy-red); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; }
.hy-download-row strong { display: block; color: var(--hy-navy); font-size: 15px; }
.hy-download-row span { font-size: 12.5px; color: var(--hy-muted); }

/* ======================= 8. Footer ===================================== */
.hy-shell .hy-footer { background: var(--hy-navy-deep); color: #b9cbdb; }
.hy-footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 38px;
  padding-block: 54px 40px; }
.hy-footer h3 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 16px; }
.hy-footer p { font-size: 13.5px; margin: 0 0 14px; }
.hy-footer ul li { margin-bottom: 9px; font-size: 13.5px; }
.hy-footer ul li a { color: #b9cbdb; }
.hy-footer ul li a:hover { color: #ffb26b; text-decoration: none; }
.hy-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
/* V3.0: footer uses the white-on-transparent logo. The old white square
   background / padding was needed for the dark logo and would hide a white
   one completely, so it is removed here. */
.hy-footer-brand img { width: 82px; height: 60px; object-fit: contain; }
.hy-footer-brand strong { color: #fff; font-size: 15px; line-height: 1.3; display: block; }
.hy-footer-contact li { display: flex; gap: 9px; align-items: flex-start; }
.hy-footer-contact svg { width: 14px; height: 14px; fill: #ffb26b; margin-top: 4px; flex-shrink: 0; }
.hy-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }
.hy-footer-bottom a { color: #b9cbdb; }
.hy-footer-bottom a:hover { color: #ffb26b; }

/* ======================= 9. Floating channels ========================= */
.hy-wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 200;
  display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff;
  padding: 11px 17px; border-radius: 40px; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  font-weight: 700; font-size: 14px; }
.hy-wa:hover { background: #1ebc59; color: #fff; text-decoration: none; }
.hy-wa svg { width: 21px; height: 21px; fill: #fff; }
.hy-wa-label { display: inline; }

.hy-cookie { position: fixed; inset-inline: 0; bottom: 0; z-index: 300;
  background: #102a41; color: #e2edf6; border-top: 3px solid var(--hy-orange);
  padding: 16px 0; display: none; }
.hy-cookie.is-visible { display: block; }
.hy-cookie .hy-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hy-cookie p { margin: 0; font-size: 13.5px; flex: 1; min-width: 260px; }
.hy-cookie a { color: #ffb26b; }
.hy-cookie .hy-cookie-btns { display: flex; gap: 10px; }

/* ======================= 10. Responsive =============================== */
@media (max-width: 1100px) {
  .hy-shell .hy-header .hy-wrap { gap: 14px; }
  .hy-nav > ul > li > a { padding: 10px 9px; font-size: 13.5px; }
  .hy-header-cta .hy-btn { padding: 10px 13px; font-size: 13px; }
  .hy-hero-inner { gap: 30px; }
}
@media (max-width: 960px) {
  .hy-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--hy-line);
    box-shadow: var(--hy-shadow); padding: 10px 24px 20px; max-height: 72vh; overflow-y: auto;
  }
  .hy-nav.is-open { display: block; }
  .hy-nav > ul { display: block; }
  .hy-nav > ul > li > a { padding: 11px 4px; border-bottom: 1px solid #eef2f6; }
  .hy-nav .hy-drop { display: block; position: static; box-shadow: none; border: 0;
    padding: 0 0 8px 14px; min-width: 0; }
  .hy-burger { display: block; margin-inline-start: auto; }
  .hy-header-cta { display: none; }
  .hy-hero-inner { grid-template-columns: 1fr; padding-block: 54px 60px; }
  .hy-hero-aside { max-width: 520px; }
  .hy-trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hy-trust-item:nth-child(2) { border-inline-end: 0; }
  .hy-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--hy-line); }
  .hy-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hy-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hy-footer-top { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
  .hy-tool { grid-template-columns: 1fr; }
  .hy-pdp-quick { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hy-pdp-quick div:nth-child(2) { border-inline-end: 0; }
  .hy-pdp-quick div:nth-child(-n+2) { border-bottom: 1px solid var(--hy-line); }
}
@media (max-width: 640px) {
  .hy-wrap { padding-inline: 16px; }
  .hy-section { padding-block: 46px; }
  .hy-topbar-tag { display: none; }
  .hy-topbar-contacts { gap: 12px; font-size: 12px; }
  .hy-shell .hy-header .hy-wrap { min-height: 68px; }
  .hy-brand img { width: 48px; height: 48px; }
  .hy-brand-txt strong { font-size: 14px; }
  .hy-brand-txt span { font-size: 9.5px; }
  .hy-hero h1 { font-size: 30px; }
  .hy-hero-lead { font-size: 16px; }
  .hy-hero-actions .hy-btn { width: 100%; }
  .hy-grid-2, .hy-grid-3, .hy-grid-4, .hy-media-grid, .hy-result-grid,
  .hy-footer-top, .hy-form-grid { grid-template-columns: 1fr; }
  .hy-trust-grid { grid-template-columns: 1fr 1fr; }
  .hy-trust-item { padding: 16px 12px; }
  .hy-trust-item strong { font-size: 18px; }
  .hy-pdp-quick { grid-template-columns: 1fr 1fr; }
  .hy-commercial th { width: 120px; }
  .hy-commercial th, .hy-commercial td { padding: 11px 13px; font-size: 13.5px; }
  .hy-cta-band { padding: 24px 20px; }
  .hy-cta-band .hy-cta-actions { margin-inline-start: 0; width: 100%; }
  .hy-cta-band .hy-cta-actions .hy-btn { flex: 1; }
  .hy-cert-card { grid-template-columns: 1fr; }
  .hy-cert-card img { max-width: 220px; }
  .hy-cert-card dl { grid-template-columns: 1fr; gap: 2px; }
  .hy-download-row { grid-template-columns: 40px 1fr; }
  .hy-download-row .hy-btn { grid-column: 1 / -1; }
  .hy-form { padding: 20px; }
  .hy-wa { inset-inline-end: 14px; bottom: 14px; padding: 11px 13px; }
  .hy-wa-label { display: none; }
  .hy-footer-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .hy-pdp-quick { grid-template-columns: 1fr; }
  .hy-pdp-quick div { border-inline-end: 0; border-bottom: 1px solid var(--hy-line); }
}

/* ======================= 11. RTL readiness (phase 2 /ar/) ============= */
/* Numbers, units, grade names and formulas must stay LTR inside RTL pages. */
[dir="rtl"] .hy-shell { text-align: start; }
[dir="rtl"] .hy-hero-inner, [dir="rtl"] .hy-cta-band { direction: rtl; }
[dir="rtl"] .hy-ltr, [dir="rtl"] code, [dir="rtl"] .hy-result-cell strong,
[dir="rtl"] .hy-form input, [dir="rtl"] .hy-form textarea, [dir="rtl"] .hy-form select {
  direction: ltr; unicode-bidi: isolate; text-align: start;
}

/* ======================= 12. Legacy-theme isolation ===================
   Product pages keep their original body copy and therefore also load the
   legacy theme CSS (grid + table styles). These rules pin the new shell to
   its own design so the old global rules cannot leak into it.
   ====================================================================== */
html body { background: var(--hy-white); }
.hy-shell, .hy-block, .hy-form { color: var(--hy-body); font-family: var(--hy-font); }
.hy-shell .hy-header { background: var(--hy-white); }
.hy-shell .hy-footer { background: var(--hy-navy-deep); color: #b9cbdb; }
.hy-hero, .hy-hero.hy-shell { color: #fff; }
.hy-hero h1, .hy-section-navy h2, .hy-section-navy h3 { color: #fff; }
.hy-pdp-bar .hy-btn-outline { color: #fff; border-color: #7e9ab3; background: transparent; }
.hy-pdp-bar .hy-btn-outline:hover { background: #fff; color: var(--hy-navy); border-color: #fff; }
.hy-pdp-bar .hy-crumb, .hy-pdp-bar .hy-crumb a { color: #cfe0ee; }
.hy-cookie p { color: #e2edf6; }
.hy-wa, .hy-wa:hover { color: #fff; }

/* Narrow screens: cookie actions must never be clipped. */
@media (max-width: 640px) {
  .hy-cookie .hy-wrap { flex-direction: column; align-items: stretch; gap: 12px; }
  .hy-cookie p { min-width: 0; }
  .hy-cookie .hy-cookie-btns { width: 100%; }
  .hy-cookie .hy-cookie-btns .hy-btn { flex: 1 1 0; padding-inline: 8px; }
  .hy-topbar-contacts { font-size: 11.5px; gap: 10px; }
  /* Keep the language switcher fully visible on narrow screens; the phone and
     WhatsApp links remain in the footer and floating button. */
  .hy-topbar-contacts a[href^="tel:"] { display: none; }
  .hy-lang-btn { font-size: 12px; padding: 4px 9px; }
}

/* ======================= 13. Products & applications hub ============== */
.hy-anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hy-anchor-nav a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--hy-line);
  border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--hy-navy);
  background: #fff;
}
.hy-anchor-nav a:hover { background: #fff5ee; border-color: var(--hy-orange); color: var(--hy-orange); text-decoration: none; }
.hy-section h2 small { font-size: 14px; font-weight: 500; color: var(--hy-muted); }
.hy-grade-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; margin-top: 18px;
}
.hy-grade-card {
  background: #fff; border: 1px solid var(--hy-line); border-radius: 8px;
  padding: 18px 18px 16px; display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hy-grade-card:hover { border-color: var(--hy-orange); box-shadow: 0 8px 22px rgba(18,47,74,.09); }
.hy-grade-card h3 { font-size: 19px; margin: 0 0 12px; }
.hy-grade-card h3 a { color: var(--hy-navy); }
.hy-grade-card h3 a:hover { color: var(--hy-orange); text-decoration: none; }
.hy-grade-dl { margin: 0 0 14px; font-size: 13px; }
.hy-grade-dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #e8eef4; }
.hy-grade-dl dt { color: var(--hy-muted); }
.hy-grade-dl dd { margin: 0; font-weight: 700; color: var(--hy-navy); text-align: end; }
.hy-grade-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; }
.hy-grade-links a { font-weight: 600; }
@media (max-width: 1100px) { .hy-grade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .hy-grade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .hy-grade-grid { grid-template-columns: minmax(0, 1fr); } }

/* ======================= 14. Print (selection result) ================= */
@media print {
  .hy-shell .hy-topbar, .hy-shell .hy-header, .hy-shell .hy-footer,
  .hy-wa, .hy-cookie, .hy-cta-band, .hy-tool-actions, .hy-hero-aside { display: none !important; }
  .hy-result, .hy-tool-panel { box-shadow: none; border-color: #bbb; }
  body { background: #fff; }
}
