/* ===== PREMIUM DARK THEME V4.1 — MONTERRAT + HIGH CONTRAST ===== */

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  padding: 20px 0 20px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-bright);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}
.hero-title .main-word {
  display: block;
  color: var(--text-primary);
  font-weight: 800;
}
.hero-title .highlight {
  display: block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.2em;
  font-weight: 800;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 400;
}
.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2.5rem;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.hero-feature i {
  color: var(--accent-green);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ===== КНОПКИ С ГРАДИЕНТАМИ ===== */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 3rem;
}
.btn-primary-custom {
  background: var(--gradient-button);
  background-size: 200% 200%;
  border: none;
  color: white;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.btn-primary-custom:hover::before { left: 100%; }
.btn-primary-custom:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong);
  color: white;
}
.btn-primary-custom .btn-subtext {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
}
.btn-outline-custom {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 18px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline-custom:hover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===== СТАТИСТИКА ===== */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== 3D МОКАП УСТРОЙСТВА ===== */
.device-mockup {
  position: relative;
  width: 280px;
  height: 420px;
  margin: 0 auto;
  transform: perspective(1200px) rotateY(-18deg) rotateX(8deg);
  transition: var(--transition);
}
.device-mockup:hover {
  transform: perspective(1200px) rotateY(-5deg) rotateX(3deg) scale(1.05);
}
.device-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 50%, #020617 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}
.device-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
}
.device-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
  pointer-events: none;
}
.device-led {
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary), 0 0 60px var(--accent-primary);
  animation: ledPulse 2s infinite;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}
.device-chip {
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, #000 0%, #0a0a0a 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.9),
    0 4px 12px rgba(0,0,0,0.5);
  z-index: 2;
}
.device-chip::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
.device-chip::after {
  content: 'EFR32MG21';
  color: var(--accent-bright);
  font-family: 'Montserrat', monospace;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.8), 0 0 20px rgba(96, 165, 250, 0.4);
  letter-spacing: 0.5px;
}
.device-brand {
  margin-top: auto;
  margin-bottom: 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 2;
}
.device-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  animation: glowFloat 6s ease-in-out infinite;
}
@keyframes glowFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}
.device-specs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.spec-badge {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.5px;
}

/* ===== СЕКЦИИ ===== */
.section-padding {
  padding: 60px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-bright);
  margin-bottom: 1.5rem;
}
.section-title {
  margin-bottom: 1rem;
}
.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== КАРТОЧКИ ТЕХНОЛОГИЙ ===== */
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.tech-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.tech-card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-bright);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.tech-card:hover .card-icon {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
}
.tech-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.tech-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.tech-spec {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50px;
  font-size: 12px;
  font-family: 'Montserrat', monospace;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ===== TRUST CARDS ===== */
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}
.trust-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.trust-icon {
  width: 56px;
  height: 56px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.trust-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.trust-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== EMPTY CATALOG ===== */
.empty-catalog {
  background: var(--bg-card);
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}
.empty-catalog-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--accent-bright);
}
.empty-catalog h3 { margin-bottom: 0.75rem; }
.empty-catalog p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* ===== PRODUCT CARDS (LEGACY — старые карточки, сохранены для совместимости) ===== */
.product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-section-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image-placeholder {
  font-size: 64px;
  color: var(--text-muted);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}
.product-badge-stock { background: var(--accent-green); }
.product-badge-out { background: var(--accent-warning); }
.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-price { margin-bottom: 1rem; }
.price-tbd {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== BLOG CARDS ===== */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}
.blog-image {
  aspect-ratio: 16/9;
  background: var(--bg-section-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-image-placeholder {
  font-size: 48px;
  color: var(--text-muted);
}
.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-date {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.blog-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.6;
}
.blog-link {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.blog-link:hover {
  color: var(--accent-cyan);
  gap: 12px;
}

/* ===== ABOUT ===== */
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.about-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-bright);
  flex-shrink: 0;
}
.about-feature h4 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.about-feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.stat-card-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {

  .device-mockup {
    width: 240px;
    height: 360px;
    margin-top: 40px;
  }
  .section-padding { padding: 50px 0; }
  .hero-cta-group { flex-direction: column; }
  .btn-primary-custom, .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 1.4rem; }
  .tech-card, .product-info, .blog-content { padding: 1.5rem; }
}

