/* =========================================================
   Каталог, категория, карточка товара
   ========================================================= */

/* ---------- Карточка товара в списках (.pcard) ---------- */
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 42px; padding-inline: 16px; background: var(--c-bg-soft); }
.pcard__brand { font-size: 14px; font-weight: 500; color: var(--c-navy); }
.pcard__status { font-size: 13px; color: #8a602a; }
.pcard__status--stock { color: #2f7d3a; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 6px 8px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.pcard__media { display: grid; place-items: center; height: 160px; margin-inline: 29px; border-radius: var(--radius); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; }
.pcard__media--empty { background: var(--c-bg-soft); }
.pcard__article { margin-top: 9px; font-size: 10.5px; line-height: 18px; color: var(--c-text-2); }
.pcard__title { margin-top: 28px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--c-text); }
.pcard__title a:hover { color: var(--c-navy); text-decoration: underline; }
.pcard__params { margin-top: 3px; }
.pcard__param { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding-right: 4px; border-bottom: 1px solid var(--c-border-light); font-size: 14px; }
.pcard__param dt { color: var(--c-text-2); line-height: 23px; }
.pcard__param dd { margin: 0; font-size: 12px; font-weight: 500; color: var(--c-text); text-align: right; }
.pcard__price { margin: auto 0 0; padding-top: 12px; text-align: center; font-size: 14px; line-height: 23px; font-weight: 600; color: var(--c-navy); }
.pcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 0; padding-top: 21px; }
.pcard__btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; font-size: 14px; font-weight: 500; border-radius: var(--radius); border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.pcard__btn--accent { background: var(--c-accent); color: #fff; }
.pcard__btn--accent:hover { background: var(--c-accent-dark); }
.pcard__btn--outline { border-color: var(--c-border); color: #272727; background: #fff; }
.pcard__btn--outline:hover { border-color: var(--c-navy); }
.pgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (min-width: 1024px) { .pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 20px; } }

/* ---------- Плитки категорий ---------- */
.ctiles { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ctile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 200px; padding: 18px 10px 18px 10px; background: var(--c-bg-soft); border-radius: var(--radius); transition: background-color .15s; }
.ctile:hover { background: #eef1f5; }
.ctile__media { display: grid; place-items: center; height: 120px; }
.ctile__media img { max-height: 100%; width: auto; object-fit: contain; }
.ctile__title { font-size: 15px; line-height: 1.2; font-weight: 600; color: var(--c-text); padding-inline: 0; }
@media (min-width: 768px) { .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ctiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } .ctile { min-height: 229px; } }
.ctiles--catalog { margin-top: 20px; }

/* ---------- Заголовок страницы каталога ---------- */
.cat-head { padding-bottom: 28px; }
.cat-head .page-head { padding-top: 24px; }

/* ---------- Категория: вводный блок ---------- */
.cat-intro { display: grid; gap: 16px; padding-top: 20px; }
.cat-intro__text { font-size: 18px; line-height: 1.6; color: var(--c-text-2); max-width: 1030px; }
.cat-checks { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 24px; padding-block: 16px; line-height: 18px; font-size: 14px; color: var(--c-navy); }
.cat-checks li { display: inline-flex; align-items: center; gap: 8px; }
.cat-checks .icon { width: 16px; height: 16px; }
@media (min-width: 1024px) { .cat-intro { grid-template-columns: minmax(0, 1030px) auto; justify-content: space-between; align-items: center; } }

/* ---------- Листинг ---------- */
.listing { display: grid; gap: 32px; padding-block: 24px 56px; grid-template-columns: minmax(0, 1fr); }
.filters { display: flex; flex-direction: column; min-width: 0; }
.filters__head { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.filters__title { font-size: 18px; font-weight: 600; }
.filters__reset { font-size: 13px; color: var(--c-accent); }
.filters__reset:hover { text-decoration: underline; }
.fgroup { padding-block: 16px 14px; border-top: 1px solid var(--c-border-light); }
.fgroup__head { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 15px; font-weight: 600; color: var(--c-text); text-align: left; }
.fgroup__head .icon { width: 16px; height: 16px; color: var(--c-text-2); transition: transform .2s; }
.fgroup__head[aria-expanded="false"] .icon { transform: rotate(180deg); }
.fgroup__list { display: grid; gap: 16px; margin-top: 14px; }
.fgroup[hidden-body] .fgroup__list { display: none; }
.fgroup__list[hidden] { display: none; }
.fgroup__list > .fselects { margin-top: 0; }
.fopt { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-text-2); cursor: pointer; }
.fopt .check__box { margin-top: 0; }
.fselects { display: grid; gap: 12px; margin-top: 14px; }
.fselect { position: relative; }
.fselect select { width: 100%; height: 40px; padding: 0 34px 0 12px; font-size: 13px; color: var(--c-text-2); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); appearance: none; -webkit-appearance: none; }
.fselect::after { content: ''; position: absolute; right: 14px; top: 15px; width: 6px; height: 6px; border-right: 1.5px solid var(--c-text-2); border-bottom: 1.5px solid var(--c-text-2); transform: rotate(45deg); pointer-events: none; }
.filters__apply { margin-top: 20px; }
.filters__note { margin-top: 12px; font-size: 11px; line-height: 1.5; color: var(--c-text-3); }
.helpbox { position: relative; margin-top: 34px; padding: 20px 18px; background: var(--c-navy); color: #fff; border-radius: var(--radius); }
.helpbox__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.helpbox__title .icon { width: 28px; height: 28px; }
.helpbox__text { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--c-on-navy); }
.helpbox__row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.helpbox__phone { font-size: 14px; font-weight: 600; color: #ffb703; }
.results { min-width: 0; }
.results__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 62px; padding: 12px 16px; background: var(--c-bg-soft); border-radius: var(--radius); margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; font-size: 13px; color: var(--c-text); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.chip .icon { width: 12px; height: 12px; }
.results__empty { padding: 48px 0; text-align: center; color: var(--c-text-2); }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.pager__item { display: grid; place-items: center; width: 40px; height: 40px; font-size: 14px; color: var(--c-text); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.pager__item:hover { border-color: var(--c-navy); }
.pager__item[aria-current="page"] { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pager__item .icon { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .listing { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding-top: 26px; }
  .listing > .results:only-child { grid-column: 1 / -1; }
}

/* ---------- Карточка товара ---------- */
.prod-ident { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; }
.page--product .crumbs { padding-top: 48px; }
.page--product .crumbs__list { line-height: 21px; }
.prod-ident .h1 { margin: 0; }
.prod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.prod-brand { display: inline-flex; align-items: center; gap: 8px; line-height: 24px; font-size: 18px; font-weight: 600; color: var(--c-navy); text-decoration: underline; }
.prod-brand .icon { width: 16px; height: 16px; }
.prod-sep { width: 1px; height: 20px; background: var(--c-border); }
.prod-article { display: inline-flex; align-items: center; gap: 8px; line-height: 24px; font-size: 16px; color: var(--c-text-2); }
.prod-article button { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--c-text-2); }
.prod-article button:hover { color: var(--c-navy); }
.prod-article button[data-copied="true"] { color: #2f7d3a; }
.prod-article .icon { width: 16px; height: 16px; }

.prod-top { display: grid; gap: 28px; padding-block: 28px 0; grid-template-columns: minmax(0, 1fr); }
.prod-photo { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.prod-photo__main { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; min-height: 320px; padding: 30px; background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius); text-align: center; }
.prod-photo__series { position: absolute; left: 30px; top: 30px; font-size: 14px; color: var(--c-text-2); }
.prod-photo__main img { max-height: 300px; width: auto; object-fit: contain; }
.prod-photo__empty .icon { width: 54px; height: 54px; color: var(--c-text-3); stroke-width: 1.5; }
.prod-photo__empty p { margin-top: 20px; font-size: 20px; line-height: normal; font-weight: 500; color: var(--c-text-2); }
.prod-thumbs { display: flex; gap: 12px; }
.prod-photo { gap: 11px; }
.prod-thumb { width: 112px; height: 102px; background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.prod-thumb[aria-current="true"] { border-color: var(--c-navy); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-brief { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; min-width: 0; }
.prod-brief__text { font-size: 18px; line-height: 1.5; color: var(--c-text-2); }
.prod-brief__list { font-size: 15px; line-height: 1.5; }
.prod-brief__row { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--c-border-light); }
.prod-brief__row dt { color: var(--c-text-2); }
.prod-brief__row dd { margin: 0; width: 135px; color: var(--c-text); }
.prod-brief__more { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--c-navy); }
.prod-brief__more .icon { width: 16px; height: 16px; }
.buybox { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--c-bg-soft); border-radius: var(--radius); align-self: start; }
.buybox__status { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--c-accent); }
.buybox__status--stock { color: #2f7d3a; }
.buybox__status--none { color: var(--c-text-3); }
.buybox__price { display: flex; flex-direction: column; gap: 4px; }
.buybox__price-label { font-size: 14px; line-height: 1.5; color: var(--c-text-2); }
.buybox__price-value { font-size: var(--fs-price); line-height: normal; font-weight: 600; color: var(--c-text); }
.buybox__note { font-size: 15px; line-height: 1.5; color: var(--c-text-2); }
.buybox__actions { display: grid; gap: 10px; }
.buybox__term { font-size: 16px; color: var(--c-navy); text-decoration: underline; width: fit-content; }
.buybox__foot { font-size: 13px; line-height: 1.5; color: var(--c-text-3); }

.tabs { border-bottom: 1px solid var(--c-border); }
.tabs__list { display: flex; gap: 0 40px; padding-top: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__link { display: block; padding: 20px 0 17px; font-size: 17px; line-height: normal; color: var(--c-text-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs__link:hover { color: var(--c-navy); }
.tabs__link[aria-current="true"] { font-weight: 600; color: var(--c-navy); border-bottom-color: var(--c-navy); }

.psec { padding-block: 36px 56px; }
.psec--flush { padding-top: 0; }
.psec__title { margin-bottom: 28px; min-height: 44px; display: flex; align-items: center; }
.psec--soft { background: var(--c-bg-soft); }
.specs { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.spec-table { font-size: 17px; line-height: 1.5; }
.spec-row { display: grid; gap: 4px 24px; padding: 13px 20px; min-height: 52px; background: #fff; }
.spec-row:nth-child(odd) { background: var(--c-bg-soft); }
.spec-row dt { color: var(--c-text-2); }
.spec-row dd { margin: 0; font-weight: 500; color: var(--c-text); overflow-wrap: anywhere; }
.spec-aside { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--c-bg-soft); align-self: start; }
.spec-aside__icon { width: 30px; height: 30px; color: var(--c-navy); }
.spec-aside__title { font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--c-text); }
.spec-aside__text { font-size: 17px; line-height: 1.5; color: var(--c-text-2); }
.spec-aside__link { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--c-navy); text-align: left; }
.desc { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); line-height: 1.5; }
.desc__main { display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.desc__main p:first-child { color: var(--c-text); }
.desc__main p + p { color: var(--c-text-2); }
.desc__aside { display: flex; flex-direction: column; gap: 12px; padding-left: 24px; border-left: 2px solid var(--c-border); }
.desc__aside-title { font-size: 18px; font-weight: 600; color: var(--c-text); }
.desc__aside-text { font-size: 16px; color: var(--c-text-2); }

.compat-head { display: grid; gap: 24px; align-items: center; margin-bottom: 32px; }
.compat-head__lead { display: flex; flex-direction: column; gap: 16px; line-height: 1.5; }
.compat-head__lead p:first-child { font-size: 18px; color: var(--c-text); }
.compat-head__lead p:last-child { font-size: 17px; color: var(--c-text-2); }
.compat-reqs { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--c-text-2); }
.compat-reqs li { display: flex; align-items: center; gap: 10px; }
.compat-reqs .icon { width: 18px; height: 18px; color: var(--c-navy); }
.compat-cta { display: flex; flex-direction: column; gap: 14px; }
.compat-cta p { font-size: 14px; line-height: 1.5; color: var(--c-text-2); }
.compat-cta .btn { align-self: flex-start; }
@media (min-width: 1024px) {
  .compat-head { grid-template-columns: 620px minmax(0, 1fr) 260px; gap: 48px; }
}
.docs { border: 1px solid var(--c-border); }
.doc { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px 18px; align-items: center; padding: 19px 22px; border-bottom: 1px solid var(--c-border-light); }
.doc:last-child { border-bottom: 0; }
.doc__icon { width: 24px; height: 24px; color: var(--c-navy); }
.doc__title { font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--c-text); }
.doc__status { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--c-text-2); }
.doc__link { grid-column: 2; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--c-navy); width: fit-content; }
.doc__link .icon { width: 16px; height: 16px; }
.doc__link:hover { text-decoration: underline; }
.terms-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.terms-head .psec__title { margin: 0; }
.terms { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.term { display: flex; flex-direction: column; gap: 16px; padding: 26px; background: var(--c-bg-soft); }
.term__icon { width: 28px; height: 28px; color: var(--c-navy); }
.term__title { font-size: 21px; line-height: 1.5; font-weight: 600; color: var(--c-text); }
.term__text { font-size: 17px; line-height: 1.5; color: var(--c-text-2); }
.pleadform .leadform__card { padding: 28px; gap: 18px; }
.pleadform .input { min-height: 44px; }
.pleadform .input--area { min-height: 44px; }
.pleadform .leadform__title { font-size: var(--fs-h2); }
.pitem { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.pitem__icon { width: 26px; height: 26px; color: var(--c-navy); flex: none; }
.pitem__name { font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--c-text); }
.pitem__sub { font-size: 14px; line-height: 1.5; color: var(--c-text-2); }
.seo-block { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.seo-block__main { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.6; color: var(--c-text-2); }
.seo-block__aside { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--c-bg-soft); align-self: start; }
.seo-block__aside-title { font-size: 20px; font-weight: 600; color: var(--c-text); }
.seo-block__aside-text { font-size: 16px; line-height: 1.6; color: var(--c-text-2); }
.seo-block__aside-note { font-size: 14px; line-height: 1.5; color: var(--c-navy); }
.faq-block { padding-block: 48px 56px; }
.faq-block__title { margin-bottom: 0; }

@media (min-width: 768px) {
  .spec-row { grid-template-columns: 410px minmax(0, 1fr); }
  .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc { grid-template-columns: 24px minmax(0, 1fr) 200px 150px; }
  .doc__status, .doc__link { grid-column: auto; }
  .prod-brief__row dd { width: 135px; }
}
@media (min-width: 1024px) {
  .prod-photo__main { min-height: 376px; }
  .prod-top { grid-template-columns: 471fr 483fr 380fr; gap: 40px; }
  .specs { grid-template-columns: 900fr 466fr; gap: 48px; }
  .desc { grid-template-columns: 900fr 466fr; gap: 48px; }
  .seo-block { grid-template-columns: 900fr 466fr; gap: 48px; }
  .pleadform .leadform__inner { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); }
}

