/*
Theme Name: Zenith Mill RU
Theme URI: https://zenithmill.ru/
Author: Zenith / WorkBuddy
Description: Промышленное оборудование для измельчения — тема для Ru-Net. CPT + ACF, чистый Telegram-видеопоток, 152-ФЗ.
Version: 1.0.0
Requires PHP: 7.4
Requires at least: 6.0
Text Domain: zenith
License: Proprietary
*/
/* ============================================================
   zenithmill.ru — Design System
   主背景 #111827 | 卡片 #1F2937 | 工业橙 #f97316 | 钛银钢 #374151
   字体: Inter / Roboto (自托管, 禁止外链 Google Fonts)
   断点: <768 单列 | 768–1024 双列 | >1024 多列网格
   ============================================================ */

:root {
  --bg: #111827;
  --card: #1F2937;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --line: #374151;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --green: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }
/* overflow-x:hidden 会让 body 变成滚动容器、令 position:sticky 失效；
   现代浏览器用 clip（同样裁剪但不创建滚动容器），老浏览器保留 hidden 兜底。 */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

/* 防横向溢出铁律: 所有网格/弹性子项允许收缩到 0 */
.hero-inner > *, .grid-cards > *, .grid-cards-3 > *, .video-wall > *,
.form-grid > *, .footer-inner > *, .header-inner > * { min-width: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  body { font-size: 14px; padding-bottom: 64px; }
}

/* 微弱钛银钢网格纹理背景 */
.bg-grid {
  background-image:
    linear-gradient(rgba(55, 65, 81, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 65, 81, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--white); line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; margin-bottom: 24px; }
h3 { font-size: 1.15rem; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 24, 39, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--white); letter-spacing: .5px; }
.logo .mark { color: var(--accent); }
/* 品牌 logo：深色底专用近白版（橙色标保留），2x 位图避免虚边 */
.logo-img { height: 30px; width: auto; display: block; }
.footer-logo-img { height: 40px; width: auto; display: block; margin-bottom: 14px; }
@media (max-width: 767px) {
  .logo-img { height: 26px; }
  .footer-logo-img { height: 34px; }
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent); }
.header-cta {
  background: var(--accent); color: var(--white); padding: 9px 16px;
  border-radius: 6px; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.header-cta:hover { background: var(--accent-hover); color: var(--white); }

/* 移动端顶栏常驻功能区（2026-11-14 高转化改造）：Каталог 直达 + WhatsApp 快捷咨询，桌面隐藏 */
.header-quick { display: none; }
.hq-catalog {
  color: var(--accent); font-weight: 700; font-size: .9rem;
  white-space: nowrap; text-decoration: none;
  border: 1px solid var(--accent); border-radius: 6px;
  padding: 6px 12px; line-height: 1.2; flex: 0 0 auto;
}
.hq-catalog:hover { background: var(--accent); color: var(--white); }
.hq-wa {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 auto;
  color: #25D366; border: 1px solid rgba(37, 211, 102, .45);
  border-radius: 50%; transition: background .2s;
}
.hq-wa svg { width: 19px; height: 19px; }
.hq-wa:hover { background: rgba(37, 211, 102, .14); }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 1023px) {
  .burger { display: block; }
  .header-inner { height: 60px; gap: 10px; }
  .header-quick { display: flex; align-items: center; gap: 10px; margin-left: auto; }
  .hq-catalog, .hq-wa { flex: 0 0 auto; }
  .nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 14px;
  }
  .nav.open { display: flex; }
  .header-cta { display: none; }
}
/* iPhone SE 级窄屏：logo 与右侧功能互不挤压 */
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .logo-img { height: 22px; }
  .hq-catalog { padding: 5px 9px; font-size: .84rem; }
  .hq-wa { width: 32px; height: 32px; }
  .hq-wa svg { width: 17px; height: 17px; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 1023px) { .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 767px) { .hero { padding: 44px 0 36px; } }
/* 无实拍图机型（MTW6X / PMD / LM-Y）：正文通栏，不留半屏空白 */
.hero-inner.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

.hero h1 { margin-bottom: 18px; }
.hero .subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 28px; }