/* ===== СТРАНИЦА ПРОШИВКИ ===== */
.firmware-hero {
  position: relative;
  padding: 20px 0 20px;
  background: var(--gradient-hero);
  overflow: hidden;
}
.firmware-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.firmware-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}
.firmware-hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Информационные карточки */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
  height: 100%;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.info-card-blue {
  border-left: 4px solid var(--accent-primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, var(--bg-card) 100%);
}
.info-card-orange {
  border-left: 4px solid var(--accent-warning);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 100%);
}
.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.info-card-blue .info-card-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-bright);
}
.info-card-orange .info-card-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
}
.info-card-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.info-card-content p,
.info-card-content ul {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}
.info-card-content ul li {
  margin-bottom: 0.5rem;
}

/* Основной блок прошивки */
.flasher-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.flasher-container-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  animation: flasherPulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flasherPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
.flasher-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  box-shadow: var(--shadow-glow);
  animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.flasher-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.flasher-interface-wrapper {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.flasher-interface-wrapper:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}
.btn-connect-custom {
  background: var(--gradient-button);
  background-size: 200% 200%;
  color: white;
  padding: 18px 40px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  cursor: pointer;
}
.btn-connect-custom:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}
.flasher-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.feature-item i {
  color: var(--accent-green);
  font-size: 1.1rem;
}

/* Инструкция */
.instructions-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: rgba(17, 22, 56, 0.5);
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.step-item:hover {
  border-left-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateX(8px);
}
.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.step-content p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
  padding-top: 0.5rem;
}
.step-content strong {
  color: var(--text-primary);
  font-weight: 600;
}
.step-warning {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-warning);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Финальное предупреждение */
.final-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.warning-icon {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-danger);
  flex-shrink: 0;
}
.warning-content h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-danger);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.warning-content p {
  color: #fca5a5;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Адаптивность прошивки */
@media (max-width: 767px) {
  .firmware-hero-title { font-size: 1.75rem; }
  .firmware-hero-subtitle { font-size: 1rem; }
  .info-card {
    flex-direction: column;
    padding: 1.5rem;
  }
  .flasher-container-card,
  .instructions-card { padding: 2rem 1.5rem; }
  .flasher-interface-wrapper { padding: 2rem 1rem; }
  .btn-connect-custom {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
  .step-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .final-warning {
    flex-direction: column;
    padding: 1.5rem;
  }
  .flasher-features {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

/* ===== СТРАНИЦА "О НАС" ===== */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.team-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  box-shadow: var(--shadow-glow);
}
.team-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.team-role {
  color: var(--accent-bright);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.team-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Дополнительные цвета для info-card */
.info-card-green {
  border-left: 4px solid var(--accent-green);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
}
.info-card-green .info-card-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}
.info-card-purple {
  border-left: 4px solid var(--accent-primary);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, var(--bg-card) 100%);
}
.info-card-purple .info-card-icon {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-primary);
}
.info-card-red {
  border-left: 4px solid var(--accent-danger);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-card) 100%);
}
.info-card-red .info-card-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
}
.info-card-cyan {
  border-left: 4px solid var(--accent-cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, var(--bg-card) 100%);
}
.info-card-cyan .info-card-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

