/* ===== MZMK Equipment Page 2026 ===== */
.mzmk-equipment {
  margin: 0;
  padding: 0;
}

.mzmk-eq-hero {
  position: relative;
  /* padding: 48px 0 40px; */
  padding: 0 0 40px;
  margin-bottom: 20px;
}

.mzmk-eq-hero h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #111;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mzmk-eq-hero p {
  font-size: 1.05rem;
  color: #555;
  max-width: 780px;
  line-height: 1.65;
  margin: 0;
}

.mzmk-eq-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.mzmk-eq-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mzmk-eq-stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
}

.mzmk-eq-stat span {
  font-size: 0.9rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation pills */
.mzmk-eq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.mzmk-eq-nav a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  border-radius: 100px;
  background: #f4f4f5;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mzmk-eq-nav a:hover {
  background: #111;
  color: #fff;
}

/* Group section */
.mzmk-eq-group {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}

.mzmk-eq-group-header {
  position: relative;
  padding: 32px 36px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f2 100%);
  border-radius: 16px;
  border-left: 5px solid #111;
  overflow: hidden;
}

.mzmk-eq-group-header::after {
  content: attr(data-icon);
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  opacity: 0.06;
  pointer-events: none;
}

.mzmk-eq-group-num {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  font-weight: 700;
  margin-bottom: 8px;
}

.mzmk-eq-group-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
  line-height: 1.25;
}

.mzmk-eq-group-header p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  line-height: 1.65;
  max-width: 90%;
}

/* Cards grid */
.mzmk-eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Card */
.mzmk-eq-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e8ea;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.mzmk-eq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: #d0d0d4;
}

/* Image area */
.mzmk-eq-img-wrap {
  position: relative;
  width: 100%;
  /*aspect-ratio: 16 / 10;*/
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f2f4;
  cursor: pointer;
}

.mzmk-eq-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mzmk-eq-card:hover .mzmk-eq-img {
  transform: scale(1.04);
}

.mzmk-eq-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 2;
}

/* Thumbs */
.mzmk-eq-thumbs {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
}

.mzmk-eq-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.25s ease;
}

.mzmk-eq-thumb:hover,
.mzmk-eq-thumb.active {
  border-color: #111;
  opacity: 1;
}

/* Content */
.mzmk-eq-body {
  padding: 18px 22px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mzmk-eq-origin {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  font-weight: 700;
  margin-bottom: 6px;
}

.mzmk-eq-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
  line-height: 1.3;
}

.mzmk-eq-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.mzmk-eq-specs li {
  font-size: 0.88rem;
  color: #444;
  margin-bottom: 7px;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.mzmk-eq-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bbb;
}

/* Card without image */
.mzmk-eq-card--noimg .mzmk-eq-body {
  padding-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .mzmk-eq-grid {
    grid-template-columns: 1fr;
  }
  .mzmk-eq-group-header {
    padding: 22px 20px;
  }
  .mzmk-eq-group-header p {
    max-width: 100%;
  }
  .mzmk-eq-hero {
    padding: 28px 0 24px;
  }
  .mzmk-eq-stats {
    gap: 20px;
  }
  .mzmk-eq-nav {
    gap: 6px;
  }
  .mzmk-eq-nav a {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
}

@media (min-width: 992px) {
  /* Если карточка в сетке одна - растягиваем её на всю ширину */
  .mzmk-eq-card:only-child {
    grid-column: 1 / -1; 
  }
  
  /* Для карточек с картинкой меняем раскладку на горизонтальную (Grid) */
  .mzmk-eq-card:only-child:not(.mzmk-eq-card--noimg) {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-areas: 
      "img thumbs"
      "img body";
    grid-template-rows: max-content 1fr;
  }
  
  .mzmk-eq-card:only-child .mzmk-eq-img-wrap {
    grid-area: img;
    width: 100%;
    height: 100%;
  }
  
  .mzmk-eq-card:only-child .mzmk-eq-thumbs {
    grid-area: thumbs;
    padding: 32px 40px 0; 
  }
  
  .mzmk-eq-card:only-child .mzmk-eq-body {
    grid-area: body;
    width: 100%;
    padding: 16px 40px 32px; 
  }
}
