/* ==========================================================================
   home.css — homepage-only sections added to mirror the original site's
   inventory (запчасти banner, company video, clickable service cards,
   "о нас", clients marquee, animated "Мясоруб в цифрах"). Loaded after the
   global sheets via home.njk's {% block head %}, so it can refine shared
   classes (.svc-card) without touching components.css.
   ========================================================================== */

/* --- hero "live" dot pulse (subtle motion in the first viewport) --------- */
.hero__badge .dot {
  animation: emberPulse 2.4s ease-in-out infinite;
}

/* --- direction intro paragraph ------------------------------------------- */
.dir-block__intro {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 94ch;
  margin: -4px 0 22px;
  text-wrap: pretty;
}

/* --- ЗАПЧАСТИ banner (dark, high-contrast) ------------------------------- */
.parts-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  padding: clamp(34px, 4vw, 56px) clamp(30px, 4vw, 60px);
  border-radius: var(--r-lg);
  color: #f1f4f6;
  background:
    radial-gradient(120% 150% at 90% -20%, #3a1719 0%, transparent 52%),
    linear-gradient(150deg, #1b1e23 0%, #0f1115 100%);
  border: 1px solid rgba(236, 240, 243, 0.12);
  box-shadow: var(--shadow);
}

.parts-banner__glow {
  position: absolute;
  right: -6%;
  top: -50%;
  width: min(48%, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 72, 59, 0.34), transparent 64%);
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.parts-banner__cog {
  position: absolute;
  left: -34px;
  bottom: -54px;
  color: rgba(245, 72, 59, 0.1);
  pointer-events: none;
  z-index: -1;
}

.parts-banner__cog svg {
  width: 230px;
  height: 230px;
}

.parts-banner__copy {
  position: relative;
  max-width: 66ch;
}

.parts-banner__eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f5483b;
  margin-bottom: 13px;
}

.parts-banner__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 14px;
  color: #fff;
  text-wrap: balance;
}

.parts-banner__text {
  color: #a7afb6;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.parts-banner__cta {
  position: relative;
  flex: none;
}

/* --- COMPANY VIDEO -------------------------------------------------------- */
.home-video__frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070a;
  box-shadow: var(--shadow);
}

.home-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-video__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, #05070a 55%, transparent);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* --- SERVICE CARDS as links (icon + "подробнее") ------------------------- */
.svc-card--link {
  color: inherit;
}

.svc-card__icon {
  width: 76px;
  height: 76px;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  margin-bottom: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.svc-card__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.svc-card--link:hover .svc-card__icon {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.svc-card__go {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.svc-card__go .arr {
  transition: transform 0.25s var(--ease);
}

.svc-card--link:hover .svc-card__go .arr {
  transform: translateX(4px);
}

/* --- О НАС ---------------------------------------------------------------- */
.about-home__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.about-home__lead {
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  margin: 18px 0 14px;
  text-wrap: pretty;
}

.about-home__text {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.about-home__aside {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface-2);
}

.about-home__mark {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.about-home__mark img {
  height: 46px;
  width: auto;
}

.about-home__points {
  display: grid;
  gap: 13px;
}

.about-home__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .about-home__grid {
    grid-template-columns: 1fr;
  }
}

/* --- НАШИ КЛИЕНТЫ (marquee tiles) ---------------------------------------- */
.section__head--center {
  justify-content: center;
  text-align: center;
}

.clients__logo {
  flex: none;
  display: grid;
  place-items: center;
  height: 84px;
  width: 162px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.clients__logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* --- МЯСОРУБ В ЦИФРАХ (animated figure cards on the dark band) ----------- */
.figures__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.figure {
  position: relative;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

.figure:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.figure__ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--accent);
}

.figure__ic svg {
  width: 30px;
  height: 30px;
}

.figure__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.2vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.figure__l {
  color: var(--text-2);
  font-size: 14.5px;
  margin-top: 12px;
  text-wrap: pretty;
}
