/* ============================================================
   HAIRLENZA · catalog.css — каталог, карточка хвоста, формы
   ============================================================ */

.cat-main { padding: 3rem 0 6rem; }
.header-solid + main.cat-main, .cat-main { padding-top: 2.5rem; }

.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.cat-title { font-size: 2.25rem; font-weight: 700; }
.cat-sub { margin: 0.5rem 0 0; color: var(--muted-foreground); max-width: 40rem; }
.cat-tabs { display: flex; gap: 0.5rem; }
.cat-tab {
  padding: 0.5rem 1.1rem; border-radius: 999px; text-decoration: none;
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  border: 1px solid var(--border); background: var(--card);
}
.cat-tab.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

/* ---------- Фильтры ---------- */
.cat-filters {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: flex-end;
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: 1rem; background: var(--card);
}
.cf-group { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.cf-group > * { align-self: stretch; }
.cf-group > .unit-toggle { align-self: flex-start; }
.cf-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); }
.cf-hint { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; }
.cf-units a { text-decoration: none; color: var(--muted-foreground); padding: 0 2px; }
.cf-units a.on { color: var(--foreground); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem;
  border: 1px solid var(--border); background: var(--background); color: var(--muted-foreground);
  cursor: pointer; user-select: none; transition: all 0.12s;
}
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-sq span { min-width: 2.1rem; padding: 0.4rem 0.45rem; border-radius: 0.5rem; }
.cf-range { display: flex; align-items: center; gap: 0.5rem; }
.cf-range select {
  padding: 0.45rem 0.6rem; border-radius: 0.5rem; border: 1px solid var(--border);
  background: var(--background); font-family: inherit; font-size: 0.875rem; color: var(--foreground);
}
.cf-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.cf-actions .btn { padding: 0.55rem 1.3rem; }

.cat-count { margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted-foreground); }
.cat-empty { padding: 4rem 1rem; text-align: center; color: var(--muted-foreground); }
.cat-empty a { color: var(--foreground); }

/* ---------- Сетка карточек ---------- */
.cat-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  display: block; text-decoration: none; border-radius: 1rem; overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: var(--card); transition: box-shadow 0.2s, transform 0.2s;
}
.cat-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.09); transform: translateY(-2px); }
.cat-card.is-sold .cc-img img { filter: grayscale(0.35); opacity: 0.85; }
.cc-img { position: relative; aspect-ratio: 3 / 4; background: var(--secondary); }
/* Слайдер фото в карточке: свайп на тач, стрелки на hover (десктоп) */
.cc-slider { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  overscroll-behavior-x: contain; }
.cc-slider::-webkit-scrollbar { display: none; }
.cc-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.cc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.cc-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.88); color: #211d18; font-size: 1.15rem; line-height: 1;
  cursor: pointer; user-select: none; opacity: 0; transition: opacity 0.15s; box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
.cc-prev { left: 0.5rem; }
.cc-next { right: 0.5rem; }
.cat-card:hover .cc-arr { opacity: 1; }
@media (hover: none) { .cc-arr { display: none; } }
.cc-dots { position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 3; pointer-events: none; }
.cc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55);
  box-shadow: 0 0 3px rgba(0,0,0,0.35); transition: background 0.15s; }