/* Адаптивность "О нас" */
@media (max-width: 767px) {
  .team-card { padding: 2rem 1.5rem; }
  .team-avatar {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
}

/* ===== СТРАНИЦА "КОНТАКТЫ" ===== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.contact-card-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}
.contact-card:hover .contact-card-icon {
  transform: scale(1.1) rotate(5deg);
}
.contact-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
}
.contact-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Форма обратной связи */
.form-label-custom {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.form-input-custom {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}
.form-input-custom:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-input-custom::placeholder { color: var(--text-muted); }
.form-textarea-custom {
  resize: vertical;
  min-height: 140px;
}
.form-check-custom {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}
.form-check-custom input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}
.form-check-custom label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

/* Социальные сети */
.social-links-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.social-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.social-link-card:hover {
  border-color: var(--border-accent);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}
.social-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}
.social-telegram { background: linear-gradient(135deg, #0088cc 0%, #00aced 100%); }
.social-youtube { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }
.social-github { background: linear-gradient(135deg, #333 0%, #24292e 100%); }
.social-vk { background: linear-gradient(135deg, #4a76a8 0%, #5181b8 100%); }
.social-rutube  { background: linear-gradient(135deg, #00B8D4 0%, #0077CC 100%); }
.social-dzen    { background: linear-gradient(135deg, #000000 0%, #333333 100%); }
.social-max     { background: linear-gradient(135deg, #FF004F 0%, #CC003F 100%); }
.social-git     { background: linear-gradient(135deg, #333 0%, #24292e 100%); } 


.social-info { flex-grow: 1; }
.social-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}
.social-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.social-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}
.social-link-card:hover .social-arrow {
  color: var(--accent-bright);
  transform: translateX(4px);
}

/* Быстрые ссылки */
.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-links-list li { margin-bottom: 0.75rem; }
.quick-links-list a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  font-size: 0.95rem;
}
.quick-links-list a:hover {
  color: var(--accent-bright);
  transform: translateX(4px);
}
.quick-links-list i {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

/* Карта (заглушка) */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.map-placeholder {
  background: var(--bg-card);
  padding: 4rem 2rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.map-placeholder i {
  font-size: 64px;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}
.map-placeholder h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.map-placeholder p {
  color: var(--text-secondary);
  margin: 0;
}

/* FAQ карточки */
.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}
.faq-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.faq-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.faq-card h4 i {
  color: var(--accent-bright);
  font-size: 1.3rem;
}
.faq-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Адаптивность контактов */
@media (max-width: 767px) {
  .contact-card { padding: 1.5rem 1rem; }
  .contact-card-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .social-link-card { padding: 1rem; }
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .faq-card { padding: 1.5rem; }
  .map-placeholder {
    padding: 3rem 1.5rem;
    min-height: 300px;
  }
}

/* ===== БЛОГ ===== */
.blog-post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.blog-post-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}
.blog-post-image {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-section-alt);
  overflow: hidden;
}
.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.blog-post-card:hover .blog-post-image img {
  transform: scale(1.05);
}
.blog-post-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-muted);
}
.blog-post-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.9);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.blog-post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-post-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.blog-post-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: var(--transition);
}
.blog-post-card:hover .blog-post-title {
  color: var(--accent-bright);
}
.blog-post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-post-read-more {
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.blog-post-card:hover .blog-post-read-more {
  gap: 10px;
  color: var(--accent-cyan);
}

/* Сайдбар блога */
.blog-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}
.sidebar-title i {
  color: var(--accent-bright);
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  margin-bottom: 8px;
}
.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}
.sidebar-list a:hover,
.sidebar-list a.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-bright);
}
.sidebar-list a.active {
  font-weight: 600;
  border-left: 3px solid var(--accent-primary);
}
.sidebar-list i.bi-chevron-right {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Одиночная статья */
.single-article-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.single-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.badge-custom-sm {
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  text-decoration: none;
  transition: var(--transition);
}
.badge-custom-sm:hover {
  background: var(--accent-primary);
  color: white;
}
.single-article-content {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}
.single-article-content h2,
.single-article-content h3,
.single-article-content h4 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.single-article-content p {
  margin-bottom: 1.5rem;
}
.single-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.single-article-content ul,
.single-article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.single-article-content li {
  margin-bottom: 0.5rem;
}
.single-article-content a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-article-content a:hover {
  color: var(--accent-cyan);
}

/* Адаптивность блога */
@media (max-width: 991px) {
  .blog-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

/* ===== СТРАНИЦА FAQ ===== */
.faq-category-block {
  margin-bottom: 3rem;
}
.faq-category-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
}
.faq-category-title i {
  color: var(--accent-bright);
}

/* Аккордеон FAQ */
.faq-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-accordion-item:hover {
  border-color: var(--border-accent);
}
.faq-accordion-button {
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-accordion-button:hover {
  background: var(--bg-card-hover);
}
.faq-accordion-button:not(.collapsed) {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-bright);
  box-shadow: none;
}
.faq-accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2360a5fa'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}
.faq-accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  transition: transform 0.3s ease;
}
.faq-accordion-button:focus {
  box-shadow: none;
  border-color: var(--border-accent);
}
.faq-question-text {
  flex-grow: 1;
  padding-right: 1rem;
}
.faq-accordion-body {
  padding: 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}
.faq-answer-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.faq-answer-content p {
  margin-bottom: 1rem;
}
.faq-answer-content p:last-child {
  margin-bottom: 0;
}
.faq-answer-content ul,
.faq-answer-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.faq-answer-content li {
  margin-bottom: 0.5rem;
}
.faq-answer-content strong {
  color: var(--text-primary);
  font-weight: 600;
}
.faq-answer-content a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer-content a:hover {
  color: var(--accent-cyan);
}
.faq-answer-content code {
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-bright);
}
.faq-answer-content pre {
  background: var(--bg-section-alt);
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1rem 0;
}
.faq-answer-content pre code {
  background: none;
  padding: 0;
}

/* Карточка контактов в сайдбаре FAQ */
.faq-contact-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-accent);
}

