/* PORT-IT — визуальный слой поверх Bootstrap 5, повторяющий палитру
   старого сайта (тема oct_techstore). Затрагивает только шапку, меню,
   футер и главную — не трогает страницы конфигуратора/корзины/заказа. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --portit-accent: #229ac8;
  --portit-accent-dark: #1f90bb;
  --portit-dark: #4f5f6f;
  --portit-topbar: #1b2430;
  --portit-topbar-hover: #243040;
  --portit-text: #666;
  --portit-heading: #444;
  --portit-price: #e1262d;
  --portit-red-dark: #8b1e2d;
  --portit-line: #e6e9ee;
  --portit-gold: #f5b942;
  --portit-dock-h: 0px;
  --portit-spec-sticky-top: 12px;
  --portit-spec-sticky-bottom: 12px;
}

body { color: var(--portit-text); font-family: Inter, system-ui, sans-serif; }

/* ---------- Верхняя тёмная полоса ---------- */
#top {
  background: var(--portit-topbar);
  color: #fff;
  font-size: 12px;
  padding: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.portit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}
.portit-top-links {
  display: flex;
  min-width: 0;
  overflow: hidden;
}
.portit-top-links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
  letter-spacing: 0;
  transition: color .2s ease, letter-spacing .2s ease, background .2s ease;
}
.portit-top-links a:first-child { border-left: 0; }
.portit-top-links a:hover {
  color: var(--portit-price);
  letter-spacing: .04em;
}
.portit-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.portit-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1d2430;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: transform .18s ease;
}
.portit-rating:hover { transform: translateY(-1px); color: #1d2430; }
.portit-pin {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: var(--portit-price);
  transform: rotate(-45deg);
  position: relative;
}
.portit-pin:after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
.portit-stars { color: var(--portit-gold); letter-spacing: 1px; font-size: 11px; }
.portit-client > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  padding: 0 10px;
  height: 40px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s ease, transform .18s ease;
}
.portit-client > a:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateY(-1px); }
.portit-client .dropdown-menu a { color: #333; }
#top .dropdown-toggle::after { display: none; }

/* ---------- Шапка «Пилюли» ---------- */
header { background: #fff; padding: 6px 0; border-bottom: 1px solid var(--portit-line); }
.portit-header-main {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto;
  grid-template-areas: "logo menu search actions";
  align-items: center;
  gap: 12px;
}
#logo { grid-area: logo; margin: 0; }
#logo img { max-height: 52px; }
.portit-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.portit-logo-top { font-size: 22px; font-weight: 700; color: #1b2430; letter-spacing: .02em; }
.portit-logo-top span { padding: 0 5px; }
.portit-logo-bot { font-size: 13px; font-weight: 800; color: var(--portit-red-dark); letter-spacing: .18em; margin-top: 3px; }

.portit-mega { grid-area: menu; position: relative; flex-shrink: 0; }
.portit-mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #2c3644;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, filter .18s ease;
}
.portit-mega-btn:hover,
.portit-mega.is-open .portit-mega-btn {
  background: #1b2430;
  transform: translateY(-1px);
}
.portit-mega-burger {
  width: 14px;
  height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.portit-mega-burger i {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.portit-mega.is-open .portit-mega-burger i:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.portit-mega.is-open .portit-mega-burger i:nth-child(2) { opacity: 0; }
.portit-mega.is-open .portit-mega-burger i:nth-child(3) { transform: translateY(-4.2px) rotate(-45deg); }
.portit-mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(920px, 92vw);
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 40;
  box-shadow: 0 18px 50px rgba(20, 24, 30, .16);
}
.portit-mega.is-open .portit-mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.portit-mega.is-open .portit-mega-col {
  animation: portit-mega-stagger .28s ease both;
}
.portit-mega.is-open .portit-mega-col:nth-child(2) { animation-delay: .05s; }
.portit-mega.is-open .portit-mega-col:nth-child(3) { animation-delay: .1s; }
.portit-mega.is-open .portit-mega-col:nth-child(n+4) { animation-delay: .14s; }
@keyframes portit-mega-stagger {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.portit-mega-col h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.portit-mega-col h4 a { color: var(--portit-topbar); text-decoration: none; }
.portit-mega-col-continue { visibility: hidden; }
.portit-mega-col .portit-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3b4450;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0;
  transition: color .2s ease, letter-spacing .2s ease, background .2s ease;
}
.portit-mega-col .portit-nav-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--portit-price);
  opacity: .7;
  flex-shrink: 0;
}
.portit-mega-col .portit-nav-item:hover {
  color: var(--portit-price);
  letter-spacing: .03em;
  background: #fff5f5;
}

.portit-search,
#search.portit-search {
  grid-area: search;
  min-width: 0;
  position: relative;
  margin-bottom: 0;
}
.portit-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid #e4e8ee;
  border-radius: 999px;
  padding: 0 44px 0 18px;
  font-size: 14px;
  outline: none;
  background: #f7f8fa;
  transition: border-color .18s ease, background .18s ease;
}
.portit-search-input:focus { border-color: #9aa8b8; background: #fff; }
.portit-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #7b8491;
  cursor: pointer;
  border-radius: 50%;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.portit-search-btn:hover {
  background: #e9eef4;
  color: var(--portit-topbar);
  transform: rotate(-8deg) scale(1.06);
}

.portit-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
  margin-left: auto;
}
.portit-phone,
.portit-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f5f8;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
header .portit-phone {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
header .portit-phone:hover,
.portit-cart:hover {
  background: #e9eef4;
  transform: translateY(-2px);
}
.portit-phone-num {
  font-size: 18px;
  font-weight: 800;
  color: #3a4450;
  letter-spacing: -.02em;
  white-space: nowrap;
  line-height: 1.1;
  text-decoration: none;
}
.portit-phone-ico { display: none; }
.portit-callback {
  font-size: 11px;
  color: var(--portit-price);
  text-decoration: underline;
  white-space: nowrap;
}
.portit-callback:hover { text-decoration: none; color: var(--portit-price); }
#cart { margin-bottom: 0; }
.portit-cart-wrap { display: block; }
.portit-cart { color: var(--portit-price); font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; }
.portit-cart-ico { position: relative; color: #1d2430; }
.portit-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #b7c0ca;
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  transition: background .18s ease, transform .18s ease;
}
.portit-cart:hover .portit-cart-badge { background: var(--portit-price); transform: scale(1.08); }
#cart .dropdown-menu { background: #fff; border-radius: 14px; border-color: var(--portit-line); }

@media (max-width: 1100px) {
  .portit-top-links a:nth-child(n+4) { display: none; }
  .portit-phone-num { font-size: 15px; }
}
@media (max-width: 860px) {
  .portit-header-main {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "logo menu actions"
      "search search search";
  }
  .portit-top-links a:nth-child(n+3) { display: none; }
  .portit-client span { display: none; }
  .portit-mega-panel { grid-template-columns: 1fr 1fr; width: min(92vw, 520px); }
}
@media (max-width: 560px) {
  .portit-top { padding: 0 2px; }
  .portit-header-main { gap: 8px; }
  .portit-mega-label { display: none; }
  .portit-mega-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .portit-phone-num { font-size: 12px; }
  .portit-callback { display: none; }
  .portit-cart-sum { display: none; }
  .portit-rating .portit-stars,
  .portit-rating b { display: none; }
}

/* ---------- Кнопки ---------- */
.btn-primary {
  --bs-btn-bg: var(--portit-accent);
  --bs-btn-border-color: var(--portit-accent);
  --bs-btn-hover-bg: var(--portit-accent-dark);
  --bs-btn-hover-border-color: var(--portit-accent-dark);
}

/* OpenCart default pins footer { position:absolute; bottom:-1px } over content
   and reserves space via #content padding-bottom. Category pages have no #content,
   so the Navy rail painted over the product grid. Keep PORT-IT footer in flow. */
#container {
  position: relative;
  margin-bottom: 0;
}
#content,
#column-left,
#column-right {
  padding-bottom: 0;
}
@media (min-width: 576px) {
  #content,
  #column-left,
  #column-right {
    padding-bottom: 0;
  }
}

