﻿:root {
  --red: #C41E3A;
  --red-light: #E74C3C;
  --red-dark: #a01830;
  --dark: #111;
  --darker: #0a0a0a;
  --footer-bg: #060606;
  --white: #fff;
  --wa: #25D366;
  --wa-dark: #1da851;
  --max-purple: #5B41FF;
  --max-purple-dark: #4C35E0;
  --max-violet: #8B5CF6;
  --text-muted: rgba(255,255,255,.55);
  --text-muted-light: rgba(255,255,255,.78);
  --text-muted-soft: rgba(255,255,255,.45);
  --text-muted-faint: rgba(255,255,255,.25);
  --border-subtle: rgba(255,255,255,.08);
  --border-light: rgba(255,255,255,.12);
  --border-hover: rgba(255,255,255,.2);
  --surface-glass: rgba(255,255,255,.05);
  --surface-glass-hover: rgba(255,255,255,.1);
  --overlay-dark: rgba(0,0,0,.75);
  --overlay-lightbox: rgba(0,0,0,.92);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --container-max: 1200px;
  --container-pad: 24px;
  --transition: .25s ease;
  --transition-fast: .2s ease;
  --transition-modal: .3s ease;
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --shadow-header: 0 2px 16px rgba(0,0,0,.4);
  --shadow-header-scrolled: 0 4px 30px rgba(0,0,0,.5);
  --shadow-card-hover: 0 14px 38px rgba(196,30,58,.18);
  --shadow-red: 0 6px 18px rgba(196,30,58,.35);
  --card-gradient: linear-gradient(145deg, #161616, #0e0e0e);
  --font-head: 'Oswald', ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --z-header: 1000;
  --z-modal: 9000;
  --z-lightbox: 9500;
  --z-float: 8000;
  --z-onicon: 2147483000;
  --tph-dock-lift: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--darker);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.5;
}

body.tph-scroll-lock { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }

/* шапка — #tphHeader для перебивания стилей CMS без лишнего !important */
#tphHeader.tphHeader {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--dark);
  box-shadow: var(--shadow-header);
  transition: box-shadow var(--transition);
}
#tphHeader.tphHeader.tphHeader--scrolled { box-shadow: var(--shadow-header-scrolled); }
#tphHeader.tphHeader, #tphHeader.tphHeader * { box-sizing: border-box; }
#tphHeader .tphContainer { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
#tphHeader .tphTop { background: var(--red); padding: 6px 0; }
#tphHeader .tphTopInner {
  display: flex; align-items: center;
  justify-content: flex-end; gap: 18px; flex-wrap: wrap;
}
#tphHeader .tphPhone {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--white); font-weight: 600; font-size: 14px;
  letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  opacity: .95;
}
#tphHeader .tphPhone:hover { opacity: 1; }
#tphHeader .tphPhone svg { opacity: .85; }
#tphHeader .tphCta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 16px; font-size: 13px; font-weight: 800;
  color: var(--white); text-decoration: none; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.14);
  white-space: nowrap;
}
#tphHeader .tphMain {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 0; position: relative;
}
#tphHeader .tphLogo {
  display: flex; align-items: center; gap: 14px;
  color: var(--white); text-decoration: none;
}
#tphHeader .tphLogoImg { width: 54px; height: 54px; object-fit: contain; display: block; }
#tphHeader .tphLogoText {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; line-height: 1.25; max-width: 260px; color: var(--white);
}
#tphHeader .tphLogoText span { color: var(--text-muted-light); }
#tphHeader .tphNav {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap; justify-content: flex-end;
}
#tphHeader .tphNav a {
  color: var(--text-muted-light); font-size: 13px; font-weight: 600;
  padding: 8px 11px; border-radius: var(--radius-sm); text-decoration: none; white-space: nowrap;
}
#tphHeader .tphNav a:hover { color: var(--white); background: rgba(255,255,255,.10); }
#tphHeader .tphBurger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
#tphHeader .tphBurger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; }

/* catalog */
.tph-catalog { padding: 60px 0 100px; }

.tph-cat-header { text-align: center; margin-bottom: 40px; }

.tph-cat-label {
  display: inline-block; color: var(--red-light); font-size: 13px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 16px;
  padding: 6px 14px; border: 1px solid rgba(231,76,60,.3); border-radius: 999px;
  background: rgba(231,76,60,.08);
}

.tph-cat-title {
  font-family: var(--font-head); font-size: 48px; font-weight: 800;
  line-height: 1.1; text-transform: uppercase; letter-spacing: .01em;
  margin-bottom: 18px; color: var(--white);
}
.tph-cat-title span { color: var(--red-light); }

.tph-cat-subtitle {
  font-size: 16px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 24px; line-height: 1.6;
}

.tph-cat-stats {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.tph-cat-stat {
  padding: 8px 16px; background: var(--surface-glass); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill); font-size: 13px; color: var(--text-muted-light);
}
.tph-cat-stat b { color: var(--white); font-weight: 700; }

/* Фильтр-кнопки */
.tph-filter-group { margin-bottom: 22px; }
.tph-filter-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 auto 10px; color: var(--red-light);
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  animation: tphHintBounce 1.5s ease-in-out infinite;
}
.tph-filter-hint svg {
  width: 16px; height: 16px; flex-shrink: 0;
  animation: tphHintArrow 1.5s ease-in-out infinite;
}
@keyframes tphHintBounce {
  0%, 100% { opacity: .72; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}
@keyframes tphHintArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .tph-filter-hint, .tph-filter-hint svg { animation: none; }
}
.tph-filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 0;
}
.tph-filters.tph-category-filters { margin-bottom: 14px; }
.tph-filters.tph-category-filters .tph-filter-btn { font-size: 12px; padding: 9px 14px; }
.tph-filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 16px; background: var(--surface-glass); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); color: var(--text-muted-light); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.tph-filter-btn:hover {
  background: var(--surface-glass-hover); border-color: var(--border-hover); color: var(--white);
}
.tph-filter-btn.active {
  background: var(--red); border-color: var(--red); color: var(--white);
  box-shadow: var(--shadow-red);
}
.tph-filter-hint.is-picked {
  animation: none;
  opacity: .28;
}
.tph-filter-count {
  min-width: 1.55em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}