/* Плитки категорий: как в макете (картинка 42×123, подпись снизу) */
.ctile { gap: 0; min-height: 266px; padding: 30px 0 0; position: relative; }
.ctile__media { height: 123px; }
.ctile__media img { width: auto; max-width: 100%; height: 123px; max-height: none; object-fit: contain; mix-blend-mode: multiply; }
.ctile__body { position: absolute; left: 10px; right: 10px; top: 178px; display: block; }
.ctile__title { display: block; font-size: 14px; line-height: 14px; font-weight: 600; color: var(--c-text); }
.ctile__count { display: block; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--c-accent); }
.pcard__nophoto { margin-top: 2px; font-size: 10.5px; line-height: 18px; color: var(--c-text-2); }
.pcard__article + .pcard__nophoto + .pcard__title { margin-top: 10px; }

/* Вводный блок категории без текста описания: кнопка «Запросить КП» обычного размера, слева */
.cat-intro--solo { display: flex; justify-content: flex-start; }

/* Каталог: увеличенные изображения плиток без изменения других страниц */
.page--catalog .ctile__media img { transform: scale(1.35); transform-origin: center center; }

/* ---------- Подкатегории на странице раздела: горизонтальные компактные карточки ---------- */
.cat-children .ctiles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 20px; }
.cat-children .ctile { flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 10px; min-height: 80px; padding: 12px 14px; }
.cat-children .ctile__media { flex: none; align-self: center; display: flex; align-items: center; justify-content: center; width: 100px; height: 104px; }
.cat-children .ctile__media:empty { display: none; }
.cat-children .ctiles:has(.ctile__media img) .ctile__media:empty { display: block; }   /* в ряду с фото тексты начинаются на одной линии */
.cat-children .ctile__media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-children .ctile__body { position: static; display: flex; flex-direction: column; justify-content: center; gap: 0; min-width: 0; }
.cat-children .ctile__title { font-size: 14px; line-height: 20px; min-height: 40px; overflow-wrap: break-word; hyphens: auto; }   /* место под 2 строки: «Товаров» у всех на одной линии */
.cat-children .ctile__count { margin-top: 4px; }

/* ---------- Сортировка каталога ---------- */
.results__bar .sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort__label { font-size: 13px; color: var(--c-text-2); white-space: nowrap; }
.sort .fselect { min-width: 220px; }
.sort .fselect select { color: var(--c-text); cursor: pointer; }
@media (max-width: 767px) {
  .results__bar .sort { width: 100%; margin-left: 0; }
  .sort .fselect { flex: 1; min-width: 0; }
}
