/* Yuqiu Machine — стили сайта. Без внешних шрифтов и CDN: сайт должен открываться и из Китая. */

:root {
  --blue: #0f63a8;
  --blue-d: #0b4c84;
  --navy: #0a2c52;
  --navy-2: #0e3a6a;
  --red: #d9232d;
  --ink: #142131;
  --muted: #5a687a;
  --line: #d8e0ea;
  --bg: #ffffff;
  --bg-alt: #f2f5f9;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --field: #ffffff;
  --accent-ink: #ffffff;
  --cut: 14px;
  --cut-s: 8px;
  --radius: 0;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgb(10 30 60 / .06), 0 8px 24px -12px rgb(10 30 60 / .18);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --draw-filter: none;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #3b8fd9;
    --blue-d: #2a78c0;
    --ink: #e4ebf3;
    --muted: #9aa9bb;
    --line: #2a3a4f;
    --bg: #0d1520;
    --bg-alt: #111c2a;
    --panel: #142233;
    --panel-2: #172839;
    --field: #0f1a27;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
    /* синие линии чертежей → светло-голубые на тёмном */
    --draw-filter: invert(1) hue-rotate(180deg) brightness(1.15);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); font-kerning: normal;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:lang(zh-CN) body, body[data-lang="zh"] { line-height: 1.75; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.js-only { display: none !important; }
.js .js-only { display: revert !important; }
.mute { color: var(--muted); }

/* Срез угла — фирменная деталь набора */
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* ---------- Кнопки ---------- */
.btn {
  --c: var(--cut-s);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font: inherit; font-weight: 650; text-decoration: none;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 48px; height: 36px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.brand-t b { font-size: 1.15rem; letter-spacing: .08em; color: var(--blue); }
.brand-t small { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav ul a:hover { color: var(--blue); }
.langs { display: flex; border: 1px solid var(--line); }
.langs a { padding: 5px 10px; font-size: .82rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.langs a + a { border-left: 1px solid var(--line); }
.langs a[aria-current] { background: var(--blue); color: #fff; }
.langs a:not([aria-current]):hover { color: var(--blue); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn > span:first-child, .menu-btn > span:first-child::before, .menu-btn > span:first-child::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, opacity .2s;
}
.menu-btn > span:first-child { top: 21px; }
.menu-btn > span:first-child::before { left: 0; top: -7px; }
.menu-btn > span:first-child::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] > span:first-child { background: transparent; }
.menu-btn[aria-expanded="true"] > span:first-child::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] > span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .js .menu-btn { display: block; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 14px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .js .nav.open { display: flex; }
  .js .nav ul { flex-direction: column; }
  .js .nav ul a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .js .langs { align-self: flex-start; }
  .js .langs a { padding: 8px 14px; }
  html:not(.js) .top-in { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav { flex-wrap: wrap; margin-left: 0; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 70% at 78% 40%, rgb(40 130 220 / .45), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0c4a86 100%);
  padding: clamp(40px, 6vw, 84px) 0 0;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #9fd0ff; margin-bottom: 18px; padding-left: 14px; border-left: 3px solid var(--red); }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); color: #d5e6f7; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { background: #fff; color: var(--navy); }
.hero .btn:hover { background: #e2efff; color: var(--navy); }
.hero .btn-ghost { background: transparent; color: #fff; }
.hero .btn-ghost:hover { background: rgb(255 255 255 / .1); color: #fff; }
.hero-photo { position: relative; justify-self: center; }
.hero-photo::before {
  content: ""; position: absolute; inset: 12% 6% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(120 190 255 / .35), transparent);
  filter: blur(10px);
}
.hero-photo img { position: relative; width: min(480px, 100%); filter: drop-shadow(0 30px 40px rgb(0 10 30 / .55)); }
.stats {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 40px 0 0;
  background: rgb(255 255 255 / .06); border-top: 1px solid rgb(255 255 255 / .15);
}
.stats > div { padding: 22px 24px 26px; border-left: 1px solid rgb(255 255 255 / .12); }
.stats > div:first-child { border-left: 0; }
.stats dt { order: 2; font-size: .88rem; color: #b6cde6; }
.stats > div { display: flex; flex-direction: column; }
.stats dd { order: 1; margin: 0 0 4px; font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }

@media (max-width: 520px) {
  .stats > div { padding: 16px 14px 18px; }
  .stats dd { white-space: normal; font-size: 1.3rem; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { width: min(340px, 78vw); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .12); }
}

/* ---------- Секции ---------- */
.sec { padding: clamp(56px, 7vw, 104px) 0; }
.sec-alt { background: var(--bg-alt); }
.kicker { font: 700 .85rem/1 var(--mono); color: var(--red); letter-spacing: .1em; margin-bottom: 12px; }
.kicker::after { content: ""; display: inline-block; width: 36px; height: 2px; background: currentColor; vertical-align: middle; margin-left: 10px; }
.sec-lead { color: var(--muted); max-width: 52em; font-size: 1.05rem; margin-bottom: 32px; }
.sub-h { margin-top: 56px; }
.note { color: var(--muted); font-size: .93rem; }
.panel {
  background: var(--panel); box-shadow: var(--shadow);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* Особенности */
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.features li { background: var(--bg); padding: 28px 26px 30px; position: relative; }
.features h3 { margin: 10px 0 8px; font-size: 1.12rem; }
.features p { margin: 0; color: var(--muted); font-size: .97rem; }
.f-num { font: 700 .8rem var(--mono); color: var(--blue); letter-spacing: .08em; }
.features li::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--blue); transition: height .25s; }
.features li:hover::before { height: 100%; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

/* Как устроен */
.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.parts { list-style: none; counter-reset: p; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.parts li { counter-increment: p; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: baseline; }
.parts li::before { content: counter(p); grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; border-radius: 50%; }
.parts b { font-weight: 650; }
.parts span { color: var(--muted); font-size: .93rem; }
.formula { font: 600 .95rem var(--mono); padding: 12px 16px; background: var(--panel); border-left: 3px solid var(--blue); }
.how-fig { padding: 18px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 28px; } }

/* SVG червячной пары */
.worm { width: 100%; }
.worm .w-housing { fill: color-mix(in srgb, var(--blue) 5%, transparent); stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 6; }
.worm .w-part { fill: var(--panel-2); stroke: var(--blue); stroke-width: 2; }
.worm .w-wheel { fill: color-mix(in srgb, var(--blue) 14%, var(--panel)); stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.worm .w-holes circle { fill: var(--panel); stroke: var(--blue); stroke-width: 1.5; }
.worm .w-hub { stroke: var(--blue); stroke-width: 2; }
.worm .w-hatch { stroke: var(--blue); stroke-width: 1.2; opacity: .55; }
.worm .w-bore { fill: var(--panel); stroke: var(--blue); stroke-width: 2.5; }
.worm .w-key { fill: var(--panel); stroke: var(--blue); stroke-width: 2; }
.worm .w-worm { fill: color-mix(in srgb, var(--blue) 22%, var(--panel)); }
.worm .w-worm-edge { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.worm .w-threads path { stroke: var(--blue); stroke-width: 5; stroke-linecap: round; opacity: .75; }
.worm .w-axis { stroke: var(--red); stroke-width: 1; stroke-dasharray: 14 4 2 4; fill: none; opacity: .7; }
.worm .w-arrow { fill: none; stroke: var(--red); stroke-width: 2.5; }
.worm .w-arrowhead { fill: var(--red); }
.worm .w-call path { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.worm .w-call circle { fill: var(--blue); }
.worm .w-call text { fill: #fff; font: 700 14px var(--font); text-anchor: middle; }
.worm .w-wheel-rot { transform-box: view-box; transform-origin: 360px 262px; animation: wheel 40s linear infinite; }
.worm .w-threads { animation: thread 1.1s linear infinite; }
@keyframes wheel { to { transform: rotate(360deg); } }
@keyframes thread { from { transform: translateX(0); } to { transform: translateX(22px); } }
@media (prefers-reduced-motion: reduce) { .worm .w-wheel-rot, .worm .w-threads { animation: none; } }

/* Поля */
label > span, fieldset legend { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
select, input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
textarea { resize: vertical; min-height: 130px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.seg-3 { grid-template-columns: 1fr; }
.seg label { position: relative; }
.seg label + label { border-left: 1px solid var(--line); }
.seg-3 label + label { border-left: 0; border-top: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; margin: 0; padding: 10px 12px; font-size: .92rem; font-weight: 550; color: var(--ink); cursor: pointer; }
.seg input:checked + span { background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }

/* Карточки чертежей */
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .cards-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cards-3, .cards-6 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card {
  margin: 0; background: var(--panel); box-shadow: var(--shadow); padding: 16px 16px 20px; display: flex; flex-direction: column;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.card figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; min-height: 3.2em; }
.card-m figcaption { min-height: 0; }
.card figcaption b { font: 800 1.1rem var(--mono); color: var(--blue); }
.card figcaption span { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.draw { display: grid; place-items: center; flex: 1; cursor: zoom-in; }
.draw img { filter: var(--draw-filter); max-height: 260px; width: auto; transition: transform .25s; }
.card-m .draw img { max-height: 170px; }
.draw:hover img { transform: scale(1.03); }
.fig-wide, .dim figure { margin: 0 0 20px; padding: 24px; }
.fig-wide .draw img { max-height: none; width: 100%; }
.dim figure .draw img { max-height: 340px; }

/* Раскрывающиеся блоки */
details.full { margin-top: 28px; }
details.full > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: var(--panel); box-shadow: var(--shadow); font-weight: 700; font-size: 1.08rem;
}
details.full > summary::-webkit-details-marker { display: none; }
details.full > summary::before { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); transition: transform .2s; flex: none; }
details.full[open] > summary::before { transform: rotate(45deg); }
details.full[open] > summary { margin-bottom: 18px; }
.legend { font-size: .88rem; color: var(--muted); }

/* Таблицы */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--panel); box-shadow: var(--shadow); max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 7px 10px; text-align: center; border: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { background: var(--navy); color: #fff; font-weight: 650; font-size: .82rem; border-color: rgb(255 255 255 / .15); position: sticky; top: 0; }
.tbl tbody th { background: var(--panel-2); font-weight: 700; font-family: var(--mono); }
.tbl tbody th.pl { font-family: var(--font); font-weight: 600; }
.tbl tr.grp > * { border-top: 2px solid color-mix(in srgb, var(--blue) 45%, var(--line)); }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.tbl td.na { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.tbl .pam { font-family: var(--mono); font-weight: 600; }
.tbl-dims tbody th { text-align: left; }
.tbl-torque tbody[hidden] { display: none; }

/* Производитель */
.maker-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.maker-card { padding: clamp(24px, 4vw, 44px); }
.maker-logo { width: min(356px, 100%); margin: 8px 0 22px; }
@media (prefers-color-scheme: dark) { .maker-logo { background: #fff; padding: 10px 14px; } }
.maker-name { display: flex; flex-direction: column; font-size: 1.1rem; margin-bottom: 14px; }
.maker-name span { color: var(--muted); font-size: 1rem; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 24px 0; }
.contacts > div { padding: 12px 0; border-top: 1px solid var(--line); }
.contacts > div:first-child { grid-column: 1 / -1; }
.contacts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.contacts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdf { display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; background: var(--panel-2); text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pdf:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--ink); }
.pdf-ico { display: grid; place-items: center; width: 44px; height: 52px; background: var(--red); color: #fff; font: 800 .75rem var(--mono); clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%); }
.pdf small { display: block; color: var(--muted); font-size: .82rem; }
.maker-photo { position: relative; }
.maker-photo img { width: 100%; filter: drop-shadow(0 24px 30px rgb(10 30 60 / .25)); }
.iso { position: absolute; right: 0; bottom: -6px; margin: 0; padding: 8px 14px; background: var(--navy); color: #fff; font-size: .85rem; letter-spacing: .06em; }
@media (max-width: 860px) { .maker-in { grid-template-columns: 1fr; } .maker-photo { max-width: 420px; } }
@media (max-width: 520px) { .contacts { grid-template-columns: 1fr; } }

/* Форма */
.sec-dark { background: linear-gradient(160deg, var(--navy), #0c4a86); color: #fff; }
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-text p { color: #cfe2f6; font-size: 1.05rem; }
.contact .kicker { color: #ff8a8f; }
.form { padding: clamp(22px, 3.5vw, 36px); color: var(--ink); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fld-wide { grid-column: 1 / -1; }
.fld i { color: var(--red); font-style: normal; }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 22px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.consent.bad { color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.form-msg.ok { background: color-mix(in srgb, #1a9b55 14%, var(--panel)); color: #127a42; box-shadow: inset 4px 0 0 #1a9b55; }
.form-msg.err { background: color-mix(in srgb, var(--red) 12%, var(--panel)); color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
@media (prefers-color-scheme: dark) { .form-msg.ok { color: #5fd696; } .form-msg.err { color: #ff8a8f; } }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } .form .btn-lg { width: 100%; } }

/* Подвал */
.foot { padding: 28px 0 36px; background: #071d36; color: #9fb4cc; font-size: .88rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: #cfe2f6; }

/* Увеличение чертежа */
.zoom { width: min(96vw, 1400px); max-height: 92vh; padding: 0; border: 0; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.zoom::backdrop { background: rgb(5 15 30 / .78); backdrop-filter: blur(3px); }
.zoom img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; padding: 28px; }
.zoom-x { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: #333; }
@media (prefers-color-scheme: dark) { .zoom { background: #0f1a27; } .zoom img { filter: var(--draw-filter); } .zoom-x { color: #ddd; } }

@media print {
  .top, .topbar, .hero-grid, .cta, #form, .zoom, .menu-btn { display: none !important; }
  details.full > * { display: block !important; }
  .hero { background: none; color: #000; }
  .sec { padding: 24px 0; }
}

/* ===================== Сайт производителя: новые блоки ===================== */

/* Верхняя полоса с контактами */
.topbar { background: var(--navy); color: #b9cfe6; font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; min-height: 32px; align-items: center; }
.topbar a { color: #e3eefa; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-c { display: flex; gap: 18px; }
@media (max-width: 640px) { .topbar-in > span:first-child { display: none; } .topbar-in { justify-content: center; } }
.nav ul a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }

/* Заголовок внутренних страниц */
.page-head { padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 800; }
.sec-tight { padding-top: 24px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 8px 14px; background: var(--panel); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.jump a:hover { color: #fff; background: var(--blue); }

/* Первый экран */
.hero-photo img { width: min(560px, 100%); filter: drop-shadow(0 24px 40px rgb(0 10 30 / .45)); }

/* Направления продукции */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .lines { grid-template-columns: 1fr; } }
.line-card {
  display: flex; flex-direction: column; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .2s;
}
.line-card:hover { transform: translateY(-3px); color: var(--ink); }
.line-img { background: #fff; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.line-card:hover .line-img img { transform: scale(1.04); }
.line-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.line-body b { font-size: 1.12rem; }
.line-body > span { color: var(--muted); font-size: .94rem; }
.line-codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.line-codes i { font: 700 .78rem var(--mono); font-style: normal; color: var(--blue); padding: 3px 8px; background: color-mix(in srgb, var(--blue) 10%, transparent); }

/* Почему мы */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.why-list h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.why-list p { margin: 0; color: var(--muted); font-size: .94rem; }
.why-photos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.why-photos img { width: 100%; height: 100%; object-fit: cover; }
.why-photos .wp-main { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.why-photos .wp-a, .why-photos .wp-b { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .why-list { grid-template-columns: 1fr; } }

/* Отрасли и награды */
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.honors-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.honors-strip a { flex: none; }
.honors-strip img { height: 150px; width: auto; transition: transform .2s; }
.honors-strip a:hover img { transform: translateY(-3px); }
.contact-quick { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; font-size: 1.15rem; font-weight: 700; }
.contact-quick a { color: #fff; text-decoration: none; }

/* Серии в каталоге */
.group h2 { margin-bottom: .3em; }
.series { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; margin-top: 28px; padding: 0; scroll-margin-top: 90px; }
.series-media { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.series-main { display: block; cursor: zoom-in; }
.series-main img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; }
.thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.thumbs a { display: block; cursor: zoom-in; box-shadow: inset 0 0 0 1px #e1e7ef; }
.thumbs a:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.thumbs img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; mix-blend-mode: multiply; }
.series-body { padding: clamp(20px, 3vw, 32px); }
.series-code { font: 800 .85rem var(--mono); color: var(--red); letter-spacing: .06em; margin: 0 0 4px; }
.series-body h3 { font-size: 1.4rem; margin-bottom: .5em; }
.specs { margin: 18px 0; display: grid; gap: 0; }
.specs > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .specs > div { grid-template-columns: 1fr; gap: 2px; } }
.feat { padding-left: 1.2em; margin: 0 0 16px; }
.feat li { margin-bottom: 6px; }
.feat li::marker { color: var(--blue); }
details.codes { margin: 12px 0; border-top: 1px solid var(--line); }
details.codes > summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--blue); list-style: none; }
details.codes > summary::-webkit-details-marker { display: none; }
details.codes > summary::after { content: " +"; }
details.codes[open] > summary::after { content: " \2212"; }
.tbl-codes th { font-family: var(--mono); text-align: left; width: 34%; }
.tbl-codes td { text-align: left; white-space: normal; }
.diagram { max-width: 560px; }
.diag-parts { margin: 12px 0 0; padding-left: 1.4em; color: var(--muted); font-size: .92rem; }
.series-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .series { grid-template-columns: 1fr; } }

/* О компании */
.about-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; box-shadow: var(--shadow); }
.about-photo figcaption, .gallery figcaption, .honors figcaption, .certs figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .about-head { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; background: var(--navy); color: #fff; }
.facts > div { display: flex; flex-direction: column; padding: 20px 22px; border-left: 1px solid rgb(255 255 255 / .12); }
.facts > div:first-child { border-left: 0; }
.facts dd { margin: 0; font-size: 1.6rem; font-weight: 800; }
.facts dt { color: #b6cde6; font-size: .88rem; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { border-left: 0; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { font-style: italic; }
.features-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .features-3 { grid-template-columns: 1fr; } }
.honors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 18px; margin-top: 24px; }
.honors figure, .certs figure { margin: 0; }
.honors img { width: 100%; height: auto; }
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.certs img { width: 100%; height: auto; box-shadow: var(--shadow); background: #fff; }
@media (max-width: 860px) { .honors { grid-template-columns: repeat(3, minmax(0, 1fr)); } .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .honors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Сервис */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--panel); box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.tbl-text th, .tbl-text td { white-space: normal; text-align: left; vertical-align: top; }
.tbl-text tbody th { font-family: var(--font); width: 18%; }

/* Контакты */
.contact-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.form-h { font-size: 1.6rem; }
@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }

/* Подвал */
.foot { padding-top: 44px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.foot-logo { width: 260px; background: #fff; padding: 8px 12px; margin-bottom: 14px; }
.foot-h { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-list a { color: #cfe2f6; text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Подпись в окне увеличения */
.zoom-cap { margin: 0; padding: 0 28px 20px; color: #333; font-weight: 600; text-align: center; }
.zoom img { filter: none !important; }
@media (prefers-color-scheme: dark) { .zoom { background: #fff; } .zoom-x { color: #333; } }

/* Компактные таблицы: моменты R, объём масла */
.tbl-mini { width: auto; min-width: 280px; }
.tbl-mini td { text-align: right; font-weight: 600; }
.tbl-inline { display: inline-block; }

/* ===================== Карточки серий и страница серии ===================== */
.s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .s-cards { grid-template-columns: 1fr; } }
.s-card {
  display: flex; flex-direction: column; background: var(--panel); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transition: transform .2s;
}
.s-card:hover { transform: translateY(-3px); color: var(--ink); }
.s-card-img { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.s-card-img img { width: 100%; height: 100%; object-fit: contain; }
.s-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; }
.s-card-body .series-code { font-style: normal; }
.s-card-body b { font-size: 1.08rem; line-height: 1.3; }
.s-card-text { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-card-specs { display: grid; gap: 2px; margin-top: 6px; font-size: .86rem; }
.s-card-specs em { font-style: normal; color: var(--muted); }
.s-card-more { margin-top: auto; padding-top: 10px; color: var(--blue); font-weight: 700; font-size: .92rem; }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.series-head h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.sh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: start; }
.sh-media { background: #fff; padding: 16px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.sh-media .series-main img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.lead-dark { font-size: 1.05rem; }
@media (max-width: 900px) { .sh-grid { grid-template-columns: 1fr; } }
.feat-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.feat-grid li { position: relative; padding-left: 22px; }
.feat-grid li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--blue); }
@media (max-width: 700px) { .feat-grid { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.code-example code { display: inline-block; font: 700 1.05rem var(--mono); padding: 10px 14px; background: var(--navy); color: #fff; word-break: break-all; }
.tbl-title { font-size: 1.05rem; margin: 26px 0 10px; }
.tbl-data td, .tbl-data th { white-space: nowrap; }
.drawings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.drawings figure { margin: 0; background: #fff; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.drawings img { width: 100%; height: auto; }
.drawings figcaption { font-size: .88rem; color: #556; margin-top: 8px; }
@media (max-width: 760px) { .drawings { grid-template-columns: 1fr; } }
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.rel-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rel-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.rel-card span { display: flex; flex-direction: column; padding: 10px 12px 14px; font-size: .92rem; }
.rel-card .series-code { font-style: normal; }
@media (max-width: 760px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Таблицы внутри сетки не должны расталкивать колонки на узком экране */
.two-col > *, .sh-grid > *, .contact-page > *, .why > * { min-width: 0; }
.tbl-codes th, .tbl-codes td { white-space: normal; overflow-wrap: anywhere; }

/* Пиксель Метрики для посетителей без JS (инлайн-стили запрещены CSP) */
.ym-pixel { position: absolute; left: -9999px; }

/* Краткая форма */
.form-short .fgrid { grid-template-columns: 1fr 1fr; }
.form-model { margin: 0 0 14px; padding: 10px 14px; background: var(--panel-2); box-shadow: inset 3px 0 0 var(--blue); }
.js-contact-plain { color: inherit; text-decoration: none; }

/* Текстовые страницы (политика) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.prose p { color: var(--ink); }
.consent a { color: var(--blue); }
