/* Вкладка «Характеристики» карточки товара, вид 28.11.2026 (шаблон product/_pdp.twig, данные PortitSpecCanon::present).
   Разделы — карточками со значком; «Да» — метками; «Нет» — одной приглушённой строкой; длинный раздел — «Показать ещё». */

#product-info .portit-specv {
  --specv-line: #e8edf1;
  --specv-ink: #1a2430;
  --specv-mute: #6b7684;
  --specv-soft: #f5f8fa;
  --specv-yes: #1f7a4d;
  --specv-yes-bg: #f1f8f4;
  --specv-yes-line: #d9ecdf;
}

/* полоса над разделами: оглавление слева, поиск и «Показать все» справа */
#product-info .portit-specv-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 18px;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--specv-line);
}

#product-info .portit-specv .portit-spec-toc {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 6px;
}

#product-info .portit-specv .portit-spec-toc a {
  height: 30px;
  padding: 0 11px 0 9px;
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  font-size: 12.5px;
  white-space: nowrap;
}

#product-info .portit-specv .portit-spec-toc a i {
  margin-right: 7px;
  font-size: 11px;
  opacity: .6;
}

#product-info .portit-specv .portit-spec-toc a:hover i,
#product-info .portit-specv .portit-spec-toc a.is-hot i {
  opacity: 1;
}

#product-info .portit-specv-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#product-info .portit-specv-find {
  position: relative;
  display: block;
  margin: 0;
}

#product-info .portit-specv-find i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa5b1;
  font-size: 12px;
  pointer-events: none;
}

#product-info .portit-specv-find input {
  width: 210px;
  height: 32px;
  padding: 0 10px 0 31px;
  border: 1px solid #dde4ea;
  border-radius: 8px;
  background: #fff;
  color: var(--specv-ink);
  font-size: 13px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}

#product-info .portit-specv-find input::placeholder {
  color: #9aa5b1;
}

#product-info .portit-specv-find input:focus {
  border-color: var(--portit-top);
  box-shadow: 0 0 0 3px rgba(79, 95, 111, .12);
}

#product-info .portit-specv-all,
#product-info .portit-specv-more {
  border: 0;
  background: transparent;
  color: var(--portit-top);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s;
}

#product-info .portit-specv-all {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dde4ea;
  border-radius: 8px;
  background: #fff;
}

#product-info .portit-specv-all:hover,
#product-info .portit-specv-more:hover {
  color: var(--portit-accent);
}

#product-info .portit-specv-all:hover {
  border-color: var(--portit-accent);
}

/* разделы */
#product-info .portit-specv .portit-spec-cols {
  gap: 14px 18px;
}

#product-info .portit-specv .portit-spec-col {
  gap: 14px;
}

#product-info .portit-specv .portit-spec-group {
  margin: 0;
  padding: 14px 16px 13px;
  border: 1px solid var(--specv-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  scroll-margin-top: 96px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* блок «Технические характеристики» из базы партномеров (событие pn_base) — на всю ширину */
#product-info .portit-specv .portit-spec-cols > .portit-spec-group {
  grid-column: 1 / -1;
}

#product-info .portit-specv .portit-spec-group.is-on {
  margin: 0;
  padding: 14px 16px 13px;
  background: #fff;
  border-color: var(--portit-top);
  box-shadow: 0 0 0 3px rgba(79, 95, 111, .10);
}

#product-info .portit-specv-title,
#product-info .portit-specv .portit-spec-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  padding: 0;
  color: var(--specv-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

#product-info .portit-specv-ico {
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--portit-heading-bg, #f1f5f5);
  color: var(--portit-top);
  font-size: 13px;
}

#product-info .portit-specv .portit-spec-group dl {
  display: block;
  margin: 0;
}

#product-info .portit-specv .portit-spec-row {
  grid-template-columns: minmax(110px, .9fr) minmax(0, 1.1fr);
  gap: 2px 8px;
  padding: 3.5px 0;
}