.tph-filter-label { white-space: nowrap; }
.tph-filter-btn.active .tph-filter-count {
  background: rgba(0,0,0,.22);
  color: #fff;
}

/* Диапазон цен */
.tph-price-filter { margin-bottom: 18px; }
.tph-price-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px 14px;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.tph-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.tph-price-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tph-price-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  outline: none;
}
.tph-price-field input:focus {
  border-color: rgba(231,76,60,.7);
  box-shadow: 0 0 0 3px rgba(196,30,58,.18);
}
.tph-price-slider {
  position: relative;
  height: 32px;
}
.tph-price-rail {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  overflow: hidden;
}
.tph-price-fill {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: 99px;
}
.tph-price-slider input[type="range"] {
  position: absolute;
  left: 0; width: 100%;
  top: 0; height: 32px;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}
.tph-price-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 32px;
  background: transparent;
}
.tph-price-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: 7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 4px rgba(196,30,58,.18);
  cursor: pointer;
}
.tph-price-slider input[type="range"]::-moz-range-track {
  height: 32px;
  background: transparent;
  border: none;
}
.tph-price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 4px rgba(196,30,58,.18);
  cursor: pointer;
}
.tph-price-filter.is-picked .tph-filter-hint {
  animation: none;
  opacity: .28;
}
.tph-selchip--price {
  background: var(--red);
  border-color: var(--red);
}

