/* Sinus Jevi — страницы каталога: раздел, карточка оборудования, статья */
.cat { padding-top: 22px; }
.cat h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* текст из редактора */
.sj-text { font-size: 15.5px; line-height: 1.65; color: var(--tx); }
.sj-text > *:first-child { margin-top: 0; }
.sj-text h2 { margin: 36px 0 14px; font-size: 23px; line-height: 1.25; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.sj-text h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 600; color: var(--ink); }
.sj-text h4 { margin: 20px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.sj-text p { margin: 0 0 14px; }
.sj-text ul, .sj-text ol { margin: 0 0 16px; padding-left: 22px; }
.sj-text li { margin: 4px 0; }
.sj-text li::marker { color: var(--y); }
.sj-text strong { color: var(--ink); font-weight: 600; }
.sj-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sj-text table { width: 100%; margin: 6px 0 20px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; border-radius: 14px; overflow: hidden; background: var(--sf); }
.sj-text th, .sj-text td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #fff; }
.sj-text th { background: var(--sf2); color: var(--ink); font-weight: 600; white-space: nowrap; }
.sj-text tr:last-child td { border-bottom: 0; }
.sj-text tbody tr:hover td { background: #fff; }
.sj-text .tw, .sj-text figure.wp-block-table { overflow-x: auto; }
.sj-text dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 22px; padding: 18px 20px; border-radius: 16px; background: var(--sf); align-items: baseline; }
.sj-text dt { font-size: 20px; font-weight: 700; color: var(--ink); }
.sj-text dd { margin: 0; font-size: 14.5px; color: var(--mut); }
.sj-text ul.docs { list-style: none; padding: 0; display: grid; gap: 8px; }
.sj-text ul.docs li { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--sf); font-size: 14px; color: var(--mut); }
.sj-text ul.docs a { font-weight: 600; color: var(--ink); text-decoration: none; }
.sj-text ul.docs a:hover { color: var(--blue); }
.sj-text ul.docs small { margin-left: 6px; font-size: 12.5px; color: var(--mut2); white-space: nowrap; }