.capsules {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px;
  max-width: 100%;
}
.capsule {
  border: 2px solid var(--accent); border-radius: 999px;
  background: rgba(249, 115, 22, .08);
  color: var(--white); font-size: .9rem; font-weight: 600;
  padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
}
@media (max-width: 767px) {
  /* 铁律: 手机端禁止横向滚动/截断 —— 参数胶囊改为换行排列, 全部完整可见 */
  .capsules {
    display: flex; flex-wrap: wrap; gap: 8px;
    width: 100%; max-width: 100%;
    overflow: visible; padding-bottom: 0;
    margin-bottom: 18px;
  }
  .capsule {
    white-space: normal; flex-shrink: 1; max-width: 100%;
    font-size: .82rem; line-height: 1.4; padding: 8px 13px;
  }
}

.btn {
  display: inline-block; background: var(--accent); color: var(--white);
  font-weight: 700; font-size: 1rem; padding: 14px 30px; border-radius: 8px;
  border: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline {
  background: transparent; border: 2px solid var(--accent); color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-green { background: var(--green); }
.btn-green:hover { background: #1ebe5a; color: var(--white); }
.btn-lg { font-size: 1.05rem; padding: 16px 36px; }

/* ---------- Sections & cards ---------- */
.section { padding: 64px 0; }
.section-alt { background: #0d1420; }
.section-sub { color: var(--text-muted); max-width: 760px; margin-bottom: 32px; }

.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.grid-cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 1023px) {
  .grid-cards, .grid-cards-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .grid-cards, .grid-cards-3 { grid-template-columns: minmax(0,1fr); }
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .icon { font-size: 2rem; line-height: 1; }
/* 联系渠道卡：内联 SVG 图标（与表单切换器同源，避免 emoji 渲染成色块） */
.card .icon-svg svg { width: 30px; height: 30px; fill: var(--accent); display: block; }
.card p { color: var(--text-muted); font-size: .95rem; flex-grow: 1; }
.card .card-link { margin-top: auto; font-weight: 600; }

/* ---------- 带实拍图的卡片（设备目录 / 首页设备区） ---------- */
.card-media { padding: 0; overflow: hidden; }
.card-thumb { display: block; position: relative; overflow: hidden; background: #0d1420; }
.card-thumb img {
  display: block; width: 100%; height: 178px; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-media .card-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; flex-grow: 1; }
.card-media h3 { font-size: 1.02rem; }
.card-media .card-link { margin-top: auto; font-weight: 600; align-self: flex-start; }
/* 无实拍图机型卡：与同排高图卡等高时内容垂直居中，不留大片空白 */
.card-noimg { justify-content: center; position: relative; overflow: hidden; }
.card-noimg::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(249,115,22,.15));
}
.card-noimg p { flex-grow: 0; }
.card-noimg .card-link { margin-top: 6px; align-self: flex-start; }
/* 卡片核心参数摘要行（产时/细度/入料） */
.card-params { font-size: .84rem; color: var(--accent); font-weight: 600; letter-spacing: .01em; }
@media (max-width: 767px) {
  .card-thumb img { height: 200px; }
}
/* 两列大卡（设备目录）：图更高，避免细长条 */
.grid-2 .card-thumb img { height: 250px; }
@media (max-width: 767px) {
  .grid-2 .card-thumb img { height: 200px; }
}

/* ---------- 产品/场景实拍大图 ---------- */
.product-figure { margin: 0; }
.product-figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: #0d1420;
}
.product-figure figcaption {
  margin-top: 10px; font-size: .84rem; color: var(--text-muted);
}
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.product-gallery figure { margin: 0; }
.product-gallery img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); background: #0d1420;
}
.product-gallery figcaption { margin-top: 8px; font-size: .82rem; color: var(--text-muted); }
/* 物料页实拍图对（原矿 / 成品粉末） */
.mat-gallery { margin-top: 26px; }
.mat-gallery figcaption strong { color: var(--text); font-weight: 600; }
/* 只有一张补充图时通栏显示，避免右侧留出半屏空白 */
.product-gallery.single { grid-template-columns: minmax(0,1fr); }
.product-gallery.single img { aspect-ratio: 16 / 9; max-height: 420px; }
@media (max-width: 767px) {
  .product-gallery { grid-template-columns: minmax(0,1fr); gap: 14px; }
}
/* 通栏场景图（关于我们 / EPC 线） */
.figure-wide { margin: 0 0 28px; }
.figure-wide img {
  display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: #0d1420;
}
.figure-wide figcaption { margin-top: 10px; font-size: .84rem; color: var(--text-muted); }
/* 超宽全景图（/about/ 展厅 2.09:1）：不裁上下，保持原比例 */
.figure-wide.figure-pano img { max-height: none; object-fit: contain; }
/* 移动端：全景图按 2.09:1 只剩 160px 高，设备糊成一排 —— 收成 16:10 取中段，设备看得清 */
@media (max-width: 767px) {
  .figure-wide.figure-pano img { aspect-ratio: 16 / 10; object-fit: cover; }
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 8px; margin: 24px 0;
}
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: #17222f; color: var(--white); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td strong { color: var(--accent); }
.table-note { color: var(--text-muted); font-size: .85rem; margin-top: 8px; }
/* 移动端：两列属性表（Свойства сырья）不强制 640px 横向滚动，允许换行铺满；
   多列参数表仍保留横向滚动，避免挤压成不可读的窄条 */