/* Нижняя плашка выбранных фильтров */
.tph-selbar {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 8500;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%) translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}
.tph-selbar.is-on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.tph-selbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  background: rgba(12,12,12,.94);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(196,30,58,.22);
  backdrop-filter: blur(14px);
}
.tph-selbar-kicker {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-light);
  animation: tphHintBounce 1.5s ease-in-out infinite;
}
.tph-selbar-chips {
  display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0;
}
.tph-selchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.14);
  background: var(--surface-glass);
  color: #fff;
  font-size: 12px; font-weight: 700;
  animation: tphSelChipIn .4s cubic-bezier(.22, 1, .36, 1) both;
}
.tph-selchip-x { opacity: .65; font-size: 16px; line-height: 1; }
.tph-selchip:hover { border-color: var(--red-light); background: var(--surface-glass-hover); }
.tph-selchip--cat { border-color: rgba(196,30,58,.55); }
.tph-selchip--sale { background: var(--red); border-color: var(--red); }
.tph-selchip--new { background: #1f8a4c; border-color: #1f8a4c; }
.tph-selchip--transit { background: #2563eb; border-color: #2563eb; }
.tph-selchip--available { border-color: rgba(255,255,255,.28); }
.tph-selchip--sold { opacity: .8; }
.tph-selchip--japan,
.tph-selchip--vladivostok,
.tph-selchip--ulanude { border-color: rgba(245,158,11,.7); color: #fbbf24; }
.tph-selbar-reset {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  color: var(--text-muted-light);
  font-size: 12px; font-weight: 700;
  transition: var(--transition);
}
.tph-selbar-reset:hover { color: #fff; border-color: var(--red-light); }
@keyframes tphSelChipIn {
  from { opacity: 0; transform: translateY(12px) scale(.9); }
  to { opacity: 1; transform: none; }
}
body.tph-has-selbar {
  padding-bottom: calc(96px + var(--tph-dock-lift, 0px));
}
@media (max-width: 640px) {
  .tph-selbar { width: calc(100% - 20px); }
  .tph-selbar-inner { flex-wrap: wrap; }
  .tph-selbar-reset { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tph-selbar, .tph-selchip, .tph-selbar-kicker { animation: none; transition: none; }
}

.tph-search-wrap {
  position: relative; flex: 1 1 280px; min-width: 240px; max-width: 520px; margin: 0;
}
.tph-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: rgba(255,255,255,.45);
  pointer-events: none; z-index: 1;
}
.tph-search-wrap:focus-within .tph-search-icon { color: rgba(231,76,60,.85); }
.tph-search {
  width: 100%; padding: 14px 44px;
  background: var(--surface-glass); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); color: var(--white); font-size: 15px; font-family: inherit;
  transition: var(--transition);
}
.tph-search::placeholder { color: rgba(255,255,255,.4); }
.tph-search:focus {
  outline: none; border-color: rgba(231,76,60,.5);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(196,30,58,.15);
}
.tph-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; padding: 0;
  background: rgba(255,255,255,.08); border: none; border-radius: 8px;
  color: rgba(255,255,255,.7); font-size: 20px; line-height: 1;
  cursor: pointer; transition: var(--transition);
}
.tph-search-clear:hover { background: rgba(255,255,255,.15); color: var(--white); }
.tph-search-clear[hidden] { display: none; }
.tph-search::-webkit-search-cancel-button,
.tph-search::-webkit-search-decoration,
.tph-search::-ms-clear { display: none; }

.tph-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto 28px;
}
.tph-sort { position: relative; flex: 0 0 auto; }
.tph-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 10px 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.tph-sort-btn:hover { color: var(--red-light); }
.tph-sort.is-open .tph-sort-btn { color: var(--red-light); }
.tph-sort-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.tph-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 180px;
  padding: 6px;
  background: rgba(16,16,16,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.tph-sort-menu[hidden] { display: none !important; }
.tph-sort-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tph-sort-option:hover { background: rgba(255,255,255,.08); color: #fff; }
.tph-sort-option.is-on {
  background: rgba(196,30,58,.18);
  color: #fff;
}
.tph-selchip--sort {
  background: var(--red);
  border-color: var(--red);
}

/* Сетка карточек */
.tph-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.tph-sections { display: flex; flex-direction: column; gap: 34px; }
.tph-section { display: none; }
.tph-section.is-visible { display: block; }
.tph-section-title {
  font-family: var(--font-head);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 16px;
  color: var(--white);
}
.tph-section-title span { color: var(--red-light); }

.tph-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; animation: fadeUp .5s ease forwards;
  transition: var(--transition);
}
.tph-card:hover {
  border-color: rgba(231,76,60,.35); transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.tph-card-sold { opacity: .55; filter: grayscale(40%); }
.tph-card-sold:hover { transform: none; box-shadow: none; border-color: var(--border-subtle); }

@property --tph-discount-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.tph-card-discount {
  border: 2px solid transparent;
  background:
    linear-gradient(145deg, #1a1214, #0e0e0e) padding-box,
    conic-gradient(from var(--tph-discount-angle), #C41E3A, #ff8a7a, #C41E3A, rgba(196,30,58,.15) 42%, #C41E3A) border-box;
  box-shadow: 0 10px 28px rgba(196,30,58,.28), 0 0 0 1px rgba(231,76,60,.25);
  animation: fadeUp .5s ease forwards, tphDiscountSpin 3.2s linear infinite, tphDiscountPulse 2.4s ease-in-out infinite;
}
.tph-card-discount:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(196,30,58,.42), 0 0 0 1px rgba(231,76,60,.4);
}
@keyframes tphDiscountSpin {
  to { --tph-discount-angle: 360deg; }
}
@keyframes tphDiscountPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(196,30,58,.24), 0 0 0 1px rgba(231,76,60,.22); }
  50% { box-shadow: 0 16px 38px rgba(231,76,60,.48), 0 0 22px rgba(231,76,60,.28); }
}
.tph-card-discount-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #8f1528, #C41E3A, #E74C3C, #C41E3A, #8f1528);
  background-size: 220% 100%;
  animation: tphDiscountShine 2.8s linear infinite;
  color: #fff;
  text-align: center;
}
.tph-card-discount-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tph-card-discount-sum {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
@keyframes tphDiscountShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.tph-card-discount.tph-card-sold {
  animation: fadeUp .5s ease forwards;
  box-shadow: none;
}

.tph-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(180deg, #1d1d1d, #131313);
}
.tph-card-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .5s ease;
}
.tph-card:hover .tph-card-img img { transform: scale(1.06); }

.tph-badges {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.tph-badge {
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; border-radius: 6px;
  color: #fff; backdrop-filter: blur(6px);
}
.tph-badge-sale         { background: rgba(231,76,60,.92); }
.tph-badge-new          { background: rgba(46,160,67,.92); }
.tph-badge-transit      { background: rgba(56,134,255,.92); }
.tph-badge-sold         { background: rgba(120,120,120,.92); }
.tph-badge-japan        { background: rgba(226,120,32,.92); }
.tph-badge-vladivostok  { background: rgba(14,165,164,.92); }
.tph-badge-ulanude      { background: rgba(139,92,246,.92); }

.tph-card-brand-wrap {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 6px 10px; max-width: 100px; max-height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.tph-card-brand-wrap img {
  max-height: 22px; max-width: 80px; object-fit: contain;
  opacity: .95;
}

.tph-card-body { padding: 20px 22px 8px; flex: 1; position: relative; }
.tph-card-name {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: .02em; margin-bottom: 14px; text-transform: uppercase;
}

.tph-params { display: flex; flex-direction: column; gap: 8px; }
.tph-param {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 13px; line-height: 1.4; padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,.05);
}
.tph-param:last-child { border-bottom: none; }
.tph-param-key { color: rgba(255,255,255,.5); flex-shrink: 0; }
.tph-param-val { color: rgba(255,255,255,.92); font-weight: 600; text-align: right; }
.tph-param-price .tph-param-key { color: rgba(231,76,60,.85); font-weight: 700; }
.tph-param-price .tph-param-val { color: var(--red-light); font-weight: 800; font-size: 14px; }
.tph-param-pref {
  justify-content: center;
  border-bottom: none;
  padding-top: 8px;
}
.tph-param-pref .tph-param-val {
  text-align: center;
  width: 100%;
  font-size: 16px;
}
.tph-params-fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 52px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14,14,14,0), #0e0e0e 85%);
}

.tph-card-footer { padding: 14px 22px 20px; }
.tph-card-btn {
  display: block; width: 100%; padding: 12px 16px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 700;
  text-align: center; border: none; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.tph-card-btn:hover {
  background: var(--red-dark); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196,30,58,.4);
}
.tph-card-sold .tph-card-btn {
  background: rgba(255,255,255,.08); cursor: not-allowed;
}
.tph-card-sold .tph-card-btn:hover { transform: none; box-shadow: none; background: rgba(255,255,255,.08); }

/* loader */
.tph-loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; gap: 20px;
}
.tph-loader-spinner {
  width: 52px; height: 52px; border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--red-light); border-radius: 50%;
  animation: spin .9s linear infinite;
}
.tph-loader-text { color: rgba(255,255,255,.55); font-size: 14px; font-weight: 500; }

