/* Bearing categories landing page — requires bearing-common + bearing-layout + bearing-catalog */

.page-main > * + * {
  margin-top: 24px;
}

.section-block {
  padding: 6px 0;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.round-blue-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
  font-weight: 850;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.bearing-category-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  min-height: 210px;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(18, 28, 45, .06);
}

.category-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

.category-visual__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bearing-category-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 16px;
}

.bearing-category-card h2 {
  margin: 0;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.22;
  font-weight: 850;
  letter-spacing: -.02em;
  color: var(--ink);
}

.bearing-category-card p {
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.bearing-category-card ul {
  margin: 10px 0 0;
  padding-left: 16px;
  color: #4f5a67;
  font-size: 12px;
  line-height: 1.45;
}

.bearing-category-card ul li + li {
  margin-top: 3px;
}

.bearing-category-card .text-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 850;
}

.factory-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 0% 100%, rgba(0, 110, 0, .05), transparent 38%),
    #fff;
}

.factory-band__intro .section-eyebrow {
  margin: 0;
}

.factory-band h2 {
  margin-top: 8px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.factory-band__lead {
  margin: 12px 0 0;
  max-width: 320px;
  color: var(--color-text-secondary);
  font-size: var(--font-body-sm);
  line-height: 1.6;
}

.factory-band__intro .btn {
  margin-top: 20px;
}

.factory-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.factory-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .2s ease;
}

.factory-card:hover {
  transform: translateY(-2px);
}

.factory-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef4;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
}

.factory-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.factory-card:hover .factory-shot img {
  transform: scale(1.04);
}

.factory-caption {
  margin: 10px 0 0;
}

.factory-caption strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: var(--ink);
}

.factory-caption span {
  display: block;
  margin-top: 3px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.apps-stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.apps-panel {
  padding: 28px 28px 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 110, 0, .06), transparent 42%),
    #fff;
}

.apps-panel__head {
  max-width: 520px;
}

.apps-panel__head .section-eyebrow {
  margin: 0;
}

.apps-panel h2 {
  margin-top: 8px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.apps-panel__lead {
  margin: 10px 0 0;
  max-width: 480px;
  color: var(--color-text-secondary);
  font-size: var(--font-body-sm);
  line-height: 1.6;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  min-width: 0;
}

.application-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.application-item:hover {
  border-color: #c5e1c5;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 110, 0, .08);
}

.application-item__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.application-item__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.application-item__label {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.stats-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background:
    linear-gradient(160deg, #f7fbf7 0%, #edf7ed 55%, #fff 100%);
}

.stats-panel__eyebrow {
  margin: 0 0 4px;
}

.stats-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(0, 110, 0, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  text-align: left;
}

.stat-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.stat-box__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.stat-box__value {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.03em;
  color: var(--ink);
}

.stat-box__label {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.story-section {
  padding: 8px 0 4px;
}

.story-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.story-head__copy .section-eyebrow {
  margin: 0;
}

.story-section h2 {
  margin-top: 8px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.story-head__link {
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.story-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(18, 28, 45, .1);
}

.story-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eef4;
}

.story-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.story-card:hover .story-card__media img {
  transform: scale(1.05);
}

.story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.story-card__tag {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.story-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  color: var(--ink);
}

.story-card__meta {
  margin: 4px 0 0;
}

.story-card__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.story-card__location::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M2 12h20M12 3v18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bottom-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 70%, rgba(186, 199, 216, .5), transparent 22%),
    linear-gradient(135deg, #f7fbf7, #edf7ed);
}

.bottom-cta::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -30px;
  width: 200px;
  height: 110px;
  opacity: .3;
  background:
    radial-gradient(circle at 30% 54%, transparent 0 30%, #7b838d 31% 35%, transparent 36%),
    radial-gradient(circle at 58% 44%, transparent 0 35%, #7b838d 36% 40%, transparent 41%),
    radial-gradient(circle at 82% 58%, transparent 0 25%, #7b838d 26% 31%, transparent 32%);
}

.bottom-cta h2 {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 850;
}

.bottom-cta p {
  margin-top: 10px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.bottom-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  align-items: center;
}

@media (max-width: 1160px) {
  .apps-stats-row {
    grid-template-columns: 1fr;
  }

  .application-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-band {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .factory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .category-grid,
  .apps-stats-row,
  .story-grid,
  .bottom-cta {
    grid-template-columns: 1fr;
  }

  .factory-band,
  .factory-gallery {
    grid-template-columns: 1fr;
  }

  .factory-band {
    padding: 20px;
  }

  .story-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bearing-category-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
    height: auto;
  }

  .category-visual {
    min-height: 148px;
  }

  .bearing-category-card__body {
    padding: 16px;
  }


  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .application-item {
    gap: 8px;
    padding: 10px;
  }

  .application-item__icon {
    width: 34px;
    height: 34px;
  }

  .application-item__icon svg {
    width: 18px;
    height: 18px;
  }

  .application-item__label {
    font-size: 11px;
    line-height: 1.35;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .stats-panel {
    padding: 16px 18px;
  }

  .stat-box {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    padding: 10px;
  }

  .stat-box__icon {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 32px;
    height: 32px;
    align-self: center;
  }

  .stat-box__icon svg {
    width: 18px;
    height: 18px;
  }

  .stat-box__value {
    grid-column: 2;
    grid-row: 1;
    font-size: 20px;
  }

  .stat-box__label {
    grid-column: 2;
    grid-row: 2;
    font-size: 10px;
    line-height: 1.3;
    overflow-wrap: break-word;
  }

  .apps-panel {
    padding: 20px;
  }

  .bottom-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}