.cc-dots i.on { background: #fff; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 0.8rem; color: var(--muted-foreground); }
.cc-badge {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem; border-radius: 999px; color: #fff;
}
.cc-reserved { background: #b45309; }
.cc-soldb { background: rgba(60,55,50,0.85); }
/* New — зелёный, чтобы не спорить с янтарным Reserved: у них разный смысл
   (можно брать / уже занято), и цвет должен это разделять. */
.cc-new { background: #16794f; }
.cc-flag { position: absolute; top: 0.5rem; right: 0.55rem; z-index: 2; font-size: 1.05rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.cc-body { padding: 0.85rem 1rem 1rem; }
.cc-line1 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.15rem 0.5rem; }
.cc-len { font-family: var(--font-serif); font-weight: 700; font-size: 1rem; color: var(--foreground); white-space: nowrap; }
.cc-serial { font-size: 0.72rem; color: var(--muted-foreground); margin-left: auto; }
.cc-line2 { margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted-foreground); display: flex; flex-wrap: wrap; gap: 0.25rem; }
.cc-price { margin-top: 0.55rem; font-weight: 700; color: var(--foreground); }
.cc-req {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; font-size: 0.8rem; color: var(--foreground);
  border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 0.3rem 0.85rem; background: color-mix(in oklab, var(--accent) 10%, transparent);
  transition: background 0.12s;
}
.cat-card:hover .cc-req { background: color-mix(in oklab, var(--accent) 22%, transparent); }
.cc-sold-label { font-weight: 500; font-size: 0.85rem; color: var(--muted-foreground); }

.cat-pager { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 2.5rem; }
.cat-pager a {
  min-width: 2.2rem; text-align: center; padding: 0.45rem 0.6rem; border-radius: 0.5rem;
  text-decoration: none; font-size: 0.875rem; color: var(--muted-foreground);
  border: 1px solid var(--border); background: var(--card);
}
.cat-pager a.on { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

/* Честные маркетинговые строки: 1 of 1, просмотры, видео-предложение */
.item-proof { margin: 0.45rem 0 1.1rem; font-size: 0.84rem; color: var(--muted-foreground); }
.item-proof .ip-one { font-weight: 800; color: var(--primary); letter-spacing: 0.02em; }
/* прежняя серая сноска .lead-video заменена рамкой-действием ниже */

/* Оплата: логотип PayPal на странице хвоста */
/* Автоприменение фильтров: с включённым JS кнопка Apply не нужна */
.cat-filters.js-auto .cf-actions button[type="submit"] { display: none; }

.pp-logo { display: inline-block; height: 14px; width: auto; vertical-align: -2px; }
.item-pay { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--muted-foreground); }
.item-pay .pp-logo { height: 18px; vertical-align: -4px; }

/* Бесконечная лента: при живом JS кнопка и цифры страниц не нужны */
.js-infinite .cat-more, .js-infinite .cat-pager { display: none; }

/* Плавающая кнопка возврата к фильтрам */
.cat-fab {
  position: fixed; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 50;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.94); color: #211d18;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  backdrop-filter: blur(4px);
}
.cat-fab:active { transform: translateX(-50%) scale(0.97); }

/* Кнопка «Show more» — подгружает следующую страницу под сетку без перехода */
.cat-more { display: flex; justify-content: center; margin-top: 2.2rem; }
.cat-more button {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  padding: 0.75rem 2.6rem; border-radius: 999px; color: inherit;
  border: 1px solid var(--border); background: var(--card);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-more button:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.cat-more button:disabled { opacity: 0.55; cursor: default; }
.cat-more + .cat-pager { margin-top: 1.1rem; }
@media (max-width: 640px) { .cat-more button { width: 100%; } }

/* ---------- Страница хвоста ---------- */
.crumbs { font-size: 0.8rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted-foreground); text-decoration: none; }
.crumbs a:hover { color: var(--foreground); }
.item-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .item-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }

.ig-main {
  position: relative; aspect-ratio: 3 / 4; border-radius: 1rem; overflow: hidden;
  background: var(--secondary); cursor: zoom-in;
}
.ig-main img { width: 100%; height: 100%; object-fit: cover; }
.ig-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ig-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.ig-th {
  position: relative; width: 4.2rem; height: 4.2rem; border-radius: 0.6rem; overflow: hidden;
  padding: 0; border: 2px solid transparent; cursor: pointer; background: var(--secondary);
}
.ig-th img { width: 100%; height: 100%; object-fit: cover; }
.ig-th.on { border-color: var(--accent); }
.cc-vid {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 3; pointer-events: none;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 0.7rem; padding-left: 2px;
}
#ig-video-file { background: #000; object-fit: contain; }
.ig-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; background: rgba(0,0,0,0.35);
}
.ig-note { margin-top: 0.6rem; font-size: 0.78rem; color: var(--muted-foreground); }
.ig-note-zoom { color: var(--foreground, #211d18); font-weight: 600; }
.ig-zoom-hint {
  position: absolute; left: 0.7rem; bottom: 0.7rem; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.9); color: #211d18;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.item-title { font-size: 1.75rem; font-weight: 700; line-height: 1.25; }
.item-serial { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
.item-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 0.75rem; font-size: 0.875rem; }
.item-status p { margin: 0.4rem 0 0; color: inherit; opacity: 0.9; }
.st-reserved { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.st-sold { background: var(--muted); color: var(--muted-foreground); border: 1px solid var(--border); }
.item-price { margin-top: 1.1rem; }
.ip-value { font-family: var(--font-sans); font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ip-usd { display: block; font-size: 0.85rem; color: var(--ink-3); margin-top: 0.3rem; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0.02em; }
.ip-req { font-size: 1.05rem; font-weight: 600; color: var(--accent); }

.item-specs { margin-top: 1.25rem; width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.item-specs th, .item-specs td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid color-mix(in oklab, var(--border) 55%, transparent); vertical-align: top; }
.item-specs th { width: 32%; font-weight: 600; color: var(--muted-foreground); padding-right: 1rem; }
.spec-hint { font-size: 0.75rem; color: var(--muted-foreground); }
.item-desc { margin-top: 1.25rem; font-size: 0.925rem; line-height: 1.7; color: var(--muted-foreground); }

/* ---------- Формы ---------- */
.lead-box {
  margin-top: 1.75rem; padding: 1.5rem; border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: var(--card);
}
.lead-box h3 { font-size: 1.2rem; }
.lead-sub { margin: 0.4rem 0 1rem; font-size: 0.85rem; color: var(--muted-foreground); }
.lead-form { display: flex; flex-direction: column; gap: 0.75rem; }
.lf-row { display: flex; gap: 0.5rem; }
.lf-row select {
  flex: 0 0 auto; padding: 0.7rem 0.6rem; border-radius: 0.5rem; border: 1px solid var(--border);
  background: var(--background); font-family: inherit; font-size: 0.875rem;
}
.lead-form input[type="text"]:not(.lf-hp), .lead-form textarea {
  flex: 1; width: 100%; padding: 0.7rem 0.9rem; border-radius: 0.5rem; border: 1px solid var(--border);
  background: var(--background); font-family: inherit; font-size: 0.9rem; color: var(--foreground);
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid color-mix(in oklab, var(--accent) 60%, transparent); outline-offset: 1px; }
.lf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lf-status { margin: 0; min-height: 1.1rem; font-size: 0.85rem; color: var(--muted-foreground); }
.lf-status.ok { color: #15803d; font-weight: 600; }
.lead-alt { margin: 1rem 0 0; font-size: 0.8rem; color: var(--muted-foreground); }

/* ---------- Похожие ---------- */
.similar { margin-top: 4rem; }
.similar-h { font-size: 1.6rem; margin-bottom: 1.25rem; }

/* ---------- Лайтбокс ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,8,6,0.92);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0.5rem; }
.lb-close {
  position: absolute; top: 1rem; right: 1.25rem; font-size: 2rem; line-height: 1;
  background: none; border: none; color: #fff; cursor: pointer; padding: 0.5rem;
}

/* ---------- SVG-флаги ---------- */
.flag { width: 1.15rem; height: 0.8rem; border-radius: 2px; vertical-align: -0.08em; display: inline-block; }
.cc-flag .flag { width: 1.3rem; height: 0.9rem; box-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* ---------- Мобильные твики ---------- */
@media (max-width: 640px) {
  .cat-title { font-size: 1.7rem; }
  .item-title { font-size: 1.45rem; }
  .ip-value { font-size: 1.5rem; }
  .cf-actions { margin-left: 0; width: 100%; }
  .cf-actions .btn { flex: 1; justify-content: center; }
  .cat-filters { padding: 1rem; gap: 1rem; }
  .ig-th { width: 3.6rem; height: 3.6rem; }
  .lightbox { padding: 0.75rem; }
}

/* ---------- Явный переключатель единиц ---------- */
.unit-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--background); }
.unit-toggle a {
  padding: 0.45rem 1.1rem; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; color: var(--muted-foreground); transition: all 0.12s;
}
.unit-toggle a.on { background: var(--primary); color: var(--primary-foreground); }
.unit-toggle a:not(.on):hover { color: var(--foreground); }


/* ---------- Лайтбокс: листание ---------- */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.8rem; height: 2.8rem; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 0.9rem; } .lb-next { right: 0.9rem; }
.lb-count {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.85); font-size: 0.85rem; letter-spacing: 0.05em;
}
@media (max-width: 640px) { .lb-nav { width: 2.4rem; height: 2.4rem; } }

/* ---------- Строка доставки в карточке ---------- */
.item-shipnote {
  margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 0.6rem;
  background: color-mix(in oklab, var(--secondary) 70%, transparent);
  font-size: 0.85rem; color: var(--foreground); display: flex; gap: 0.6rem; align-items: flex-start;
}
.item-shipnote .flag { margin-top: 0.15rem; }

/* ---------- Бейдж-код страны (для стран без нарисованного флага) ---------- */
.flag-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.5rem; height: 0.95rem; padding: 0 0.25rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 3px; vertical-align: -0.08em;
}
.cc-flag .flag-code { box-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* ============ Мобильная полировка (каталог) ============ */
@media (max-width: 640px) {
  .cat-main { padding-top: 1.5rem; }
  .cat-head { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .cat-head .btn { justify-content: center; }
  .cat-tabs { align-self: flex-start; }
  /* --- Фильтры: секции с разделителями, сегменты равной ширины --- */
  .cat-filters { flex-direction: column; gap: 0; padding: 0.4rem 1.1rem; }
  .cf-group { width: 100%; padding: 0.95rem 0; }
  .cf-group + .cf-group { border-top: 1px solid color-mix(in oklab, var(--border) 45%, transparent); }
  .cf-label { margin-bottom: 0.15rem; }

  /* Texture: 4 равные ячейки */
  .cf-g-texture .cf-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
  .cf-g-texture .chip span { width: 100%; padding: 0.55rem 0.25rem; font-size: 0.82rem; }

  /* Units: сегмент 50/50 во всю ширину */
  .cf-g-units .unit-toggle { align-self: stretch; display: flex; width: 100%; }
  .cf-g-units .unit-toggle a { flex: 1; justify-content: center; text-align: center; padding: 0.6rem 0; display: inline-flex; align-items: center; }

  /* Length: два селекта поровну */
  .cf-range { width: 100%; }
  .cf-range select { flex: 1; padding: 0.6rem 0.6rem; }

  /* Color: сетка 6 колонок, крупные удобные ячейки */
  .cf-g-color .cf-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.45rem; }
  .cf-g-color .chip span { width: 100%; min-width: 0; padding: 0.55rem 0; font-size: 0.85rem; }

  /* Location: чипы в поток, флаг с воздухом */
  .cf-g-location .cf-chips { gap: 0.45rem; }
  .cf-g-location .chip span { padding: 0.5rem 0.9rem; font-size: 0.82rem; }

  .cf-actions { padding-top: 1rem; border-top: 1px solid color-mix(in oklab, var(--border) 45%, transparent); }
  .cat-grid { gap: 0.75rem; }
  .cc-body { padding: 0.65rem 0.75rem 0.8rem; }
  .cc-len { font-size: 0.92rem; }
  .cc-line2 { font-size: 0.72rem; }
  .cc-req { font-size: 0.72rem; padding: 0.25rem 0.65rem; }
  .item-layout { gap: 1.5rem; }
  .item-specs { font-size: 0.85rem; }
  .item-shipnote { font-size: 0.8rem; }
  .lead-box { padding: 1.1rem; }
  .lf-row { flex-direction: column; }
  .lf-row select { width: 100%; }
  .similar { margin-top: 2.5rem; }
  .similar-h { font-size: 1.3rem; }
}

/* ---------- WhatsApp-кнопка в блоке заявки ---------- */
.lead-or { display: flex; align-items: center; gap: 0.75rem; margin: 0.25rem 0; color: var(--muted-foreground); font-size: 0.8rem; }
.lead-or::before, .lead-or::after { content: ''; flex: 1; height: 1px; background: color-mix(in oklab, var(--border) 60%, transparent); }
/* .btn-wa и .lead-or убраны вместе с зелёной кнопкой наверху блока: она
   перехватывала тех, кто уже решился, а уход в мессенджер не оставляет нам
   контакта. Мессенджеры теперь тихой строкой .lead-ask под формой. */

.lead-steps {
  margin: 0 0 1.1rem; padding: 0.7rem 0.9rem; list-style: none; counter-reset: st;
  background: color-mix(in oklab, var(--border) 22%, transparent); border-radius: 0.6rem;
}
.lead-steps li {
  counter-increment: st; position: relative; padding-left: 1.5rem;
  font-size: 0.85rem; line-height: 1.45; color: var(--muted-foreground);
}
.lead-steps li + li { margin-top: 0.35rem; }
.lead-steps li::before {
  content: counter(st); position: absolute; left: 0;
  font-weight: 700; color: var(--foreground);
}

.lf-label { margin: 0 0 0.45rem; font-size: 0.85rem; color: var(--muted-foreground); }
.lf-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.lf-chip span { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

.lf-note {
  margin: 0.5rem 0 0; font-size: 0.8rem; line-height: 1.45;
  text-align: center; color: var(--muted-foreground);
}

.lead-video {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin: 1rem 0 0; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border); border-radius: 0.6rem;
  font-size: 0.85rem; line-height: 1.45; color: var(--foreground); text-decoration: none;
  transition: border-color 0.12s;
}
.lead-video:hover { border-color: var(--foreground); }
.lead-video .ic { flex: 0 0 auto; margin-top: 0.1rem; }
.lead-video b { font-weight: 600; text-decoration: underline; }

.lead-ask {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.85rem;
  margin: 1rem 0 0; padding-top: 0.85rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  font-size: 0.82rem; color: var(--muted-foreground);
}
.lead-ask a { color: var(--foreground); }

/* ── Отзывы под карточкой хвоста ─────────────────────────────
   Появляются только когда в CRM есть опубликованные отзывы. */
.item-reviews { margin-top: 3rem; }
.ir-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.ir-card {
  margin: 0; padding: 1.1rem 1.2rem; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card, var(--background));
}
.ir-stars { color: #d4a017; letter-spacing: 0.12em; font-size: 0.85rem; }
.ir-card blockquote {
  margin: 0.6rem 0 0.9rem; flex: 1;
  font-size: 0.92rem; line-height: 1.55; color: var(--card-foreground, var(--foreground));
}
.ir-card figcaption { font-size: 0.82rem; color: var(--muted-foreground); }
.ir-card figcaption b { color: var(--foreground); font-weight: 600; }
.ir-meta { white-space: nowrap; }

/* Скриншот в карточке отзыва: обрезан сверху до аккуратной высоты, по клику
   открывается целиком в оверлее (.hl-zoom, catalog.js). */
.ir-shot { display: block; margin: 0.6rem 0 0.2rem; border-radius: 0.5rem; overflow: hidden; border: 1px solid var(--border); }
.ir-shot img { display: block; width: 100%; max-height: 15rem; object-fit: cover; object-position: top; }
.hl-zoom {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(20, 16, 12, 0.92); cursor: zoom-out;
}
.hl-zoom img { max-width: 100%; max-height: 100%; border-radius: 0.4rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* ---------- Липкая панель заявки (только мобильные) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in oklab, var(--card) 96%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.10);
  transform: translateY(110%); transition: transform 0.22s ease;
}
.sticky-cta.on { transform: translateY(0); }
.sc-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sc-serial { font-size: 0.7rem; color: var(--muted-foreground); }
.sc-price { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.sc-btn { margin-left: auto; padding: 0.7rem 1.2rem; white-space: nowrap; }
@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 4.5rem; }
}

/* ---- Texture landing intro ---- */
.tex-intro { max-width: 720px; margin: 0.5rem 0 1.8rem; }
.tex-intro h2 { font-family: var(--font-serif); font-size: 1.35rem; margin: 0 0 0.5rem; }
.tex-intro p { line-height: 1.65; color: var(--ink-2); }
.tex-points { margin: 0.8rem 0 0; padding-left: 1.2rem; }
.tex-points li { margin: 0.3rem 0; line-height: 1.5; }
.tex-links { font-size: 0.9rem; margin-top: 0.8rem; }
.tex-links a { color: var(--accent); font-weight: 600; }
.item-guide-link { margin: 0.6rem 0 0; font-size: 0.9rem; }
.item-guide-link a { color: var(--accent); font-weight: 600; }
.len-note { font-size: 0.78rem; color: var(--ink-4); font-weight: 400; }
.len-stretch { margin-top: 0.35rem; font-size: 0.82rem; color: #8a6d3b; }
.len-stretch-sub { color: var(--muted-foreground); font-weight: 400; }
.item-form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--ink-3); font-style: italic; }