/* Адаптивность FAQ */
@media (max-width: 767px) {
  .faq-accordion-button {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  .faq-accordion-body {
    padding: 1.25rem;
  }
  .faq-category-title {
    font-size: 1.3rem;
  }
}

/* ===== ПАГИНАЦИЯ БЛОГА ===== */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pagination-custom {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination-custom .page-item {
  margin: 0;
}
.pagination-custom .page-item:first-child .page-link {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}
.pagination-custom .page-item:last-child .page-link {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  border-right: 1px solid var(--border-color);
}
.pagination-custom .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-right: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.pagination-custom .page-link:hover {
  background: var(--bg-card-hover);
  color: var(--accent-bright);
  z-index: 1;
}
.pagination-custom .page-item.active .page-link {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}
.pagination-custom .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}
.pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Адаптивность пагинации */
@media (max-width: 767px) {
  .pagination-custom .page-link {
    min-width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
}

/* ===== ТЕГИ БЛОГА ===== */
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.blog-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.blog-tag-badge:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud-item {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-section-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.tag-cloud-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-bright);
}

/* ===== КАТАЛОГ И ТОВАРЫ ===== */
/* Карточка товара (основное определение) */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}
.product-card-image-wrap {
  display: block;
}
.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-section-alt);
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: var(--transition);
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}
.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-muted);
}
.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: var(--transition);
}
.product-card:hover .product-card-title {
  color: var(--accent-bright);
}
/* Объединённое определение (было в двух местах) */
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  margin-bottom: 0.75rem;
}
/* Объединённые определения цен */
.price-old {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
 
}
.price-current {
  font-family: 'Montserrat', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-bright);
}
.product-card-stock {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.product-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}
.product-card-read-more:hover {
  color: var(--accent-cyan);
  gap: 10px;
}

/* Галерея товара */
.product-gallery-main {
  position: relative;
  background: var(--bg-section-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
}
.product-gallery-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 2rem;
  transition: var(--transition);
}
.product-gallery-main:hover img {
  transform: scale(1.02);
}
.zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.product-gallery-main:hover .zoom-hint {
  opacity: 1;
}
.product-gallery-placeholder {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.product-gallery-placeholder i {
  font-size: 64px;
  margin-bottom: 1rem;
  display: block;
}
.product-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--bg-section-alt);
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.thumb-item:hover,
.thumb-item.active {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

/* Информация о товаре — объединённое определение .product-title */
.product-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}
.product-price-block .price-current {
  font-size: 2.5rem;
}
.product-full-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}
.product-full-description h2,
.product-full-description h3 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.product-full-description img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* Адаптив каталога */
@media (max-width: 767px) {
  .product-title {
    font-size: 1.5rem;
  }
  .product-price-block .price-current {
    font-size: 2rem;
  }
  .product-gallery-main img {
    padding: 1rem;
  }
}