@media (max-width: 767px) {
  .props-box table { min-width: 0; }
  .props-box th { white-space: normal; width: 41%; }
  .props-box th, .props-box td { padding: 11px 12px; font-size: .88rem; overflow-wrap: anywhere; }
}

/* ---------- Telegram video (干净响应式容器, 无占位/无按钮) ---------- */
.video-container {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; margin: 24px 0;
  width: 100%; max-width: 100%; overflow: hidden;
}
/* Telegram widget 注入的 iframe 在任何屏宽下都不许撑破容器 */
.video-container iframe,
.video-container .tgme_widget { max-width: 100% !important; }
.video-wall { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
@media (max-width: 767px) { .video-wall { grid-template-columns: minmax(0,1fr); } }
/* 只挂一个视频时通栏，避免半屏空白（EPC 页 2026-11-14 起只保留 1 个整线视频） */
.video-wall > :only-child { grid-column: 1 / -1; max-width: 880px; justify-self: center; width: 100%; }
.video-wall .video-container { margin: 0; }

/* ---------- Form ---------- */
.form-section { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 34px; margin: 56px 0; }
.form-section h2 { margin-bottom: 8px; }
.form-section .form-sub { color: var(--text-muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 767px) { .form-grid { grid-template-columns: minmax(0,1fr); } }

.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--white); }
.field input, .field textarea {
  width: 100%; background: #111827; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font-size: 1rem; padding: 12px 14px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }

.consent {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px;
  font-size: .88rem; color: var(--text-muted);
}
.consent input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.consent a { text-decoration: underline; }
.form-actions { margin-top: 20px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--green); }
.form-status.err { display: block; color: #f87171; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 18px; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.sep { margin: 0 6px; color: var(--line); }

/* ---------- Content blocks ---------- */
/* 只设纵向内边距, 横向交给 .container 的 0 20px, 避免覆盖后贴边 */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head .breadcrumbs { padding-top: 0; }
.prose { max-width: 800px; }
.prose p { margin: 14px 0; color: var(--text); }
.prose ul, .prose ol { margin: 14px 0 14px 22px; }
.prose li { margin: 8px 0; }
.process-steps { counter-reset: step; margin: 20px 0; }
.process-steps li {
  counter-increment: step; list-style: none; padding: 14px 18px 14px 52px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  margin: 10px 0; position: relative;
}
.process-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.tag-link { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; margin: 6px 6px 0 0; color: var(--text); font-size: .92rem; }
.tag-link:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0d1420; margin-top: 40px; }
/* 注意: 横向内边距必须显式写出, 简写 padding 会覆盖 .container 的 0 20px */
.footer-inner {
  display: grid; grid-template-columns: 1.45fr 1.35fr .85fr 1.2fr;
  gap: 40px; padding: 48px 20px 34px;
}
/* 平板: 四列会挤成窄条, 退为双列 */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .footer-brand { grid-column: 1 / -1; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .footer-contacts { grid-column: 1 / -1; }
  .footer-contacts ul { max-width: 460px; }
}
.footer-brand .footer-logo {
  color: var(--white); font-size: 1.42rem; font-weight: 800;
  letter-spacing: -.02em; line-height: 1; margin-bottom: 14px;
}
.footer-brand .footer-logo span { color: var(--accent); }
.footer-brand .footer-slogan { color: var(--text-muted); font-size: .9rem; line-height: 1.65; max-width: 44ch; }
.footer-brand .footer-tg {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; font-size: .9rem; font-weight: 600; color: var(--accent);
}
.footer-brand .footer-tg:hover { color: var(--accent-hover); }
.footer-col h4 {
  color: var(--text); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .11em; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin: 9px 0; }
