/* YIMILA corporate website — brand: Royal Gold primary + China Red accent on white */
:root {
  --gold: #C4A017;
  --gold-dark: #A2840F;
  --gold-deep: #6E570B;
  --gold-soft: #E8D9A8;
  --red: #C8102E;
  --red-dark: #9E0C24;
  --red-deep: #7A091C;
  --ink: #1C1C1C;
  --body: #3D3D3D;
  --muted: #75706A;
  --paper: #FFFFFF;
  --bg-soft: #FAF7F1;
  --bg-warm: #F5EFE6;
  --line: #E7E1D8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 20, 10, 0.08);
  --shadow-lg: 0 18px 50px rgba(120, 100, 20, 0.16);
  --maxw: 1180px;
  --fs-h1: clamp(30px, 4.6vw, 52px);
  --fs-h2: clamp(26px, 3.4vw, 38px);
  --fs-small: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans", "Noto Sans Arabic", "Hiragino Sans", "Malgun Gothic", Tahoma, sans-serif;
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.kicker {
  display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; font-size: 12.5px; margin-bottom: 10px;
}
[dir="rtl"] .kicker { letter-spacing: 0; }
.h2 { font-size: var(--fs-h2); color: var(--ink); font-weight: 800; line-height: 1.25; }
.sub { color: var(--muted); max-width: 760px; margin-top: 12px; font-size: 16px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
.goldline { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 2px; margin: 18px auto 0; }

/* ---------- top bar & nav ---------- */
.topbar { background: var(--gold-deep); color: #F7E9D0; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #F7E9D0; }
.topbar .tb-mail:hover { color: #fff; text-decoration: underline; }
.langs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.langs button {
  background: transparent; border: 1px solid rgba(247, 233, 208, 0.35); color: #F7E9D0;
  padding: 3px 10px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-family: inherit;
  transition: all .18s;
}
.langs button:hover { border-color: var(--gold); color: #fff; }
.langs button.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

.nav {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand img { height: 44px; width: auto; }
.navlinks { display: flex; gap: 26px; align-items: center; }
.navlinks a { font-weight: 600; color: var(--ink); font-size: 15px; position: relative; padding: 6px 0; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .2s;
}
.navlinks a:hover::after { width: 100%; }
.navlinks a.active { color: var(--gold); }
.navlinks a.active::after { width: 100%; }

/* ---------- multi-page: series detail, breadcrumb, cta band ---------- */
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: 14px; margin-bottom: 26px; }
.crumb:hover { text-decoration: underline; }
.series-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; margin-bottom: 38px; }
.series-head .series-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); max-height: 320px; }
.series-head .series-img img { width: 100%; height: 100%; object-fit: cover; }
.cta-band {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold)); border-radius: var(--radius);
  color: #fff; padding: 44px 42px; display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.cta-band h3 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; }
.cta-band p { opacity: 0.92; font-size: 15px; margin-top: 6px; max-width: 560px; }
.cta-band .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-white { background: #fff; color: var(--gold-deep); }
.btn-white:hover { background: var(--gold-soft); color: var(--gold-deep); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none; font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--gold); color: #2B2007; box-shadow: 0 8px 20px rgba(164, 132, 15, 0.32); }
.btn-red:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.75); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-gold { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.nav .btn { white-space: nowrap; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(74, 58, 12, 0.88) 0%, rgba(140, 112, 22, 0.72) 38%, rgba(30, 22, 10, 0.45) 100%);
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 120px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(232, 217, 168, 0.5); color: var(--gold-soft);
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; letter-spacing: 1px;
}
.hero h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.2; margin: 22px 0 18px; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p { font-size: 17.5px; max-width: 680px; color: rgba(255, 255, 255, 0.92); }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin-top: 56px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.stat { padding: 22px 44px 4px 0; margin-inline-end: 44px; }
[dir="rtl"] .stat { padding: 22px 0 4px 44px; }
.stat b { display: block; font-size: 30px; color: var(--gold-soft); font-weight: 800; line-height: 1.1; }
.stat span { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 54px; align-items: center; margin-top: 40px; }
.about-points { margin-top: 26px; display: grid; gap: 18px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point .dot {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; margin-top: 3px;
}
.point h4 { color: var(--ink); font-size: 16px; }
.point p { font-size: 14.5px; color: var(--muted); }
.bruce-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.bruce-card .bc-top { background: linear-gradient(120deg, var(--gold-deep), var(--gold)); padding: 30px 28px; color: #fff; position: relative; }
.bruce-card .bc-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.bruce-card .avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-bottom: 14px;
  border: 3px solid rgba(255, 255, 255, 0.7);
}
.bruce-card .bc-name { font-size: 20px; font-weight: 800; }
.bruce-card .bc-role { color: var(--gold-soft); font-size: 14px; margin-top: 3px; }
.bruce-card .bc-body { padding: 22px 28px 26px; font-size: 14.5px; }
.bruce-card .bc-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.bruce-card .bc-row:last-child { border-bottom: none; }
.bruce-card .bc-row b { color: var(--gold); white-space: nowrap; font-size: 13px; }
.bruce-card .bc-row span { word-break: break-all; }

/* ---------- products ---------- */
.prod-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; justify-content: center; }
.filter-btn {
  background: #fff; border: 1.5px solid var(--line); color: var(--body); padding: 9px 18px;
  border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit; transition: all .18s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #2B2007; box-shadow: 0 6px 16px rgba(164, 132, 15, 0.28); }
.series-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.scard {
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.scard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.scard .sc-img { height: 170px; overflow: hidden; position: relative; }
.scard .sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.scard:hover .sc-img img { transform: scale(1.06); }
.scard .sc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(58, 46, 12, 0.55)); }
.scard .sc-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.scard h3 { color: var(--ink); font-size: 18px; }
.scard p { font-size: 13.5px; color: var(--muted); margin-top: 6px; flex: 1; }
.scard .sc-link { color: var(--gold); font-weight: 700; font-size: 14px; margin-top: 14px; cursor: pointer; background: none; border: none; font-family: inherit; text-align: start; padding: 0; }
.scard .sc-link:hover { text-decoration: underline; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: 30px; }
table.catalog { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.catalog thead th {
  background: var(--gold-deep); color: #F7E9D0; text-align: start; padding: 14px 16px; font-size: 13.5px;
  letter-spacing: 0.5px; font-weight: 700; white-space: nowrap;
}
table.catalog td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.catalog tbody th { text-align: start; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--gold-dark); font-weight: 800; white-space: nowrap; font-size: 15px; background: #FBF7EA; }
table.catalog tbody tr:hover { background: #FBF7EA; }
table.catalog tbody tr:last-child td { border-bottom: none; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-warm); color: var(--gold-dark); border: 1px solid var(--gold-soft); white-space: nowrap; }
.thick { white-space: nowrap; color: var(--ink); font-weight: 600; }
.row-actions { white-space: nowrap; }
.mini-btn {
  background: none; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 999px;
  padding: 5px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; margin-inline-end: 6px; transition: all .15s;
}
.mini-btn:hover { background: var(--gold); color: #fff; }
.mini-btn.gold { border-color: var(--red); color: #9E0C24; }
.mini-btn.gold:hover { background: var(--red); color: #fff; }

/* ---------- modal ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(20, 8, 10, 0.55); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; max-width: 960px; width: 100%; max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal .m-head { background: linear-gradient(120deg, var(--gold-deep), var(--gold)); color: #fff; padding: 24px 28px; position: sticky; top: 0; }
.modal .m-head .m-series { font-size: 12.5px; color: var(--gold-soft); font-weight: 700; letter-spacing: 1px; }
.modal .m-head h3 { font-size: 21px; margin-top: 4px; }
.modal .m-close {
  position: absolute; top: 14px; inset-inline-end: 16px; background: rgba(255, 255, 255, 0.18); border: none;
  color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer;
}
.modal .m-body { padding: 24px 28px 30px; }
/* product images inside modal */
.m-media { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }
.m-fig { margin: 0; width: 224px; max-width: 48%; flex: none; }
.m-fig img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in;
  background: var(--bg-soft); transition: transform .25s ease, box-shadow .25s ease;
}
.m-fig img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.m-fig figcaption { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--gold-dark); text-align: center; letter-spacing: .5px; }
/* grade code badge */
.gcode {
  display: inline-block; font-family: "Consolas", "Menlo", monospace; font-size: 12px; font-weight: 700;
  color: var(--red-dark); background: rgba(200, 16, 46, .08); border: 1px solid rgba(200, 16, 46, .25);
  border-radius: 6px; padding: 1px 8px; margin-inline-start: 6px; vertical-align: middle; letter-spacing: .5px; white-space: nowrap;
}
.gcode-lg { font-size: 14px; padding: 3px 12px; }
/* composition block in modal */
.m-comp {
  margin: 14px 0 18px; padding: 12px 16px; border-radius: 12px;
  background: var(--bg-soft, #faf7f5); border: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--ink);
}
.m-comp b { color: var(--gold-dark); }
.m-comp .comp-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
/* comparison table */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.cmp-table { border-collapse: collapse; min-width: 1580px; width: 100%; background: #fff; }
.cmp-table th, .cmp-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; white-space: nowrap; }
.cmp-table thead th { background: var(--red-dark); color: #fff; font-size: 12.5px; font-weight: 700; position: sticky; top: 0; z-index: 3; letter-spacing: .3px; }
.cmp-table td.cmp-val { text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-table th.cmp-series, .cmp-table td.cmp-code, .cmp-table td.cmp-name { position: sticky; left: 0; z-index: 2; background: #fff; }
.cmp-table thead th.cmp-series, .cmp-table thead th:nth-child(2), .cmp-table thead th:nth-child(3) { z-index: 4; }
.cmp-table th.cmp-series { background: var(--bg-soft, #faf7f5); color: var(--gold-dark); font-weight: 800; font-size: 12.5px; text-align: center; vertical-align: middle; border-inline-end: 2px solid rgba(164,132,15,.4); min-width: 110px; }
.cmp-table td.cmp-code { min-width: 118px; }
.cmp-table td.cmp-name { min-width: 220px; color: var(--ink); font-weight: 600; white-space: normal; min-width: 200px; }
.cmp-table td.cmp-comp { white-space: normal; min-width: 230px; color: var(--ink); font-size: 12.5px; max-width: 300px; }
.cmp-table td.cmp-adv { white-space: normal; min-width: 260px; max-width: 360px; color: var(--muted); font-size: 13px; }
.cmp-table tbody tr:hover td { background: rgba(164, 132, 15, .07); }
.cmp-table tbody tr:hover td.cmp-code, .cmp-table tbody tr:hover td.cmp-name { background: #fffdf4; }
.cmp-table tbody tr:hover th.cmp-series { background: #f8f3e2; }
/* RTL sticky columns */
[dir="rtl"] .cmp-table th.cmp-series, [dir="rtl"] .cmp-table td.cmp-code, [dir="rtl"] .cmp-table td.cmp-name { left: auto; right: 0; }

/* ---------- comparison toolbar / column chips / fullscreen ---------- */
body[data-page="comparison"] .section .container { max-width: 1480px; }
.cmp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.cmp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.chip-on { background: var(--gold); border-color: var(--gold); color: #2B2007; }
.cmp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cmp-frame { position: relative; margin-top: 4px; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; cursor: grab; }
.cmp-wrap.dragging { cursor: grabbing; user-select: none; }
.cmp-shade { position: absolute; top: 1px; bottom: 1px; width: 36px; pointer-events: none; opacity: 0; transition: opacity .2s ease; z-index: 6; }
.shade-l { left: 1px; background: linear-gradient(to right, rgba(45, 36, 12, .22), transparent); }
.shade-r { right: 1px; background: linear-gradient(to left, rgba(45, 36, 12, .22), transparent); }
.cmp-frame.show-l .shade-l, .cmp-frame.show-r .shade-r { opacity: 1; }
.cmp-wrap.cmp-fs ~ .cmp-shade { display: none; }
.cmp-table.hide-phys .g-phys { display: none; }
.cmp-table.hide-surf .g-surf { display: none; }
.cmp-table.hide-bar .g-bar { display: none; }
.cmp-table.hide-comp .g-comp { display: none; }
.cmp-table.hide-adv .g-adv { display: none; }
.cmp-wrap.cmp-fs { position: fixed; inset: 0; z-index: 150; margin: 0; border-radius: 0; border: none; background: #fff; padding: 84px 22px 30px; overflow: auto; }
.cmp-toolbar.cmp-fs-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 160; margin: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 12px 22px; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
body.cmp-lock { overflow: hidden; }
/* fullscreen lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15, 6, 8, .86); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
/* thumbnail inside product table */
.prow { display: inline-flex; align-items: center; gap: 11px; }
.pthumb { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; cursor: zoom-in; transition: transform .2s ease; background: var(--bg-soft); }
.pthumb:hover { transform: scale(1.08); }
.m-use { background: var(--bg-soft); border-inline-start: 4px solid var(--red); padding: 12px 16px; border-radius: 8px; font-size: 14.5px; margin-bottom: 20px; }
.m-thick { font-size: 15px; color: var(--ink); font-weight: 700; margin-bottom: 14px; }
.params { width: 100%; border-collapse: collapse; font-size: 14px; }
.params th, .params td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; }
.params th { background: var(--bg-warm); color: var(--ink); font-weight: 700; width: 46%; }
.params td { font-weight: 700; color: var(--gold-dark); }
.m-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.m-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold);
  border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow); transition: transform .18s;
}
.app-card:hover { transform: translateY(-4px); }
.app-card h4 { color: var(--ink); font-size: 16.5px; display: flex; align-items: center; gap: 10px; }
.app-card .ic { color: var(--gold); flex: 0 0 auto; }
.app-card p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------- markets ---------- */
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 42px; }
.mcard { border-radius: var(--radius); padding: 26px 24px; color: #fff; position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; }
.mcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.mcard h4 { font-size: 18px; margin-bottom: 10px; }
.mcard p { font-size: 13.5px; opacity: 0.94; flex: 1; }
.mcard .m-tags { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.mcard .m-tags span { background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3); padding: 3px 10px; border-radius: 999px; font-size: 11.5px; }
.mc1 { background: linear-gradient(135deg, #6E570B, #C4A017); }
.mc2 { background: linear-gradient(135deg, #5D4037, #8D6E63); }
.mc3 { background: linear-gradient(135deg, #1F2A44, #3D5378); }
.mc4 { background: linear-gradient(135deg, #7A091C, #C8102E); }

/* ---------- quality ---------- */
.qual-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; margin-top: 40px; }
.qual-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.qual-img::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius); }
.qual-img img { display: block; width: 100%; height: auto; }
.qual-img img.stacked { margin-top: 14px; }
.qual-list { display: grid; gap: 20px; }
.qitem { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.qitem .qn { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-warm); border: 1.5px solid var(--red); color: var(--gold-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.qitem h4 { color: var(--ink); font-size: 15.5px; }
.qitem p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 42px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow); transition: transform .18s; display: flex; flex-direction: column; }
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ccard .cico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.ccard .cico svg { width: 26px; height: 26px; }
.ico-wa { background: #E4F5EC; color: #1EA855; }
.ico-wc { background: #FDF1F1; color: var(--red); }
.ico-em { background: #FDF4E3; color: #B8860B; }
.ico-tel { background: #EDF2FB; color: #3D5378; }
.ccard h4 { color: var(--ink); font-size: 16px; }
.ccard p { font-size: 13px; color: var(--muted); margin: 8px 0 16px; flex: 1; word-break: break-all; }
.ccard .btn { justify-content: center; }
.btn-wa { background: #1EA855; color: #fff; }
.btn-wa:hover { background: #178C46; }
.btn-wc { background: var(--gold); color: #2B2007; }
.btn-wc:hover { background: var(--gold-dark); color: #fff; }
.btn-em { background: var(--red); color: #fff; }
.btn-tel { background: #3D5378; color: #fff; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 780px; margin: 46px auto 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 14.5px;
  font-family: inherit; color: var(--body); background: var(--bg-soft); transition: border-color .15s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-card textarea { min-height: 110px; resize: vertical; }
.form-actions { margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--muted); }
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink);
  color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: all .3s; z-index: 200; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- footer ---------- */
footer { background: var(--gold-deep); color: #F2DFC0; padding: 54px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 40px; }
.foot-grid img.flogo { height: 46px; width: auto; margin-bottom: 16px; }
.foot-grid p { font-size: 13.5px; opacity: 0.9; max-width: 380px; }
.foot-grid h5 { color: #fff; font-size: 14.5px; margin-bottom: 14px; letter-spacing: 1px; }
.foot-grid ul { list-style: none; font-size: 13.5px; display: grid; gap: 9px; }
.foot-grid ul a:hover { color: #fff; text-decoration: underline; }
.foot-grid .gold { color: var(--gold-soft); }
.foot-bar { border-top: 1px solid rgba(247, 233, 208, 0.25); padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot-bar a { color: var(--gold-soft); font-weight: 700; }

/* floating whatsapp */
.fab-wa {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #1EA855; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(30, 168, 85, 0.45);
  transition: transform .18s;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; color: #fff; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .series-cards { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .qual-grid { grid-template-columns: 1fr; gap: 34px; }
  .series-head { grid-template-columns: 1fr; gap: 26px; }
  .m-fig { width: 200px; max-width: 44%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .navlinks {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 18px 24px; gap: 14px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); align-items: flex-start;
  }
  .navlinks.open { display: flex; }
  .burger { display: block; }
  .nav .btn { display: none; }
  .series-cards, .market-grid, .contact-cards, .app-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat { padding-inline: 0; margin-inline-end: 0; width: 50%; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .table-wrap { overflow-x: auto; }
  table.catalog { min-width: 640px; }
}

/* SEO static blocks (AI-crawler friendly, visible English content) */
.seo-block { border-top: 1px solid var(--line); }
.seo-block h2 { font-size: clamp(20px, 2.6vw, 28px); color: var(--ink); margin-bottom: 14px; }
.seo-block > .container > p { color: var(--body); font-size: 15px; line-height: 1.75; max-width: 900px; margin-bottom: 22px; }
.seo-block .table-wrap { box-shadow: none; max-height: none; overflow-x: auto; }
.seo-table { font-size: 13px; }
.seo-table th { background: var(--red-dark); color: #fff; white-space: nowrap; }
.seo-table td { padding: 10px 14px; vertical-align: top; }
.seo-table td strong { font-family: "Consolas", "Menlo", monospace; color: var(--red-dark); }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
.faq-item h3 { font-size: 15.5px; color: var(--ink); margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; line-height: 1.7; color: var(--body); }