/* ---------- Футер: 1 доверие + 2 инженер + 3 стекло + 4 navy-рейка ---------- */
footer,
footer.portit-foot,
.portit-foot {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  z-index: 1;
  margin-top: 40px;
  padding-top: 0;
  border: 0;
  color: #e8edf2;
  background: #121820;
  overflow: hidden;
  isolation: isolate;
}
.portit-foot-rail {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--portit-topbar);
  color: #fff;
  height: 34px;
  padding: 0;
}
.portit-foot-rail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 72px;
  background: var(--portit-price);
  animation: portit-rail-scan 5.5s ease-in-out infinite;
  pointer-events: none;
}
.portit-foot-rail-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: portit-rail-move 32s linear infinite;
}
.portit-foot-rail:hover .portit-foot-rail-track { animation-play-state: paused; }
.portit-foot-rail-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 100%;
}
.portit-foot-rail-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: 100%;
  padding: 0 22px 0 0;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  transition: letter-spacing .2s ease, color .2s ease;
}
.portit-foot-rail-item i {
  font-size: 11px;
  color: rgba(255, 255, 255, .72);
  transition: color .2s ease, transform .2s ease;
}
.portit-foot-rail-item:hover { letter-spacing: .04em; color: #fff; }
.portit-foot-rail-item:hover i {
  color: var(--portit-price);
  transform: translateY(-1px);
}
.portit-foot-rail-sep {
  width: 5px;
  height: 5px;
  background: var(--portit-price);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 22px;
  opacity: .9;
}
@keyframes portit-rail-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--portit-rail-w, 50%))); }
}
@keyframes portit-rail-scan {
  0% { left: -72px; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .portit-foot-rail-track,
  .portit-foot-rail::after { animation: none; }
  .portit-foot-rail-set:last-child { display: none; }
  .portit-foot-rail-set { flex-wrap: wrap; width: 100%; justify-content: center; }
}
.portit-foot-shell {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}
.portit-foot-bg {
  position: absolute;
  top: 0;
  right: -12px;
  bottom: -12px;
  left: -12px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(8px);
  transform: scale(1.06);
  opacity: .35;
  pointer-events: none;
}
.portit-foot-in {
  position: relative;
  z-index: 1;
  padding: 28px 15px 22px;
}
.portit-foot-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.portit-foot-pills a {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #fff;
}
.portit-foot-pills a:hover { background: #e1262d; border-color: #e1262d; color: #fff; }
.portit-foot-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.portit-foot-trust > div {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 14px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}
.portit-foot-trust i {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(225, 38, 45, .16);
  color: #ff6b6f;
  font-size: 16px;
}
.portit-foot-trust b { display: block; font-size: 20px; color: #fff; line-height: 1.15; }
.portit-foot-trust span { font-size: 11px; color: #8b95a3; }
.portit-foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .7fr);
  gap: 22px;
  align-items: start;
}
.portit-foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.portit-foot h5 {
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.portit-foot a { color: #c5ced6; text-decoration: none; }
.portit-foot a:hover { color: #fff; }
.portit-foot ul { margin: 0; padding: 0; }
.portit-foot ul li { margin-bottom: 6px; }
.portit-foot-eng {
  background: rgba(18, 22, 28, .72);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 16px;
}
.portit-foot-eng h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.portit-foot-slot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #9aa3ad;
  margin-bottom: 12px;
}
.portit-foot-slot i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #3dd68c;
  border-radius: 50%;
  margin-right: 6px;
  animation: portit-pulse 1.6s infinite;
}
@keyframes portit-pulse { 50% { opacity: .35; } }
.portit-foot-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.portit-foot-form input,
.portit-foot-form textarea {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  width: 100%;
  resize: none;
  min-height: 0;
  line-height: 1.35;
}
.portit-foot-form textarea,
.portit-foot-form button { grid-column: 1 / -1; }
.portit-foot-form textarea { min-height: 72px; height: 72px; }
.portit-foot-form button {
  border: 0;
  border-radius: 8px;
  background: #e1262d;
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}
.portit-foot-form-ok { margin: 10px 0 0; font-size: 12px; color: #7dffa8; }
.portit-foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.portit-foot .portit-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  margin-right: 8px;
  color: #fff;
}
.portit-foot .portit-socials a:hover { background: #e1262d; }
.portit-foot-phone { font-size: 18px; font-weight: 800; color: #fff !important; }
.portit-foot-pay { display: flex; gap: 8px; margin-left: auto; }
.portit-foot-pay span {
  background: #fff;
  color: #1b2430;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
.portit-foot .portit-legal { font-size: 11px; color: #8b95a3; margin: 16px 0 8px; line-height: 1.5; }
.portit-foot .portit-copy { font-size: 12px; color: #aeb6bd; }
@media (max-width: 991px) {
  .portit-foot-main, .portit-foot-trust, .portit-foot-cols { grid-template-columns: 1fr 1fr; }
  .portit-foot-pay { margin-left: 0; }
}
@media (max-width: 640px) {
  .portit-foot-trust, .portit-foot-cols, .portit-foot-main { grid-template-columns: 1fr; }
}

/* ---------- Главная: hero + мастер (вариант Pause + spring + колесо) ---------- */
.portit-hero {
  position: relative;
  min-height: 353px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 21px 0;
  overflow: hidden;
  color: #fff;
  margin-bottom: 30px;
}
.portit-hero-bg {
  position: absolute;
  inset: -14px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(2.2px);
  transform: scale(1.05);
  transition: filter .45s ease, transform .45s ease;
}
.portit-hero:hover .portit-hero-bg {
  filter: blur(7px);
  transform: scale(1.1);
}
.portit-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(10,14,20,.2);
  pointer-events: none;
}
.portit-hero > .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  width: 100%;
  align-self: stretch;
}
.portit-hero-glass {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 16px;
  padding: 18px 20px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(32,36,42,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .35s ease, border-color .35s ease;
}
.portit-hero:hover .portit-hero-glass {
  background: rgba(18,22,28,.62);
  border-color: rgba(255,255,255,.46);
}
.portit-hero-left,
.portit-hero-right {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.portit-hero-left {
  justify-content: flex-start;
  gap: 0;
}
/* Правая колонка не раздувает ряд: высоту задаёт левый блок,
   мастер подбора растягивается и обрезает ленту CPU внутри. */
.portit-hero-right {
  height: 0;
  min-height: 100%;
  overflow: hidden;
}
.portit-hero-badge {
  display: inline-flex;
  align-self: flex-start;
  background: #f23534;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.portit-hero-title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
.portit-hero-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}
.portit-hero-tags {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 0;
}
.portit-hero-tag {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(18,22,28,.72);
  border: 1px solid rgba(255,255,255,.14);
  white-space: normal;
  color: #fff;
  text-decoration: none;
}
.portit-hero-tag::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -45%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.portit-hero-tag:hover::after {
  opacity: 1;
  animation: portit-hero-sweep .7s ease;
}
.portit-hero-tag:hover { background: rgba(242,53,52,.92); border-color: #f23534; color: #fff; }
@keyframes portit-hero-sweep { from { left: -45%; } to { left: 120%; } }

.portit-wiz {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.portit-wiz-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0;
}
.portit-wiz-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.portit-wiz-back {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.portit-wiz-summary {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.portit-wiz-summary.is-on { display: block; }
.portit-wiz-viewport {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.portit-wiz-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(110%);
  transition: transform .55s cubic-bezier(.22,1.4,.36,1);
}
.portit-wiz-panel[hidden] { display: none !important; }
.portit-wiz-panel.is-in { transform: none; }
.portit-wiz-panel.is-out { transform: translateX(-118%); }

.portit-cpu-window {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}
.portit-cpu-window::before,
.portit-cpu-window::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}
.portit-cpu-window::before { top: 0; background: linear-gradient(to bottom, rgba(20,24,30,.85), transparent); }
.portit-cpu-window::after { bottom: 0; background: linear-gradient(to top, rgba(20,24,30,.85), transparent); }
.portit-cpu-shift { will-change: transform; }
.portit-cpu-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: portit-drift-down 18s linear infinite;
}
.portit-cpu-window:hover .portit-cpu-track { animation-play-state: paused; }
@keyframes portit-drift-down {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.portit-cpu-item {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  width: 100%;
}
.portit-cpu-item small { display: block; opacity: .65; font-size: 11px; }
.portit-cpu-item:hover,
.portit-cpu-item.is-on { background: #f23534; border-color: #f23534; }

.portit-choice-row,
.portit-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1 1 auto; min-height: 0; align-items: stretch; }
.portit-choice,
.portit-form-item {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 12px;
  padding: 8px 8px 10px;
  cursor: pointer;
  text-align: center;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.portit-choice.is-on,
.portit-form-item.is-on { background: rgba(242,53,52,.22); border-color: #f23534; }
.portit-choice svg,
.portit-form-item svg { display: block; margin: 0 auto 6px; max-height: 56px; width: auto; }
.portit-choice b,
.portit-form-item b { display: block; font-size: 13px; }
.portit-wiz-q { margin: 0 0 8px; font-size: 15px; font-weight: 700; flex-shrink: 0; }

@media (max-width: 860px) {
  .portit-hero { padding: 16px 0; min-height: 0; }
  .portit-hero-glass { grid-template-columns: 1fr; }
  .portit-hero-left,
  .portit-hero-right { height: auto; min-height: 0; }
  .portit-hero-title { font-size: 22px; }
  .portit-hero-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portit-wiz-viewport { min-height: 180px; }
  .portit-cpu-window { min-height: 160px; }
  .portit-choice-row,
  .portit-form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .portit-hero-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portit-choice-row,
  .portit-form-row { grid-template-columns: 1fr; }
}

.portit-services-header { text-align: center; margin: 10px 0 30px; }
.portit-services-title { font-size: 24px; font-weight: 700; color: var(--portit-heading); text-transform: uppercase; }
.portit-services-subtitle { color: #888; font-size: 13px; }

/* ---------- Главная: подбор / замена / склад ---------- */
.portit-home { padding-bottom: 28px; }
.portit-home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
  gap: 18px;
  margin-bottom: 28px;
  align-items: stretch;
}
.portit-pick,
.portit-bill {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.portit-pick h2,
.portit-bill h2,
.portit-shelf-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #1d2430;
}
.portit-bill > p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7380;
  line-height: 1.45;
}
.portit-pick-tasks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.portit-pick-task {
  border: 1px solid var(--portit-line);
  background: #f6f8fa;
  color: #1d2430;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
}
.portit-pick-task i { color: #6b7380; font-size: 14px; }
.portit-pick-task b { font-size: 12px; font-weight: 800; line-height: 1.2; }
.portit-pick-task small { font-size: 10px; color: #6b7380; line-height: 1.3; }
.portit-pick-task:hover { border-color: #1b2430; }
.portit-pick-task.is-on {
  background: #e8edf3;
  border-color: #1b2430;
  color: #1d2430;
  box-shadow: inset 3px 0 0 #e1262d;
}
.portit-pick-task.is-on i { color: #e1262d; }
.portit-pick-task.is-on small { color: #5c6673; }
.portit-pick-loads { display: grid; gap: 12px; margin-bottom: 16px; }
.portit-pick-load { display: grid; gap: 6px; }
.portit-pick-load span { font-size: 12px; color: #6b7380; font-weight: 600; }
.portit-pick-load.is-hot span { color: #1d2430; }
.portit-segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.portit-segs button {
  border: 1px solid var(--portit-line);
  background: #fff;
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #4f5f6f;
  cursor: pointer;
  min-height: 36px;
  line-height: 1.2;
}
.portit-segs button.is-on {
  background: #e8edf3;
  border-color: #1b2430;
  color: #1d2430;
}
.portit-pick-board {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--portit-line);
}
.portit-ffig {
  width: 44px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
}
.portit-ffig span {
  display: block;
  height: 7px;
  background: #d8dee6;
  border: 1.5px solid #4f5f6f;
  border-radius: 2px;
  box-sizing: border-box;
}
.portit-ffig.is-tower { justify-content: center; }
.portit-ffig.is-tower span:nth-child(1) { display: none; }
.portit-ffig.is-tower span:nth-child(2) { display: none; }
.portit-ffig.is-tower span:nth-child(3) { height: 36px; width: 22px; margin: 0 auto; }
.portit-ffig.is-tower span:nth-child(4) { height: 6px; width: 28px; margin: 0 auto; }
.portit-ffig.is-1u span:nth-child(1),
.portit-ffig.is-1u span:nth-child(2),
.portit-ffig.is-1u span:nth-child(3) { display: none; }
.portit-ffig.is-1u span:nth-child(4) { height: 10px; }
.portit-ffig.is-2u span:nth-child(1),
.portit-ffig.is-2u span:nth-child(2) { display: none; }
.portit-ffig.is-2u span { height: 12px; }
.portit-pick-spec {
  flex: 1 1 140px;
  font-size: 14px;
  font-weight: 800;
  color: #1d2430;
  line-height: 1.35;
}
.portit-pick-spec small { display: block; font-weight: 500; color: #6b7380; font-size: 12px; margin-top: 2px; }
.portit-pick-cta,
.portit-bill-form button,
.portit-shelf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f23534;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.portit-pick-cta:hover,
.portit-bill-form button:hover,
.portit-shelf-cta:hover { color: #fff; filter: brightness(1.08); }
.portit-bill-form { display: grid; gap: 8px; }
.portit-bill-form label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: #6b7380; }
.portit-bill-form input,
.portit-bill-form select {
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  width: 100%;
  background: #fff;
  font-weight: 600;
  color: #1d2430;
}
.portit-bill-form input.is-bad { border-color: #e1262d; }
.portit-bill-form input.is-ok { border-color: #2f9e6a; }
.portit-bill-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.portit-bill-notes span {
  background: #f6f8fa;
  border: 1px solid var(--portit-line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #1d2430;
}
.portit-bill-ok { margin: 12px 0 0; font-size: 13px; color: #2f9e6a; font-weight: 700; }
.portit-swap-msg { font-size: 13px; color: #6b7380; }
.portit-shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.portit-shelf-head a { font-size: 13px; font-weight: 700; color: #4f5f6f; text-decoration: none; }
.portit-shelf-head a:hover { color: #1d2430; }
.portit-shelf {
  margin-bottom: 8px;
}
.portit-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.portit-shelf-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.portit-shelf-photo {
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.portit-shelf-photo img { max-height: 120px; max-width: 100%; object-fit: contain; }
.portit-shelf-sku { font-size: 11px; color: #6b7380; }
.portit-shelf-name {
  font-size: 13px;
  font-weight: 700;
  color: #1d2430;
  text-decoration: none;
  line-height: 1.3;
  min-height: 2.6em;
  margin-bottom: 6px;
}
.portit-shelf-price { color: #1d2430; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.portit-shelf-cta { margin-top: auto; width: 100%; }
@media (max-width: 991px) {
  .portit-home-split { grid-template-columns: 1fr 1fr; }
  .portit-pick-tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .portit-home-split,
  .portit-shelf-grid { grid-template-columns: 1fr; }
  .portit-pick-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.portit-cat-card { text-align: center; margin-bottom: 30px; }
.portit-cat-card img { max-height: 140px; margin-bottom: 12px; }
.portit-cat-card .portit-cat-title { display: block; font-weight: 700; color: var(--portit-heading); margin-bottom: 6px; text-decoration: none; }
.portit-cat-card .portit-cat-desc { font-size: 13px; color: #888; margin-bottom: 8px; }
.portit-cat-card .portit-cat-more { color: var(--portit-accent); font-size: 13px; text-decoration: none; font-weight: 600; }

/* ---------- Каталог: светлый soft ---------- */
.portit-catalog { padding-bottom: 40px; }
.portit-catalog > .breadcrumb {
  display: none;
}
.portit-info-page {
  padding-bottom: 40px;
}
.portit-info-page > .portit-crumbs {
  margin-bottom: 12px;
}
.portit-crumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 6px;
  padding: 10px 0 8px;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--portit-line);
  border-radius: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #6b7380;
}
.portit-crumbs a {
  display: inline-flex;
  align-items: center;
  color: #6b7380;
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color .15s ease;
}
.portit-crumbs a:hover { color: #e1262d; }
.portit-crumbs .fa-home,
.portit-crumbs .fas { font-size: 1em; line-height: 1; }
.portit-crumbs-sep {
  color: #c5ccd4;
  font-weight: 400;
  flex: 0 0 auto;
  user-select: none;
}
.portit-crumbs-now {
  color: #1b2430;
  font-weight: 500;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .portit-crumbs { flex-wrap: wrap; }
  .portit-crumbs-now {
    flex-basis: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}
.portit-cat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.portit-catalog .portit-cat-title { font-size: 26px; font-weight: 800; color: #1d2430; margin: 0; }
.portit-cat-sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.portit-sort-btn {
  display: inline-flex;
  border: 1px solid #e6e9ee;
  background: #fff;
  color: #1d2430;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.portit-sort-btn:hover { color: #1d2430; }
.portit-sort-btn.is-on { background: #1b2430; color: #fff; border-color: #1b2430; }
.portit-sort-btn.is-on:hover { color: #fff; }

.portit-cat-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.portit-cat-pills-lab { font-size: 11px; color: #6b7380; font-weight: 600; }
.portit-xchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1b2430;
  color: #fff;
  border-radius: 999px;
  padding: 5px 8px 5px 10px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.portit-xchip:hover { color: #fff; }
.portit-xchip i { font-style: normal; opacity: .7; }
.portit-cat-clear { font-size: 11px; color: #6b7380; text-decoration: underline; }

.portit-cat-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  align-items: start;
}
.portit-cat-layout.is-solo { grid-template-columns: 1fr; }
.portit-cat-side {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  padding: 12px 14px;
  position: sticky;
  top: 12px;
}
.portit-fg { margin-bottom: 4px; }
.portit-fg summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  color: #1b2430;
  padding: 8px 0;
  list-style: none;
}
.portit-fg summary::-webkit-details-marker { display: none; }
.portit-fg summary::after { content: "+"; float: right; color: #6b7380; font-weight: 800; }
.portit-fg[open] summary::after { content: "–"; }
.portit-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  font-size: 12px;
  color: #1d2430;
  text-decoration: none;
}
.portit-opt:hover { color: #f23534; }
.portit-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #b7bec7;
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.portit-box i { width: 8px; height: 8px; background: #fff; transform: scale(0); transition: transform .18s cubic-bezier(.22,1.4,.36,1); }
.portit-opt.is-on .portit-box { background: #f23534; border-color: #f23534; }
.portit-opt.is-on .portit-box i { transform: scale(1); }

.portit-cat-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.portit-cat-sub a {
  border: 1px solid #e6e9ee;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #1d2430;
  text-decoration: none;
}

#portit-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.portit-catalog .product-thumb.portit-pcard,
.portit-pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  position: relative;
  transition: box-shadow .28s ease, transform .28s ease;
}
.portit-pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(27,36,48,.12); }
.portit-pcard-photo,
.portit-pcard-photo a,
.portit-pcard-photo img {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.portit-pcard-photo {
  height: 140px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portit-pcard-photo a { display: grid; place-items: center; width: 100%; height: 100%; }
.portit-pcard-photo img {
  display: block;
  max-height: 140px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform .35s ease;
}
.portit-pcard:hover .portit-pcard-photo img { transform: scale(1.05); }
.portit-pcard-sku { font-size: 11px; color: #6b7380; margin-top: 8px; flex-shrink: 0; }
.portit-pcard-name { font-size: 13px; font-weight: 700; line-height: 1.3; min-height: 2.6em; margin: 4px 0 6px; flex-shrink: 0; }
.portit-pcard-name a { color: #1d2430; text-decoration: none; }
.portit-pcard-price { color: #e1262d; font-weight: 800; font-size: 16px; margin-bottom: 8px; flex-shrink: 0; }
.portit-pcard-price s { color: #9aa3ad; font-weight: 600; font-size: 13px; margin-left: 6px; }
.portit-pcard-specs { flex: 1 1 auto; }
.portit-pcard-specs table { width: 100%; border-collapse: collapse; font-size: 11px; }
.portit-pcard-specs td { padding: 4px 0; border-bottom: 1px dotted #e4e7ec; color: #4f5f6f; }
.portit-pcard-specs td:first-child { color: #6b7380; width: 46%; }
.portit-pcard-cta {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f23534;
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.portit-pcard-cta:hover { color: #fff; filter: brightness(1.06); }
.portit-pcard .button { display: none; }
.portit-catalog .portit-cat-pager,
.portit-catalog .pagination { display: none; }

/* ---------- Карточка товара (вариант 6) ---------- */
.portit-product .portit-crumbs {
  font-size: 11px;
  font-weight: 400;
  margin: 0 0 10px;
  padding: 10px 0 0;
  border-bottom: 0;
}
.portit-product .portit-crumbs-now {
  color: #6b7380;
  font-weight: 400;
}
.portit-pd { margin-bottom: 28px; }
.portit-pd-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 210px;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.portit-pd-hero:not(:has(.portit-pd-gallery)) {
  grid-template-columns: minmax(0, 1fr) 210px;
}
.portit-pd-gallery {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.portit-pd-stage {
  margin: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  height: 210px;
}
.portit-pd-stage img {
  display: block;
  max-width: 100%;
  max-height: 210px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0 !important;
  background: #fff;
}
.portit-pd-film {
  display: flex;
  flex-direction: row;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  height: 46px;
  padding: 0 0 2px;
  scrollbar-width: thin;
  scrollbar-color: #c5ccd6 transparent;
}
.portit-pd-film::-webkit-scrollbar { height: 6px; }
.portit-pd-film::-webkit-scrollbar-thumb { background: #c5ccd6; border-radius: 6px; }
.portit-pd-film a {
  flex: 0 0 auto;
  width: 52px;
  height: 40px;
  border: 1px solid var(--portit-line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.portit-pd-film a.is-on { outline: 2px solid #1b2430; outline-offset: -1px; }
.portit-pd-film img { max-width: 100%; max-height: 36px; width: auto; height: auto; display: block; }
.portit-lb {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(15, 20, 28, .86);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  justify-items: center;
  padding: 48px 16px 24px;
}
.portit-lb[hidden] { display: none !important; }
.portit-lb img {
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  grid-column: 2;
}
.portit-lb-close,
.portit-lb-nav {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.portit-lb-close { position: absolute; top: 12px; right: 12px; }
.portit-lb-nav:disabled { opacity: .3; cursor: default; }
@media (max-width: 991px) {
  .portit-pd-hero {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .portit-pd-gallery {
    grid-column: 1 / -1;
    max-width: 320px;
  }
}
.portit-pd-title { margin: 0 0 10px; font-size: 26px; letter-spacing: -.03em; color: #1d2430; font-weight: 700; }
.portit-pd-info { min-width: 0; }
.portit-pd-spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.portit-pd-spec td {
  padding: 6px 0;
  background-image: radial-gradient(circle, #cfd5dd 1px, transparent 1.5px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  background-position: 0 20px;
  color: #4f5f6f;
}
.portit-pd-spec td:first-child { color: #6b7380; width: 46%; }
.portit-pd-spec td span { background: #fff; padding-right: 8px; }
.portit-pd-spec td:last-child span { float: right; padding-left: 8px; background: #fff; color: #1d2430; font-weight: 600; }
.portit-pd-spec td:first-child i {
  width: 1em;
  margin-right: 6px;
  color: #2563eb;
  font-size: 11px;
}
.portit-pd-spec-wrap { position: relative; }
.portit-pd-more {
  display: inline-block;
  margin-top: 8px;
  color: #e1262d;
  font-size: 13px;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.portit-pd-more:hover { color: #c21d24; }
.portit-pd-spec-all {
  display: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  max-height: 240px;
}
.portit-pd-spec-wrap.is-open .portit-pd-spec-all { display: flex; }
.portit-pd-spec-wrap.is-open .portit-pd-spec { display: none; }
.portit-pd-spec-all-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
  flex: 0 0 auto;
}
.portit-pd-spec-all-close {
  border: 0;
  background: none;
  color: #6b7380;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 0;
}
.portit-pd-spec-all-close:hover { background: #f3f5f8; color: #1d2430; }
.portit-pd-spec-all-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 0 10px 8px;
  scrollbar-width: thin;
  scrollbar-color: #c5ccd6 transparent;
}
.portit-pd-spec-all-group {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a0;
  margin: 8px 0 2px;
}
.portit-pd-spec-all-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 8px;
  align-items: start;
  padding: 5px 0;
  border-bottom: 1px dotted var(--portit-line);
  font-size: 12px;
  line-height: 1.3;
}
.portit-pd-spec-all-row:last-child { border-bottom: 0; }
.portit-pd-spec-all-name {
  color: #6b7380;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.portit-pd-spec-all-name i {
  color: #2563eb;
  font-size: 11px;
  width: 12px;
  margin-top: 2px;
  flex: 0 0 auto;
}
.portit-pd-spec-all-val {
  color: #1d2430;
  font-weight: 600;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.portit-pd-from { margin-top: 14px; font-size: 24px; font-weight: 800; color: #1b2430; letter-spacing: -.03em; }
.portit-pd-stock { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #2f6b3a; }
.portit-pd-buy {
  display: grid;
  grid-template-columns: minmax(148px, max-content) minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  margin-top: 12px;
}
.portit-pd-buy .portit-pd-from { margin-top: 0; }
.portit-pd-buy .portit-commerce { margin: 0; }
.portit-commerce {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.portit-commerce a,
.portit-commerce > span {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 11px;
  text-decoration: none;
  color: #1d2430;
  min-height: 52px;
}
.portit-commerce a:hover { filter: brightness(0.97); color: #1d2430; }
.portit-commerce i {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}
.portit-commerce-lab { display: block; font-size: 12px; line-height: 1.2; color: #1d2430; font-weight: 800; }
.portit-commerce-sub { display: block; font-size: 11px; color: #5c6570; line-height: 1.25; margin-top: 1px; }
.portit-commerce-price { background: #fff1f2; border-color: #f6c9cd; }
.portit-commerce-price i { background: #e1262d; }
.portit-commerce-stock { background: #ecf8ef; border-color: #b9e0c4; }
.portit-commerce-stock i { background: #2f8a4a; }
.portit-commerce-ship { background: #eef8fc; border-color: #b5dcea; }
.portit-commerce-ship i { background: #229ac8; }
.portit-commerce-war { background: #fff8e8; border-color: #f0d48c; }
.portit-commerce-war i { background: #d4a017; }
.portit-pd-info .portit-commerce {
  margin-top: 0;
  grid-template-columns: 1fr 1fr;
}
.portit-pd-info .portit-commerce-sub { display: none; }
.portit-pd-info .portit-commerce a,
.portit-pd-info .portit-commerce > span {
  min-height: 0;
  padding: 7px 8px;
  gap: 8px;
}
.portit-pd-info .portit-commerce i {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 12px;
}
.portit-pd-info .portit-commerce-lab { font-size: 11px; }
.portit-cat-copy {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e6e9ee;
  font-size: 14px;
  line-height: 1.55;
  color: #3d4550;
}
@media (max-width: 980px) {
  .portit-commerce { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .portit-pd-buy { grid-template-columns: 1fr; }
}

.portit-now {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: #4f5f6f;
  display: grid;
  gap: 12px;
}
.portit-now b { display: block; color: #1d2430; font-size: 13px; margin-bottom: 2px; }
.portit-now span { color: #6b7380; }

.portit-pd-build {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 12px;
  align-items: start;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.portit-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.portit-tabs .nav-link {
  text-align: center;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1d2430;
  background: #fff;
  border: 1px solid var(--portit-line) !important;
  border-radius: 10px 10px 0 0;
}
.portit-tabs .nav-link.active {
  background: #1b2430;
  color: #fff;
  border-color: #1b2430 !important;
}
.portit-pd-panel {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 0 0 8px;
}
.portit-pd-panel.tab-pane { display: none; }
.portit-pd-panel.show { display: block; }
.portit-pd-copy { padding: 20px 22px 24px; color: #4f5f6f; font-size: 14px; }
.portit-story {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: none;
}
.portit-story p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #3f4a57;
  font-weight: 500;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.portit-story-spec {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--portit-line);
}
.portit-story-spec > h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1b2430;
}

.portit-rev {
  padding: 18px 20px 22px;
  display: grid;
  gap: 16px;
}
.portit-rev-empty,
.portit-rev-login {
  margin: 0;
  padding: 14px 16px;
  background: #f6f8fb;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  color: #6b7380;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.portit-rev-login a { color: #f23534; font-weight: 800; text-decoration: none; }
.portit-rev-login a:hover { color: #c21d24; }
.portit-rev-list { display: grid; gap: 10px; }
.portit-rev-item {
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.portit-rev-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}
.portit-rev-item-head b {
  color: #1d2430;
  font-size: 14px;
  font-weight: 800;
}
.portit-rev-item-head time {
  font-size: 12px;
  color: #8b93a0;
  font-weight: 600;
  white-space: nowrap;
}
.portit-rev-item p {
  margin: 0 0 10px;
  color: #4f5f6f;
  font-size: 14px;
  line-height: 1.5;
}
.portit-rev-stars-read {
  display: flex;
  gap: 3px;
  color: #d5dbe3;
  font-size: 13px;
}
.portit-rev-stars-read .is-on { color: #f23534; }
.portit-rev-pager { display: flex; justify-content: flex-end; }
.portit-rev-pager .pagination { margin: 0; gap: 4px; }
.portit-rev-card {
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 16px 18px 18px;
  background: #fafbfc;
  display: grid;
  gap: 12px;
}
.portit-rev-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1d2430;
  letter-spacing: -.02em;
}
.portit-rev-lead {
  margin: -6px 0 0;
  font-size: 13px;
  color: #6b7380;
  font-weight: 500;
}
.portit-rev-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.portit-rev-status.is-ok {
  background: #edf8f2;
  color: #166534;
}
.portit-rev-status.is-err {
  background: #fff1f1;
  color: #b42318;
}
.portit-rev-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr);
  gap: 12px 16px;
  align-items: start;
}
.portit-rev-field { display: grid; gap: 6px; min-width: 0; }
.portit-rev-field label,
.portit-rev-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7380;
}
.portit-rev-field input,
.portit-rev-field textarea {
  width: 100%;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1d2430;
  background: #fff;
  font-family: inherit;
}
.portit-rev-field textarea {
  min-height: 120px;
  resize: vertical;
  font-weight: 500;
  line-height: 1.45;
}
.portit-rev-field input:focus,
.portit-rev-field textarea:focus {
  outline: 0;
  border-color: #1b2430;
}
.portit-rev-field input.is-invalid,
.portit-rev-field textarea.is-invalid,
.portit-rev-stars.is-invalid {
  border-color: #e1262d;
}
.portit-rev-stars.is-invalid {
  border: 1px solid #e1262d;
  border-radius: 10px;
  padding: 6px 8px;
  width: fit-content;
}
.portit-rev .invalid-feedback {
  display: none;
  font-size: 12px;
  font-weight: 700;
  color: #e1262d;
}
.portit-rev .invalid-feedback.d-block { display: block; }
.portit-rev-note {
  font-size: 12px;
  font-weight: 600;
  color: #8b93a0;
}
.portit-rev-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 42px;
}
.portit-rev-star {
  position: relative;
  display: inline-flex;
  color: #d5dbe3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 2px;
}
.portit-rev-star input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.portit-rev-star i { pointer-events: none; }
.portit-rev-star.is-on { color: #f23534; }
.portit-rev-actions { display: flex; justify-content: flex-end; }
.portit-rev-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f23534;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.portit-rev-cta:hover { color: #fff; filter: brightness(1.08); }
.portit-rev-captcha { font-size: 13px; }
@media (max-width: 720px) {
  .portit-rev { padding: 14px 14px 18px; }
  .portit-rev-row { grid-template-columns: 1fr; }
  .portit-rev-actions { justify-content: stretch; }
  .portit-rev-cta { width: 100%; }
}
.portit-pd-attrs { width: 100%; border-collapse: collapse; font-size: 13px; }
.portit-pd-attrs th { text-align: left; padding: 8px 0; color: #1b2430; }
.portit-pd-attrs td { padding: 6px 0; border-bottom: 1px dotted #e4e7ec; }
.portit-pd-attrs td:first-child { color: #6b7380; width: 44%; }

#scf-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: #f6f8fb;
  --bs-accordion-active-color: #1d2430;
  --bs-accordion-btn-bg: #fff;
  --bs-accordion-bg: #fff;
}
.portit-slot.accordion-item {
  border: 0;
  border-bottom: 1px solid var(--portit-line);
  border-radius: 0;
  background: #fff;
}
.portit-slot.accordion-item:last-child { border-bottom: 0; }
.portit-scf-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
  align-content: start;
  min-width: 0;
}
.portit-scf-list { min-width: 0; }
.scf-add-sku {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px dashed #c5ced8;
  border-radius: 10px;
  background: #f8fafc;
  color: #1d2430;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}
.scf-add-sku:hover {
  border-color: #f23534;
  background: #fff5f5;
  color: #f23534;
}
.scf-add-sku.is-done {
  border-style: solid;
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}
.scf-add-sku[hidden] { display: none !important; }
.scf-sku-fold,
.scf-spec-fold {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .28s ease-out;
}
.scf-sku-fold.is-collapsed,
.scf-spec-fold.is-collapsed {
  grid-template-rows: 0fr;
  pointer-events: none;
}
.scf-sku-fold-inner,
.scf-spec-fold-inner {
  overflow: hidden;
  min-height: 0;
}
.scf-spec-fold {
  align-self: start;
  min-width: 0;
}
/* Pin the open spec rail to the same band as the sticky chassis dock. */
.scf-spec-fold:not(.is-collapsed) {
  position: sticky;
  top: var(--portit-spec-sticky-top, 12px);
  bottom: var(--portit-spec-sticky-bottom, 12px);
  z-index: 6;
  width: 100%;
  max-height: calc(100vh - var(--portit-spec-sticky-top, 12px) - var(--portit-spec-sticky-bottom, 12px));
}
.scf-spec-fold.is-collapsed .portit-scf-spec {
  overflow: hidden;
  max-height: none;
  box-shadow: none;
}
.portit-scf-spec-col {
  min-width: 0;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.portit-scf-spec-chips {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 5px 6px;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(10px);
}
.portit-scf-stage.is-chips-on .portit-scf-spec-chips {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.portit-scf-stage.is-chips-anim.is-chips-on .portit-scf-spec-chips {
  transition:
    opacity .28s ease-out .26s,
    transform .28s cubic-bezier(.22, 1, .36, 1) .26s,
    visibility 0s linear .26s;
}
.portit-scf-stage.is-chips-anim:not(.is-chips-on) .portit-scf-spec-chips {
  transition:
    opacity .14s ease-out,
    transform .14s ease-out,
    visibility 0s linear .14s;
}
.portit-scf-spec-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2f6;
  border: 1px solid #d8dee6;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: none;
  -webkit-user-select: none;
}
.portit-scf-spec-chip i {
  color: #1b2430;
  opacity: .7;
  font-size: 10px;
  width: 11px;
  text-align: center;
}
.portit-scf-item-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 7px;
  min-width: 0;
  max-width: 100%;
}
.scf-slot.is-compact .portit-scf-item-chips {
  display: none;
}
.portit-scf-spec {
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  top: auto;
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
}
.portit-scf-spec-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 6px;
}
.portit-scf-spec-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d2430;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--portit-line);
}
.portit-scf-spec-empty {
  font-size: 12px;
  color: #6b7380;
  padding: 16px 4px;
  text-align: center;
}
.portit-scf-spec-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.portit-scf-spec-table td {
  padding: 3px 0;
  border-bottom: 1px dotted var(--portit-line);
  vertical-align: top;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.portit-scf-spec-table tr:last-child td { border-bottom: 0; }
.portit-scf-spec-table td:first-child {
  color: #6b7380;
  width: 38%;
  padding-right: 10px;
}
.portit-scf-spec-table td:last-child {
  font-weight: 700;
  color: #1d2430;
  text-align: right;
}
.scf-backorder {
  margin-top: 8px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  overflow: hidden;
}
.scf-backorder.is-compact-pick {
  background: transparent;
  border: 0;
  margin-top: 0;
}
.scf-backorder.is-compact-pick .scf-backorder-h { display: none; }
.scf-backorder.is-compact-pick .scf-backorder-body {
  display: grid;
  grid-template-rows: 1fr;
}
.scf-backorder-h {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #ffedd5;
  border: 0;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.scf-backorder-h:hover { background: #ffd7a8; }
.scf-backorder-h .fa-truck { color: #ea580c; }
.scf-backorder-chev { margin-left: auto; font-size: 11px; transition: transform .25s ease; flex-shrink: 0; }
.scf-backorder.is-open .scf-backorder-chev { transform: rotate(180deg); }
.scf-backorder-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease-out;
  background: #fffaf5;
}
.scf-backorder.is-open .scf-backorder-body { grid-template-rows: 1fr; }
.scf-backorder-inner { overflow: hidden; min-height: 0; }
.scf-item-meta {
  font-size: 11px;
  color: #6b7380;
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.scf-lead-stock { color: #16a34a; font-weight: 700; }
.scf-lead-stock .fa-circle-check { font-size: 10px; }
.scf-lead-bo { color: #d97706; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.scf-clear-sku {
  display: none;
  appearance: none;
  background: #fff;
  border: 1px solid #fecdd3;
  color: #e1262d;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}
.portit-scf-qty.is-mini .scf-clear-sku { display: inline-flex; }
.scf-clear-sku:hover { background: #fff1f2; }
.portit-scf-item.is-focus {
  background: #f8fafc;
  border-radius: 8px;
}
.portit-scf-item.is-picked {
  background: #f0fdf4;
  border-radius: 8px;
}
.portit-slot .accordion-button { box-shadow: none; }
.portit-slot .accordion-button:not(.collapsed) { background: #f6f8fb; color: #1d2430; box-shadow: none; }
.portit-slot .accordion-button:focus { box-shadow: none; }
.portit-slot-h {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 0;
  text-align: left;
  color: #1d2430;
  box-shadow: none;
  user-select: none;
  -webkit-user-select: none;
}
.portit-slot-h:not(.collapsed) { background: #f6f8fb; }
.portit-slot-h::after { margin-left: auto; }
.portit-slot-h i.ico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: #eef1f5; color: #1b2430; font-size: 12px;
}
.portit-slot.is-need .portit-slot-h i.ico { color: #e1262d; background: #fdecee; }
.portit-slot.is-on .portit-slot-h i.ico { color: #1a7a3c; background: #e8f6ec; }
.portit-slot-h b { font-size: 14px; font-weight: 700; }
.portit-need { color: #e1262d; font-size: 11px; font-weight: 700; margin-left: 6px; }
.portit-slot-sum { font-size: 12px; color: #6b7380; margin-left: 8px; }
.portit-slot .accordion-body { padding: 0 16px 16px 16px; }
.portit-scf-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f2f5; user-select: none; -webkit-user-select: none; min-width: 0; }
.portit-scf-item > * { min-width: 0; }
.portit-scf-item img { width: 52px; height: 40px; object-fit: contain; border: 0; background: #f4f6f8; border-radius: 6px; }
.portit-scf-item .fw-semibold { font-size: 13px; color: #1d2430; user-select: none; -webkit-user-select: none; }
.portit-scf-qty {
  width: auto;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 30px;
  justify-self: end;
}
.portit-scf-qty.is-mini {
  border: 1px solid var(--portit-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  gap: 0;
}
.portit-scf-qty.is-mini .portit-qty {
  border: 0;
  border-radius: 0;
}
.portit-scf-qty.is-mini .scf-clear-sku {
  border: 0;
  border-right: 1px solid #fecdd3;
  border-radius: 0;
  height: 30px;
}

.portit-qty {
  display: inline-flex;
  border: 1px solid var(--portit-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 30px;
  flex-shrink: 0;
  scroll-margin-top: 80px;
}
.portit-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f4f6f8;
  color: #1d2430;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
}
.portit-qty input {
  width: 34px;
  min-width: 34px;
  height: 30px;
  border: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1d2430;
  background: #fff;
  padding: 0;
  box-shadow: none;
  border-left: 1px solid var(--portit-line);
  border-right: 1px solid var(--portit-line);
}

.portit-dock {
  position: sticky;
  top: 12px;
  align-self: start;
  z-index: 10050;
  pointer-events: auto;
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 12px;
}
.portit-chassis {
  width: 100%;
  line-height: 0;
  padding: 10px 8px;
  border-radius: 8px;
  background: #ffffff;
  transition: background .2s ease, box-shadow .2s ease;
  pointer-events: none;
}
.portit-ch-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  background: #ffffff;
  border-radius: 4px;
  pointer-events: none;
}
.portit-chassis[data-form="tower"] .portit-ch-svg {
  max-width: 180px;
  margin: 0 auto;
}

/* Style B2 — incomplete: red glow, panel red solid + yellow blink, HDD dark */
.portit-chassis.is-off,
.portit-dock[data-state="off"] .portit-chassis {
  background: radial-gradient(circle at center, #fff1f2 0%, #ffffff 85%);
  box-shadow: 0 0 24px -4px rgba(239, 68, 68, .35), 0 2px 4px rgba(0,0,0,.03);
}
.portit-dock[data-state="off"] {
  border-color: #fca5a5;
  background: radial-gradient(circle at center, #fff1f2 0%, #ffffff 88%);
}
.portit-chassis.is-off .hdd-led,
.portit-dock[data-state="off"] .hdd-led {
  fill: #64748b;
  opacity: .22;
  animation: none !important;
  filter: none;
}
.portit-chassis.is-off .panel-pwr,
.portit-chassis.is-off .panel-green,
.portit-dock[data-state="off"] .panel-pwr,
.portit-dock[data-state="off"] .panel-green {
  fill: #475569;
  opacity: .25;
  filter: none;
  animation: none;
}
.portit-chassis.is-off .panel-pwr,
.portit-dock[data-state="off"] .panel-pwr {
  opacity: .35;
}
.portit-chassis.is-off .panel-yellow,
.portit-dock[data-state="off"] .panel-yellow {
  fill: #f59e0b;
  opacity: 1;
  animation: panelWarnYellowBlink .95s infinite steps(1, end);
}
.portit-chassis.is-off .panel-red,
.portit-dock[data-state="off"] .panel-red {
  fill: #ef4444;
  opacity: 1;
  filter: drop-shadow(0 0 3.5px rgba(239, 68, 68, .95));
  animation: none;
}

/* Style B2 — complete: green glow, panel green on, HDD blue+green async blink */
.portit-chassis.is-on,
.portit-dock[data-state="ready"] .portit-chassis {
  background: radial-gradient(circle at center, #f0fdf4 0%, #ffffff 85%);
  box-shadow: 0 0 24px -4px rgba(34, 197, 94, .35), 0 2px 4px rgba(0,0,0,.03);
}
.portit-dock[data-state="ready"] {
  border-color: #86efac;
  background: radial-gradient(circle at center, #f0fdf4 0%, #ffffff 88%);
}
.portit-chassis.is-on .panel-pwr,
.portit-chassis.is-on .panel-green,
.portit-dock[data-state="ready"] .panel-pwr,
.portit-dock[data-state="ready"] .panel-green {
  fill: #22c55e;
  opacity: 1;
  filter: drop-shadow(0 0 3.5px rgba(34, 197, 94, .95));
  animation: none;
}
.portit-chassis.is-on .panel-yellow,
.portit-chassis.is-on .panel-red,
.portit-dock[data-state="ready"] .panel-yellow,
.portit-dock[data-state="ready"] .panel-red {
  fill: #475569;
  opacity: .25;
  filter: none;
  animation: none;
}
.portit-chassis.is-on .hdd-led-green,
.portit-dock[data-state="ready"] .hdd-led-green {
  fill: #22c55e;
  opacity: 1;
  animation-name: b2BlinkGreen;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.portit-chassis.is-on .hdd-led-blue,
.portit-dock[data-state="ready"] .hdd-led-blue {
  fill: #38bdf8;
  opacity: 1;
  animation-name: b2BlinkBlue;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes panelWarnYellowBlink {
  0%, 48% {
    opacity: 1;
    filter: drop-shadow(0 0 3.5px rgba(245, 158, 11, .95));
  }
  52%, 98% {
    opacity: .15;
    filter: none;
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 3.5px rgba(245, 158, 11, .95));
  }
}
@keyframes b2BlinkGreen {
  0%, 45%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, .9));
  }
  50%, 85% {
    opacity: .15;
    filter: none;
  }
}
@keyframes b2BlinkBlue {
  0%, 20%, 75%, 100% {
    opacity: .15;
    filter: none;
  }
  10%, 15%, 40%, 65% {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 1));
  }
}

.portit-dock-photo { margin-bottom: 10px; }
.portit-dock-cap {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -.01em;
  color: #e1262d;
}
.portit-dock[data-state="ready"] .portit-dock-cap { color: #1a7a3c; }
.portit-dock-from { font-size: 11px; color: #6b7380; }
.portit-dock-sum { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #1b2430; margin: 2px 0 8px; }
.portit-dock-build { list-style: none; margin: 0 0 8px; padding: 0; max-height: none; overflow: visible; }
.portit-dock-build li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dotted var(--portit-line);
  font-size: 11px;
  line-height: 1.35;
}
.portit-dock-build span {
  color: #6b7380;
  flex-shrink: 0;
  max-width: 72px;
  white-space: nowrap;
}
.portit-dock-build b {
  font-weight: 650;
  text-align: right;
  color: #1d2430;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portit-dock-score { margin: 0 0 10px; min-height: 36px; }
.portit-dock-score-empty {
  font-size: 11px;
  color: #6b7380;
  padding: 8px 10px;
  border: 1px dashed var(--portit-line);
  border-radius: 8px;
  background: #fff;
}
.portit-dock-score-split { display: grid; gap: 5px; }
.portit-dock-score-row {
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #6b7380;
}
.portit-dock-score-row b {
  text-align: right;
  color: #1d2430;
  font-size: 11px;
  font-weight: 700;
}
.portit-dock-score-row .portit-dock-score-track { margin-top: 0; height: 5px; }
.portit-dock-score-row .portit-dock-score-track.is-miss .portit-dock-score-fill { background: #d1d5db; }
.portit-dock-score-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6b7380;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dotted var(--portit-line);
}
.portit-dock-score-top b {
  color: #1d2430;
  font-size: 16px;
  letter-spacing: -.03em;
}
.portit-dock-score-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.portit-dock-score-q {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: #8b93a0;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}
.portit-dock-score-q:hover,
.portit-dock-score-help.is-open .portit-dock-score-q {
  color: #1b2430;
}
.portit-dock-score-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: 228px;
  padding: 10px 12px;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 36, 48, .14);
  color: #3d4654;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.portit-dock-score-tip::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 1px 0 var(--portit-line));
}
.portit-dock-score-help:hover .portit-dock-score-tip,
.portit-dock-score-help:focus-within .portit-dock-score-tip,
.portit-dock-score-help.is-open .portit-dock-score-tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.portit-dock-score-track {
  height: 6px;
  background: #eef1f5;
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}
.portit-dock-score-fill {
  height: 100%;
  width: 0;
  background: #1b2430;
  border-radius: 99px;
  transition: width .35s ease;
}
.portit-dock-qty { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; color: #6b7380; }
.portit-dock-lead {
  display: none;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}
.portit-dock-lead.is-on { display: flex; }
.portit-dock-lead i { color: #ea580c; margin-top: 1px; flex-shrink: 0; }
.portit-dock-cta {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 0;
  background: #e1262d;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.portit-dock-cta.is-off { opacity: .38; filter: grayscale(.25); }
.portit-dock-cta:disabled { opacity: .55; cursor: wait; }
.portit-dock-more { display: flex; gap: 6px; margin-top: 8px; position: relative; z-index: 2; }
.portit-dock-more button {
  flex: 1;
  border: 1px solid var(--portit-line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #1d2430;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}
#scf-error-message { min-height: 1em; margin-top: 8px; font-size: 12px; font-weight: 700; color: #e1262d; }
#cookie { pointer-events: none; }
#cookie button { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .portit-ch-svg .panel-yellow,
  .portit-ch-svg .hdd-led { animation: none !important; }
  .scf-sku-fold,
  .scf-spec-fold,
  .scf-backorder-body,
  .portit-scf-spec-chips { transition: none !important; }
}

@media (max-width: 992px) {
  .portit-pd-hero,
  .portit-pd-build { grid-template-columns: 1fr; }
  .portit-pd-build { display: flex; flex-direction: column; }
  .portit-tabs { grid-template-columns: 1fr; }
  .portit-dock {
    position: sticky;
    bottom: 0;
    top: auto;
    order: 2;
    z-index: 10050;
    margin: 8px 0 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 28px rgba(27, 36, 48, .14);
  }
  .portit-dock-photo { display: none; }
  .portit-dock-build { max-height: 168px; overflow: auto; }
  .portit-dock-cta,
  .portit-dock-more button {
    min-height: 44px;
    font-size: 14px;
  }
}
body.modal-open .portit-dock { z-index: 20; }

@media (max-width: 575px) {
  .portit-scf-item { grid-template-columns: 44px 1fr; }
  .portit-scf-item .text-end, .portit-scf-qty { grid-column: 2; }
  .portit-scf-qty { justify-self: start; }
  .portit-scf-stage { grid-template-columns: 1fr; }
  .portit-scf-spec-col { order: 2; }
  .portit-scf-spec-chips {
    position: static;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }
  .portit-scf-stage.is-chips-on .portit-scf-spec-chips {
    max-height: 96px;
    padding: 8px 0 2px;
    overflow: visible;
  }
  .portit-scf-spec { position: static; max-height: none; }
  .scf-spec-fold:not(.is-collapsed) {
    position: static;
    top: auto;
    bottom: auto;
    max-height: none;
  }
  .scf-spec-fold.is-collapsed .portit-scf-spec { margin-top: 0; }
}


@media (max-width: 992px) {
  .portit-cat-layout,
  .portit-cat-layout.is-solo { grid-template-columns: 1fr; }
  .portit-cat-side { position: static; }
  #portit-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  #portit-product-grid { grid-template-columns: 1fr; }
}

/* ---------- Корзина: попап, мини-корзина, страница ---------- */
.portit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
}
.portit-btn-ghost {
  background: #fff;
  border-color: var(--portit-line);
  color: #1b2430;
}
.portit-btn-ghost:hover { background: #f3f5f8; color: #1b2430; }
.portit-btn-cta {
  background: #e1262d;
  color: #fff;
  border-color: #e1262d;
}
.portit-btn-cta:hover { background: #c51f26; color: #fff; }
.portit-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.portit-cart-actions .portit-btn { flex: 1; min-width: 0; }
.portit-cart-actions-col { flex-direction: column; }
.portit-cart-actions-col .portit-btn { width: 100%; flex: none; }

.portit-mini {
  width: min(92vw, 380px);
  max-height: min(80vh, 560px);
  overflow: auto;
  padding: 12px;
  border-radius: 16px !important;
  border: 1px solid var(--portit-line);
  box-shadow: 0 18px 50px rgba(27, 36, 48, .16);
}
.portit-mini-list { display: flex; flex-direction: column; gap: 10px; }
.portit-mini-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--portit-line);
}
.portit-mini-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 0;
  overflow: visible;
}
.portit-mini-photo img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: contain;
}
.portit-mini-name {
  display: block;
  color: #1b2430;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: -.02em;
}
.portit-mini-name:hover { color: #1b2430; }
.portit-mini-bom { margin-top: 6px; }
.portit-mini-bom .oct-config-summary { gap: 3px; }
.portit-mini-bom .oct-config-row { font-size: 11px; }
.portit-mini-bom .oct-config-row i { width: 12px; font-size: 10px; }
.portit-mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7380;
}
.portit-mini-meta b { color: #1b2430; }
.portit-mini-x {
  width: 28px;
  height: 28px;
  border: 0;
  background: #f3f5f8;
  color: #1b2430;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.portit-mini-x:hover { background: #e9eef4; color: #1b2430; }
.portit-mini-foot { padding-top: 10px; }
.portit-mini-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #6b7380;
  padding: 3px 0;
}
.portit-mini-total.is-sum {
  color: #1b2430;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
}
.portit-mini-empty {
  text-align: center;
  padding: 22px 10px;
  color: #6b7380;
  font-size: 14px;
}

.portit-add-pop {
  position: relative;
  border: 0;
  border-radius: 18px;
  padding: 22px 24px 20px;
  box-shadow: 0 24px 70px rgba(27, 36, 48, .28);
}
.portit-add-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: #f3f5f8;
  border-radius: 8px;
  color: #1b2430;
}
.portit-add-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.portit-add-photo {
  background: #f6f7f9;
  border-radius: 12px;
  padding: 10px;
}
.portit-add-photo img { width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.portit-add-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7380;
}
.portit-add-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #1b2430;
}
.portit-add-sum {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #1b2430;
}
.portit-add-bom {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.oct-config-summary { display: flex; flex-direction: column; gap: 6px; }
.oct-config-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #4f5f6f;
}
.oct-config-row i {
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
  color: #1b2430;
}
.oct-config-text { min-width: 0; }
.oct-config-row.oct-config-platform {
  font-weight: 600;
  color: #1b2430;
  padding-bottom: 6px;
  margin-bottom: 2px;
  border-bottom: 1px dashed var(--portit-line);
}
.oct-config-slot { font-weight: 600; color: #1b2430; }
.oct-config-val { color: #4f5f6f; }

.portit-cart-page .breadcrumb { display: none; }
.portit-cart-h {
  margin: 8px 0 18px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #1b2430;
}
.portit-bag {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 40px;
}
.portit-bag-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 16px;
  margin-bottom: 12px;
}
.portit-bag-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: none;
  border-radius: 0;
  padding: 0;
}
.portit-bag-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}
.portit-bag-name {
  display: block;
  color: #1b2430;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  margin-bottom: 8px;
}
.portit-bag-name:hover { color: #1b2430; }
.portit-bag-stock { font-size: 12px; color: #e1262d; }
.portit-bag-bom {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 12px 14px;
}
.portit-bag-bom-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7380;
  margin-bottom: 8px;
}
.portit-bag-opts { margin: 0; padding-left: 16px; font-size: 13px; }
.portit-bag-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #6b7380;
}
.portit-bag-qty .form-control {
  width: 56px;
  height: 34px;
  padding: 4px 8px;
  font-size: 13px;
}
.portit-bag-side {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 16px;
  padding: 16px;
}
.portit-bag-sum { margin-bottom: 16px; }
.portit-order {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--portit-line);
}
.portit-order-h {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #1b2430;
}
.portit-order label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #1b2430;
}
.portit-order input,
.portit-order textarea {
  width: 100%;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1b2430;
  background: #fff;
  font-family: inherit;
}
.portit-order textarea { resize: vertical; min-height: 72px; }
.portit-order input:focus,
.portit-order textarea:focus {
  outline: 0;
  border-color: #1b2430;
}
.portit-order .is-invalid { border-color: #e1262d; }
.portit-imask {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}
.portit-imask input {
  width: 100%;
  padding-right: 40px !important;
}
.portit-imask-ok {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #22a45b;
  box-shadow: 0 0 0 3px rgba(34, 164, 91, .18);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
  pointer-events: none;
}
.portit-imask-ok::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.portit-imask.is-valid .portit-imask-ok {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 4px rgba(34, 164, 91, .22);
}
.portit-imask.is-valid input,
.portit-imask input.is-ok {
  border-color: #22a45b;
}
.portit-foot-form .portit-imask-ok {
  background: #3dd68c;
  box-shadow: 0 0 0 3px rgba(61, 214, 140, .25);
}
.portit-order-alert {
  font-size: 12px;
  font-weight: 600;
  color: #e1262d;
  background: #fff5f5;
  border-radius: 8px;
  padding: 8px 10px;
}
.portit-order-done {
  max-width: 560px;
  margin: 24px auto 48px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--portit-line);
  border-radius: 16px;
  scroll-margin-top: 12px;
}
.portit-order-done p { color: #4f5f6f; margin-bottom: 18px; }
.portit-order-num {
  font-size: 15px;
  font-weight: 800;
  color: #1b2430;
  margin: -8px 0 10px;
}

#portit-cart-popup .modal-dialog { max-width: 760px; }

@media (max-width: 860px) {
  .portit-add-top,
  .portit-bag,
  .portit-bag-card { grid-template-columns: 1fr; }
  .portit-bag-side { position: static; }
  .portit-add-photo img { max-height: 160px; }
}

/* КП / Поделиться — selling presentation, not stock Bootstrap modal */
#scf-contact-modal { z-index: 11010; }
#scf-contact-modal .modal-dialog.portit-quote-dialog {
  max-width: 520px;
  margin: 16px auto;
}
#scf-contact-modal .portit-quote-card {
  position: relative;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(27, 36, 48, .28);
}
.portit-quote-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.portit-quote-head {
  background: #1b2430;
  color: #fff;
  padding: 18px 52px 16px 20px;
}
.portit-quote-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.portit-quote-scroll {
  max-height: min(70vh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.portit-quote-offer {
  padding: 16px 20px 8px;
  background: #f6f7f9;
}
.portit-quote-photo {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}
.portit-quote-photo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}
.portit-quote-sum {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #1b2430;
  margin-bottom: 10px;
}
.portit-quote-bom {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portit-quote-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--portit-line);
  font-size: 13px;
  line-height: 1.35;
  color: #1d2430;
}
.portit-quote-line:last-child { border-bottom: 0; }
.portit-quote-line i {
  width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  text-align: center;
  color: #1b2430;
}
.portit-quote-form {
  display: grid;
  gap: 10px;
  padding: 16px 20px 8px;
}
.portit-quote-field {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #1b2430;
}
.portit-quote-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1b2430;
  background: #fff;
  font-family: inherit;
}
.portit-quote-field input:focus {
  outline: 0;
  border-color: #1b2430;
}
.portit-quote-field input.is-invalid { border-color: #e1262d; }
.portit-quote-foot {
  display: flex;
  gap: 8px;
  padding: 12px 20px 18px;
}
.portit-quote-foot .portit-btn {
  flex: 1;
  min-height: 44px;
}
.portit-quote-foot .portit-btn-cta {
  background: #e1262d;
  border-color: #e1262d;
  color: #fff;
}

@media (max-width: 575px) {
  #scf-contact-modal .modal-dialog.portit-quote-dialog {
    max-width: calc(100% - 16px);
    margin: 8px auto;
  }
  #scf-contact-modal .portit-quote-card {
    max-height: calc(100vh - 16px);
    display: flex;
    flex-direction: column;
  }
  .portit-quote-scroll {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    overflow: auto;
  }
  .portit-quote-photo img { max-height: 120px; }
  .portit-quote-foot {
    flex-shrink: 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* ---------- Информационные страницы ---------- */
.portit-ipage { padding-bottom: 48px; }
.portit-ipage-kicker {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b1e2d;
}
.portit-ipage h1 {
  margin: 4px 0 10px;
  font-size: 32px;
  font-weight: 800;
  color: #1b2430;
  letter-spacing: -.02em;
}
.portit-ipage h2 {
  margin: 28px 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #1b2430;
}
.portit-ipage-lead {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.5;
  color: #5b6570;
}
.portit-istat {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.portit-istat article {
  background: #f4f6f8;
  border-radius: 12px;
  padding: 18px 16px;
  min-height: 118px;
}
.portit-istat article:last-child {
  min-height: 0;
}
.portit-istat i {
  display: block;
  margin-bottom: 10px;
  color: #e1262d;
  font-size: 20px;
}
.portit-istat b,
.portit-istat b a {
  display: block;
  color: #1b2430;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}
.portit-istat span { display: block; margin-top: 4px; font-size: 13px; color: #6b7380; }
.portit-istat-note {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: #8b1e2d;
  text-decoration: none;
}
.portit-istat-note:hover { text-decoration: underline; }
.portit-icards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.portit-icards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portit-icards-1 { grid-template-columns: 1fr; }
.portit-icard {
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}
.portit-icard h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1b2430;
}
.portit-icard h3 i { color: #e1262d; }
.portit-icard p { margin: 0 0 10px; line-height: 1.55; }
.portit-icard p:last-child { margin-bottom: 0; }
.portit-icheck { margin: 0; padding: 0; list-style: none; }
.portit-icheck li {
  position: relative;
  padding: 0 0 8px 22px;
  line-height: 1.45;
}
.portit-icheck li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e1262d;
}
.portit-iol { margin: 0; padding-left: 18px; }
.portit-iol li { margin-bottom: 8px; line-height: 1.45; }
.portit-isteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.portit-isteps li {
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 16px;
}
.portit-isteps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #1b2430;
  color: #fff;
  font-size: 13px;
}
.portit-isteps span { display: block; font-size: 14px; line-height: 1.4; color: #44505c; }
.portit-partners { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.portit-partners span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  font-weight: 800;
  color: #1b2430;
  background: #fff;
}
.portit-ipage-note { font-size: 13px; color: #6b7380; margin: 0 0 20px; }
.portit-link-red { color: #e1262d; font-weight: 700; text-decoration: none; }
.portit-link-red:hover { text-decoration: underline; }
.portit-icta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 14px;
  background: #1b2430;
  color: #fff;
}
.portit-icta b { display: block; font-size: 18px; }
.portit-icta span { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 14px; }
.portit-icta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #e1262d;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.portit-icta-btn:hover { color: #fff; background: #c81f26; }
.portit-iaccent details {
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #fff;
}
.portit-iaccent summary { cursor: pointer; font-weight: 700; color: #1b2430; }
.portit-iaccent ul { margin: 10px 0 0; }
.portit-ibody {
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 8px 22px 16px;
  background: #fff;
}
.portit-ibody h3 { margin-top: 18px; font-size: 16px; color: #1b2430; }
.portit-icontact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
  gap: 14px;
  margin-bottom: 8px;
}
.portit-map {
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--portit-line);
  background: #eef1f4;
}
.portit-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.portit-iform {
  max-width: 720px;
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}
.portit-iform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.portit-iform label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1b2430;
}
.portit-iform textarea { margin-bottom: 14px; }
.portit-mgrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.portit-mgr {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--portit-line);
  border-radius: 14px;
  background: #fff;
}
.portit-mgr-ava {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b2430;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
}
.portit-mgr-body { min-width: 0; flex: 1; }
.portit-mgr h3 { margin: 0 0 2px; font-size: 18px; color: #1b2430; }
.portit-mgr-role {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #e1262d;
}
.portit-mgr-hours { margin: 0 0 10px; font-size: 12px; color: #6b7380; }
.portit-mgr-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #1b2430;
  text-decoration: none;
  font-size: 14px;
}
.portit-mgr-line i { width: 16px; color: #e1262d; }
.portit-mgr-line:hover { color: #e1262d; }
.portit-mgr-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.portit-mgr-actions .portit-icta-btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
.portit-mgr-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  color: #1b2430;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.portit-mgr-mail:hover { border-color: #1b2430; color: #1b2430; }
@media (max-width: 991px) {
  .portit-istat,
  .portit-icards,
  .portit-icards-3,
  .portit-isteps,
  .portit-icontact,
  .portit-iform-grid { grid-template-columns: 1fr; }
  .portit-mgrs { grid-template-columns: 1fr; }
  .portit-icta { flex-direction: column; align-items: flex-start; }
}

.portit-empty {
  padding: 28px 0 12px;
}
.portit-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.portit-iprose {
  max-width: 820px;
  font-size: 15px;
  line-height: 1.65;
  color: #3a4350;
}
.portit-iprose p { margin: 0 0 14px; }
.portit-search-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--portit-line);
  border-radius: 14px;
  background: #fff;
}
.portit-search-bar label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7380;
}
.portit-search-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #3a4350;
}
.portit-search-checks label { margin: 0; font-weight: 500; }
.portit-search-meta { font-size: 13px; color: #6b7380; margin: 0 0 14px; }
.portit-brands-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.portit-brands-index a,
.portit-brand-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--portit-line);
  border-radius: 10px;
  color: #1b2430;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  background: #fff;
}
.portit-brands-index a:hover,
.portit-brand-chip:hover { border-color: #1b2430; color: #e1262d; }
.portit-brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.portit-sitemap {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 28px;
}
.portit-sitemap-tree,
.portit-sitemap-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.portit-sitemap-tree > li { margin: 0 0 8px; }
.portit-sitemap-tree ul { padding: 6px 0 0 14px; }
.portit-sitemap-tree a { color: #1b2430; text-decoration: none; }
.portit-sitemap-tree a:hover { color: #e1262d; }
.portit-blog-hero { max-width: 100%; border-radius: 12px; margin: 0 0 16px; }
.portit-blog-meta { font-size: 13px; color: #6b7380; margin: 0 0 14px; }
.portit-blog-list { display: grid; gap: 14px; }
.portit-ocpage { padding-bottom: 48px; }
.portit-ocpage #content > h1,
.portit-ocpage #content > h2 {
  font-weight: 800;
  letter-spacing: -.02em;
  color: #1b2430;
}
.portit-ocpage #content > h1 { font-size: 28px; margin: 4px 0 16px; }
.portit-ocpage .list-unstyled a,
.portit-ocpage .list-group-item {
  color: #1b2430;
  text-decoration: none;
}
.portit-ocpage .list-unstyled a:hover,
.portit-ocpage .list-group-item:hover { color: #e1262d; }
.portit-ocpage .list-group {
  border: 1px solid var(--portit-line);
  border-radius: 12px;
  overflow: hidden;
}
.portit-ocpage .list-group-item { border-color: var(--portit-line); }
.portit-ocpage .btn-primary {
  border-radius: 10px;
  font-weight: 700;
}
.portit-ocpage fieldset {
  border: 1px solid var(--portit-line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #fff;
}
.portit-cart-page .portit-crumbs { margin-bottom: 10px; }
@media (max-width: 991px) {
  .portit-search-bar,
  .portit-sitemap { grid-template-columns: 1fr; }
}

/* Страница сохранённой конфигурации — «Ступени» */
.portit-cfg { color: #0f172a; }
.portit-cfg-kicker { color: #64748b; font-size: 12px; margin: 16px 0 4px; }
.portit-cfg-title { font-size: 26px; font-weight: 800; line-height: 1.15; margin: 0 0 4px; color: #0f172a; }
.portit-cfg-meta { color: #64748b; font-size: 13px; margin-bottom: 10px; }
.portit-cfg-client {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline;
  background: #fff7f7; border: 1px solid #fecaca; padding: 8px 12px; margin: 0 0 12px; font-size: 13px;
}
.portit-cfg-client b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #e1262d; }
.portit-cfg-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.portit-cfg-pills span {
  font-size: 11px; font-weight: 700; background: #f1f5f9; padding: 4px 8px; border-radius: 999px;
}
.portit-cfg-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.portit-cfg-blue {
  border: 1px dashed #94a3b8; padding: 12px;
  background: repeating-linear-gradient(-45deg,#fff,#fff 8px,#f8fafc 8px,#f8fafc 16px);
}
.portit-cfg-blue > b { display: block; margin-bottom: 8px; }
.portit-cfg-photo { aspect-ratio: 1 / 1; background: #0b1220; overflow: hidden; }
.portit-cfg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portit-cfg-rail { margin: 12px 0 0; padding: 0 0 0 14px; border-left: 2px solid #1b2430; list-style: none; }
.portit-cfg-rail li { position: relative; padding: 0 0 11px; font-size: 13px; line-height: 1.3; }
.portit-cfg-rail li:last-child { padding-bottom: 0; }
.portit-cfg-rail li::before {
  content: ""; position: absolute; left: -19px; top: 5px; width: 8px; height: 8px; background: #e1262d;
}
.portit-cfg-rail small { display: block; color: #64748b; font-size: 11px; margin-top: 1px; }
.portit-cfg-bom {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: start;
  padding: 6px 0; border-bottom: 1px solid #e2e8f0; font-size: 13px;
}
.portit-cfg-bom i { color: #e1262d; margin-top: 3px; text-align: center; }
.portit-cfg-bom small { color: #64748b; }
.portit-cfg-totals { margin-top: 12px; background: #f8fafc; padding: 12px 14px; }
.portit-cfg-totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 3px 0; }
.portit-cfg-cta {
  display: block; text-align: center; background: #e1262d; color: #fff !important;
  text-decoration: none; font-weight: 800; padding: 12px 16px; margin-top: 14px;
}
.portit-cfg-cta:hover { background: #c41f26; color: #fff !important; }
@media (max-width: 900px) {
  .portit-cfg-grid { grid-template-columns: 1fr; }
}

/* ---------- Мобильная юзабельность: телефон 2026 ---------- */
.portit-dock-fold { display: none; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  max-width: 100%;
  overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
button, a, [role="button"] { touch-action: manipulation; }

@media (max-width: 767px) {
  :root {
    --portit-spec-sticky-top: 8px;
    --portit-spec-sticky-bottom: 8px;
    --portit-dock-h: 220px;
  }

  #top, header, .portit-foot {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  input, select, textarea {
    font-size: 16px !important;
  }

  /* Шапка: ссылки не наезжают на рейтинг */
  .portit-top {
    min-height: 36px;
    gap: 8px;
    padding-inline: 4px;
  }
  .portit-top-links a:nth-child(n+2) { display: none !important; }
  .portit-top-links a {
    padding: 0 10px;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .portit-rating {
    padding: 4px 8px;
    gap: 0;
  }
  .portit-client span { display: none; }

  .portit-header-main {
    grid-template-columns: auto auto 1fr;
    align-items: center;
  }
  .portit-actions { min-width: 0; gap: 6px; }
  header .portit-phone {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    align-items: center;
  }
  .portit-phone-num {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  .portit-phone-num span { display: none; }
  .portit-phone-ico { display: inline-block; font-size: 15px; color: #1b2430; }
  .portit-cart { min-width: 44px; min-height: 44px; }
  .portit-mega-btn { min-width: 44px; min-height: 44px; }

  .portit-mega-panel {
    position: fixed;
    top: auto;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: min(72dvh, 560px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: 1fr 1fr;
    z-index: 12000;
  }
  .portit-mega-col { min-width: 0; }
  .portit-mega-col a {
    display: block;
    padding: 8px 0;
    min-height: 40px;
    line-height: 1.25;
  }

  .portit-crumbs {
    flex-wrap: wrap;
    white-space: normal;
  }
  .portit-crumbs-now {
    flex: 1 1 100%;
    white-space: normal;
    overflow: visible;
  }

  /* Главная */
  .portit-hero { margin-bottom: 18px; overflow: hidden; }
  .portit-hero-glass { min-width: 0; }
  .portit-hero-title { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
  .portit-hero-tags {
    max-height: none;
    overflow: visible;
  }
  .portit-cpu-item,
  .portit-choice,
  .portit-form-item {
    min-height: 48px;
  }
  .portit-choice-row,
  .portit-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .portit-pick-tasks {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    gap: 8px;
    padding-bottom: 4px;
    margin-right: -12px;
    padding-right: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .portit-pick-task {
    flex: 0 0 46%;
    scroll-snap-align: start;
    min-height: 88px;
  }
  .portit-pick, .portit-bill { padding: 16px; min-width: 0; }

  /* Каталог */
  .portit-cat-card { min-width: 0; }
  .portit-cat-title { overflow-wrap: anywhere; }

  /* Информационные страницы */
  .portit-ipage h1 { font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
  .portit-ipage h2 { font-size: 18px; }
  .portit-ipage-lead { font-size: 15px; }
  .portit-istat {
    grid-template-columns: 1fr 1fr;
  }
  .portit-istat article {
    min-height: 0;
    padding: 14px 12px;
  }
  .portit-istat b,
  .portit-istat b a { font-size: 18px; overflow-wrap: anywhere; }
  .portit-istat-note { font-size: 11px; line-height: 1.35; }
  .portit-icard { min-width: 0; overflow: hidden; }
  .portit-icard p, .portit-iprose p, .portit-icheck li {
    overflow-wrap: anywhere;
  }
  .portit-map { min-height: 220px; }
  .portit-map iframe { min-height: 220px; }
  .portit-mgrs article { min-width: 0; }
  .portit-mgr-actions { width: 100%; }
  .portit-mgr-actions .portit-icta-btn,
  .portit-mgr-mail { flex: 1 1 auto; min-height: 44px; }

  /* Конфигуратор */
  .portit-pd-title { font-size: 20px; overflow-wrap: anywhere; }
  .portit-pd-hero,
  .portit-pd-build { min-width: 0; }
  .portit-pd-stage { height: 132px; }
  .portit-pd-stage img { max-height: 132px; }
  .portit-pd-film { max-height: 56px; overflow-x: auto; }
  .portit-pd-spec td { white-space: normal; }
  .portit-product {
    padding-bottom: calc(var(--portit-dock-h, 220px) + 20px);
  }
  .portit-product {
    scroll-margin-bottom: calc(var(--portit-dock-h, 220px) + 16px);
  }
  .portit-scf-spec-table td { white-space: normal; }
  .portit-slot-h {
    min-height: 52px;
    padding: 12px 12px;
    gap: 8px;
  }
  .portit-slot-h b { font-size: 14px; }
  .portit-slot-sum { display: none; }
  .portit-scf-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px 0;
    align-items: start;
  }
  .portit-scf-item,
  .portit-slot-h,
  .portit-qty {
    scroll-margin-bottom: calc(var(--portit-dock-h, 220px) + 16px);
  }
  .portit-scf-item .fw-semibold { overflow-wrap: anywhere; }
  .portit-scf-item .text-end,
  .portit-scf-qty {
    grid-column: 2;
    justify-self: stretch;
    justify-content: flex-start;
  }
  .portit-scf-qty,
  .portit-scf-qty.is-mini,
  .portit-qty {
    height: 44px;
  }
  .portit-qty button {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .portit-qty input {
    width: 42px;
    height: 44px;
    font-size: 16px;
  }
  .scf-clear-sku {
    min-width: 44px;
    min-height: 44px;
  }
  .portit-tabs a,
  .portit-tabs button {
    min-height: 44px;
  }

  .portit-scf-item img { width: 40px; height: 32px; }
  .portit-dock-from { display: none; }
  .portit-dock-sum { font-size: 22px; margin-bottom: 6px; }
  .portit-dock-fold {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin: 0 0 8px;
    border: 1px solid var(--portit-line);
    border-radius: 10px;
    background: #f6f8fb;
    color: #1b2430;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
  }
  .portit-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 10050;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    max-height: min(52dvh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .portit-dock-build,
  .portit-dock-score { display: none; }
  .portit-dock.is-sheet-open .portit-dock-build,
  .portit-dock.is-sheet-open .portit-dock-score { display: block; }
  .portit-dock-build { max-height: 140px; overflow: auto; }
  .portit-dock-qty { margin-bottom: 8px; }
  .portit-dock-cta,
  .portit-dock-more button {
    min-height: 48px;
    font-size: 15px;
  }
  .portit-dock-more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .portit-pd-build { padding-bottom: 8px; }

  /* КП / поделиться — на весь экран */
  #scf-contact-modal .modal-dialog.portit-quote-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100%;
  }
  #scf-contact-modal .portit-quote-card {
    border-radius: 0;
    min-height: 100dvh;
  }
  .portit-quote-scroll { max-height: none; }
  .portit-quote-close {
    width: 44px;
    height: 44px;
  }

  /* Корзина и заказ */
  .portit-bag, .portit-order { min-width: 0; }
  .portit-bag-card { min-width: 0; overflow: hidden; }
  .portit-order .form-control,
  .portit-order textarea {
    min-height: 44px;
  }
  .portit-order button[type="submit"],
  .portit-btn {
    min-height: 48px;
  }

  /* Сохранённая конфигурация */
  .portit-cfg-title { font-size: 22px; overflow-wrap: anywhere; }
  .portit-cfg-bom { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .portit-cfg-bom span { overflow-wrap: anywhere; }
  .portit-cfg-cta { min-height: 48px; line-height: 48px; padding: 0 16px; }

  .portit-foot { overflow: hidden; }
}

@media (max-width: 420px) {
  .portit-choice-row,
  .portit-form-row { grid-template-columns: 1fr 1fr; }
  .portit-istat { grid-template-columns: 1fr; }
}