/* раздел: дерево слева + карточки */
.cs { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; margin-top: 18px; }
.tr { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 8px; border-radius: var(--r); background: var(--sf); scrollbar-width: thin; }
.tr .tr-h { display: block; padding: 8px 12px 10px; font-size: 13px; font-weight: 600; color: var(--mut); }
.tr .tr-h:hover { background: none; color: var(--ink); }
.tr ul { list-style: none; margin: 0; padding: 0; }
.tr a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--ink); transition: background .2s; }
.tr a:hover { background: #fff; }
.tr a.on { background: #fff; font-weight: 600; color: var(--y); }
.tr-c { width: 14px; height: 14px; margin-left: auto; color: var(--mut2); flex: none; transition: transform .2s; }
.tr li.open > a .tr-c { transform: rotate(90deg); }
.tr-2 { padding-left: 12px !important; }
.tr-2 a, .tr-3 a { font-size: 13.5px; color: var(--tx); }
.tr-3 { padding-left: 12px !important; }
.cs-m { min-width: 0; }
.cs-lead { max-width: 820px; margin: 10px 0 24px; font-size: 16px; color: var(--mut); }
.ccs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ccs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 16px; border-radius: var(--r); background: var(--sf); transition: background .25s, transform .3s var(--ease), box-shadow .3s; }
.cc-i { display: grid; place-items: center; height: 170px; border-radius: 13px; background: #fff; overflow: hidden; }
.cc-i img { max-width: 88%; max-height: 150px; width: auto; height: auto; object-fit: contain; transition: transform .45s var(--ease); }
.cc-ph { width: 40px; height: 40px; color: var(--mut2); }
.cc-t { display: flex; flex-direction: column; gap: 5px; padding: 0 4px; }
.cc-t b { font-size: 15.5px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.cc-t small { font-size: 13px; line-height: 1.45; color: var(--mut); }
.cc-ex { align-self: flex-start; padding: 1px 8px; border-radius: 6px; background: #FED700; color: #111; font: italic 700 12px/1.6 Georgia, serif; }
.cc:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.cc:hover .cc-i img { transform: scale(1.06); }
.cs-c { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 900px; }

/* карточка оборудования */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 18px; align-items: start; }
.pd-g { position: sticky; top: 100px; }
.pd-main { display: grid; place-items: center; height: 460px; padding: 20px; border-radius: 22px; background: var(--sf); cursor: zoom-in; overflow: hidden; }
.pd-main img { max-height: 420px; width: auto; max-width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.pd-main:hover img { transform: scale(1.03); }
.pd-noimg { cursor: default; } .pd-noimg .ic { width: 56px; height: 56px; color: var(--mut2); }
.pd-th { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pd-th button { flex: none; width: 76px; height: 76px; padding: 6px; border-radius: 12px; background: var(--sf); outline: 2px solid transparent; transition: outline-color .2s; }
.pd-th button.on { outline-color: var(--y); }
.pd-th img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-brand { font-size: 13px; color: var(--mut); }
.pd-i h1 { margin: 6px 0 12px; }
.pd-lead { font-size: 16.5px; line-height: 1.55; color: var(--tx); }
.pd-s { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.pd-s div { padding: 12px 14px; border-radius: 12px; background: var(--sf); }
.pd-s dt { font-size: 12.5px; color: var(--mut); }
.pd-s dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.pd-a { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-a .btn-ghost { background: var(--sf); }
.pd-a .btn-ghost:hover { background: var(--sf2); }
.pd-note { margin-top: 16px; font-size: 13px; color: var(--mut); }
.pd-b { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; margin-top: 56px; align-items: start; }
.pd-c { min-width: 0; }
.pd-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.pd-docs { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r); background: var(--sf); scroll-margin-top: 110px; }
.pd-docs b { margin-bottom: 6px; font-size: 15px; color: var(--ink); }
.pd-docs a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--ink); transition: background .2s; }
.pd-docs a:hover { background: #fff; }
.pd-docs .ic { margin-top: 1px; color: var(--y); }
.pd-docs small { display: block; font-size: 12px; color: var(--mut); }
.pd-help { padding: 20px; border-radius: var(--r); background: var(--ink); color: #fff; }
.pd-help b { font-size: 17px; }
.pd-help p { margin: 8px 0 16px; font-size: 14px; color: rgba(255,255,255,.72); }
.pd-help .btn-dark { background: var(--y); }
.pd-help .btn-dark:hover { background: var(--y-h); }
.pd-help .btn-dark i { background: #fff; color: var(--ink); }
.pd-ph { display: block; margin-top: 14px; text-align: center; font-size: 18px; font-weight: 600; color: #fff; }
.rel { padding-top: 56px; }

/* статья */
.ar { max-width: 900px; margin-top: 18px; }
.ar-lead { margin: 12px 0 28px; font-size: 17px; line-height: 1.55; color: var(--mut); }

@media (max-width: 1240px) {
  .ccs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-b { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}
@media (max-width: 1080px) {
  .cs { grid-template-columns: minmax(0, 1fr); }
  .tr { display: none; }
  .pd { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pd-g { position: static; }
  .pd-b { grid-template-columns: minmax(0, 1fr); }
  .pd-side { position: static; }
}
@media (max-width: 860px) {
  .cat { padding-top: 14px; }
  .cat h1 { font-size: 24px; }
  .ccs, .ccs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc { padding: 8px 8px 12px; }
  .cc-i { height: 120px; } .cc-i img { max-height: 100px; }
  .cc-t b { font-size: 14px; }
  .cc-t small { display: none; }
  .pd-main { height: 300px; } .pd-main img { max-height: 260px; }
  .pd-s { grid-template-columns: 1fr; }
  .pd-a .btn { flex: 1; }
  .pd-b { margin-top: 36px; }
  .sj-text { font-size: 15px; }
  .sj-text h2 { font-size: 20px; margin-top: 28px; }
  .sj-text table { display: block; overflow-x: auto; white-space: nowrap; }
  .sj-text td { white-space: normal; min-width: 120px; }
}

/* ===== 19.11 (2): каталог — тёмная шапка раздела, дерево без прокрутки, новые карточки ===== */
.csh { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; margin-top: 16px; padding: 36px 40px 50px; border-radius: 26px; background: var(--ink); color: #fff; overflow: hidden; }
.csh h1 { color: #fff; font-size: 32px; }
.csh-t p { margin-top: 10px; max-width: 640px; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.72); }
.csh-m { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.csh-m span { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13.5px; color: rgba(255,255,255,.85); }
.csh-m b { color: #fff; font-size: 15px; }
.csh-m .ic { width: 15px; height: 15px; color: var(--gold); }
.csh-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.csh-i { position: relative; height: 230px; }
.csh-i span { position: absolute; display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.25); overflow: hidden; }
.csh-i span img { max-width: 76%; max-height: 76%; width: auto; height: auto; object-fit: contain; }
.csh-i span:nth-child(1) { right: 34%; top: 10px; z-index: 2; }
.csh-i span:nth-child(2) { right: 4%; top: 0; width: 150px; height: 150px; z-index: 1; }
.csh-i span:nth-child(3) { right: 12%; bottom: -14px; width: 130px; height: 130px; z-index: 3; }
.csh-i1 span:nth-child(1) { right: 10%; width: 220px; height: 220px; }
.orn-csh { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--gold); -webkit-mask-size: 28px 14px; mask-size: 28px 14px; opacity: .75; }
.cs { margin-top: 28px; }
/* дерево: без своей прокрутки и «липкости» */
.tr { position: static; max-height: none; overflow: visible; padding: 10px; }
.tr .tr-h { padding: 6px 12px 10px; }
.tr a { padding: 9px 12px; }
.tr-1 > li + li { margin-top: 2px; }
.tr li.open > a:not(.on) { font-weight: 600; }
.tr a.on { background: var(--ink); color: #fff; }
.tr a.on .tr-c { color: #fff; }
.tr-2, .tr-3 { margin: 2px 0 6px 12px !important; padding-left: 10px !important; box-shadow: inset 2px 0 0 var(--sf2); }
/* карточки */
.ccs { gap: 18px; }
.cc { position: relative; padding: 10px 10px 14px; border-radius: 22px; background: var(--sf); }
.cc-i { position: relative; height: 200px; border-radius: 16px; }
.cc-i img { max-height: 170px; }
.cc-i .cc-ex { position: absolute; top: 10px; left: 10px; z-index: 1; }
.cc-t { gap: 6px; padding: 4px 6px 0; flex: 1; }
.cc-t b { font-size: 16px; }
.cc-t small { font-size: 13.5px; }
.cc-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.cc-m { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 75%; }
.cc-mk { font-weight: 500; color: var(--tx); }
.cc-go { display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; border-radius: 50%; background: #fff; color: var(--ink); transition: background .2s, color .2s, transform .3s var(--ease); flex: none; }
.cc-go .ic { width: 17px; height: 17px; }
.cc:hover .cc-go { background: var(--y); color: #fff; transform: rotate(-45deg); }
.cc:hover { background: #fff; box-shadow: 0 18px 40px rgba(29,36,43,.10); }
.cc:hover .cc-i { background: var(--sf); }
.cc-sec .cc-i { background: #fff; }
@media (max-width: 1080px) {
  .csh { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 44px; }
  .csh-i { display: none; }
}
@media (max-width: 860px) {
  .csh h1 { font-size: 24px; }
  .csh { border-radius: 20px; padding: 22px 18px 40px; }
  .cc-i { height: 130px; } .cc-i img { max-height: 110px; }
  .cc-m { display: none; }
  .cc-go { width: 32px; height: 32px; }
}

.cc { min-width: 0; }
.cc-t b { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

/* ===== 19.11 (3): шапка раздела каталога — светлая ===== */
.csh { background: var(--sf); color: var(--ink); padding: 32px 36px; }
.csh h1 { color: var(--ink); font-size: 30px; }
.csh-t p { color: var(--mut); }
.csh-m span { background: #fff; color: var(--tx); }
.csh-m b { color: var(--ink); }
.csh-m .ic { color: var(--y); }
.csh .btn-glass { background: #fff; color: var(--ink); }
.csh .btn-glass:hover { background: var(--sf2); }
.csh-i span { border-radius: 20px; box-shadow: none; }
.orn-csh { display: none; }
.pd-help { background: var(--sf); color: var(--ink); }
.pd-help p { color: var(--mut); }
.pd-help .btn-dark { background: var(--y); }
.pd-ph { color: var(--ink); }
.tr a.on { background: #fff; color: var(--y); box-shadow: inset 3px 0 0 var(--y); }
.tr a.on .tr-c { color: var(--y); }

/* шапка раздела каталога — в той же сетке, что и первый блок остальных страниц */
.csh { margin-top: 0; padding: 24px 0 8px; background: none; border-radius: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; min-height: 320px; }
.csh h1 { margin: 16px 0 12px; font-size: 34px; }
.csh-t p { margin-top: 0; }
.csh-m span { background: var(--sf); }
.csh .btn-glass { background: var(--sf); }
.csh-i { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: 320px; padding: 14px; border-radius: 22px; background: var(--sf); }
.csh-i span { position: static !important; width: auto !important; height: auto !important; border-radius: 14px; background: #fff; box-shadow: none; }
.csh-i span:first-child { grid-row: span 2; }
.csh-i1 span:first-child { grid-column: span 2; }
.csh-i2 span { grid-row: span 2; }
.cat-section > .wrap > .crumbs { display: none; }
@media (max-width: 1080px) { .csh { grid-template-columns: minmax(0, 1fr); min-height: 0; } .csh-i { display: none; } }
@media (max-width: 860px) { .csh h1 { font-size: 26px; } }

/* ===== блок «Категории» слева (вместо дерева и «таблеток») ===== */
.cs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 24px; }
.cn2 { padding: 18px 20px 10px; border-radius: 18px; background: var(--sf); }
.cn2 summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: default; pointer-events: none; }
.cn2 summary::-webkit-details-marker { display: none; }
.cn2-c { display: none; width: 18px; height: 18px; transition: transform .2s; }
.cn2-l, .cn2-l ul { margin: 0; padding: 0; list-style: none; }
.cn2-l > li { border-top: 1px solid var(--line); }
.cn2-l a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 14.5px; line-height: 1.35; color: var(--ink); transition: color .15s; }
.cn2-l a:hover { color: var(--y); }
.cn2-l a span { flex: none; font-size: 13px; color: var(--mut2); }
.cn2-l a.on { color: var(--y); font-weight: 600; }
.cn2-l > li.open > a { font-weight: 600; }
.cn2-l ul { margin: -4px 0 8px; padding-left: 12px; }
.cn2-l ul a { padding: 6px 0; font-size: 14px; color: var(--tx); }
.cn2-l ul a.on { color: var(--y); }
.cs-m .ccs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1240px) { .cs-m .ccs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
  .cs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cn2 { padding: 0 18px; }
  .cn2 summary { padding: 14px 0; cursor: pointer; pointer-events: auto; }
  .cn2[open] summary { padding-bottom: 10px; }
  .cn2-c { display: block; }
  .cn2[open] .cn2-c { transform: rotate(90deg); }
  .cn2[open] .cn2-l { padding-bottom: 8px; }
}
