/* Страница «Цены» — современный вид (.pr2) */
.pr2 {
  --pr2-primary: #7c0a02;
  --pr2-soft: rgba(124, 10, 2, .07);
  --pr2-ink: #1d1d1f;
  --pr2-muted: #6e6e73;
  --pr2-line: #e8e6e3;
  --pr2-bg: #f7f5f2;
  color: var(--pr2-ink);
}
.pr2-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pr2-primary); }
.pr2-h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.015em; margin: 8px 0 12px; }

/* Вводный блок */
.pr2-intro {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(22px, 3vw, 40px); border-radius: 24px; background: var(--pr2-bg); margin-bottom: 24px;
}
.pr2-intro p { color: #3a3a3c; line-height: 1.65; margin: 0; max-width: 640px; }
.pr2-intro__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.pr2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 14px; font-weight: 700; font-size: 16px; }
.pr2-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr2-btn--primary { background: var(--pr2-primary); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(124, 10, 2, .22); }
.pr2-btn--primary:hover { background: #95130a; color: #fff; }
.pr2-btn--ghost { background: #fff; color: var(--pr2-ink); border: 1.5px solid var(--pr2-line); }
.pr2-btn--ghost:hover { border-color: var(--pr2-primary); color: var(--pr2-primary); }
.pr2-phone { text-align: center; color: var(--pr2-muted); text-decoration: none; font-size: 14px; margin-top: 2px; }
.pr2-phone b { color: var(--pr2-ink); }

/* Панель: навигация + поиск (прилипает) */
.pr2-bar {
  position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 14px;
  padding: 10px 0; margin-bottom: 18px; background: #fff;
}
.pr2-nav { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pr2-nav::-webkit-scrollbar { display: none; }
.pr2-nav a {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap;
  background: var(--pr2-bg); color: var(--pr2-ink); text-decoration: none; border: 1px solid var(--pr2-line);
  transition: background .15s, color .15s, border-color .15s;
}
.pr2-nav a:hover { border-color: #c9c4bd; }
.pr2-nav a.is-active { background: var(--pr2-primary); border-color: var(--pr2-primary); color: #fff; }
.pr2-search {
  flex: 0 0 300px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px;
  border-radius: 12px; border: 1.5px solid var(--pr2-line); background: #fff; margin: 0;
}
.pr2-search:focus-within { border-color: var(--pr2-primary); }
.pr2-search svg { width: 18px; height: 18px; fill: none; stroke: var(--pr2-muted); stroke-width: 2; stroke-linecap: round; flex: 0 0 18px; }
.pr2-search input { border: 0; outline: 0; width: 100%; font-size: 15px; background: transparent; }

/* Категория */
.pr2-cat { scroll-margin-top: 150px; margin-bottom: 36px; }
.pr2-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pr2-cat__title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.pr2-cat__link { color: var(--pr2-primary); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.pr2-cat__link:hover { text-decoration: underline; }
.pr2-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Карточка товара */
.pr2-product {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 0 16px;
  padding: 16px; border-radius: 18px; border: 1px solid var(--pr2-line); background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.pr2-product:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .07); border-color: transparent; }
.pr2-product__img { grid-row: 1 / span 3; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--pr2-bg); display: block; }
.pr2-product__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr2-product__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.pr2-product__name { font-size: 17px; font-weight: 700; color: var(--pr2-ink); text-decoration: none; line-height: 1.3; }
.pr2-product__name:hover { color: var(--pr2-primary); }
.pr2-product__unit { font-size: 12px; color: var(--pr2-muted); }
.pr2-table { display: flex; flex-direction: column; }
.pr2-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 7px 0; border-top: 1px dashed var(--pr2-line); font-size: 14px;
}
.pr2-row:first-child { border-top: 0; }
.pr2-row__wood { color: #3a3a3c; }
.pr2-row__size { color: var(--pr2-muted); font-variant-numeric: tabular-nums; }
.pr2-row__price { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.pr2-product__body { grid-column: 2; grid-row: 1 / span 2; }
.pr2-product__btn {
  grid-column: 2; grid-row: 3; justify-self: start; align-self: end; margin-top: 12px; padding: 8px 16px; border-radius: 10px;
  background: var(--pr2-soft); color: var(--pr2-primary); font-weight: 700; font-size: 14px; text-decoration: none;
}
.pr2-product__btn:hover { background: var(--pr2-primary); color: #fff; }

.pr2 .is-hidden { display: none !important; }
.pr2-empty { padding: 24px; border-radius: 16px; background: var(--pr2-bg); text-align: center; color: #3a3a3c; }
.pr2-note { font-size: 13px; color: var(--pr2-muted); margin-top: 8px; }

@media (max-width: 1199.98px) {
  .pr2-products { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  .pr2-intro { grid-template-columns: 1fr; gap: 20px; }
  .pr2-bar { flex-direction: column; align-items: stretch; top: 60px; gap: 8px; }
  .pr2-search { flex: 0 0 auto; }
}
@media (max-width: 575.98px) {
  .pr2-product { grid-template-columns: 64px minmax(0, 1fr); gap: 0 12px; padding: 14px; }
  .pr2-product__img { width: 64px; height: 64px; grid-row: 1; }
  .pr2-product__body { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
  .pr2-product__top { grid-column: 2; grid-row: 1; }
  .pr2-product__btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .pr2-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pr2-row__size { grid-column: 1; grid-row: 2; font-size: 13px; margin-top: -6px; }
  .pr2-row__price { grid-row: 1 / span 2; grid-column: 2; }
}