.tph-empty {
  grid-column: 1/-1; text-align: center; padding: 60px 20px;
  color: rgba(255,255,255,.5); font-size: 16px;
}
.tph-error { text-align: center; padding: 60px 20px; }
.tph-error-icon { font-size: 56px; margin-bottom: 16px; }
.tph-error-text { color: rgba(255,255,255,.92); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.tph-error-sub { color: #fff; font-size: 18px; margin: 0 0 12px; }
.tph-error-note { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.5; max-width: 520px; margin: 0 auto 8px; }
.tph-error-link {
  display: inline-block; padding: 12px 28px; background: var(--red);
  color: #fff; border-radius: 10px; font-weight: 700; font-size: 14px; transition: var(--transition);
}
.tph-error-link:hover { background: var(--red-dark); transform: translateY(-2px); }

.tph-notfound-wrap {
  max-width: 560px; margin: 0 auto; padding: 20px 0 60px;
}
.tph-notfound-hero {
  opacity: 0; animation: fadeUp .5s ease forwards;
}
.tph-notfound-hero .tph-error-icon {
  animation: notFoundIconPop .6s cubic-bezier(.34,1.56,.64,1) .15s both;
}
.tph-notfound-contacts {
  margin-top: 28px; padding: 24px;
  background: linear-gradient(145deg, #161616, #0e0e0e);
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  opacity: 0; animation: fadeUp .55s ease .2s forwards;
}
.tph-notfound-contacts-title {
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #fff;
  margin-bottom: 6px; text-align: center;
}
.tph-notfound-contacts-sub {
  font-size: 14px; color: rgba(255,255,255,.5); text-align: center;
  margin-bottom: 18px; line-height: 1.5;
}
.tph-notfound-contact-btns { display: flex; flex-direction: column; gap: 10px; }
.tph-notfound-contact-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 18px; border-radius: 14px; border: 1px solid transparent;
  text-decoration: none; color: #fff; font-family: inherit; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  opacity: 0; animation: fadeUp .45s ease forwards;
}
.tph-notfound-contact-btn:nth-child(1) { animation-delay: .35s; }
.tph-notfound-contact-btn:nth-child(2) { animation-delay: .45s; }
.tph-notfound-contact-btn:nth-child(3) { animation-delay: .55s; }
.tph-notfound-contact-btn:hover {
  transform: translateY(-3px);
}
.tph-notfound-contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  transition: transform .25s ease;
}
.tph-notfound-contact-btn:hover .tph-notfound-contact-icon { transform: scale(1.08); }
.tph-notfound-contact-text { flex: 1; text-align: left; min-width: 0; }
.tph-notfound-contact-label {
  display: block; font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
}
.tph-notfound-contact-hint {
  display: block; font-size: 12px; opacity: .75; margin-top: 2px; font-weight: 500;
}
.tph-notfound-contact-arrow {
  font-size: 18px; opacity: .5; transition: transform .25s ease, opacity .25s ease;
}
.tph-notfound-contact-btn:hover .tph-notfound-contact-arrow {
  opacity: 1; transform: translateX(3px);
}
.tph-notfound-contact-btn--phone {
  background: linear-gradient(135deg, rgba(196,30,58,.22), rgba(231,76,60,.08));
  border-color: rgba(231,76,60,.28);
}
.tph-notfound-contact-btn--phone:hover {
  box-shadow: 0 12px 28px rgba(196,30,58,.28);
  border-color: rgba(231,76,60,.45);
}
.tph-notfound-contact-btn--phone .tph-notfound-contact-icon {
  background: var(--red); box-shadow: 0 6px 16px rgba(196,30,58,.35);
}
.tph-notfound-contact-btn--wa {
  background: linear-gradient(135deg, rgba(37,211,102,.18), rgba(37,211,102,.06));
  border-color: rgba(37,211,102,.28);
}
.tph-notfound-contact-btn--wa:hover {
  box-shadow: 0 12px 28px rgba(37,211,102,.22);
  border-color: rgba(37,211,102,.45);
}
.tph-notfound-contact-btn--wa .tph-notfound-contact-icon {
  background: #25D366; box-shadow: 0 6px 16px rgba(37,211,102,.35);
}
.tph-notfound-contact-btn--max {
  background: linear-gradient(135deg, rgba(91,65,255,.2), rgba(139,92,246,.08));
  border-color: rgba(139,92,246,.3);
}
.tph-notfound-contact-btn--max:hover {
  box-shadow: 0 12px 28px rgba(91,65,255,.28);
  border-color: rgba(139,92,246,.5);
}
.tph-notfound-contact-btn--max .tph-notfound-contact-icon {
  background: linear-gradient(135deg, #5B41FF, #8B5CF6);
  box-shadow: 0 6px 16px rgba(91,65,255,.4);
  animation: pulse 2.5s ease-in-out infinite;
}
.tph-notfound-contact-btn--max .tph-notfound-contact-icon img {
  width: 24px; height: 24px; object-fit: contain;
}
.tph-notfound-back-wrap {
  margin-top: 22px; text-align: center;
  opacity: 0; animation: fadeUp .5s ease .65s forwards;
}
.tph-notfound-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.tph-notfound-back:hover {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22);
  transform: translateY(-2px); color: #fff;
}

/* Кнопка "Показать ещё" */
.tph-load-more-wrap { text-align: center; margin-top: 40px; }
.tph-load-more {
  padding: 14px 32px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.tph-load-more:hover {
  background: var(--red); border-color: var(--red); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196,30,58,.35);
}
.tph-progress-hint {
  margin: 0 auto 16px;
  padding: 10px 14px;
  max-width: 520px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  text-align: center;
}
.tph-enrich-progress {
  margin: 0 auto 20px;
  max-width: 560px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
}
.tph-enrich-progress-text {
  margin-bottom: 10px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.tph-enrich-progress-bar {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.tph-enrich-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c41e3a, #e74c3c);
  border-radius: 999px;
  transition: width .35s ease;
}

/* product */
.tph-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600;
  transition: var(--transition); margin-bottom: 24px; cursor: pointer;
  font-family: inherit;
}
.tph-back-btn:hover {
  background: var(--red); border-color: var(--red); color: #fff;
  transform: translateX(-3px);
}

.tph-product {
  opacity: 0; animation: fadeUp .5s ease forwards;
}

/* HERO: галерея + сайдбар */
.tph-product-hero {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px; margin-bottom: 32px;
  background: linear-gradient(145deg, #161616, #0e0e0e);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px; padding: 32px;
}
.tph-product-hero--discount {
  border-color: rgba(231,76,60,.4);
  box-shadow: 0 16px 40px rgba(196,30,58,.18), inset 0 0 0 1px rgba(231,76,60,.12);
}

.tph-product-gallery { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tph-product-img-main {
  background: #1a1a1a; border-radius: 14px; overflow: hidden;
  min-height: 220px; max-height: min(72vh, 560px);
  aspect-ratio: 4 / 3;
  display: block;
  position: relative; cursor: grab;
  border: 1px solid rgba(255,255,255,.05);
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.tph-product-img-main .tph-swipe-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
.tph-lightbox-viewport.tph-swipe-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.tph-swipe-viewport.is-dragging,
.tph-product-img-main.is-dragging { cursor: grabbing; }
.tph-swipe-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.tph-swipe-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tph-swipe-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-touch-callout: none;
  transform-origin: center center;
}
.tph-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tph-gallery-prev { left: 10px; }
.tph-gallery-next { right: 10px; }
.tph-gallery-nav:hover { background: var(--red); border-color: var(--red); }
.tph-product-img-counter {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  padding: 6px 14px; color: #fff; font-size: 12px; font-weight: 600;
  z-index: 2;
}
.tph-product-img-open {
  position: absolute; bottom: 12px; left: 14px;
  background: rgba(196,30,58,.92);
  border-radius: 999px; padding: 6px 12px;
  color: #fff; font-size: 12px; font-weight: 800;
  pointer-events: none; z-index: 2;
}
.tph-product-thumbs {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.tph-product-thumbs::-webkit-scrollbar { height: 6px; }
.tph-product-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
.tph-product-thumb {
  flex: 0 0 70px; height: 70px; background: #1a1a1a;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.tph-product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .65; transition: opacity .25s ease;
}
.tph-product-thumb:hover img { opacity: 1; }
.tph-product-thumb.active {
  border-color: var(--red-light);
  box-shadow: 0 4px 14px rgba(231,76,60,.4);
}
.tph-product-thumb.active img { opacity: 1; }

/* Сайдбар с информацией */
.tph-product-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.tph-product-brand-row {
  display: flex; align-items: center; gap: 12px;
}
.tph-product-brand-logo {
  height: 30px; max-width: 100px; object-fit: contain;
  opacity: .95;
}
.tph-product-status-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
}

.tph-product-title {
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  color: #fff; line-height: 1.2; letter-spacing: .01em;
}
.tph-product-discount-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #8f1528, #C41E3A, #E74C3C, #C41E3A, #8f1528);
  background-size: 220% 100%;
  animation: tphDiscountShine 2.8s linear infinite;
  box-shadow: 0 8px 24px rgba(196,30,58,.28);
}
.tph-product-discount-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.tph-product-discount-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tph-product-discount-note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  opacity: .9;
  white-space: nowrap;
}
.tph-product-discount-banner b {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-left: auto;
  flex-shrink: 0;
}
.tph-product--discount {
  border: 1px solid rgba(231,76,60,.28);
  box-shadow: 0 0 0 1px rgba(196,30,58,.18), 0 18px 48px rgba(196,30,58,.16);
}

.tph-product-key-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.tph-product-key-spec {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 12px 14px;
}
.tph-product-key-spec-key {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.45); margin-bottom: 4px; font-weight: 600;
}
.tph-product-key-spec-val {
  font-size: 16px; color: #fff; font-weight: 700;
}