#product-info .portit-specv .portit-spec-row dt {
  color: var(--specv-mute);
  font-size: 13px;
  line-height: 1.4;
}

#product-info .portit-specv .portit-spec-row dd {
  font-size: 13px;
  line-height: 1.4;
}

#product-info .portit-specv .portit-spec-row .portit-copy {
  color: var(--specv-ink);
  font-weight: 600;
}

/* строки под «Показать ещё» */
#product-info .portit-specv .portit-spec-row.is-more {
  display: none;
}

#product-info .portit-specv .portit-spec-group.is-open .portit-spec-row.is-more,
#product-info .portit-specv.is-all .portit-spec-row.is-more,
#product-info .portit-specv.is-find .portit-spec-row.is-more {
  display: grid;
}

#product-info .portit-specv-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  padding: 4px 0;
}

#product-info .portit-specv-more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s;
}

#product-info .portit-specv .portit-spec-group.is-open .portit-specv-more::after {
  transform: translateY(1px) rotate(-135deg);
}

#product-info .portit-specv.is-all .portit-specv-more,
#product-info .portit-specv.is-find .portit-specv-more {
  display: none;
}

/* «Да» — метками */
#product-info .portit-specv-yes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#product-info .portit-specv .portit-spec-group dl + .portit-specv-yes {
  margin-top: 10px;
}

#product-info .portit-specv-yes li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--specv-yes-line);
  border-radius: 8px;
  background: var(--specv-yes-bg);
  color: #1d3b2b;
  font-size: 12.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#product-info .portit-specv-yes li i {
  flex: 0 0 auto;
  color: var(--specv-yes);
  font-size: 10px;
}

/* «Нет» — одной приглушённой строкой */
#product-info .portit-specv-no {
  margin: 9px 0 0;
  color: #8a94a0;
  font-size: 12.5px;
  line-height: 1.45;
}

#product-info .portit-specv-no span {
  color: var(--specv-mute);
  font-weight: 600;
}

/* поиск по характеристикам */
#product-info .portit-specv.is-find .portit-spec-row.is-miss,
#product-info .portit-specv.is-find .portit-specv-yes li.is-miss,
#product-info .portit-specv.is-find .portit-spec-group.is-miss,
#product-info .portit-specv.is-find .portit-spec-col.is-miss,
#product-info .portit-specv.is-find .portit-specv-no {
  display: none;
}

#product-info .portit-specv mark {
  padding: 0 1px;
  border-radius: 3px;
  background: #fff1a8;
  color: inherit;
}

#product-info .portit-specv-none {
  margin: 18px 0 6px;
  color: var(--specv-mute);
  font-size: 13.5px;
  text-align: center;
}

@media (max-width: 991.98px) {
  #product-info .portit-specv-bar {
    flex-direction: column;
    align-items: stretch;
  }

  #product-info .portit-specv .portit-spec-toc {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #product-info .portit-specv .portit-spec-toc::-webkit-scrollbar {
    display: none;
  }

  #product-info .portit-specv-find {
    flex: 1 1 auto;
  }

  #product-info .portit-specv-find input {
    width: 100%;
  }

  #product-info .portit-specv .portit-spec-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  #product-info .portit-specv .portit-spec-group,
  #product-info .portit-specv .portit-spec-group.is-on {
    padding: 12px 12px 11px;
  }

  #product-info .portit-specv .portit-spec-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* длинная вкладка: видно начало, остальное — под кнопкой «Все характеристики» */
#product-info .portit-specv.is-fold .portit-spec-cols {
  position: relative;
  max-height: 860px;
  overflow: hidden;
}

#product-info .portit-specv.is-fold .portit-spec-cols::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 82%);
  pointer-events: none;
}

#product-info .portit-specv-unfold {
  display: none;
}

