

  .modern-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
  }
  .modern-card .image-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%;
    overflow: hidden;
  }
  .modern-card .image-container img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
  }
  .modern-card:hover .image-container img {
    transform: scale(1.05);
  }
  .modern-card .image-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(0deg, rgba(0,0,0,0.1), transparent);
  }
  .modern-card .price-history-card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-left: 7px;
    color: #5276a7;
    background: #f5f8fc;
    border: 1px solid #cad7e8;
    border-radius: 50%;
    cursor: pointer;
    isolation: isolate;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
    animation: price-history-icon-pulse 4.6s ease-in-out infinite;
  }
  .modern-card .price-history-card-icon::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -1px;
    border: 1px solid #4b8fe8;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    animation: price-history-icon-ring 4.6s ease-out infinite;
  }
  .modern-card .price-history-card-icon svg {
    transform-origin: center;
    transition: transform .2s ease;
    animation: price-history-arrow-rise 4.6s cubic-bezier(.22,.8,.32,1) infinite;
  }
  .modern-card .price-history-card-icon svg path:first-child {
    stroke-dasharray: 28;
    stroke-dashoffset: 0;
    animation: price-history-arrow-line 4.6s ease-in-out infinite;
  }
  .modern-card .price-history-card-icon svg path:last-child {
    stroke-dasharray: 12;
    stroke-dashoffset: 0;
    transform-origin: 17.5px 9.5px;
    animation: price-history-arrow-tip 4.6s ease-in-out infinite;
  }
  .modern-card .price-history-card-icon:hover,
  .modern-card .price-history-card-icon:focus-visible {
    color: #255fae;
    background: #eaf2fd;
    border-color: #9cb9df;
    transform: translateY(-1px);
    animation: none;
    outline: none;
  }
  .modern-card .price-history-card-icon:hover::after,
  .modern-card .price-history-card-icon:focus-visible::after { animation:none; }
  .modern-card .price-history-card-icon:hover svg,
  .modern-card .price-history-card-icon:focus-visible svg {
    animation:none;
    transform:translate(1px,-1px);
  }
  .modern-card .price-history-card-icon:hover svg path,
  .modern-card .price-history-card-icon:focus-visible svg path {
    animation:none;
    stroke-dashoffset:0;
    opacity:1;
    transform:scale(1);
  }
  @keyframes price-history-icon-pulse {
    0%, 18%, 100% { color:#5276a7; box-shadow:0 0 0 0 rgba(53,126,221,0); }
    5% { color:#168ca7; box-shadow:0 0 0 3px rgba(53,126,221,.11); }
    11% { color:#2b6fc8; box-shadow:0 0 0 1px rgba(53,126,221,.05); }
  }
  @keyframes price-history-icon-ring {
    0%, 100% { opacity:0; transform:scale(.92); }
    4% { opacity:.42; }
    16% { opacity:0; transform:scale(1.48); }
    17%, 99% { opacity:0; transform:scale(.92); }
  }
  @keyframes price-history-arrow-rise {
    0%, 18%, 100% { transform:translate(0,0); }
    5% { transform:translate(1px,-1px); }
    10% { transform:translate(0,0); }
  }
  @keyframes price-history-arrow-line {
    0% { stroke-dashoffset:28; opacity:.25; }
    8%, 100% { stroke-dashoffset:0; opacity:1; }
  }
  @keyframes price-history-arrow-tip {
    0%, 4% { stroke-dashoffset:12; opacity:0; transform:scale(.7); }
    11% { stroke-dashoffset:0; opacity:1; transform:scale(1.12); }
    17%, 100% { stroke-dashoffset:0; opacity:1; transform:scale(1); }
  }
  @media (prefers-reduced-motion: reduce) {
    .modern-card .price-history-card-icon,
    .modern-card .price-history-card-icon::after,
    .modern-card .price-history-card-icon svg,
    .modern-card .price-history-card-icon svg path { animation:none; }
  }
  .modern-card .cta-arrow {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.75);
    transition: color .3s;
  }
  .modern-card:hover .cta-arrow {
    color: #fff;
  }
  .modern-card .content {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  /* Гарантируем одинаковую высоту заголовков (2 строки) */
  .modern-card .content h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
    min-height: 2.4em;
  }




.price-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1rem;
  color: #444;
  margin: 0.5rem 0 0;
  
    font-family: 'Roboto', sans-serif;
  font-weight: 700;
  
}





.price-range .from {
  color: #d72638; /* благородный красный */
  font-weight: 700;
}

.price-range .to {
  color: #333;
  font-weight: 500;
}

.category-products-count {
  color: #172a63;
  font-weight: 800;
}



.unit-badge {

  
  background-color: #f9f9f9 ;
border: 1px solid #ccc;

  color: #666;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  margin-left: auto;
}

.catalog-category-heading {
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100%;
  margin-top: 1.25rem;
}

.catalog-category-heading:first-child {
  margin-top: 0;
}

.catalog-category-heading__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 0;
  padding: .6rem 0 .75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-category-heading__content {
  min-width: 0;
}

.catalog-category-heading__label {
  display: block;
  margin-top: .35rem;
  margin-bottom: 0;
  color: #7a8599;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.catalog-category-heading__content h2 {
  margin: 0;
  color: #17223b;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 750;
  line-height: 1.2;
}

.catalog-category-heading__line {
  flex: 1 1 auto;
  min-width: 32px;
  height: 1px;
  margin-left: .5rem;
  background: linear-gradient(90deg, #cbd5e4, transparent);
}

@media (max-width: 575.98px) {
  .catalog-category-heading {
    margin-top: .75rem;
  }

  .catalog-category-heading__inner {
    min-height: 0;
    padding: .5rem 0 .65rem;
  }

  .catalog-category-heading__line {
    display: none;
  }
}
