/* =================== hc-pdp-desc.css =================== */
/* hc-pdp-desc — premium description panel for PDP "Описание" tab/chapter.
 * Composed of: hero lede paragraph, key-features icon grid (3-up), and a
 * checked spec list with gold accent. Replaces flat <p>/<ul> markup.
 * Strictly .hc-pdp-desc / .hc-pdp-desc__*. */

.hc-pdp-desc {
display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  min-width: 0;
  max-width: 100%;
}

/* ─── Lede: oversized editorial paragraph ─── */
.hc-pdp-desc__lede {
position: relative;
  margin: 0;
  padding: 12px 0 12px 24px;
  min-width: 0;
  max-width: 100%;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--hc-ink, #1a1714);
  overflow-wrap: anywhere;
  word-break: normal;
}
.hc-pdp-desc__lede::before {
content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--hc-gold, #d4b896), var(--hc-accent, #8b7355));
}
.hc-pdp-desc__lede em {
color: var(--hc-accent-dark, #7a6548);
  font-style: italic;
}

/* ─── Feature grid: 3-up cards на всю ширину panel с большими tiles ─── */
.hc-pdp-desc__features {
display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.hc-pdp-desc__feature {
position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: clamp(24px, 2.4vw, 36px) clamp(22px, 2.2vw, 32px);
  background: linear-gradient(180deg, var(--hc-paper, #ffffff) 0%, rgba(252, 248, 240, 0.92) 100%);
  border: 0.5px solid rgba(141, 109, 71, 0.20);
  border-radius: clamp(14px, 1.2vw, 18px);
  min-height: 190px;
  min-width: 0;
  max-width: 100%;
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.2, 0.84, 0.3, 1), border-color 0.22s, box-shadow 0.28s;
}
@media (max-width: 720px) {
  .hc-pdp-desc__features { grid-template-columns: 1fr; gap: 12px; }
  .hc-pdp-desc__feature { min-height: 0; padding: 22px; }
}
.hc-pdp-desc__feature::before {
content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(280px 160px at 80% -10%, rgba(212, 184, 150, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.hc-pdp-desc__feature:hover {
transform: translateY(-3px);
  border-color: var(--hc-gold-border, rgba(212, 184, 150, 0.55));
  box-shadow: 0 18px 36px -22px rgba(184, 154, 111, 0.32);
}
.hc-pdp-desc__feature:hover::before {
opacity: 1;
}

.hc-pdp-desc__feature-title {
margin: 4px 0 0;
  min-width: 0;
  max-width: 100%;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--hc-ink, #1a1714);
  overflow-wrap: anywhere;
}
.hc-pdp-desc__feature-text {
margin: 0;
  min-width: 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.62));
  overflow-wrap: anywhere;
}
.hc-pdp-desc__feature-num {
position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: rgba(141, 109, 71, 0.35);
}

.hc-pdp-desc__feature-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--hc-accent-dark, #7a6548);
  background: rgba(212, 184, 150, 0.16);
  transition: transform 0.28s cubic-bezier(0.2,0.84,0.3,1), background 0.22s, color 0.22s;
}
.hc-pdp-desc__feature:hover .hc-pdp-desc__feature-ico {
transform: rotate(-5deg) scale(1.06);
  background: linear-gradient(135deg, var(--hc-gold, #d4b896), #b89a6f);
  color: #2a2018;
}

/* ─── Rich formatted body (format_description filter): p / h4 / ul ─── */
.hc-pdp-desc__rich {
  min-width: 0;
  max-width: 74ch;
}
.hc-pdp-desc__rich > :first-child { margin-top: 0; }
.hc-pdp-desc__rich > :last-child { margin-bottom: 0; }
.hc-pdp-desc__rich p {
  margin: 0 0 14px;
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.82));
  overflow-wrap: anywhere;
}
.hc-pdp-desc__h {
  margin: 26px 0 12px;
  padding-bottom: 8px;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--hc-ink, #1a1714);
  border-bottom: 0.5px solid rgba(141, 109, 71, 0.18);
  overflow-wrap: anywhere;
}
.hc-pdp-desc__h:first-child { margin-top: 0; }
.hc-pdp-desc__ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hc-pdp-desc__ul li {
  position: relative;
  padding-left: 26px;
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.82));
  overflow-wrap: anywhere;
}
.hc-pdp-desc__ul li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--hc-gold, #d4b896), var(--hc-accent, #8b7355));
}

/* ─── Рецептура смешивания: технологическая связка ЛКМ (v7.65) ───
 * Rebuilt from the legacy flat-text grid: component / purpose / mix-ratio
 * by weight & volume, with each component code linking to its product.
 * Strictly .hc-recipe / .hc-recipe__*. */
.hc-recipe-wrap {
  margin: 4px 0 2px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hc-recipe__cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding-left: 16px;
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hc-accent-dark, #7a6548);
}
.hc-recipe__cap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 1.5px;
  background: linear-gradient(135deg, var(--hc-gold, #d4b896), var(--hc-accent, #8b7355));
}
.hc-recipe {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--hc-ink, #1a1714);
  background: linear-gradient(180deg, var(--hc-paper, #fff) 0%, rgba(252, 248, 240, 0.55) 100%);
  border: 0.5px solid rgba(141, 109, 71, 0.20);
  border-radius: 14px;
  overflow: hidden;
}
.hc-recipe thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-accent-dark, #7a6548);
  background: rgba(212, 184, 150, 0.12);
  border-bottom: 0.5px solid rgba(141, 109, 71, 0.22);
  white-space: nowrap;
}
.hc-recipe thead th:nth-child(3),
.hc-recipe thead th:nth-child(4),
.hc-recipe tbody td:nth-child(3),
.hc-recipe tbody td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hc-recipe tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  border-bottom: 0.5px solid rgba(141, 109, 71, 0.12);
}
.hc-recipe tbody tr:last-child td { border-bottom: 0; }
.hc-recipe tbody tr { transition: background 0.18s ease; }
.hc-recipe tbody tr:hover { background: rgba(212, 184, 150, 0.08); }
.hc-recipe tbody td:nth-child(2) {
  color: var(--hc-muted, #6b5d4d);
  line-height: 1.4;
}
.hc-recipe tbody td:nth-child(3),
.hc-recipe tbody td:nth-child(4) {
  font-weight: 600;
  color: var(--hc-accent-dark, #7a6548);
  white-space: nowrap;
}
/* component code — chip; clickable when the отвердитель/разбавитель is in stock */
.hc-recipe__code {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--hc-accent-dark, #7a6548);
  border: 0.5px solid rgba(141, 109, 71, 0.30);
  background: var(--hc-paper, #fff);
  white-space: nowrap;
}
a.hc-recipe__code {
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
a.hc-recipe__code:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--hc-gold, #d4b896), var(--hc-accent, #8b7355));
  border-color: transparent;
  transform: translateY(-1px);
}
@media (max-width: 560px) {
  .hc-recipe { font-size: 13.5px; min-width: 460px; }
  .hc-recipe thead th, .hc-recipe tbody td { padding: 10px 12px; }
}