/* ===== HERO КАТАЛОГА ТОВАРОВ ===== */
.products-hero {
  position: relative;
  padding: 100px 0 80px;
  background: var(--gradient-hero);
  overflow: hidden;
}
.products-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}
.products-hero .hero-highlight {
  color: var(--text-primary);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 16px;
}
.products-hero .hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: rgba(59, 130, 246, 0.05);
  border-left: 4px solid var(--accent-bright);
  border-radius: 0 12px 12px 0;
}
.products-hero .hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}
.products-hero .hero-feature-item i {
  color: var(--accent-bright);
  font-size: 1.2rem;
}
.products-hero .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.products-content {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Адаптив Hero каталога */
@media (max-width: 991px) {
  .products-hero {
    padding: 80px 0 60px;
  }
}
@media (max-width: 767px) {
  .products-hero {
    padding: 60px 0 40px;
  }
  .products-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ===== ГДЕ КУПИТЬ (МАРКЕТПЛЕЙСЫ) ===== */
.marketplaces-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.marketplaces-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.marketplaces-title i {
  color: var(--accent-bright);
}
.marketplaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.marketplace-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-section-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.marketplace-card::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
}
.marketplace-card:nth-child(1)::before { background: #005bff; box-shadow: 0 0 8px #005bff; }
.marketplace-card:nth-child(2)::before { background: #cb11ab; box-shadow: 0 0 8px #cb11ab; }
.marketplace-card:nth-child(3)::before { background: #e4322b; box-shadow: 0 0 8px #e4322b; }
.marketplace-card:nth-child(4)::before { background: #97c33c; box-shadow: 0 0 8px #97c33c; }
.marketplace-card:nth-child(5)::before { background: #ffcc00; box-shadow: 0 0 8px #ffcc00; }
.marketplace-name {
  flex-grow: 1;
}
.marketplace-arrow {
  color: var(--text-muted);
  transition: var(--transition);
}
.marketplace-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: var(--accent-bright);
}
.marketplace-card:hover .marketplace-arrow {
  color: var(--accent-bright);
  transform: translate(2px, -2px);
}
.marketplaces-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Адаптив маркетплейсов */
@media (max-width: 767px) {
  .marketplaces-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== ИКОНКА BYN И ЦЕНЫ ===== */
/* Пути к шрифтам: ../fonts/nbrb.woff2, ../fonts/nbrb.ttf, ../fonts/nbrb.woff */
@font-face {
  font-family: "nbrb";
  src: url("../fonts/nbrb.woff2") format("woff2"),
       url("../fonts/nbrb.ttf") format("truetype"),
       url("../fonts/nbrb.woff") format("woff");
  unicode-range: U+E901, U+42, U+59, U+4E;
}
/* Объединённое определение .nbrb-icon */
.nbrb-icon {
  font-family: "nbrb" !important;
  /*speak: none;*/
  font-style: normal;
  font-weight: 700;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  font-size: 0.55em;
  color: var(--text-muted);
  margin-left: 4px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: normal;
  -webkit-font-feature-settings: "liga";
  -moz-font-feature-settings: "liga=1";
  -moz-font-feature-settings: "liga";
  -ms-font-feature-settings: "liga" 1;
  font-feature-settings: "liga";
  -webkit-font-variant-ligatures: discretionary-ligatures;
  font-variant-ligatures: discretionary-ligatures;
}
.nbrb-icon-byn:before {
  content: "\e901";
}
.price-old-line {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.price-old .nbrb-icon {
  font-size: 1.5rem;
}
.price-rub-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 8px;
  text-decoration: line-through;
}
.price-current-line {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.price-current .nbrb-icon {
  font-size: 3.2rem;
  color: var(--accent-bright);
}
.product-card-price .price-current .nbrb-icon {
  font-size: 1.8rem;
}
/* Объединённое определение .price-rub */
.price-rub {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ===== ЛОГОТИПЫ МАРКЕТПЛЕЙСОВ ===== */
.marketplace-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.marketplace-card:hover .marketplace-logo {
  filter: none;
  transform: scale(1.05);
}

/* ===== PRODUCT HERO (ЛЕНДИНГ ТОВАРА) ===== */
.product-hero {
  position: relative;
  padding: 70px 0;
  background: var(--gradient-hero);
  overflow: hidden;
}
.product-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.meta-link {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.meta-link:hover {
  color: var(--accent-cyan);
}
.meta-sku code {
  background: var(--bg-section-alt);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 3px 10px;
  color: var(--text-secondary);
}
.product-hero-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.product-hero-price .price-current {
  font-size: 2.75rem;
}
.product-hero-price .price-old {
  font-size: 1.15rem;
}
.price-rub-small {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.product-hero-stock {
  margin-bottom: 1.25rem;
}
.stock-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
}
.stock-in {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-green);
}
.stock-order {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-warning);
}
.stock-out {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.product-hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.bcs-primary { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); color: var(--accent-bright); }
.bcs-success { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: var(--accent-green); }
.bcs-warning { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: var(--accent-warning); }
.bcs-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: var(--accent-danger); }
.bcs-secondary, .bcs-default { background: rgba(148, 163, 184, 0.15); border-color: rgba(148, 163, 184, 0.4); color: var(--text-secondary); }

/* Галерея в hero */
.product-hero .product-gallery-main {
  aspect-ratio: 4/3;
}
.product-hero .product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
}

/* ===== ПОЛОСА ПРЕИМУЩЕСТВ ===== */
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 3rem;
}
.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.benefit-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.benefit-item i {
  font-size: 1.6rem;
  color: var(--accent-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.benefit-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.benefit-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== БЫСТРЫЕ ФАКТЫ ===== */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.quick-fact {
  background: var(--bg-card);
  padding: 16px 20px;
}
.quick-fact span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.quick-fact strong,
.quick-fact code {
  color: var(--text-primary);
  font-size: 1rem;
}

/* ===== ОПИСАНИЕ И ЗАГОЛОВКИ БЛОКОВ ===== */
.product-desc-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
}
.block-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.block-title i {
  color: var(--accent-bright);
}

/* ===== ПОХОЖИЕ ТОВАРЫ ===== */
.related-section {
  margin-bottom: 3rem;
}
/* .product-card-title a — см. секцию КАТАЛОГ: ЧИСТЫЕ КЛАССЫ */

/* ===== CTA-БАННЕР ===== */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.cta-banner h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cta-banner p {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== АДАПТИВ PRODUCT HERO ===== */
@media (max-width: 991px) {
  .product-hero { padding: 40px 0; }
  .benefits-strip { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .product-hero-price .price-current { font-size: 2.2rem; }
  .cta-banner { padding: 1.5rem; }
  .product-desc-block { padding: 1.5rem; }
}

/* ===== КАТАЛОГ: ЧИСТЫЕ КЛАССЫ (без inline-стилей) ===== */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.catalog-count {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.catalog-count strong {
  color: var(--text-primary);
}
.catalog-pages {
  font-size: 0.9em;
}
.btn-sort {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-sort:hover {
  border-color: var(--border-accent);
  color: var(--accent-bright);
}

/* Сплошные бейджи в каталоге */
.badge-solid {
  display: inline-block;
  padding: 6px 14px;
  color: white;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.bgc-primary { background: rgba(59, 130, 246, 0.95); }
.bgc-success { background: rgba(16, 185, 129, 0.95); }
.bgc-warning { background: rgba(245, 158, 11, 0.95); }
.bgc-danger { background: rgba(239, 68, 68, 0.95); }
.bgc-secondary, .bgc-default { background: rgba(100, 116, 139, 0.95); }

/* Карточка: ссылки и дополнения */
.product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
.product-card:hover .product-card-title a {
  color: var(--accent-bright);
}
.product-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Градиентная подсветка фото при hover */
.product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.product-card:hover .product-card-image::after {
  opacity: 1;
}

/* Цвета наличия */
.stock-in-text { color: var(--accent-green); }
.stock-order-text { color: var(--accent-warning); }
.stock-out-text { color: var(--text-muted); }

/* Сайдбар каталога */
.sidebar-accent {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  border-color: var(--border-accent);
  margin-top: 24px;
}
.sidebar-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-benefits li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.sidebar-benefits li:last-child {
  margin-bottom: 0;
}
.sidebar-benefits i {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ===== ЛОГОТИП МАРКЕТПЛЕЙСА — ТОЛЬКО ПРИ НАВЕДЕНИИ ===== */
.marketplace-label {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 28px;
}

.marketplace-label .marketplace-name {
    transition: var(--transition);
}

.marketplace-label .marketplace-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateY(8px);
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

/* При наведении: название уходит, логотип выезжает */
.marketplace-card.has-logo:hover .marketplace-name {
    opacity: 0;
}

.marketplace-card.has-logo:hover .marketplace-logo {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
}

/* ===== ЛЕНДИНГ ZRF ===== */
.zrf-hero {
    position: relative;
    padding: 100px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.zrf-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.zrf-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
}

.zrf-hero-subtitle strong {
    color: var(--text-primary);
}

.zrf-hero-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.zrf-hero-price .price-current {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.zrf-hero-price .price-old {
    font-size: 1.3rem;
}

.zrf-hero-stock {
    margin-bottom: 2rem;
}

.zrf-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== СОВМЕСТИМОСТЬ ===== */
.zrf-compat, .zrf-features {
    margin-bottom: 5rem;
}

.compat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.compat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
}

.compat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.compat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--accent-bright);
    transition: var(--transition);
}

.compat-card:hover .compat-icon {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.compat-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.compat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== ХАРАКТЕРИСТИКИ ===== */
.zrf-specs {
    margin-bottom: 5rem;
}

.specs-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.specs-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.specs-row:last-child {
    border-bottom: none;
}

.specs-row:hover {
    background: var(--bg-card-hover);
}

.specs-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.specs-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== ГАЛЕРЕЯ ===== */
.zrf-gallery {
    margin-bottom: 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-section-alt);
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 28px;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== ГДЕ КУПИТЬ (расширенная сетка) ===== */
.zrf-buy {
    margin-bottom: 4rem;
}

.zrf-marketplaces {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.zrf-mp-card {
    justify-content: center;
    padding: 20px;
    font-size: 1.05rem;
}

.zrf-mp-card .marketplace-logo {
    height: 32px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 991px) {
    .zrf-hero {
        padding: 80px 0 50px;
    }
    .compat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .specs-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .zrf-hero-title {
        font-size: 2.2rem;
    }
    .zrf-hero-price .price-current {
        font-size: 2.5rem;
    }
    .compat-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .zrf-marketplaces {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== ZRF HERO IMAGE (вместо мокапа) ===== */
.zrf-hero-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(59, 130, 246, 0.2);
    transition: var(--transition);
}

.zrf-hero-image-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 40px 80px -15px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(59, 130, 246, 0.5),
        var(--shadow-glow);
}

.zrf-hero-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.zrf-hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    transition: var(--transition);
}

.zrf-hero-image-wrap:hover .zrf-hero-image {
    transform: scale(1.03);
}

.zrf-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: glowFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.zrf-hero-image-link img {
    position: relative;
    z-index: 1;
}

.zrf-hero-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zrf-hero-image-link:hover .zrf-hero-zoom-hint {
    opacity: 1;
}

@media (max-width: 991px) {
    .zrf-hero-image-wrap {
        aspect-ratio: 1;
    }
}
/* ===== PDF: КНОПКА В HERO ===== */
.zrf-btn-pdf i {
    color: #f87171;
}

.zrf-btn-pdf:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

/* ===== PDF: КАРТОЧКА ДОКУМЕНТАЦИИ ===== */
.zrf-docs {
    margin-bottom: 4rem;
}

.zrf-docs-card {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-card) 55%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Красная градиентная полоса слева */
.zrf-docs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ef4444, #f97316);
}

.zrf-docs-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.15);
}

.zrf-docs-icon {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #f87171;
    transition: var(--transition);
}

.zrf-docs-card:hover .zrf-docs-icon {
    transform: scale(1.08) rotate(-3deg);
    background: rgba(239, 68, 68, 0.25);
}

.zrf-docs-info {
    flex-grow: 1;
}

.zrf-docs-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.zrf-docs-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.zrf-docs-meta {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.zrf-docs-btn {
    flex-shrink: 0;
}

/* Адаптив */
@media (max-width: 767px) {
    .zrf-docs-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }
    .zrf-docs-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PDF-ССЫЛКА В HERO (третичный CTA) ===== */
.zrf-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    width: fit-content;
}

.zrf-pdf-link i {
    color: #f87171;
    font-size: 1.25rem;
    transition: var(--transition);
}

.zrf-pdf-link .zrf-pdf-meta {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.zrf-pdf-link:hover {
    color: var(--text-primary);
    border-bottom-color: rgba(248, 113, 113, 0.6);
}

.zrf-pdf-link:hover i {
    transform: translateY(2px);
}

/* ===== LIGHTBOX ГАЛЕРЕИ ZRF ===== */
.gallery-item {
    cursor: zoom-in;
}

.lightbox-content {
    background: rgba(10, 14, 39, 0.97);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.lightbox-img {
    max-height: 85vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-section-alt);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.lightbox-close { top: 14px; right: 14px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.lightbox-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Montserrat', monospace;
}

@media (max-width: 767px) {
    .lightbox-content { padding: 0.75rem; }
    .lightbox-close, .lightbox-nav { width: 38px; height: 38px; }
}

.zrf-hero-image-link {
    cursor: pointer;
}

/* ===== СТРАНИЦА 404 ===== */
.error-hero {
    position: relative;
    padding: 100px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.error-code {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(6rem, 15vw, 11rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.error-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.error-links-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.error-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.error-links a:hover {
    color: var(--accent-bright);
}

/* Красная точка в бейдже */
.hero-badge .dot-danger {
    background: var(--accent-danger);
}

/* ===== УСТРОЙСТВО ОФФЛАЙН ===== */
.error-device {
    position: relative;
    width: 260px;
    margin: 0 auto;
}

.error-device-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
    filter: blur(70px);
    z-index: -1;
    animation: glowFloat 6s ease-in-out infinite;
}

.error-device-body {
    width: 100%;
    height: 340px;
    background: linear-gradient(145deg, #1E293B 0%, #0F172A 50%, #020617 100%);
    border-radius: 24px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 36px;
}

.error-device-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EF4444, #F97316);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.error-device-led {
    width: 16px;
    height: 16px;
    background: var(--accent-danger);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-danger), 0 0 40px var(--accent-danger);
    animation: ledBlink 1s steps(2, start) infinite;
    margin-bottom: 28px;
}

@keyframes ledBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

.error-device-chip {
    width: 110px;
    height: 110px;
    background: linear-gradient(145deg, #000 0%, #0a0a0a 100%);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: var(--accent-danger);
}

.error-device-brand {
    margin-top: auto;
    margin-bottom: 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 4px;
}

.error-device-specs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.spec-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Адаптив */
@media (max-width: 991px) {
    .error-hero {
        padding: 60px 0 50px;
    }
    .error-device {
        margin-top: 20px;
    }
}

/* ===== ГАЛЕРЕЯ ZRF НА ГЛАВНОЙ ===== */
.home-gallery {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.home-gallery-frame {
    position: relative;
    aspect-ratio: 1/1;
}

.home-gallery-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

.home-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    /* Мягкие края: фото растворяется в фоне страницы */
    -webkit-mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
}

.home-gallery-img.active {
    opacity: 1;
    transform: scale(1);
}

.home-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.home-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.home-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.home-gallery-dot.active {
    background: var(--accent-bright);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .home-gallery {
        margin-top: 40px;
    }
}

/* ===== СТАТИЧНЫЕ СТРАНИЦЫ (Конфиденциальность, Соглашение, Доставка) ===== */
.static-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.7;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.static-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.static-note i {
    color: var(--accent-bright);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}


a:hover .footer-social-svg {
    transform: scale(1.1);
}

.btn-subtext .nbrb-icon {
  font-size: 1.3em;
}



@media (max-width: 991px) {
    .hero-section,
    .zrf-hero,
    .products-hero,
    .firmware-hero,
    .product-hero,
    .error-hero {
        padding-top: 96px;    
        padding-bottom: 48px;
    }

    .hero-section {
      padding-top: 50px; 
        padding-bottom: 18px;
    }
}
/* ===== НАВИГАЦИЯ В ЗУМЕ ФОТО ===== */
.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.zoom-nav:hover {
    background: var(--accent-primary);
}

.zoom-prev { left: 12px; }
.zoom-next { right: 12px; }

.zoom-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    background: rgba(10, 14, 39, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 4px 14px;
}
/* ===== КОД И РЕДАКТОРСКАЯ ТИПОГРАФИКА (tinyMCE) ===== */

/* Инлайн-код: `команда` */
.single-article-content code,
.product-full-description code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
    font-size: 0.875em;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--accent-bright);
    padding: 2px 7px;
    border-radius: 6px;
    word-break: break-word;
}

/* Блоки кода: <pre><code>...</code></pre> */
.single-article-content pre,
.product-full-description pre {
    background: #0B1020;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;          /* длинный код скроллится ВНУТРИ блока, верстку не рвёт */
    font-size: 0.9rem;
    line-height: 1.65;
}

.single-article-content pre code,
.product-full-description pre code {
    background: none;
    border: none;
    padding: 0;
    color: #E6EDF3;
    font-size: inherit;
    display: block;
    word-break: normal;
}

/* Таблицы из редактора */
.single-article-content table,
.product-full-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;          /* широкие таблицы не ломают мобильную верстку */
}

.single-article-content th,
.single-article-content td,
.product-full-description th,
.product-full-description td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}

.single-article-content th,
.product-full-description th {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    font-weight: 600;
}

/* Цитаты */
.single-article-content blockquote,
.product-full-description blockquote {
    border-left: 4px solid var(--accent-primary);
    background: rgba(59, 130, 246, 0.06);
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== КНОПКА «СКОПИРОВАТЬ» НА БЛОКАХ КОДА ===== */
.single-article-content pre,
.product-full-description pre {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
}

.copy-btn.copied {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

/* ===== HOME-GALLERY: ПЛАВНЫЙ СВАЙП ===== */
.home-gallery-frame {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;   /* вертикальный скролл не трогаем, горизонталь — наша */
}

.home-gallery-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.home-gallery-img.active {
    opacity: 1;
    transform: none;
}

/* Точки: активная растягивается в «пилюлю» — плавно */
.home-gallery-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.home-gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.home-gallery-dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--accent-bright);
}
/* ===== STAT-КАРТОЧКИ: флюидный кегль, влезает на любом экране ===== */
.stat-card-value {
    font-size: clamp(1.45rem, 4vw + 0.7rem, 3rem);
    line-height: 1.1;
    white-space: nowrap;
}

.stat-card {
    padding: clamp(0.9rem, 3vw, 1.75rem) clamp(0.6rem, 2vw, 1.25rem);
}

.stat-card-label {
    font-size: clamp(0.72rem, 2vw, 0.95rem);
}
