/* =================== 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);
}

/* ─── Lede: oversized editorial paragraph ─── */
.hc-pdp-desc__lede {
position: relative;
  margin: 0;
  padding: 12px 0 12px 24px;
  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);
}
.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%;
}
.hc-pdp-desc__feature {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num    ico"
    "title  title"
    "text   text";
  gap: 16px 14px;
  padding: clamp(26px, 2.6vw, 36px) clamp(24px, 2.4vw, 32px) clamp(28px, 2.8vw, 36px);
  background:
    linear-gradient(180deg, var(--hc-paper, #ffffff) 0%, rgba(252, 246, 234, 0.88) 100%);
  border: 0.5px solid rgba(141, 109, 71, 0.18);
  border-radius: 18px;
  min-height: 220px;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.42s cubic-bezier(0.2, 0.84, 0.3, 1),
    border-color 0.32s ease,
    box-shadow 0.42s cubic-bezier(0.2, 0.84, 0.3, 1);
}

/* Decorative radial glow on hover */
.hc-pdp-desc__feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(360px 220px at 100% -10%, rgba(212, 184, 150, 0.28), transparent 60%),
    radial-gradient(220px 220px at 0% 110%, rgba(184, 154, 111, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.42s ease;
}

/* Soft animated dashed ring (rotates slowly on hover, like DIZ) */
.hc-pdp-desc__feature::after {
  content: "";
  position: absolute;
  left: -40%;
  top: -40%;
  width: 180%;
  height: 180%;
  border-radius: 50%;
  border: 1px dashed rgba(212, 184, 150, 0);
  pointer-events: none;
  z-index: -2;
  transition: border-color 0.42s ease, transform 24s linear;
}

.hc-pdp-desc__feature:hover {
  transform: translateY(-4px);
  border-color: var(--hc-gold-border, rgba(212, 184, 150, 0.55));
  box-shadow: 0 28px 56px -28px rgba(184, 154, 111, 0.40);
}
.hc-pdp-desc__feature:hover::before { opacity: 1; }
.hc-pdp-desc__feature:hover::after {
  border-color: rgba(212, 184, 150, 0.32);
  transform: rotate(360deg);
}

@media (max-width: 768px) {
  .hc-pdp-desc__features { grid-template-columns: 1fr; gap: 12px; }
  .hc-pdp-desc__feature { min-height: 0; padding: 22px; }
}

/* ─── Numbered badge (top-left): big serif "01" in gold circle ─── */
.hc-pdp-desc__feature-num {
  grid-area: num;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background:
    linear-gradient(135deg, rgba(212, 184, 150, 0.42), rgba(184, 154, 111, 0.16));
  border: 0.5px solid var(--hc-gold-border, rgba(212, 184, 150, 0.55));
  border-radius: 50%;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--hc-accent-dark, #7a6548);
  transition: transform 0.42s cubic-bezier(0.2, 0.84, 0.3, 1), background 0.32s ease;
}
.hc-pdp-desc__feature-num::after {
  /* Subtle checkmark backdrop, like DIZ step badges */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 0.5px solid rgba(212, 184, 150, 0.42);
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
  pointer-events: none;
}
.hc-pdp-desc__feature:hover .hc-pdp-desc__feature-num {
  transform: scale(1.08) rotate(-6deg);
  background: linear-gradient(135deg, var(--hc-gold, #d4b896), #b89a6f);
  color: #2a2018;
}

/* ─── Icon pill (top-right): SVG in gold rounded-square ─── */
.hc-pdp-desc__feature-ico {
  grid-area: ico;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background:
    linear-gradient(135deg, rgba(212, 184, 150, 0.28), rgba(184, 154, 111, 0.10));
  border: 0.5px solid rgba(141, 109, 71, 0.22);
  border-radius: 12px;
  color: var(--hc-accent-dark, #7a6548);
  transition: transform 0.5s cubic-bezier(0.2, 0.84, 0.3, 1), background 0.32s ease, color 0.32s ease;
}
.hc-pdp-desc__feature-ico svg {
  width: 22px;
  height: 22px;
}
.hc-pdp-desc__feature:hover .hc-pdp-desc__feature-ico {
  transform: rotate(8deg) translateY(-1px);
  background: linear-gradient(135deg, rgba(212, 184, 150, 0.42), rgba(184, 154, 111, 0.18));
  color: var(--hc-ink, #1a1714);
}

/* ─── Title and text ─── */
.hc-pdp-desc__feature-title {
  grid-area: title;
  margin: 6px 0 0;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--hc-ink, #1a1714);
}

.hc-pdp-desc__feature-text {
  grid-area: text;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.68));
  max-width: 36ch;
}

@media (prefers-reduced-motion: reduce) {
  .hc-pdp-desc__feature,
  .hc-pdp-desc__feature::after,
  .hc-pdp-desc__feature-num,
  .hc-pdp-desc__feature-ico { transition: none !important; }
  .hc-pdp-desc__feature:hover::after { transform: none; }
}


/* ─── Section group with eyebrow ─── */
.hc-pdp-desc__section {
display: grid;
  gap: 14px;
  padding: 18px 20px;
  background: var(--hc-paper, #ffffff);
  border: 0.5px solid rgba(141, 109, 71, 0.20);
  border-radius: 14px;
}
.hc-pdp-desc__section-eyebrow {
display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hc-accent-dark, #7a6548);
}
.hc-pdp-desc__section-eyebrow::before {
content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--hc-gold, #d4b896), transparent);
}
.hc-pdp-desc__section-title {
margin: 0;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--hc-ink, #1a1714);
}

/* ─── Check-list (replaces <ul>) ─── */
.hc-pdp-desc__checks {
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.hc-pdp-desc__check {
display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(252, 248, 240, 0.66);
  border: 0.5px solid rgba(141, 109, 71, 0.14);
  border-radius: 10px;
  transition: background 0.22s, border-color 0.22s;
}
.hc-pdp-desc__check:hover {
background: rgba(212, 184, 150, 0.16);
  border-color: rgba(141, 109, 71, 0.32);
}
.hc-pdp-desc__check-ico {
display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, rgba(61, 107, 79, 0.20), rgba(107, 164, 128, 0.10));
  border: 0.5px solid rgba(61, 107, 79, 0.28);
  border-radius: 50%;
  color: var(--hc-success, #3d6b4f);
  flex-shrink: 0;
  margin-top: 1px;
}
.hc-pdp-desc__check-ico svg {
width: 12px; height: 12px;
}
.hc-pdp-desc__check-text {
font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--hc-ink, #1a1714);
}
.hc-pdp-desc__check-text strong {
font-weight: 600;
  color: var(--hc-ink, #1a1714);
}
.hc-pdp-desc__check-text span {
color: var(--hc-ink-mid, rgba(26, 23, 20, 0.55));
}

/* ─── Highlight callout (для важных предупреждений) ─── */
.hc-pdp-desc__callout {
display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(212, 184, 150, 0.16), rgba(184, 154, 111, 0.06));
  border: 0.5px solid var(--hc-gold-border, rgba(212, 184, 150, 0.45));
  border-radius: 12px;
}
.hc-pdp-desc__callout-ico {
display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--hc-gold, #d4b896), #b89a6f);
  color: #2a2018;
  border-radius: 50%;
  flex-shrink: 0;
}
.hc-pdp-desc__callout-ico svg {
width: 16px; height: 16px;
}
.hc-pdp-desc__callout-body {
font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.78));
}
.hc-pdp-desc__callout-body b {
font-weight: 600;
  color: var(--hc-ink, #1a1714);
}

.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;
}

/* ─── Structured body (output of format_pdp_desc filter) ───────────── */
.hc-pdp-desc__body {
  display: grid;
  gap: 14px;
  font-family: var(--hc-sans, "Outfit", sans-serif);
  color: var(--hc-ink, #1a1714);
  line-height: 1.65;
}
.hc-pdp-desc__body > p {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 16.5px);
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.82));
}
.hc-pdp-desc__body > p:first-child {
  position: relative;
  padding: 12px 0 12px 24px;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--hc-ink, #1a1714);
  letter-spacing: -0.005em;
}
.hc-pdp-desc__body > p:first-child::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__body h4 {
  margin: 12px 0 4px;
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hc-accent-dark, #7a6548);
}
.hc-pdp-desc__body h4::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--hc-gold, #d4b896), transparent);
}
.hc-pdp-desc__body ul {
  /* Sprint46: bullet-list — 2 column на широких экранах (PDP often
   * has 6–14 bullets — single column превращает в простыню).
   * Mobile collapse в 1 column для читаемости. */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 6px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: pdp-bullet;
}
@media (max-width: 768px) {
  .hc-pdp-desc__body ul {
    grid-template-columns: 1fr;
  }
}
.hc-pdp-desc__body li {
  counter-increment: pdp-bullet;
  position: relative;
  padding: 8px 12px 8px 44px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hc-ink, #1a1714);
  border-radius: 8px;
  transition:
    background 0.22s cubic-bezier(0.2, 0.84, 0.3, 1),
    transform 0.22s cubic-bezier(0.2, 0.84, 0.3, 1),
    color 0.22s ease;
  animation: hc-pdp-desc-li-in 0.42s cubic-bezier(0.2, 0.84, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.hc-pdp-desc__body li::before {
  /* Animated checkmark bullet — gold circle with ✓ inside */
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(212, 184, 150, 0.32), rgba(184, 154, 111, 0.12));
  border: 0.5px solid var(--hc-gold-border, rgba(212, 184, 150, 0.55));
  transition: background 0.32s ease, border-color 0.32s ease, transform 0.42s cubic-bezier(0.2, 0.84, 0.3, 1);
}
.hc-pdp-desc__body li::after {
  /* Checkmark glyph (SVG-style via clip-path) */
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--hc-accent-dark, #7a6548);
  clip-path: polygon(14% 50%, 0% 64%, 38% 100%, 100% 28%, 86% 14%, 38% 72%);
  transform: scale(0.78);
  transition: background 0.32s ease, transform 0.42s cubic-bezier(0.2, 0.84, 0.3, 1);
}
.hc-pdp-desc__body li:hover {
  background: linear-gradient(90deg, rgba(212, 184, 150, 0.14), rgba(212, 184, 150, 0.04));
  transform: translateX(3px);
  color: var(--hc-ink, #1a1714);
}
.hc-pdp-desc__body li:hover::before {
  background: linear-gradient(135deg, var(--hc-gold, #d4b896), #b89a6f);
  border-color: var(--hc-accent-dark, #7a6548);
  transform: rotate(360deg);
}
.hc-pdp-desc__body li:hover::after {
  background: #2a2018;
  transform: scale(0.92);
}

/* Stagger entry — sets --i per li via :nth-child cascade up to 24 */
.hc-pdp-desc__body li:nth-child(1)  { --i: 1; }
.hc-pdp-desc__body li:nth-child(2)  { --i: 2; }
.hc-pdp-desc__body li:nth-child(3)  { --i: 3; }
.hc-pdp-desc__body li:nth-child(4)  { --i: 4; }
.hc-pdp-desc__body li:nth-child(5)  { --i: 5; }
.hc-pdp-desc__body li:nth-child(6)  { --i: 6; }
.hc-pdp-desc__body li:nth-child(7)  { --i: 7; }
.hc-pdp-desc__body li:nth-child(8)  { --i: 8; }
.hc-pdp-desc__body li:nth-child(9)  { --i: 9; }
.hc-pdp-desc__body li:nth-child(10) { --i: 10; }
.hc-pdp-desc__body li:nth-child(11) { --i: 11; }
.hc-pdp-desc__body li:nth-child(12) { --i: 12; }
.hc-pdp-desc__body li:nth-child(n+13) { --i: 13; }

@keyframes hc-pdp-desc-li-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hc-pdp-desc__body li,
  .hc-pdp-desc__body li::before,
  .hc-pdp-desc__body li::after {
    animation: none !important;
    transition: none !important;
  }
}