.tph-product-prices {
  background: linear-gradient(135deg, rgba(196,30,58,.12), rgba(231,76,60,.04));
  border: 1px solid rgba(231,76,60,.25);
  border-radius: 14px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.tph-product-price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.tph-product-price-row--base {
  padding-bottom: 10px; border-bottom: 1px dashed rgba(231,76,60,.2);
}
.tph-product-price-label {
  font-size: 12px; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.tph-product-price-val {
  font-family: var(--font-head); font-size: 22px;
  font-weight: 800; color: var(--red-light);
}
.tph-product-price-row--base .tph-product-price-val {
  font-size: 28px; color: #fff;
}
.tph-product-price-row--pref {
  display: block;
  text-align: center;
  color: var(--red-light);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  padding-top: 4px;
}

.tph-product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.tph-product-lead {
  margin-top: 18px;
  padding: 20px 18px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(196,30,58,.18), rgba(255,255,255,.04));
  border: 1px solid rgba(196,30,58,.45);
  box-shadow: 0 12px 32px rgba(196,30,58,.12);
}
.tph-product-lead-kicker {
  margin: 0 0 6px;
  color: #ffd7dc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tph-product-lead-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-family: inherit;
}
.tph-product-lead-text {
  margin: 0 0 14px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.5;
}
.tph-product-lead-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.tph-product-lead-phones a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 16px;
}
.tph-product-lead-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tph-product-lead-form input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 16px;
}
.tph-product-lead-form button {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.tph-product-lead-wa {
  display: inline-block;
  margin-top: 12px;
  color: #25D366;
  font-weight: 700;
  font-size: 14px;
}

.tph-product-action {
  flex: 1; min-width: 140px; padding: 14px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  border: none; cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit;
}
.tph-product-action-primary { background: var(--red); color: #fff; }
.tph-product-action-primary:hover {
  background: var(--red-dark); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196,30,58,.4);
}
.tph-product-action-wa { background: #25D366; color: #fff; }
.tph-product-action-wa:hover {
  background: #1da851; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,211,102,.4);
}
.tph-product-action-lead {
  background: transparent; border: 1px solid var(--red); color: #fff;
}
.tph-product-action-lead:hover {
  background: var(--red); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196,30,58,.35);
}
.tph-product-action-share {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff;
}
.tph-product-action-share:hover {
  background: rgba(255,255,255,.14); transform: translateY(-2px);
}

/* Видео */
.tph-product-video-wrap {
  margin-bottom: 32px; background: linear-gradient(145deg, #161616, #0e0e0e);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px; padding: 28px;
}
.tph-product-section-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; color: #fff;
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.tph-product-section-title::before {
  content: ''; width: 4px; height: 22px; background: var(--red); border-radius: 2px;
}
.tph-product-video {
  width: 100%; max-height: 540px; border-radius: 14px;
  background: #000; display: block;
}

/* Полная таблица характеристик */
.tph-product-specs-wrap {
  background: linear-gradient(145deg, #161616, #0e0e0e);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px; padding: 28px; margin-bottom: 32px;
}
.tph-product-specs-table { width: 100%; border-collapse: collapse; }
.tph-product-specs-table tr {
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.tph-product-specs-table tr:last-child { border-bottom: none; }
.tph-product-specs-table td {
  padding: 14px 12px; font-size: 14px; line-height: 1.5; vertical-align: top;
}
.tph-product-specs-table td:first-child {
  color: rgba(255,255,255,.5); font-weight: 600;
  width: 40%; padding-left: 8px;
}
.tph-product-specs-table td:last-child {
  color: rgba(255,255,255,.95); padding-right: 8px;
}
.tph-product-specs-table td p { margin-bottom: 4px; }
.tph-product-specs-table td p:last-child { margin-bottom: 0; }

/* Лайтбокс — на весь экран, поверх шапки и виджетов */
.tph-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.94);
  z-index: 2147483600;
  display: flex; align-items: center; justify-content: center;
  padding: 0; opacity: 0; visibility: hidden; transition: var(--transition-modal);
  touch-action: none;
}
.tph-lightbox.active { opacity: 1; visibility: visible; }
.tph-lightbox-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 12px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,.72), transparent);
}
.tph-lightbox-bar-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.tph-lightbox-counter {
  color: #fff; font-size: 14px; font-weight: 800;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 7px 12px;
}
.tph-lightbox-zoom {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; color: #fff; font: inherit; font-size: 13px; font-weight: 800;
  cursor: pointer; white-space: nowrap;
}
.tph-lightbox-zoom[aria-pressed="true"] {
  background: rgba(196,30,58,.9); border-color: #c41e3a;
}
.tph-lightbox-viewport {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden; touch-action: none;
  /* Только вертикальный отступ: горизонтальный padding ломал шаг свайпа */
  padding: 64px 0 52px;
  box-sizing: border-box;
  cursor: grab;
}
.tph-lightbox-viewport.is-dragging,
.tph-lightbox-viewport.is-zoomed { cursor: grab; }
.tph-lightbox-viewport.is-zoomed.is-dragging { cursor: grabbing; }
.tph-lightbox-viewport.is-dragging { cursor: grabbing; }
.tph-lightbox .tph-swipe-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none !important;
  -webkit-user-drag: none !important;
}
.tph-lightbox-close {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 14px;
  background: #c41e3a; border: 1px solid #c41e3a;
  border-radius: 12px; color: #fff; font: inherit; font-size: 13px; font-weight: 800;
  cursor: pointer; white-space: nowrap;
}
.tph-lightbox-close span { font-size: 20px; line-height: 1; font-weight: 400; }
.tph-lightbox-close:hover { background: #a01830; border-color: #a01830; }
.tph-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 48px; height: 48px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  color: #fff; font-size: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tph-lightbox-nav:hover { background: var(--red); border-color: var(--red); }
.tph-lightbox-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.tph-lightbox-next { right: max(10px, env(safe-area-inset-right, 0px)); }
.tph-lightbox-hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  margin: 0; text-align: center;
  padding: 10px 12px max(14px, env(safe-area-inset-bottom, 0px));
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  pointer-events: none;
}
body.tph-lb-open #tphHeader,
body.tph-lb-open .float-btns,
body.tph-lb-open .onicon-button-callback,
body.tph-lb-open .onicon-button {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Анимации */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(91,65,255,.4)} 50%{transform:scale(1.05);box-shadow:0 0 20px 10px rgba(91,65,255,0)} }
@keyframes notFoundIconPop {
  from { opacity: 0; transform: scale(.4) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

/* footer */
.footer { background: var(--footer-bg); color: var(--white); padding: 70px 0 0; margin-top: 40px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-brand-logo { width: 52px; height: 52px; object-fit: contain; }
.footer-brand-row .logo-text { font-size: 11px; line-height: 1.15; }
.footer-contact-link { color: var(--text-muted); display: block; }
.footer-contact-link--inline { display: inline; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-link { font-size: 12px; color: var(--text-muted-faint); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.logo-text {
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; max-width: 220px;
}
.logo-text span { color: rgba(255,255,255,.78); }
.footer-brand-text {
  font-size: 13.5px; color: rgba(255,255,255,.45); line-height: 1.75; margin: 16px 0 24px; font-weight: 300;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
  color: rgba(255,255,255,.5); cursor: pointer;
}
.footer-social:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-heading {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 20px;
}
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: 13.5px; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-nav a:hover { color: var(--red-light); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
  font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; margin-top: 60px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-text { font-size: 12px; color: rgba(255,255,255,.25); }

/* vk */
.vk-soon-wrap { position: relative; display: inline-flex; cursor: pointer; }
.vk-tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) scale(.9); background: rgba(17,17,17,.95);
  border: 1px solid rgba(255,255,255,.15); color: white; font-size: 12px;
  font-weight: 600; padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 100;
}
.vk-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: rgba(17,17,17,.95);
}
.vk-tooltip.show { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); }

/* float */
.float-btns {
  position: fixed;
  bottom: calc(88px + var(--tph-dock-lift, 0px));
  left: 28px; right: auto;
  display: flex; flex-direction: column; gap: 12px; z-index: var(--z-float);
  transition: bottom .45s cubic-bezier(.22, 1, .36, 1);
}

.onicon-chat-button,
.onicon-chat-trigger,
.onicon-chat-popup,
.onicon-button,
.onicon-button-callback,
.onicon-widget,
.onicon-menu__overlay,
.onc-callback,
[id^="onicon"] {
  z-index: var(--z-onicon) !important;
}

.onicon-button-callback {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 28px !important;
  bottom: calc(92px + var(--tph-dock-lift, 0px)) !important;
  transform: none !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: bottom .45s cubic-bezier(.22, 1, .36, 1) !important;
}
.onicon-button-callback__animated {
  pointer-events: none !important;
}
#onicon .onc-callback {
  z-index: 2147483100 !important;
}
/* onc-callback open/close — в tph-onicon.css */
.onicon-button,
.onicon-chat-button {
  right: 28px !important;
  left: auto !important;
  bottom: calc(20px + var(--tph-dock-lift, 0px)) !important;
  top: auto !important;
  transition: bottom .45s cubic-bezier(.22, 1, .36, 1) !important;
}
.onicon-chat-popup[style*="visibility: hidden"],
.onicon-chat-popup[style*="visibility:hidden"] {
  pointer-events: none !important;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
  transition: transform .25s ease, box-shadow .25s ease; cursor: pointer;
  border: none;
}
.float-btn:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.float-btn-wa { background: var(--wa); }
.float-btn-max {
  background: linear-gradient(135deg, var(--max-purple), var(--max-violet)) !important;
  box-shadow: 0 4px 20px rgba(91,65,255,.5) !important; border: none;
}
.float-btn-max:hover {
  background: linear-gradient(135deg, var(--max-purple-dark), #7C4FE0) !important;
  transform: scale(1.1); box-shadow: 0 6px 25px rgba(91,65,255,.6) !important;
}
.float-btn-max img { display: block; }

/* modals */
.phone-modal, .contacts-modal, .max-modal {
  position: fixed; inset: 0; background: var(--overlay-dark); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition-modal); z-index: var(--z-modal); padding: 20px;
}
.phone-modal.active, .contacts-modal.active, .max-modal.active { opacity: 1; visibility: visible; }

.phone-modal-box {
  background: linear-gradient(145deg,#1a1a2e,#111); border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 32px; text-align: center; max-width: 380px; width: 100%;
  transform: translateY(20px) scale(.95); transition: .3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); position: relative;
}
.phone-modal.active .phone-modal-box { transform: translateY(0) scale(1); }
.phone-modal-close {
  position: absolute; top: -12px; right: -12px; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: #C41E3A; color: white;
  font-size: 20px; cursor: pointer; transition: .25s ease;
  display: flex; align-items: center; justify-content: center;
}
.phone-modal-close:hover { background: #a01830; transform: rotate(90deg); }
.phone-modal-icon { font-size: 48px; margin-bottom: 16px; }
.phone-modal-title { color: white; font-size: 22px; font-family: var(--font-head); margin: 0 0 8px; }
.phone-modal-sub { color: rgba(255,255,255,.5); font-size: 14px; margin: 0 0 24px; }
.phone-modal-numbers { display: flex; flex-direction: column; gap: 12px; }
.phone-modal-num {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: .25s ease;
}
.phone-modal-num:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.phone-modal-num-icon { font-size: 28px; flex-shrink: 0; }
.phone-modal-num-label { color: rgba(255,255,255,.5); font-size: 12px; margin-bottom: 4px; }
.phone-modal-num-value { color: white; font-size: 18px; font-weight: 700; }

.contacts-box {
  width: 100%; max-width: 560px; background: #111; border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 32px; position: relative;
  transform: translateY(25px) scale(.95); transition: .35s ease;
  box-shadow: 0 20px 80px rgba(0,0,0,.5); max-height: 90vh; overflow-y: auto;
}
.contacts-modal.active .contacts-box { transform: translateY(0) scale(1); }
.contacts-box h2 { color: white; font-size: 32px; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px;
}
.contact-item strong { display: block; color: white; margin-bottom: 6px; }
.contact-item p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.6; font-size: 14px; }
.contact-item a { color: var(--red-light); }
.contact-item a:hover { text-decoration: underline; }
.contacts-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.08); color: white;
  font-size: 24px; cursor: pointer; transition: .25s ease;
  display: flex; align-items: center; justify-content: center;
}
.contacts-close:hover { background: var(--red); transform: rotate(90deg); }

