/* =================== contact-intent-grid.css =================== */
/* contact-intent-grid — 3-up grid of quick-intent cards on /contacts:
 * "Подбор по проекту" / "Опт и B2B" / "Доставка по РФ". Each card is an
 * <a> with <strong> + <span>; we paint an animated SVG icon via ::before
 * (per-nth-child mask-image) and apply premium hover with shimmer. */

.contact-intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: 20px;
}

.contact-intent-grid > a {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  padding: 18px 20px;
  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: 14px;
  text-decoration: none;
  color: var(--hc-ink, #1a1714);
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.84, 0.3, 1), border-color 0.22s, box-shadow 0.28s;
}
.contact-intent-grid > a::after {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(212, 184, 150, 0.32) 50%, transparent 70%);
  transition: left 0.7s cubic-bezier(0.2, 0.84, 0.3, 1);
}
.contact-intent-grid > a:hover {
  transform: translateY(-4px);
  border-color: var(--hc-gold-border, rgba(212, 184, 150, 0.62));
  box-shadow: 0 2px 4px rgba(40, 30, 15, 0.04), 0 24px 50px -22px rgba(184, 154, 111, 0.32);
}
.contact-intent-grid > a:hover::after { left: 120%; }

/* Icon tile (square gold-tint with mask-image SVG inside) */
.contact-intent-grid > a::before {
  content: "";
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  background-color: var(--hc-accent-dark, #7a6548);
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 22px 22px;
          mask-size: 22px 22px;
  border-radius: 12px;
  background-image: linear-gradient(135deg, rgba(212, 184, 150, 0.30), rgba(184, 154, 111, 0.12));
  background-color: transparent;
  border: 0.5px solid var(--hc-gold-border, rgba(212, 184, 150, 0.45));
  position: relative;
  transition: background 0.32s ease, transform 0.32s cubic-bezier(0.2, 0.84, 0.3, 1);
}
/* Inner SVG icon via second pseudo on <strong> (since ::before is the tile bg) */
.contact-intent-grid > a strong {
  position: relative;
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: var(--hc-ink, #1a1714);
  letter-spacing: -0.005em;
}
.contact-intent-grid > a span {
  font-family: var(--hc-sans, "Outfit", sans-serif);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.62));
}
.contact-intent-grid > a:hover::before {
  background-image: linear-gradient(135deg, var(--hc-gold, #d4b896), #b89a6f);
  transform: rotate(-6deg) scale(1.06);
}

/* Per-nth-child icon overlay (since ::before is used for tile, place icon via
   inline svg in markup OR with absolute pseudo on the link itself). We use
   an extra `.contact-intent-grid > a` aria-hidden inline svg slot — but
   since markup is fixed, we layer the icon on top via background-image of
   ::before using mask-image instead of bg. */
.contact-intent-grid > a:nth-child(1)::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/><rect x='8' y='2' width='8' height='4' rx='1'/><path d='M9 12l2 2 4-4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/><rect x='8' y='2' width='8' height='4' rx='1'/><path d='M9 12l2 2 4-4'/></svg>");
  background-image: linear-gradient(135deg, rgba(212, 184, 150, 0.45), rgba(184, 154, 111, 0.22));
  background-color: var(--hc-accent-dark, #7a6548);
  border: 0;
  border-radius: 12px;
  /* Reset — we use mask + flat color */
}
.contact-intent-grid > a:nth-child(2)::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z'/><polyline points='3.27 6.96 12 12.01 20.73 6.96'/><line x1='12' y1='22.08' x2='12' y2='12'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z'/><polyline points='3.27 6.96 12 12.01 20.73 6.96'/><line x1='12' y1='22.08' x2='12' y2='12'/></svg>");
  background-color: var(--hc-accent-dark, #7a6548);
  border: 0;
}
.contact-intent-grid > a:nth-child(3)::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='1' y='3' width='15' height='13' rx='2'/><polygon points='16 8 20 8 23 11 23 16 16 16 16 8'/><circle cx='5.5' cy='18.5' r='2.5'/><circle cx='18.5' cy='18.5' r='2.5'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='1' y='3' width='15' height='13' rx='2'/><polygon points='16 8 20 8 23 11 23 16 16 16 16 8'/><circle cx='5.5' cy='18.5' r='2.5'/><circle cx='18.5' cy='18.5' r='2.5'/></svg>");
  background-color: var(--hc-accent-dark, #7a6548);
  border: 0;
}
.contact-intent-grid > a:hover::before {
  background-color: #2a2018;
}