#product-info .portit-specv.is-fold .portit-specv-unfold {
  display: flex;
  justify-content: center;
  margin: -22px 0 4px;
  position: relative;
  z-index: 1;
}

#product-info .portit-specv-unfold-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid #d5dde4;
  border-radius: 10px;
  background: #fff;
  color: var(--specv-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 41, 51, .08);
  transition: border-color .15s, color .15s, box-shadow .15s;
}

#product-info .portit-specv-unfold-btn small {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--portit-heading-bg, #f1f5f5);
  color: var(--specv-mute);
  font-size: 12px;
  font-weight: 600;
}

#product-info .portit-specv-unfold-btn:hover {
  border-color: var(--portit-accent);
  color: var(--portit-accent);
  box-shadow: 0 8px 22px rgba(31, 41, 51, .12);
}

@media (max-width: 991.98px) {
  #product-info .portit-specv.is-fold .portit-spec-cols {
    max-height: 980px;
  }
}

/* ---------- Блок «Аналог сейчас со склада» (шаблон product/analog_stock.twig, 28.11.2026) ---------- */
#product-info .portit-buy .portit-now.is-ax {
  margin: 12px 12px 12px;
  padding: 13px 14px 12px;
  border: 1px solid #cfe6d8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4faf6 0, #fff 64px);
}

#product-info .portit-ax-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}

#product-info .portit-now.is-ax .portit-now-kicker {
  font-size: 14px;
  font-weight: 700;
  color: #17683b;
}

#product-info .portit-now.is-ax .portit-now-kicker i {
  font-size: 13px;
}

#product-info .portit-ax-time {
  color: #7a8794;
  font-size: 11.5px;
  white-space: nowrap;
}

#product-info .portit-now.is-ax .portit-now-lead {
  margin: 5px 0 0;
  color: #4d5a67;
  font-size: 12.5px;
  line-height: 1.4;
}

#product-info .portit-now.is-ax .portit-now-rows {
  margin: 10px 0 0;
}

#product-info .portit-now.is-ax .portit-now-rows li {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e6eef0;
}

#product-info .portit-now.is-ax .portit-now-rows li:first-child {
  border-top: 1px solid #e6eef0;
  padding-top: 10px;
}

#product-info .portit-now.is-ax .portit-now-pic {
  width: 56px;
  height: 56px;
  border: 1px solid #eef2f5;
  background: #fff;
}

#product-info .portit-ax-why {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-top: 4px;
  color: #4d5a67;
  font-size: 12px;
  line-height: 1.35;
}

#product-info .portit-ax-level {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef2f6;
  color: #46566a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#product-info .portit-ax-level.is-full {
  background: #e3f4e9;
  color: #17683b;
}

#product-info .portit-now.is-ax .portit-now-stock {
  display: flex;
  margin-top: 4px;
  font-size: 11.5px;
}

#product-info .portit-now.is-ax .portit-now-side {
  gap: 3px;
  align-self: start;
}

#product-info .portit-now.is-ax .portit-now-side b {
  font-size: 15px;
}

#product-info .portit-ax-delta {
  color: #7a8794;
  font-size: 11px;
  white-space: nowrap;
}

#product-info .portit-ax-delta.is-less {
  color: #17683b;
  font-weight: 600;
}

#product-info .portit-now.is-ax .portit-now-take {
  margin-top: 5px;
  height: 32px;
}

#product-info .portit-ax-note {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 8px 0 0;
  padding-top: 9px;
  border-top: 1px dashed #dfe7ea;
  color: #6b7684;
  font-size: 11.5px;
  line-height: 1.4;
}

#product-info .portit-ax-note i {
  color: #9aa5b1;
  font-size: 11px;
}

@media (max-width: 420px) {
  #product-info .portit-now.is-ax .portit-now-rows li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  #product-info .portit-now.is-ax .portit-now-pic {
    width: 44px;
    height: 44px;
  }

  #product-info .portit-now.is-ax .portit-now-side {
    grid-column: 2;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}