.max-modal-box {
  background: linear-gradient(145deg,#1a1a2e,#16162a); border: 1px solid rgba(91,65,255,.3);
  border-radius: 24px; padding: 32px; text-align: center; max-width: 380px; width: 100%;
  transform: translateY(20px) scale(.95); transition: .3s ease;
  box-shadow: 0 20px 60px rgba(91,65,255,.3); position: relative;
}
.max-modal.active .max-modal-box { transform: translateY(0) scale(1); }
.max-modal-close {
  position: absolute; top: -12px; right: -12px; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: #5B41FF; color: white;
  font-size: 20px; cursor: pointer; transition: .25s ease;
  display: flex; align-items: center; justify-content: center;
}
.max-modal-close:hover { background: #4C35E0; transform: rotate(90deg); }
.max-modal-icon {
  width: 80px; height: 80px; background: linear-gradient(135deg,#5B41FF,#8B5CF6);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; animation: pulse 2s ease-in-out infinite;
}
.max-modal-title { color: white; font-size: 22px; font-family: var(--font-head); margin: 0 0 12px; }
.max-modal-text { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.max-modal-phone {
  background: rgba(91,65,255,.15); border: 1px solid rgba(91,65,255,.3);
  border-radius: 12px; padding: 14px 20px; color: white;
  font-size: 20px; font-weight: 700; letter-spacing: .5px; margin-bottom: 20px;
}
.max-modal-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.max-modal-copy {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; padding: 14px 20px; color: white;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s ease;
}
.max-modal-copy:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.max-modal-goto {
  background: linear-gradient(135deg,#5B41FF,#8B5CF6); border-radius: 12px;
  padding: 14px 20px; color: white; font-size: 14px; font-weight: 700;
  text-decoration: none; display: block; transition: .2s ease;
}
.max-modal-goto:hover {
  background: linear-gradient(135deg,#4C35E0,#7C4FE0);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(91,65,255,.4);
}
.max-modal-timer { color: rgba(255,255,255,.4); font-size: 13px; }
.max-modal-timer span { color: #8B5CF6; font-weight: 700; }

.copy-notification {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.8); background: rgba(46,125,50,.95);
  border-radius: 16px; padding: 20px 32px; display: flex; align-items: center;
  gap: 12px; color: white; font-size: 16px; font-weight: 600;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transition: .3s ease; z-index: 9100;
}
.copy-notification.active { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }
.copy-notification-icon {
  width: 32px; height: 32px; background: rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px;
}

.tph-notfound-title {
  font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 12px;
}
.tph-notfound-desc { color: var(--text-muted); margin: 0 auto; line-height: 1.6; font-size: 15px; }
.tph-notfound-desc b { color: rgba(255,255,255,.85); }

/* adaptive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tph-cat-title { font-size: 38px; }
  .tph-product-hero { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  #tphHeader .tphNav { display: none !important; }
  #tphHeader .tphBurger { display: flex !important; }
  #tphHeader .tphTopInner { justify-content: center !important; }
  body.tphMenuOpen #tphHeader .tphNav {
    display: flex !important; flex-direction: column !important; gap: 6px !important;
    position: absolute !important; left: 0 !important; right: 0 !important;
    top: calc(100% + 10px) !important; background: rgba(15,17,21,.96) !important;
    border: 1px solid var(--border-light) !important; border-radius: 16px !important;
    padding: 10px !important; box-shadow: 0 16px 45px rgba(0,0,0,.45) !important;
    z-index: 2147483647 !important;
  }
  body.tphMenuOpen #tphHeader .tphNav a {
    padding: 10px 12px !important; border-radius: var(--radius-md) !important;
    background: var(--surface-glass) !important; border: 1px solid rgba(255,255,255,.10) !important;
  }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tph-catalog { padding: 40px 0 calc(100px + env(safe-area-inset-bottom, 0px)); }
  .tph-cat-title { font-size: 30px; }
  .tph-cat-subtitle { font-size: 14px; }
  .tph-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .tph-card-body { padding: 16px; }
  .tph-card-name { font-size: 18px; }
  .tph-product-hero { padding: 20px; gap: 20px; }
  .tph-product-key-specs { grid-template-columns: 1fr; }
  .tph-product-title { font-size: 22px; }
  .tph-product-price-row--base .tph-product-price-val { font-size: 22px; }
  .tph-product-video-wrap, .tph-product-specs-wrap { padding: 20px; }
  .tph-product-specs-table td { padding: 10px 6px; font-size: 13px; }
  .tph-product-img-main { aspect-ratio: auto; height: min(62vh, 420px); max-height: 62vh; }
  .tph-lightbox-viewport { padding: 58px 0 48px; }
  .tph-lightbox-nav { width: 40px; height: 40px; }
  .tph-lightbox-prev { left: 6px; } .tph-lightbox-next { right: 6px; }
  .tph-lightbox-hint { font-size: 11px; }

  .float-btns {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px) + var(--tph-dock-lift, 0px));
    left: 12px;
    right: auto;
    gap: 10px;
  }
  .float-btn { width: 46px; height: 46px; }

  .onicon-button-callback {
    left: auto !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px) + var(--tph-dock-lift, 0px)) !important;
  }

#onicon .onc-callback__body {
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin: 0 auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  #onicon .onc-callback__columns {
    flex-direction: column !important;
  }
  #onicon .onc-callback__empty {
    display: none !important;
  }
  #onicon .onc-callback__bg-image {
    display: none !important;
    min-height: 0 !important;
  }
  #onicon .onc-callback__content {
    width: 100% !important;
  }
  #onicon .onc-callback button[type="submit"],
  #onicon .onc-callback input[type="submit"],
  #onicon .onc-callback__form button {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 3 !important;
  }

  .onicon-button,
  .onicon-chat-button {
    right: 10px !important;
    left: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--tph-dock-lift, 0px)) !important;
    max-width: calc(100vw - 20px) !important;
  }
  body.tph-has-selbar .onicon-button__title {
    display: none !important;
  }
  .onicon-button__title {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  #onicon input,
  #onicon textarea,
  #onicon select,
  .onicon-textarea {
    font-size: 16px !important;
  }

  .onicon-chat-popup {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    height: auto !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px) !important;
    inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px !important;
    top: auto !important;
    border-radius: 14px !important;
  }
  .onicon-chat-popup__main {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 48px) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .onicon-chat-popup__scroll-hidden,
  .onicon-chat-popup .onicon-js-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
  }
  .onicon-chat-popup__scrollable-wrapp {
    max-height: calc(100dvh - 280px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .onicon-chat-popup__bar {
    display: none !important;
  }
  .onicon-copyright {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }
  .onicon-textarea,
  .onicon-toolbar {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tph-card { opacity: 1; animation: none; }
  .tph-product, .tph-notfound-hero, .tph-notfound-contacts,
  .tph-notfound-contact-btn, .tph-notfound-back-wrap { opacity: 1; animation: none; }
}
