/* Стили внутренних страниц: шапка страницы, хлебные крошки, текстовые блоки, таблицы, FAQ, галерея, контакты.
   Подключается после main.css и features.css, использует токены из :root. */

/* ---------- Шапка страницы (под прозрачной фиксированной шапкой сайта) ---------- */
.page-head .tags { margin-top: 20px; }
.page-head .tags li { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.page-head {
  position: relative; color: #fff; overflow: hidden;
  padding: calc(var(--header-top-h) + var(--header-nav-h) + 40px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(110deg, var(--color-1-dark) 0%, var(--color-1) 100%);
}
/* Статичная сетка потолка 600×600, как в hero, но без движения. */
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 72px 72px; background-position: right top;
  -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 90%); mask-image: linear-gradient(100deg, transparent 10%, #000 90%);
}
.page-head__inner { position: relative; }
.page-head__title { max-width: 980px; font-size: clamp(30px, 5vw, 56px); line-height: 1.08; }
.page-head__lead { max-width: 760px; margin: 20px 0 0; font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, .85); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Хлебные крошки ---------- */
.crumbs { margin: 0 0 14px; font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { display: inline-block; padding: 10px 0; color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs [aria-current="page"] { display: inline-block; padding: 10px 0; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current="page"] { color: #fff; }

/* ---------- Вводный блок и текст ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.intro__media { margin: 0; }
.intro__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose > :is(p, ul, h2, h3) + :is(p, ul, h2, h3) { margin-top: 16px; }
.prose p { margin: 0; font-size: 17px; }
.prose h2 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); color: var(--color-3); }
.prose h3 { margin: 32px 0 0; font-size: 22px; color: var(--color-1); }
.prose ul { margin: 0; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--color-3); text-decoration: underline; text-underline-offset: 3px; }
.page-block + .page-block { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Список преимуществ без иконок-колонок ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: clamp(32px, 5vw, 56px); }
.facts__item { padding: 24px 0; border-top: 1px solid var(--color-line); }
.facts__item h3 { margin-bottom: 8px; font-size: 18px; color: var(--color-1); }
.facts__item p { margin: 0; font-size: 15px; color: var(--color-muted); }

/* ---------- «Где применяется» ---------- */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.use { padding: 28px 24px; background: #fff; border-top: 4px solid var(--color-1); }
.use__icon { width: 40px; height: 40px; margin-bottom: 20px; color: var(--color-3); }
.use h3 { margin-bottom: 8px; font-size: 18px; color: var(--color-1); }
.use p { margin: 0; font-size: 15px; color: var(--color-muted); }

/* ---------- Таблица характеристик ---------- */
.spec-wrap { overflow-x: auto; border: 1px solid var(--color-line); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.spec th, .spec td { padding: 14px 18px; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec thead th { background: var(--color-1); color: #fff; font-weight: 600; white-space: nowrap; }
.spec tbody th { width: 30%; color: var(--color-1); font-weight: 700; }
.spec tbody tr:nth-child(even) > * { background: #FAFBFC; }
.spec:has(thead) { min-width: 560px; }
.spec-note { margin: 16px 0 0; max-width: 820px; font-size: 14px; color: var(--color-muted); }

/* ---------- FAQ (нативные details) ---------- */
.faq { max-width: 920px; }
.faq details { border-top: 1px solid var(--color-line); }
.faq details:last-child { border-bottom: 1px solid var(--color-line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; font: 700 18px/1.35 var(--font-head); color: var(--color-1); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--color-3); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:focus-visible { outline: 2px solid var(--color-3); outline-offset: 2px; }
.faq details > div { padding: 0 48px 24px 0; color: var(--color-text); }
.faq details > div > * { margin: 0; }
.faq details > div > * + * { margin-top: 12px; }

/* ---------- Призыв внизу страницы ---------- */
.page-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.page-cta h2 { max-width: 720px; font-size: clamp(24px, 3vw, 36px); color: #fff; }
.page-cta p { margin: 12px 0 0; color: rgba(255, 255, 255, .85); max-width: 720px; }

@media (max-width: 1100px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro__media { order: -1; }
  /* В одну колонку фото растягивается на всю ширину: без ограничения высоты на планшете оно занимает почти весь экран */
  .intro__media img { aspect-ratio: 16 / 9; max-height: 360px; }
}
@media (max-width: 640px) {
  .facts, .uses { grid-template-columns: minmax(0, 1fr); }
  .faq summary { font-size: 16px; }
  .spec th, .spec td { padding: 12px 14px; }
}

/* ---------- Примеры работ ---------- */
.notice { display: flex; gap: 20px; align-items: flex-start; margin-bottom: clamp(28px, 4vw, 40px); padding: 24px 28px; border-left: 4px solid var(--color-3); background: var(--color-soft); }
.notice__icon { flex: none; margin-top: 2px; color: var(--color-3); }
.notice__title { margin: 0 0 8px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1.12;  font-size: clamp(20px, 2.4vw, 26px); color: var(--color-1); }
.notice p { margin: 0; max-width: 820px; font-size: 15px; color: var(--color-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips[hidden] { display: none; }
.chip { min-height: 44px; padding: 10px 18px; border: 1px solid var(--color-line); background: #fff; font: 600 14px/1 var(--font-body); color: var(--color-1); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--color-3); color: var(--color-3); }
.chip.is-active { background: var(--color-1); border-color: var(--color-1); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--color-3); outline-offset: 2px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work { position: relative; margin: 0; background: #fff; border: 1px solid var(--color-line); }
.work[hidden] { display: none; }
.work img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work.is-zoomable img { cursor: zoom-in; }
.gallery__more { display: flex; justify-content: center; margin-top: 32px; }
.gallery__empty { margin: 24px 0 0; color: var(--color-muted); }
.viewer { width: min(1100px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.viewer::backdrop { background: rgba(8, 24, 42, .85); }
.viewer__box { position: relative; background: #fff; }
.viewer__img { display: block; width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); object-fit: contain; background: #0C2D50; }
.viewer__cap { margin: 0; padding: 14px 20px; font-size: 15px; color: var(--color-1); }
.viewer__close { z-index: 1; background: rgba(255, 255, 255, .9); }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } .notice { flex-direction: column; gap: 12px; padding: 20px; } }

/* ---------- Информационные страницы ---------- */
.uses--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-wrap { margin-top: 8px; }
.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 32px; font-size: 17px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 10px; border-left: 3px solid var(--color-3); border-bottom: 3px solid var(--color-3); transform: rotate(-45deg) scale(.8); transform-origin: left top; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 1100px) { .uses--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .uses--3 { grid-template-columns: minmax(0, 1fr); } }
.section--soft .notice { background: #fff; margin-bottom: 0; }

/* ---------- Контакты ---------- */
.use a { color: var(--color-3); font-weight: 700; text-decoration: none; }
.use a:hover { text-decoration: underline; }
.use p a[href^="tel"] { font: 800 20px/1.2 var(--font-head); }
.map-embed { position: relative; height: clamp(320px, 38vw, 480px); border: 1px solid var(--color-line); background: var(--color-soft); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spec-note a { color: var(--color-3); text-underline-offset: 3px; }
@media (max-width: 640px) { .map-embed { height: clamp(320px, 100vw, 440px); } }

/* Страницы товаров: тело карточки собирает tools/import_primet.py */
.cat-card__media--product { background: #fff; }
.cat-card__media--product img { object-fit: contain; padding: 12px; }
.intro__media--product img { object-fit: contain; background: #fff; border: 1px solid var(--color-line); padding: 12px; }
.product-body { max-width: none; }
.product-body > * + * { margin-top: 16px; }
.product-body > h2 { margin-top: 48px; font-size: clamp(22px, 2.6vw, 30px); }
.product-body > h2:first-child { margin-top: 0; }
.product-body > h3 { margin-top: 28px; }
.prose h4 { margin: 24px 0 0; font-size: 18px; color: var(--color-1); }
/* Блок вставлен в секцию с h2: его бывшие h2 и h3 понижены до h3 и h4, вид остаётся прежним */
.product-body--extra > h3 { margin-top: 48px; font-size: clamp(22px, 2.6vw, 30px); color: var(--color-3); }
.product-body--extra > h3:first-child { margin-top: 0; }
.product-body--extra > h4 { margin-top: 28px; font-size: 22px; }
.product-body figure { margin: 24px 0 0; }
.product-body figure img { display: block; max-width: 100%; max-height: min(520px, 70vh); width: auto; height: auto; margin-inline: auto; padding: 12px; background: #fff; border: 1px solid var(--color-line); cursor: zoom-in; }
.product-body figcaption { margin-top: 8px; font-size: 14px; color: var(--color-muted); }
.product-body .notice { margin: 24px 0 0; }
.product-body .notice p { max-width: 820px; }
.product-body ul { margin-top: 16px; }
.product-body .doc-link a { font-weight: 700; }
.prose .spec-wrap { margin-top: 20px; }
.prose .spec td, .prose .spec th { font-size: 15px; }
.prose .spec td[colspan], .prose .spec thead th { text-align: left; }
.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 20px; margin-top: 20px; }
.parts figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.parts figure img { width: 100%; height: auto; }
.parts figcaption { margin-top: 0; font-weight: 600; color: var(--color-1); }
.parts--text { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.part { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px; background: #fff; border: 1px solid var(--color-line); }
.part img { width: 100%; height: auto; }
.part h3 { margin: 0 0 8px; font-size: 18px; }
.part p { margin: 0; font-size: 15px; color: var(--color-muted); }
.part p + p { margin-top: 8px; }
.doc-fold { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.doc-fold summary { padding: 20px 0; font: 700 18px/1.35 var(--font-head); color: var(--color-1); cursor: pointer; }
.doc-fold summary:focus-visible { outline: 2px solid var(--color-3); outline-offset: 2px; }
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0 0 20px; list-style: none; }
.doc-list li { min-width: 0; }
.doc-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; overflow-wrap: anywhere; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--color-line); color: var(--color-1); text-decoration: none; }
.doc-list a:hover { color: var(--color-3); }
.doc-list small { white-space: nowrap; color: var(--color-muted); }
.doc-list__ext { flex: none; min-width: 42px; text-align: center; padding: 2px 6px; background: var(--color-soft); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--color-3); }
@media (max-width: 860px) { .doc-list { grid-template-columns: minmax(0, 1fr); } .part { grid-template-columns: 88px minmax(0, 1fr); } }
.doc-group { margin: 28px 0 8px; font-size: 18px; color: var(--color-1); }
.doc-group:first-of-type { margin-top: 0; }

/* ---------- Страница товара ---------- */
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.phero__eyebrow { margin: 0 0 14px; font: 700 13px/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.phero__eyebrow a { color: rgba(255, 255, 255, .75); }
.phero__eyebrow a:hover { color: #fff; }
.phero .page-head__title { max-width: none; }
.phero .page-head__lead { max-width: 620px; text-wrap: pretty; }
.phero__media { margin: 0; padding: clamp(16px, 3vw, 32px); background: #fff; border-bottom: 4px solid var(--color-2); box-shadow: 0 24px 60px rgba(4, 18, 34, .35); }
.phero__media img { width: 100%; aspect-ratio: 4 / 3; max-height: min(440px, 60vh); object-fit: contain; }
.pfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; max-width: 640px; margin: 28px 0 0; }
.pfacts div { padding: 10px 14px 12px; border-left: 3px solid var(--color-2); background: rgba(255, 255, 255, .08); }
.pfacts dt { font: 600 12px/1.3 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.pfacts dd { margin: 4px 0 0; font: 700 17px/1.3 var(--font-head); color: #fff; }

/* Навигация по разделам липнет под шапкой сайта */
.pnav { position: sticky; top: calc(var(--stick-top) + var(--header-nav-h)); z-index: 40; background: #fff; border-bottom: 1px solid var(--color-line); }
.pnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pnav a { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; padding: 18px 14px 15px; border-bottom: 3px solid transparent; white-space: nowrap; font: 600 14px/1 var(--font-text); letter-spacing: .04em; color: var(--color-muted); }
.pnav a:hover { color: var(--color-1); }
.pnav a.is-active { color: var(--color-1); border-bottom-color: var(--color-2); }
.psections [id] { scroll-margin-top: 64px; }

.poverview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.poverview--single { grid-template-columns: minmax(0, 860px); }
.poverview .prose > * + * { margin-top: 16px; }
.pbenefits { padding: 28px; background: var(--color-soft); border-top: 4px solid var(--color-1); }
.pbenefits h3 { margin-bottom: 20px; font-size: 20px; color: var(--color-1); }
.pbenefits__list li { position: relative; padding-left: 38px; }
.pbenefits__list li + li { margin-top: 16px; }
.pbenefits__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; background: var(--color-3) center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M2.5 7.5l3 3 6-7'/%3E%3C/svg%3E");
}
.pbenefits__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pbenefits__tags li { padding: 8px 12px; border-left: 3px solid var(--color-2); background: #fff; font-weight: 600; color: var(--color-1); }
.pbenefits__after { margin-top: 20px; }
.pbenefits__after p { font-size: 15px; }

/* Карточки: группы «заголовок + описание» внутри раздела */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; margin-top: 8px; }
.pgrid:has(.pcard:nth-child(3):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pcard { display: flex; flex-direction: column; padding-bottom: 24px; background: #fff; border: 1px solid var(--color-line); border-bottom: 3px solid var(--color-2); }
.prose .pcard > * { margin: 12px 24px 0; }
.prose .pcard > :first-child { margin-top: 24px; }
.prose .pcard > figure { margin: 0 0 12px; border-bottom: 1px solid var(--color-line); }
.pcard > figure img { width: 100%; height: 260px; padding: 12px; border: 0; object-fit: contain; }
.prose .pcard h3 { margin-top: 12px; font-size: 18px; color: var(--color-1); }
.pcard p, .pcard li { font-size: 16px; }
.pcard ul { padding-left: 20px; list-style: disc; }
.prose .pcard .plist { margin-inline: 24px; }

/* Параметры: «название — значение» вместо маркированного списка */
.plist { display: grid; grid-template-columns: minmax(150px, 280px) minmax(0, 1fr); max-width: 760px; margin: 0; background: #fff; border: 1px solid var(--color-line); }
.plist dt, .plist dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--color-line); }
.plist dt { background: #FAFBFC; font-weight: 700; color: var(--color-1); }
.plist dt:nth-last-of-type(1), .plist dd:last-of-type { border-bottom: 0; }
.psections .spec-wrap { background: #fff; }

@media (max-width: 860px) {
  .phero__grid, .poverview { grid-template-columns: minmax(0, 1fr); }
  .phero__media { order: -1; }
  .phero__media img { aspect-ratio: 16 / 10; max-height: 280px; }
  .pnav { top: calc(var(--stick-top) + var(--header-nav-h)); }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pcard > figure img { height: 220px; }
}
@media (max-width: 640px) { .pnav { top: var(--stick-top); } }
@media (max-width: 560px) {
  .plist { grid-template-columns: minmax(0, 1fr); }
  .plist dt { padding-bottom: 4px; border-bottom: 0; }
  .plist dd { padding-top: 0; }
}

/* Плотность: разделы товара ниже и спокойнее, чем блоки главной */
.psections .section { padding: clamp(36px, 5vw, 64px) 0; }
.psections .section__head { margin-bottom: 24px; }
.psections .section__title { font-size: clamp(24px, 2.6vw, 32px); }
.psections .product-body > h3 { margin-top: 36px; font-size: 20px; color: var(--color-1); }

/* карточка кромки: картинка, название и список параметров */
.parts:has(.plist) { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.parts figure:has(.plist) { background: #fff; border: 1px solid var(--color-line); border-bottom: 3px solid var(--color-2); }
.parts figure:has(.plist) img { max-height: 220px; width: auto; align-self: center; margin-top: 16px; }
.parts figure:has(.plist) figcaption { padding: 0 18px; font-size: 18px; text-transform: uppercase; }
.parts .plist { margin: 0; max-width: none; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); border: 0; border-top: 1px solid var(--color-line); font-size: 14px; }
.parts .plist dt, .parts .plist dd { padding: 8px 12px; }

/* широкая справочная таблица (≥5 колонок): первая колонка не забирает 30%, значения вроде «0,3-0,4 мм» не ломаются по слогам */
.spec:has(tr > :nth-child(5)) tbody th { width: auto; }
.spec:has(tr > :nth-child(5)) td { min-width: 100px; }
.spec:has(tr > :nth-child(5)) { min-width: 760px; }

/* схемы и фото в тексте товара: карточки одной высоты, картинка на всю ширину карточки */
.psections .parts:not(:has(.plist)) { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.psections .parts:not(:has(.plist)) figure,
.psections .product-body > figure { gap: 0; background: #fff; border: 1px solid var(--color-line); border-bottom: 3px solid var(--color-2); }
.psections .parts:not(:has(.plist)) figure img,
.psections .product-body > figure img { width: 100%; max-height: 360px; aspect-ratio: 4 / 3; object-fit: contain; padding: 16px; border: 0; }
.psections .product-body > figure { max-width: 760px; }
.psections .product-body > figure img { aspect-ratio: auto; max-height: 520px; }
.psections .parts:not(:has(.plist)) figcaption,
.psections .product-body > figure figcaption { margin: 0; padding: 12px 16px 16px; border-top: 1px solid var(--color-line); font-size: 15px; font-weight: 600; color: var(--color-1); }

/* комплектующие: картинка сверху на всю карточку, под ней название и описание */
.psections .parts.parts--text:not(:has(.plist)) { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.psections .part { display: flex; flex-direction: column; gap: 0; padding: 0; border-bottom: 3px solid var(--color-2); }
.psections .part img { width: 100%; height: auto; max-height: 260px; aspect-ratio: 4 / 3; object-fit: contain; padding: 16px; border-bottom: 1px solid var(--color-line); }
.psections .part > div { padding: 18px 20px 22px; }
.psections .part h3 { margin: 0 0 10px; font-size: 20px; text-transform: uppercase; }
.psections .part h3 a { text-decoration: none; }
.psections .part h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.psections .part p { font-size: 15px; line-height: 1.55; }

/* галерея схем: каждая картинка карточкой с подписью, ряд занимает всю ширину */
.psections .pgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 24px; margin-top: 28px; }
.psections .pgallery[style*="--cols:1"] { max-width: 720px; }
@media (min-width: 1000px) { .psections .pgallery { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.psections .pgallery figure { margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-line); border-bottom: 3px solid var(--color-2); }
.psections .pgallery figure img { width: 100%; max-height: 380px; aspect-ratio: 4 / 3; object-fit: contain; padding: 16px; border: 0; }
.psections .pgallery figcaption { margin: auto 0 0; padding: 12px 16px 16px; border-top: 1px solid var(--color-line); font-size: 15px; font-weight: 600; color: var(--color-1); }
/* последний неполный ряд растягивается на всю ширину, а не оставляет пустые места справа */
@media (min-width: 1000px) {
  .psections .pgallery[style*="--cols:3"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .psections .pgallery[style*="--cols:3"] figure { grid-column: span 2; }
  .psections .pgallery[style*="--cols:3"] figure:nth-last-child(2):nth-child(3n+1),
  .psections .pgallery[style*="--cols:3"] figure:last-child:nth-child(3n+2) { grid-column: span 3; }
  .psections .pgallery[style*="--cols:4"] { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .psections .pgallery[style*="--cols:4"] figure { grid-column: span 3; }
  .psections .pgallery[style*="--cols:4"] figure:nth-last-child(2):nth-child(4n+1),
  .psections .pgallery[style*="--cols:4"] figure:last-child:nth-child(4n+2) { grid-column: span 6; }
  .psections .pgallery[style*="--cols:4"] figure:nth-last-child(3):nth-child(4n+1),
  .psections .pgallery[style*="--cols:4"] figure:nth-last-child(2):nth-child(4n+2),
  .psections .pgallery[style*="--cols:4"] figure:last-child:nth-child(4n+3) { grid-column: span 4; }
}
/* одиночная схема стоит под заголовком раздела, по его левому краю, как таблицы и текст рядом */
.psections .pgallery[style*="--cols:1"], .psections .product-body > figure { margin-inline: 0; }
/* вертикальные листы (страницы PDF) в галерее держат свои пропорции */
.psections .pgallery figure.is-tall img { aspect-ratio: auto; max-height: 560px; }

/* карточки товаров: параметры вместо обрубленного текста, подзаголовки групп */
.cat-card__media--product { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--color-line); }
.cat-card__media--product img { padding: 20px; transform: none; }
.cat-card:hover .cat-card__media--product img { transform: scale(1.04); }
.cat-card__facts { display: grid; gap: 0; margin: 14px 0 22px; font-size: 14px; }
.cat-card__facts div { display: grid; grid-template-columns: minmax(112px, 42%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--color-line); }
.cat-card__facts dt { color: var(--color-muted); }
.cat-card__facts dd { margin: 0; font-weight: 600; color: var(--color-1); }
.cat-group { margin: 40px 0 20px; padding-left: 14px; border-left: 4px solid var(--color-2); font-size: 22px; color: var(--color-1); }
.cat-group:first-child { margin-top: 0; }

/* телефон: параметры карточки товара — название над значением, длинные слова переносятся */
.cat-card__facts dd { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .cat-card__facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* телефон: длинные слова заголовков (АНТИБАКТЕРИАЛЬНЫМ) не обрезаются справа */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 640px) {
  .page-head__title { font-size: clamp(20px, 6vw, 36px); }
  .section__title { font-size: clamp(22px, 7vw, 32px); }
  .hero__title { font-size: clamp(24px, 8vw, 40px); }
}

/* узкий экран: карточка комплектующего — картинка над текстом, а не колонка в 98 px */
@media (max-width: 480px) {
  .part { grid-template-columns: minmax(0, 1fr); }
  .part img { max-width: 220px; margin-inline: auto; }
}
.plist dt, .plist dd { overflow-wrap: anywhere; }
.plist dt { hyphens: auto; }
.parts .plist { grid-template-columns: minmax(124px, 40%) minmax(0, 1fr); }

/* Разделы страницы на планшете и телефоне: одна кнопка с текущим разделом, список раскрывается вниз */
.pnav__toggle { display: none; }
@media (max-width: 860px) {
  .pnav .container { position: relative; }
  .pnav__toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0; background: none; border: 0; text-align: left; font: 600 15px/1.2 var(--font-text); color: var(--color-1); cursor: pointer; }
  .pnav__toggle:focus-visible { outline: 2px solid var(--color-3); outline-offset: -2px; }
  .pnav__label { flex: none; padding: 4px 8px; background: var(--color-soft); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-3); }
  .pnav__current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pnav__chevron { flex: none; width: 14px; height: 10px; transition: transform .2s; }
  .pnav__toggle[aria-expanded='true'] .pnav__chevron { transform: rotate(180deg); }
  .pnav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; max-height: calc(100vh - var(--header-top-h) - 120px); overflow-y: auto; background: #fff; border-top: 1px solid var(--color-line); border-bottom: 3px solid var(--color-2); box-shadow: 0 16px 28px rgba(8, 30, 54, .2); }
  .pnav ul.is-open { display: flex; }
  .pnav li + li { border-top: 1px solid var(--color-line); }
  .pnav ul a { display: block; max-width: none; min-height: 48px; padding: 14px 16px; overflow: visible; border-bottom: 0; border-left: 3px solid transparent; white-space: normal; font: 600 15px/1.3 var(--font-text); letter-spacing: 0; }
  .pnav ul a.is-active { border-left-color: var(--color-2); background: var(--color-soft); }
  .psections [id] { scroll-margin-top: calc(var(--header-top-h) + var(--header-nav-h) + 64px); }
}
@media (max-width: 640px) { .psections [id] { scroll-margin-top: calc(var(--header-top-h) + 64px); } }

/* телефон: значок типа слева, название справа, размер файла под названием */
@media (max-width: 480px) {
  .doc-list a { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; padding: 12px 0; }
  .doc-list__ext { align-self: start; margin-top: 3px; }
  .doc-list small { grid-column: 2; font-size: 13px; }
}

/* Метка незаполненного реквизита (политика конфиденциальности) */
mark { padding: 0 6px; border-radius: 4px; background: #fff3bf; color: inherit; }