.footer-col a { color: var(--text-muted); font-size: .9rem; line-height: 1.5; display: inline-block; }
.footer-col a:hover { color: var(--accent); }
/* 联系方式: 标签 + 值 的表格化行, 分隔线细如发丝 */
.footer-contacts li { margin: 0; }
.footer-contacts a.fc-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(55, 65, 81, .55);
  color: var(--text); font-size: .9rem;
}
.footer-contacts li:last-child a.fc-row { border-bottom: 0; }
.footer-contacts .fc-k { color: var(--text-muted); font-size: .8rem; flex: none; }
.footer-contacts .fc-v { color: var(--text); font-weight: 600; text-align: right; }
.footer-contacts a.fc-row:hover .fc-v { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 20px; font-size: .85rem;
  color: var(--text-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ============================================================
   右侧快捷沟通栏（自建，替代商务通默认圆点浮标）
   俄语市场优先级：在线 чат > WhatsApp > Telegram > Наверх
   ============================================================ */
.side-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 95;   /* 低于 header(100)：移动端下拉菜单展开时自动盖住 */
  display: flex; flex-direction: column;
  width: 72px;
  background: #1F2937;
  border: 1px solid #374151; border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: -8px 0 28px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.sr-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; width: 100%; min-height: 66px; padding: 11px 2px;
  background: transparent; border: 0; border-bottom: 1px solid #374151;
  border-radius: 0; color: #D1D5DB;
  font-family: inherit; font-size: .63rem; font-weight: 600; letter-spacing: 0;
  line-height: 1.15; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, color .18s ease;
}
.sr-item:last-child { border-bottom: 0; }
.sr-item svg { width: 22px; height: 22px; flex: 0 0 auto; }
.sr-item:hover, .sr-item:focus-visible { background: #111827; color: #fff; outline: 0; }
/* 在线客服：唯一实心橙块，视觉第一优先级 */
.sr-chat { background: var(--accent); color: #fff; }
.sr-chat:hover, .sr-chat:focus-visible { background: #ea580c; }
/* 品牌色只给图标，文字保持中性，避免整条花掉 */
.sr-wa svg { color: #25D366; }
.sr-tg svg { color: #2AABEE; }
.sr-wa:hover svg { color: #25D366; }
.sr-tg:hover svg { color: #2AABEE; }
/* 返回顶部：滚动 400px 后才出现 */
.sr-top { max-height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; }
.side-rail.show-top .sr-top { max-height: 90px; min-height: 64px; padding: 10px 2px; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .sr-top { transition: max-height .22s ease, opacity .2s ease, padding .22s ease, background .18s ease; }
}
@media (max-width: 1023px) {
  /* 平板/手机：只留「Чат」圆形按钮，贴在吸底栏上方，避免遮挡正文 */
  .side-rail {
    top: auto; bottom: 74px; transform: none;
    width: 56px; border-radius: 28px 0 0 28px; border-right: 0;
  }
  .side-rail .sr-item { min-height: 56px; padding: 10px 2px; border-bottom: 0; }
  .side-rail .sr-item span { display: none; }
  .side-rail .sr-wa, .side-rail .sr-tg, .side-rail .sr-top { display: none; }
  .sr-chat { border-radius: 28px 0 0 28px; }
  .sr-item svg { width: 24px; height: 24px; }
}
@media (max-width: 767px) {
  .side-rail { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }  /* 吸底栏 56 + 10 间距，兼容 iPhone 安全区 */
}

/* ---------- Mobile sticky bar (<768px) ---------- */
.sticky-bar {
  display: none;
}
@media (max-width: 767px) {
  .sticky-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    gap: 1px; height: 56px;
  }
  .sticky-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .95rem; color: var(--white); min-height: 48px;
  }
  .sticky-bar .sb-wa { background: var(--green); }
  .sticky-bar .sb-lead { background: var(--accent); }
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 110px 20px; }
.error-page .code { font-size: 6rem; font-weight: 800; color: var(--accent); line-height: 1; }

/* ============================================================
   移动端专项修正 (<768px) — 排版/间距/触控尺寸
   ============================================================ */
@media (max-width: 767px) {
  h1 { font-size: 1.65rem; line-height: 1.3; }
  h2 { font-size: 1.32rem; margin-bottom: 18px; }
  h3 { font-size: 1.05rem; }
  /* 首屏信息优先级: 26px 标题 → 14px 副文 → 参数胶囊 → CTA, 一屏内可见 */
  .hero h1 { font-size: 26px; line-height: 1.25; margin-bottom: 12px; }
  .hero .subtitle { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
  .section { padding: 38px 0; }
  .section-sub { margin-bottom: 22px; }
  .card { padding: 20px; }
  .form-section { padding: 20px; margin: 36px 0; }
  .btn { width: 100%; padding: 14px 20px; }
  .btn-lg { width: 100%; }
  .hero .btn-lg { margin-bottom: 4px; }
  th, td { padding: 11px 12px; font-size: .88rem; }
  table { min-width: 560px; }
  .video-container { padding: 8px; }
  .breadcrumbs { font-size: .78rem; }
  .process-steps li { padding: 12px 14px 12px 44px; font-size: .93rem; }
  .error-page { padding: 70px 16px; }
  .error-page .code { font-size: 4.4rem; }
  .site-footer { margin-top: 28px; }
  /* 品牌区通栏 + 链接双列 + 联系方式通栏 —— 比单列堆叠矮近一半 */
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; padding: 28px 20px 10px; }
  .footer-brand {
    grid-column: 1 / -1; padding-bottom: 20px; margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .footer-brand .footer-logo { font-size: 1.24rem; margin-bottom: 10px; }
  .footer-brand .footer-slogan { font-size: .85rem; line-height: 1.6; }
  .footer-brand .footer-tg { margin-top: 12px; font-size: .85rem; }
  .footer-col h4 { font-size: .72rem; letter-spacing: .1em; margin-bottom: 10px; }
  .footer-col li { margin: 8px 0; }
  .footer-col a { font-size: .86rem; }
  /* 设备名较长: 通栏单列, 每条尽量一行; 物料名短: 双列, 高度减半 */
  .footer-col-equip { grid-column: 1 / -1; margin-top: 10px; }
  .footer-col-equip li { margin: 9px 0; }
  .footer-col-mats { grid-column: 1 / -1; margin-top: 22px; }
  .footer-col-mats ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .footer-contacts {
    grid-column: 1 / -1; margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .footer-contacts a.fc-row { padding: 10px 0; font-size: .88rem; }
  .footer-bottom {
    padding: 16px 20px 24px; font-size: .74rem; line-height: 1.6;
    flex-direction: column; gap: 8px;
  }
  .footer-bottom span:last-child { color: #6b7280; }
}

/* 双列网格: 由类控制, 禁止内联样式 (内联会压过媒体查询) */
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 767px) { .grid-2 { grid-template-columns: minmax(0,1fr); } }

/* 参数表横向滚动提示 (仅移动端) */
.scroll-hint { display: none; }
@media (max-width: 767px) {
  .scroll-hint {
    display: block; font-size: .78rem; color: var(--text-muted);
    margin-bottom: 8px;
  }
  /* 面包屑改为自动换行, 不再横向截断 */
  .breadcrumbs {
    white-space: normal; overflow: visible; line-height: 1.5;
    word-break: break-word;
  }
  .page-head { padding-top: 20px; padding-bottom: 0; }
}

/* ============================================================
   原生 <video> 纯净流（取代 Telegram 帖子 widget）
   - 零固定高度：height:auto，由视频原始比例自然撑开
   - 宽度 100% + max-width 100%，绝不溢出
   - 横屏/竖屏自适应对齐：
     max-height 用视口相对单位 vh（弹性上限，非固定 px 高度），
     约束 9:16 纯竖屏视频在多列网格里撑出超高卡片；
     object-fit:contain 等比完整显示不裁切，letterbox 用卡片同色融入暗底。
   ============================================================ */
.zenith-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  border-radius: 6px;
  background: #1F2937;
  object-fit: contain;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .zenith-video { max-height: 66vh; }
}

/* ============================================================
   询盘表单 · 可切换联系方式类型（Switchable Contact Type）
   - 带图标的紧凑切换标签 + 右侧动态输入框
   - 双列紧凑：Имя | Email / 通讯方式 full / Сообщение full
   ============================================================ */
.field label .opt {
  font-weight: 400; font-size: .8rem; color: var(--text-muted);
}

/* 类型切换标签组 */
.contact-switch {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.cs-tab {
  display: inline-flex; align-items: center; gap: 7px;
  background: #111827; color: var(--text-muted);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 14px; font-family: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
  min-height: 40px;
}
.cs-tab svg { width: 17px; height: 17px; flex-shrink: 0; }
.cs-tab:hover { border-color: var(--accent); color: var(--text); }
.cs-tab.is-active {
  border-color: var(--accent);
  background: rgba(249, 115, 22, .12);
  color: var(--white);
}
.cs-tab.is-active svg { color: var(--accent); }

/* 动态输入框：左侧当前类型图标 + 区号 + 输入 */
/* 注意：不能用 overflow:hidden 裁圆角，否则向上展开的区号下拉会被裁掉 —— 改用子元素自身圆角 */
.contact-input {
  display: flex; align-items: stretch; position: relative;
  background: #111827; border: 1px solid var(--line); border-radius: 6px;
  overflow: visible; transition: border-color .2s;
}
.contact-input:focus-within { border-color: var(--accent); }
.ci-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; flex-shrink: 0; color: var(--accent);
  background: rgba(249, 115, 22, .07);
  border-right: 1px solid var(--line);
  border-radius: 6px 0 0 6px;
}
.ci-icon svg { width: 20px; height: 20px; }
.contact-input input {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: 12px 14px; font-size: 1rem; color: var(--text);
  border-radius: 0 6px 6px 0;
}
.contact-input input:focus { outline: none; border: none; }

/* 移动端：标签 2×2 紧凑排布 */
@media (max-width: 767px) {
  .contact-switch { gap: 6px; }
  .cs-tab { flex: 1 1 calc(33.333% - 6px); justify-content: center; padding: 9px 4px; font-size: .8rem; gap: 5px; }
  .cs-tab svg { width: 15px; height: 15px; }
  .cc-list { width: 200px; max-height: 210px; }
}

/* ---------- 国别区号选择器（所有渠道统一标配，默认 🇷🇺 +7） ---------- */
.cc-select { position: relative; flex-shrink: 0; }
.cc-btn {
  display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 10px; background: rgba(249, 115, 22, .07);
  border: none; border-right: 1px solid var(--line);
  color: var(--text); font-family: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: color .2s;
}
.cc-btn:hover { color: var(--white); }
.cc-svg {
  width: 22px; height: 15px; display: block; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
.cc-code { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-caret { width: 10px; height: 10px; fill: none; stroke: var(--text-muted); stroke-width: 1.6; transition: transform .2s; }
.cc-select.open .cc-caret { transform: rotate(180deg); }
.cc-list {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 0;
  width: 240px; max-height: 240px; overflow-y: auto;
  margin: 0; padding: 4px; list-style: none; z-index: 60;
  background: #1F2937; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.cc-select.open .cc-list { display: block; }
.cc-list button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; background: none; border: none; border-radius: 6px;
  color: var(--text); font-family: inherit; font-size: .9rem;
  cursor: pointer; text-align: left;
}
.cc-list button:hover { background: rgba(249, 115, 22, .12); color: var(--white); }
.cc-list button[aria-selected="true"] { background: rgba(249, 115, 22, .18); }
.cc-list .cc-dial { font-weight: 700; color: var(--accent); white-space: nowrap; }
.cc-list .cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 全必填校验：红字内联提示 + 提交按钮点亮门控 ---------- */
.field-err {
  display: block; margin-top: 6px;
  font-size: .82rem; font-weight: 600; color: #f87171;
}
.field-err[hidden] { display: none; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #f87171 !important; }
.field.is-invalid .contact-input { border-color: #f87171 !important; }
.consent.is-invalid span { color: #f87171; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--accent); }

/* ---------- FAQ 页（原 Решения EPC 重构，2026-11-14） ---------- */
.faq-hero { padding-top: 64px; padding-bottom: 20px; text-align: center; }
.faq-hero h1 { max-width: 900px; margin: 0 auto; }
.faq-video-sec { padding-top: 12px; padding-bottom: 8px; }
.video-frame { max-width: 960px; margin: 0 auto; }
.video-frame figcaption { text-align: center; color: #9ca3af; font-size: 14px; margin-top: 10px; }
.faq-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 960px; margin: 0 auto 30px; overflow: visible;
}
.faq-tab {
  padding: 9px 18px; border: 1px solid #374151; border-radius: 999px;
  color: #d1d5db; font-size: 14px; font-weight: 600; background: transparent;
  text-decoration: none; transition: border-color .2s, color .2s, background .2s;
}
.faq-tab:hover { border-color: #f97316; color: #f97316; }
.faq-tab.is-active { background: #f97316; border-color: #f97316; color: #fff; }
.faq-cat { max-width: 960px; margin: 0 auto 36px; scroll-margin-top: 92px; }
.faq-cat-h { font-size: 22px; margin: 0 0 14px; }
.faq-item { background: #1F2937; border: 1px solid #374151; border-radius: 8px; margin-bottom: 12px; transition: border-color .2s; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; color: var(--white); font-weight: 700; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { width: 16px; height: 16px; flex: 0 0 16px; stroke: #f97316; stroke-width: 2.4; fill: none; transition: transform .25s; }
.faq-item[open] { border-color: #f97316; }
.faq-item[open] .faq-x { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px; color: #d1d5db; line-height: 1.65; }
.faq-a p { margin: 0; }
@media (max-width: 767px) {
  .faq-hero { padding: 36px 0 16px; }
  .faq-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
  .faq-tab { padding: 8px 10px; font-size: .78rem; text-align: center; line-height: 1.3; }
  .faq-hero h1 { font-size: 26px; }
  .faq-cat-h { font-size: 19px; }
  .faq-item summary { padding: 15px 16px; font-size: .92rem; }
  .faq-a { padding: 0 16px 16px; font-size: .92rem; }
}

/* ---- 项目案例列表 /projects/（2026-11-14 重构：纯图片封面卡片，零视频） ---- */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.project-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
}
.pc-media {
  display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-noimg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--text-muted); font-size: .9rem;
}
.pc-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.pc-title a { color: var(--white); font-weight: 700; text-decoration: none; transition: color .2s; }
.pc-title a:hover { color: var(--accent); }
.pc-tags { margin: 0; }
.pc-cta { margin-top: auto; color: var(--accent); font-weight: 600; }
.pc-cta:hover { text-decoration: underline; }
.pc-single-photo { margin: 20px 0 0; }
.pc-single-photo img {
  width: 100%; max-width: 100%; height: auto;
  border-radius: 8px; border: 1px solid var(--line);
}
@media (max-width: 1023px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .projects-grid { grid-template-columns: minmax(0,1fr); }
  .pc-body { padding: 15px; }
}
/* 卡片内参数胶囊：从 Hero 级（2px 描边/大内边距）收窄到卡片级 */
.pc-tags { margin: 0; gap: 8px; }
.pc-tags .capsule { border-width: 1px; font-size: .8rem; padding: 6px 12px; }
/* 详情页主图：横幅化，避免小图放大铺满 */
.pc-single-photo { max-width: 900px; }
.pc-single-photo img { max-height: 520px; object-fit: cover; }

/* ---- 项目案例详情页（2026-11-14：档案卡矩阵 + 暗色富文本适配，零视频） ---- */
.profile-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 20px; max-width: 900px;
}
/* 纯正文驱动模式：字段缺项时格子数变少，用 :has() 按实际数量收缩列数，
   避免 3+1 折行或单格被拉宽（不支持 :has 的浏览器退化为 4 列留空） */
.profile-grid:has(> .profile-cell:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-grid:has(> .profile-cell:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-grid:has(> .profile-cell:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.profile-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.profile-cell .pl {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
}
.profile-cell .pv { color: var(--white); font-weight: 700; font-size: 1rem; line-height: 1.35; }
/* AI 生成「纯标签」正文的全局接管容器：文章内部禁止内联样式/类名，
   全部靠 .project-content 后代选择器适配暗色重工业风（2026-11-14 定稿） */
.project-content {
  max-width: 860px; margin-top: 28px;
  color: #D1D5DB; font-size: 15px; line-height: 1.7;
}
.project-content h2 {
  font-size: 22px; color: #F9FAFB; font-weight: 700;
  margin-top: 36px; margin-bottom: 16px;
  border-bottom: 1px solid #374151; padding-bottom: 8px;
}
.project-content h3 {
  font-size: 18px; color: #F97316; font-weight: 600;
  margin-top: 24px; margin-bottom: 12px;
}
.project-content p { margin-bottom: 16px; }
.project-content a { color: #F97316; }
.project-content ul, .project-content ol { margin-bottom: 20px; padding-left: 20px; }
.project-content li { margin-bottom: 8px; color: #E5E7EB; }
.project-content li::marker { color: #F97316; }
/* 表格全局防溢出：display:block + overflow-x:auto，手机端自身横滚不撑破页面 */
/* 表格全局防溢出：滚动容器由 the_content 过滤器自动生成（运营无需手写 wrapper），
   表格本身保持 table 布局 —— 若改用 table{display:block} 会让表头与表体列宽各算各的、右侧留空档 */
.project-content table {
  width: 100%; min-width: 520px; border-collapse: collapse;
  background-color: #1F2937; color: #F9FAFB; border: 1px solid #374151;
}
.project-content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.project-content .table-scroll table { margin: 0; }
.project-content th, .project-content td {
  padding: 10px 14px; border: 1px solid #374151; text-align: left;
}
.project-content th { background-color: #111827; color: #F97316; font-weight: 700; }
.project-content td { color: #D1D5DB; background-color: #1F2937; }
/* 图片全局统一：AI 随机插图自动获得圆角/边框/呼吸间距（图上文下的视觉节奏） */
.project-content figure { margin: 20px 0; }
.project-content img {
  width: 100%; height: auto; display: block;
  border-radius: 8px; border: 1px solid #374151; background-color: #1F2937;
  margin-top: 28px; margin-bottom: 12px;
}
.project-content figcaption { text-align: center; font-size: 13px; color: #9CA3AF; margin-top: 8px; }
.project-content blockquote {
  margin: 20px 0; padding: 14px 18px;
  border-left: 4px solid #F97316; background: #1F2937;
  border-radius: 0 8px 8px 0; color: #D1D5DB;
}
.project-content blockquote p { margin: 0; }
@media (max-width: 767px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
  .profile-grid:has(> .profile-cell:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-grid:has(> .profile-cell:only-child) { grid-template-columns: minmax(0,1fr); max-width: none; }
  .profile-cell { padding: 12px 13px; }
  .profile-cell .pv { font-size: .92rem; }
  .project-content h2 { font-size: 19px; margin: 26px 0 12px; }
  .project-content h3 { font-size: 16px; margin: 20px 0 10px; }
  .project-content img { margin-top: 20px; margin-bottom: 10px; }
}
@media (max-width: 767px) {
  /* 长俄语标签（ПРОИЗВОДИТЕЛЬНОСТЬ）在 2 列卡片里禁止断词 */
  .profile-cell .pl { font-size: .62rem; letter-spacing: 0; }
}

/* ---- 案例详情双栏布局（2026-11-14：消除右侧空白，Metso/Sandvik 式饱满版式） ---- */
.project-single .container { max-width: 1280px; }
.project-layout {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 36px; align-items: start;
}
.project-main { min-width: 0; }
/* sticky 必须挂在撑满整行的外层里的内层盒子上（grid item 自身收缩时无滑动空间） */
.project-aside { align-self: stretch; }
.aside-sticky {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 16px;
}
.aside-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px;
}
.aside-card h3 { font-size: 1rem; margin: 0 0 10px; }
.aside-card p { margin: 0 0 14px; color: var(--text-muted); font-size: .9rem; line-height: 1.55; }
.aside-card .btn { display: block; text-align: center; width: 100%; box-sizing: border-box; }
.aside-quick { display: flex; gap: 8px; margin-top: 10px; }
.qbtn {
  flex: 1; text-align: center; padding: 10px 8px; border-radius: 8px;
  font-size: .82rem; font-weight: 700; text-decoration: none; border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.qbtn-wa { color: var(--green); }
.qbtn-wa:hover { border-color: var(--green); }
.qbtn-tg { color: var(--text); }
.qbtn-tg:hover { border-color: var(--accent); color: var(--accent); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { margin-bottom: 8px; }
.aside-links a {
  color: var(--text); text-decoration: none; font-size: .9rem;
  display: block; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; transition: border-color .2s, color .2s;
}
.aside-links a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1023px) {
  .project-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .aside-sticky { position: static; }
  /* 移动端侧栏卡片排到正文之后、返回链接之前观感更自然：aside 已在 DOM 末尾，直接堆叠 */
}
.aside-more { display: inline-block; margin-top: 10px; font-size: .86rem; font-weight: 600; }
