/* ============================================================
   PSM · серия 210 / 310 — оформление
   Палитра и типографика — по каталогу «Гидравлическое оборудование»
   (PSM-HYDRAULICS, версия 1.2025, с. 6 и 8):
     красный  #ce171e, тёмно-красный #7e0000,
     серый фон #e7e8e8, Fira Sans / Fira Sans Condensed.
   ============================================================ */
@import url("fonts.css");

:root {
  --red: #ce171e;
  --red-dk: #a3121a;
  --red-deep: #7e0000;
  --red-soft: #fdeced;
  --ink: #111417;
  --soft: #3b4249;
  --muted: #6f777e;
  --line: #e4e6e8;
  --line-2: #cfd3d6;
  --gray: #e7e8e8;
  --paper: #ffffff;
  --alt: #f6f7f7;
  --blue: #3a7cac;

  --sans: "Fira Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --cond: "Fira Sans Condensed", "Fira Sans", "Segoe UI", system-ui, Arial, sans-serif;

  --radius: 3px;
  --shadow: 0 1px 2px rgba(17, 20, 23, .05), 0 12px 32px -22px rgba(17, 20, 23, .5);
  --container: 1240px;
  --hd: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--soft);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(206, 23, 30, .35); }
a:hover { color: var(--red-dk); border-bottom-color: var(--red-dk); }
b, strong { color: var(--ink); font-weight: 700; }
small { font-size: .84em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: .3em 0; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.kicker {
  font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.kicker span { color: var(--muted); font-weight: 600; }

/* ---------------- шапка ---------------- */
.hd {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
  height: var(--hd);
}
.hd__in { display: flex; align-items: center; gap: 26px; height: 100%; }
.logo { display: flex; align-items: center; gap: 14px; border: 0; color: var(--ink); }
.logo__plate { display: inline-flex; align-items: center; justify-content: center; background: var(--red); padding: 6px 12px; }
.logo__img { height: 36px; width: auto; display: block; }
.logo__mark {
  width: 40px; height: 40px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--cond);
  font-weight: 900; font-size: 15px; letter-spacing: .02em; line-height: 1;
}
.logo__name { font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.logo__sub { display: block; font-family: var(--sans); font-weight: 400; font-size: 11.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  font-family: var(--cond); font-size: 13.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--soft); border: 0; padding: 9px 12px;
}
.nav a:hover { color: var(--red); background: var(--alt); }
.hd__cta { margin-left: 10px; }

/* ---------------- кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .01em;
  padding: 11px 18px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--ink); cursor: pointer; border-bottom-width: 1px;
  transition: .15s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dk); border-color: var(--red-dk); color: #fff; }
.btn--sm { padding: 8px 13px; font-size: 13px; }
.btn:active { transform: translateY(1px); }

/* ---------------- первый экран ---------------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding: 54px 0 46px; }
.hero h1 { margin-bottom: 14px; }
.hero h1 em { font-style: normal; font-weight: 300; display: block; color: var(--ink); font-size: .58em; letter-spacing: -.01em; margin-top: .1em; }
.hero__lead { font-size: 17.5px; max-width: 60ch; color: var(--soft); }
.hero__lead b { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.chip {
  font-size: 13px; font-weight: 500; color: var(--soft);
  background: var(--gray); padding: 7px 12px; border-radius: 2px;
}
.chip b { font-weight: 700; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; padding: 16px 16px 14px; }
.stat__v { font-size: 27px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.stat__v span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.stat__l { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.hero__note { grid-column: 1 / -1; margin: 0; padding-top: 4px; font-size: 13px; color: var(--muted); }

/* красная вертикальная плашка как в каталоге */
.hero__tab {
  position: absolute; left: 0; top: 0; bottom: 0; width: 34px; background: var(--red);
  display: none;
}
.hero__tab span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap; color: #fff; font-family: var(--cond); font-size: 12px;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
@media (min-width: 1280px) {
  .hero__tab { display: block; }
  .hero .container { padding-left: 64px; }
}

/* ---------------- секции ---------------- */
.section { padding: 56px 0; }
.section--alt { background: var(--alt); border-block: 1px solid var(--line); }
.sec-head { max-width: 78ch; margin-bottom: 26px; }
.sec-head p { color: var(--muted); margin-bottom: 0; }

/* ---------------- генератор ---------------- */
.gen { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 22px; align-items: start; }
.gen > * { min-width: 0; }
@media (max-width: 1024px) { .gen { grid-template-columns: minmax(0, 1fr); } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.panel__head .seg { flex-wrap: wrap; }
.panel__head .seg button { padding: 6px 10px; font-size: 12px; letter-spacing: .06em; }
.panel__head h3 { margin: 0; font-size: 14px; font-family: var(--cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.panel__body { padding: 16px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.seg button {
  border: 0; background: #fff; font-family: var(--cond); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; padding: 7px 14px; cursor: pointer; color: var(--muted);
}
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.is-on { background: var(--ink); color: #fff; }
.seg--kind { margin-bottom: 16px; width: 100%; }
.seg--kind button { flex: 1 1 0; padding: 7px 6px; font-size: 12px; letter-spacing: .04em; }
.tbl--shif-wide .tbl__vol { width: 40px; font-size: 10px; letter-spacing: 0; }

.fgroup { padding: 14px 0; border-top: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; border-top: 0; }
.fgroup__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.fgroup__title { font-family: var(--cond); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.fgroup__letter {
  font-family: var(--cond); font-size: 11px; font-weight: 700; color: var(--red);
  border: 1px solid rgba(206, 23, 30, .3); padding: 1px 6px; border-radius: 2px;
}
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12.5px; font-family: var(--sans); color: var(--soft);
  background: var(--gray); border: 1px solid transparent; border-radius: 2px;
  padding: 6px 9px; transition: .12s; text-align: left;
}
.opt b { font-weight: 600; color: var(--ink); }
.opt__n {
  font-size: 10.5px; font-weight: 700; color: var(--muted); background: #fff;
  border-radius: 2px; padding: 1px 4px; min-width: 20px; text-align: center;
}
.opt:hover:not(:disabled) { background: #dcdee0; }
.opt.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.opt.is-on b, .opt.is-on .opt__n { color: #fff; }
.opt.is-on .opt__n { background: rgba(255, 255, 255, .2); }
.opt:disabled { opacity: .34; cursor: not-allowed; }
.opt:disabled b { text-decoration: line-through; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); cursor: pointer; margin-top: 4px; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 99px; background: #d3d7da; position: relative; cursor: pointer; transition: .15s; margin: 0; flex: 0 0 auto; }
.switch input:checked { background: var(--red); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked::after { transform: translateX(16px); }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }

/* результат */
.res__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.res__count { font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.res__count small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.res__meta { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.res__meta b { color: var(--ink); }

.code-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px;
  font-family: var(--sans); font-size: clamp(22px, 2.6vw, 30px); font-weight: 900;
  letter-spacing: -.02em; color: var(--ink); padding: 14px 16px; background: var(--alt);
  border-bottom: 1px solid var(--line);
}
.cseg { padding: 0 3px; border-radius: 2px; }
.cseg.is-empty { color: #b9bec3; }
.cseg.is-bad { color: var(--red); }
.csep { color: #b9bec3; font-weight: 400; }

.tbl-wrap { max-height: min(64vh, 660px); overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 1; background: #fff; text-align: left;
  font-family: var(--cond); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding: 9px 12px;
  border-bottom: 2px solid var(--red); white-space: nowrap;
}
.tbl tbody td, .tbl tbody th { padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.tbl--res { font-size: 12px; }
.tbl--res tbody td { padding: 7px 8px; }
.tbl tbody td:last-child { white-space: nowrap; }
.tbl tbody tr:nth-child(even) { background: var(--alt); }
.tbl tbody tr:hover { background: var(--red-soft); }
.td-code { font-weight: 700; color: var(--ink); white-space: nowrap; }
.td-num { color: var(--muted); white-space: nowrap; }
.tag { display: inline-block; font-family: var(--cond); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); padding: 1px 6px; white-space: nowrap; }
.tag--price { color: var(--red-deep); border-color: rgba(206, 23, 30, .35); background: var(--red-soft); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.res__foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: center; }

/* ---------------- таблицы шифратора ---------------- */
.shif { margin-bottom: 26px; max-width: 1040px; }
.shif__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.shif__title { font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.shif__letter { font-family: var(--cond); font-size: 12px; font-weight: 700; color: #fff; background: var(--red); padding: 2px 8px; }
.tbl--shif { font-size: 13px; max-width: 1040px; }
.tbl--shif thead th { border-bottom-color: var(--line-2); }
.tbl--shif .tbl__code { width: 54px; font-weight: 700; color: var(--red); white-space: nowrap; }
.tbl--shif thead th:nth-child(2) { width: auto; }
.tbl--shif .tbl__vol { width: 44px; text-align: center; }
.tbl--shif .tbl__cell { text-align: center; white-space: nowrap; vertical-align: middle; }
.tbl--shif .dot { color: var(--ink); font-size: 13px; line-height: 1; }
.tbl--shif tbody tr:hover .dot { color: var(--red); }
.tbl--shif .dash { color: #c9ced2; }
.tbl-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------------- расшифровка ---------------- */
.dec-box { background: #fff; border: 1px solid var(--line); padding: 22px; }
.dec-input {
  width: 100%; max-width: 420px; font-family: var(--sans); font-size: 25px; font-weight: 900;
  letter-spacing: -.02em; color: var(--ink); padding: 10px 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: #fff;
}
.dec-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(206, 23, 30, .12); }
.dec-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; margin: 18px 0 14px; font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.dec-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px; }
.dec-rows li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); }
.dec-rows b { font-family: var(--cond); font-size: 13px; color: var(--red); min-width: 30px; }
.dec-rows span { font-size: 14px; }
.dec-rows i { font-style: normal; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.dec-status { margin-top: 14px; padding: 11px 14px; background: var(--alt); border-left: 3px solid var(--line-2); font-size: 14px; }
.dec-status.is-ok { border-left-color: var(--red); background: var(--red-soft); }
.dec-status.is-error { border-left-color: var(--red-deep); background: #fbe9ea; color: var(--red-deep); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.preset { font-size: 12px; padding: 5px 9px; background: var(--gray); border: 0; border-radius: 2px; cursor: pointer; color: var(--soft); font-family: var(--sans); }
.preset:hover { background: #dcdee0; }

/* ---------------- характеристики ---------------- */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 1024px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.spec-h h3 { margin: 0; }
.spec-h span { font-family: var(--cond); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbl--spec { font-size: 12.5px; }
.tbl--spec thead th { border-bottom-color: var(--line-2); }
.tbl--spec thead th.tbl__vol, .tbl--spec td.num { text-align: right; }
.tbl--spec tbody th { font-weight: 400; color: var(--soft); white-space: normal; }
.tbl--spec tbody td { text-align: right; white-space: nowrap; }
.tbl--spec tbody tr.grp th { font-weight: 700; color: var(--ink); background: #fff; }
.tbl--spec .hl { color: var(--ink); font-weight: 700; }

.spec-sub { margin: 44px 0 18px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.spec-sub h3 { margin-bottom: 4px; font-size: 1.28rem; }
.spec-sub p { margin: 0; }
.banner .btn--onDark { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.banner .btn--onDark:hover { background: rgba(255, 255, 255, .24); border-color: #fff; color: #fff; }

/* ---------------- каталог ---------------- */
.cat-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------------- баннер ---------------- */
.banner { background: var(--red-deep); color: #fff; padding: 26px 0; }
.banner__in { display: flex; align-items: center; gap: 18px; }
.banner__mark { font-size: 34px; font-weight: 900; line-height: 1; color: #fff; opacity: .9; }
.banner h3 { color: #fff; margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em; }
.banner p { margin: 0; color: #f0cfd1; font-size: 14px; }
.banner b { color: #fff; }

/* ---------------- подвал ---------------- */
.ft { background: #14181b; color: #a9b2b9; padding: 40px 0 26px; font-size: 13.5px; }
.ft a { color: #e2e7ea; border-bottom-color: rgba(255, 255, 255, .2); }
.ft__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.ft-logo { height: 44px; width: auto; display: block; }
.ft h4 { color: #fff; font-family: var(--cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { margin: 5px 0; }
.ft__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid #262c31; font-size: 12.5px; color: #7f8a92; }

/* ---------------- наверх ---------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border: 0;
  background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; opacity: 0; visibility: hidden; transition: .2s; z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--red-dk); }

.hint { font-size: 12.5px; color: var(--muted); }

@media (max-width: 768px) {
  html { scroll-padding-top: 116px; }
  .hd { height: auto; }
  .hd__in { flex-wrap: wrap; gap: 4px; padding: 8px 0 0; height: auto; }
  .logo { flex: 1 1 auto; }
  .logo__name { white-space: nowrap; }
  .nav { order: 3; width: 100%; margin: 0; padding-bottom: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 9px; font-size: 12px; letter-spacing: .05em; white-space: nowrap; }
  .hd__cta { display: none; }
  .hero__in { grid-template-columns: 1fr; gap: 26px; padding: 30px 0 32px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .dec-rows { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 40px 0; }
  .container { padding: 0 18px; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-grid > * { min-width: 0; }
}
@media (max-width: 560px) {
  .logo__sub { display: none; }
  .logo__name { font-size: 14px; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 768px) {
  .tbl--res { font-size: 11.5px; }
  .tbl--res th:nth-child(2), .tbl--res td:nth-child(2),
  .tbl--res th:nth-child(3), .tbl--res td:nth-child(3) { display: none; }
  .res__count { font-size: 28px; }
}
/* ---------------- чертежи ---------------- */
.dwg-link {
  display: inline-block; margin: 10px 16px 0; font-family: var(--cond); font-size: 12.5px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
  border-bottom: 1px solid rgba(206, 23, 30, .35);
}
.dwg-link:hover { color: var(--red-deep); }
.dwg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.dwg-chips .opt b { font-weight: 600; }
.dwg-body { max-width: 1060px; }
.dwg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.dwg-title { font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.dwg-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dwg-sheets button { padding: 6px 12px; }
.dwg-fig { margin: 0; background: #fff; border: 1px solid var(--line); padding: 14px; }
.dwg-fig img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.dwg-fig figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); }

.modal { position: fixed; inset: 0; background: rgba(12, 15, 18, .9); z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal__in { position: relative; max-width: 1280px; width: 100%; max-height: calc(100vh - 36px); display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.modal__scroll { flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; border-radius: 3px; }
.modal__scroll img { display: block; width: 100%; height: auto; }
.modal__cap { color: #dfe3e6; font-size: 13px; text-align: center; flex: 0 0 auto; }
.modal__close {
  position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(12, 15, 18, .62); color: #fff; font-size: 20px; line-height: 1; border-radius: 50%;
  cursor: pointer; z-index: 3;
}
.modal__close:hover { background: rgba(255,255,255,.14); }

@media print {
  .hd, .to-top, .banner, .tools, .res__foot, .hd__cta { display: none !important; }
  body { font-size: 11pt; }
  .section { padding: 12pt 0; }
  .tbl-wrap { max-height: none; overflow: visible; }
  a { border: 0; color: inherit; }
}

/* Дополнения к site.css: страницы моделей */
/* ---------- страница модели ---------- */
.mdl { padding: 28px 0 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { opacity: .55; }

.mdl-top { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 34px; align-items: start; }
.mdl-top__text h1 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.02em; font-family: var(--cond); font-weight: 700; text-transform: none; }
.mdl-top__text .lead { font-size: 15px; line-height: 1.62; color: #3b4149; margin: 0 0 18px; }
.mdl-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.mdl-facts li { background: var(--gray); border-radius: var(--radius); padding: 7px 11px; font-size: 12.5px; }
.mdl-facts b { font-family: var(--cond); font-size: 14px; letter-spacing: .02em; }
.mdl-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mdl-figure img { display: block; width: 100%; height: auto; }
.mdl-figure figcaption { padding: 9px 12px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); }

.tabs { display: flex; gap: 4px; margin: 30px 0 0; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tabs button { appearance: none; border: 0; background: none; padding: 11px 16px; font: inherit; font-size: 13px; font-family: var(--cond); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tabs button:hover { color: var(--ink); }
.tpanel { padding: 22px 0 6px; }
.tpanel[hidden] { display: none; }
.tpanel p { font-size: 14.5px; line-height: 1.68; color: #3b4149; margin: 0 0 14px; max-width: none; }
.tpanel h2, .tpanel h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin: 22px 0 10px; }
.tpanel ul { margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.7; color: #3b4149; }

.mdl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; align-items: start; }

.faq { margin: 34px 0 0; }
.faq dt { font-family: var(--cond); font-weight: 700; font-size: 15px; margin-top: 16px; }
.faq dd { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: #3b4149; max-width: none; }

.siblings { margin: 38px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.siblings h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin: 0 0 12px; }
.sib-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.sib-list a { display: block; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 13px; color: var(--ink); text-decoration: none; }
.sib-list a:hover { border-color: var(--red); color: var(--red); }
.sib-list a.is-cur { background: var(--ink); color: #fff; border-color: var(--ink); }

.mdl-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 22px 0 0; }
.mdl-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.mdl-card:hover { border-color: var(--red); }
.mdl-card img { display: block; width: 100%; height: 130px; object-fit: contain; background: #fff; padding: 8px; }
.mdl-card__b { padding: 10px 12px; border-top: 1px solid var(--line); }
.mdl-card__t { font-family: var(--cond); font-weight: 700; font-size: 15px; }
.mdl-card__m { font-size: 12px; color: var(--muted); margin-top: 3px; }

@media (max-width: 1024px) {
  .mdl-top { grid-template-columns: 1fr; }
}

/* ссылка «к содержанию» — видна только при фокусе */
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 12px; top: 12px; outline: 2px solid var(--red); }
.mdl-figure img { max-height: 420px; object-fit: contain; background: #fff; }
.mdl-card img { max-width: 240px; margin: 0 auto; }
@media (max-width: 560px) { .mdl-figure img { max-height: 300px; } }
.tpanel .tbl td, .tpanel .tbl th { white-space: normal; }
.tpanel .tbl td b { font-family: var(--cond); }
.tpanel .tbl td i { color: var(--muted); font-style: normal; font-size: 12px; }
.mdl-dwg { margin: 38px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.dwg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin: 16px 0 10px; }
.dwg-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s; }
.dwg-card:hover { border-color: var(--red); }
.dwg-card__i { display: block; background: #fff; padding: 6px; }
.dwg-card__i img { display: block; width: 100%; height: 150px; object-fit: contain; }
.dwg-card__t { display: block; padding: 8px 10px 2px; font-size: 12.5px; font-weight: 600; }
.dwg-card__s { display: block; padding: 0 10px 10px; font-size: 11px; color: var(--muted); }

/* кнопка «Добавить в КП» и страница заявки */
.mdl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 0; }
.btn.is-added { background: var(--ink); border-color: var(--ink); color: #fff; }
.kp-bar { display: flex; gap: 8px; margin-left: auto; }
.kp-badge { display: inline-flex; align-items: center; gap: 6px; }
.kp-badge b { min-width: 18px; text-align: center; }
.kp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kp-table th, .kp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kp-table th { font-family: var(--cond); text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
.kp-table td.n { text-align: right; white-space: nowrap; }
.kp-empty { padding: 32px 0; color: var(--muted); font-size: 14px; }
.kp-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 4px; }
.kp-del:hover { color: var(--red); background: var(--alt); }
.kp-mail { margin-top: 18px; }

/* каталог исполнений */
.exec-tools { margin: 18px 0 14px; display: grid; gap: 12px; }
.exec-series { display: flex; flex-wrap: wrap; gap: 6px; }
.exec-series button, .exec-vols button { border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius); padding: 7px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.exec-series button i, .exec-vols button i { color: var(--muted); font-style: normal; font-size: 11px; margin-left: 4px; }
.exec-series button:hover, .exec-vols button:hover { border-color: var(--red); color: var(--red); }
.exec-series button.is-on, .exec-vols button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.exec-series button.is-on i, .exec-vols button.is-on i { color: rgba(255,255,255,.6); }
.exec-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.exec-search { flex: 1 1 280px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; font-size: 14px; }
.exec-search:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.exec-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.exec-vols { display: flex; flex-wrap: wrap; gap: 6px; }
.exec-list { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.exec-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.exec-item:last-child { border-bottom: 0; }
.exec-item code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.exec-item a { color: var(--red); text-decoration: none; font-size: 12.5px; white-space: nowrap; }
.exec-item:hover { background: var(--alt); }
.exec-empty { padding: 26px 14px; color: var(--muted); font-size: 14px; margin: 0; }
#execMore { margin-top: 12px; }

.td-code a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.td-code a:hover { color: var(--red); border-bottom-color: var(--red); }
.art-letter { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 2px; }

/* шапка: держим девять разделов в одну строку */
.hd__in { gap: 18px; }
.nav a { white-space: nowrap; padding: 8px 10px; font-size: 12.5px; }
.logo__name { white-space: nowrap; }
.logo__sub { display: block; }
.kp-badge { white-space: nowrap; }
@media (max-width: 1536px) {
  .nav { gap: 0; }
  .nav a { padding: 7px 7px; font-size: 11.5px; letter-spacing: .04em; }
  .hd__in { gap: 10px; }
  .logo__name { font-size: 14px; }
  .hd__cta { padding: 8px 12px; font-size: 11.5px; }
}
@media (max-width: 1280px) {
  .nav a { padding: 7px 6px; font-size: 11px; }
  .logo__plate img { width: 46px; height: auto; }
}

/* шапка: логотип в две строки, но без переносов внутри строк */
.logo__name, .logo__sub { white-space: nowrap; }
.logo__sub { font-size: 10.5px; letter-spacing: .04em; }
@media (max-width: 1536px) {
  .logo__name { font-size: 13px; }
  .logo__sub { font-size: 9.5px; }
  .logo__plate { padding: 5px 9px; }
  .logo__img { height: 30px; }
}

/* --- адаптив: убираем горизонтальную прокрутку --- */
.spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec-grid > * { min-width: 0; }
.tbl-wrap { min-width: 0; }
.tbl { min-width: 0; }

@media (max-width: 1024px) {
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
}

/* шапка на планшетах и телефонах: меню переносится, высота подстраивается */
@media (max-width: 768px) {
  .hd { height: auto; }
  .hd__in { flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 8px; height: auto; gap: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .nav a { padding: 7px 9px; font-size: 11.5px; }
  .hd__cta { margin-left: auto; }
  .mdl-facts li { font-size: 11.5px; padding: 6px 9px; }
  .tpanel p, .faq dd { max-width: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav a { font-size: 11px; padding: 6px 7px; }
  .logo__name { font-size: 12px; }
  .logo__sub { font-size: 9px; }
  .hd__cta { padding: 8px 10px; font-size: 11px; }
  .exec-list { max-height: 420px; }
}

/* мобильные: переключатели переносим, широкие таблицы скроллим внутри блока */
@media (max-width: 768px) {
  .seg { flex-wrap: wrap; overflow: visible; }
  .seg button { flex: 1 1 auto; }
  .shif { overflow-x: auto; }
  .dec-rows, .dec-line, .code-line { overflow-x: auto; }
}

/* --- единая сетка порогов: 1536 · 1280 · 1024 · 768 · 560 --- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .hero__in, .mdl-top { gap: 24px; }
  .spec-grid { gap: 18px; }
}
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 42px 0; }
  .hero__in { gap: 18px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 34px 0; }
  .mdl-facts li { font-size: 11.5px; }
}

/* шапка переходит в две строки на планшете, чтобы девять разделов влезали */
@media (max-width: 1024px) {
  .hd { height: auto; }
  .hd__in { flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 8px; height: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .hd__cta { margin-left: auto; }
}
