/* ============================================================
   Technorazum — Products page (products.technorazum.ru)
   Mobile-first | GPU-accelerated animations
   Imports shared theme + main page .feature-card components
   ============================================================ */

/* Shared imports — _shared/style.css provides reset, nav, header,
   footer, .card, .section, .reveal, .btn-* etc.
   main/main.css provides atom-animation, .feature-card variants,
   about-popup, .hero-* utility classes. */
@import url('../_shared/style.css');
@import url('../main/main.css');

/* ---------- Local palette overrides ---------- */
:root {
  --tz-bg: #0a0a0f;
  --tz-bg-soft: #0f0f17;
  --tz-text: #ffffff;
  --tz-muted: #cbd5e1;
  --tz-accent: #8B5CF6;
  --tz-accent-2: #3B82F6;
  --tz-accent-3: #06B6D4;
  --tz-gradient: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #06B6D4 100%);
  --tz-border: rgba(139, 92, 246, 0.18);
  --tz-border-soft: rgba(255, 255, 255, 0.08);
  --tz-radius: 16px;
  --tz-radius-sm: 10px;
  --tz-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --tz-glow-purple: 0 0 28px rgba(139, 92, 246, 0.35);
  --tz-glow-blue: 0 0 28px rgba(59, 130, 246, 0.35);
  --tz-glow-cyan: 0 0 28px rgba(6, 182, 212, 0.35);
}

body {
  background: var(--tz-bg);
  color: var(--tz-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* ============================================================
   HERO (products)
   ============================================================ */
.hero--products {
  min-height: 92vh;
  padding: 8rem 1.5rem 5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ============================================================
   SECTION — base
   ============================================================ */
.section {
  padding: 4rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  max-width: none;
  border-top: 1px solid var(--tz-border-soft);
  border-bottom: 1px solid var(--tz-border-soft);
}

.section--alt > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section__lead {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--tz-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section__lead strong {
  color: var(--tz-text);
  font-weight: 600;
}

/* ============================================================
   CONCEPT LIST (Цифровые сотрудники / Цифровой маркетинг)
   ============================================================ */
.concept-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.concept-item {
  /* .feature-card provides the base — local override of animation for
     list-of-features (stagger-group handles reveal; pause on hover) */
  animation: none;
  min-height: auto;
  padding: 1.5rem;
  will-change: transform;
  transform: translateZ(0); /* GPU */
}

.concept-item:hover {
  transform: translateX(8px) translateZ(0);
}

.concept-item .card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.concept-item .card-text {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tz-border-soft);
  border-radius: 9999px;
  width: fit-content;
  max-width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tz-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-family: inherit;
  will-change: transform;
}

.filter-tab:hover {
  color: var(--tz-text);
  background: rgba(139, 92, 246, 0.08);
}

.filter-tab.active {
  color: #fff;
  background: var(--tz-gradient);
  border-color: transparent;
  box-shadow: var(--tz-glow-purple);
}

.filter-tab:focus-visible {
  outline: 2px solid var(--tz-accent-3);
  outline-offset: 2px;
}

/* ============================================================
   PRODUCT GRID — 11 продуктов
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  will-change: transform;
}

.product-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--tz-border);
  border-radius: var(--tz-radius);
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tz-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), var(--tz-glow-purple);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover::after {
  opacity: 1;
}

.product-card.is-hidden {
  display: none;
}

.product-icon {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.12));
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  transition: transform 0.4s ease;
  will-change: transform;
}

.product-card:hover .product-icon {
  transform: rotate(-8deg) scale(1.05);
}

.product-card h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tz-text);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--tz-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.product-meta .tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--tz-accent-3);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.25s ease, color 0.2s ease;
  position: relative;
  z-index: 1;
}

.product-link:hover {
  color: #67e8f9;
  gap: 0.6rem;
}

/* ============================================================
   DIGITAL MARKETING 2.0 — Detail block
   ============================================================ */
.section--dm20 {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.04), rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.04));
  border-radius: 24px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--tz-border);
  position: relative;
  overflow: hidden;
}

.section--dm20::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.dm20-head {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.dm20-subtitle {
  font-size: 1.25rem;
  color: var(--tz-muted);
}

/* Pain list */
.pain-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.pain-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: none;
  min-height: auto;
  padding: 1.5rem;
  will-change: transform;
  transform: translateZ(0);
}

.pain-item:hover {
  transform: translateX(8px) translateZ(0);
}

.pain-icon {
  font-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pain-item .card-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.pain-item .card-text {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Result banner — ×2,4 */
.result-banner {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 0 0 3rem;
  border-radius: var(--tz-radius);
  position: relative;
  overflow: hidden;
  animation: none;
  min-height: auto;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.4), rgba(59, 130, 246, 0.25));
}

.result-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18), transparent 70%);
  pointer-events: none;
}

.result-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #93c5fd;
  margin: 0 0 1rem;
  font-weight: 500;
  position: relative;
}

.result-number {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #06B6D4, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  position: relative;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.result-text {
  font-size: 1rem;
  color: var(--tz-muted);
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

/* Modules list */
.dm20-modules-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--tz-text);
}

.dm20-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  counter-reset: mod;
}

.dm20-modules li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tz-border-soft);
  border-radius: var(--tz-radius-sm);
  color: var(--tz-text);
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  will-change: transform;
}

.dm20-modules li:hover {
  border-color: var(--tz-accent);
  background: rgba(139, 92, 246, 0.08);
  transform: translateX(4px);
}

.mod-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--tz-gradient);
  border-radius: 8px;
  letter-spacing: 0.02em;
  font-family: 'Space Grotesk', sans-serif;
}

.dm20-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ============================================================
   EXTRAS GRID
   ============================================================ */
.extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.extra-card {
  animation: none;
  min-height: auto;
  padding: 1.75rem;
  will-change: transform;
  transform: translateZ(0);
}

.extra-card:hover {
  transform: translateX(8px) translateZ(0);
}

.extra-emoji {
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.85rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.section--contact {
  text-align: center;
}

.partner-form {
  text-align: left;
  max-width: 560px;
  margin: 2.5rem auto 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tz-border);
  border-radius: var(--tz-radius);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.partner-form .btn-cta {
  width: 100%;
  margin-top: 0.5rem;
}

.form__status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--tz-accent-3);
  text-align: center;
  min-height: 1.4em;
}

.form__status.is-error {
  color: #fca5a5;
}

/* ============================================================
   BREAKPOINTS — mobile-first ascending
   ============================================================ */

/* ≥480px — large phones */
@media (min-width: 480px) {
  .section { padding: 5rem 1.5rem; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .concept-list {
    grid-template-columns: 1fr 1fr;
  }

  .pain-list {
    grid-template-columns: 1fr 1fr;
  }

  .dm20-modules {
    grid-template-columns: 1fr 1fr;
  }
}

/* ≥768px — tablet */
@media (min-width: 768px) {
  .section { padding: 6rem 2rem; }

  .hero--products { padding: 9rem 2rem 6rem; }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .concept-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .concept-list .concept-item:nth-child(5) {
    grid-column: span 2;
  }

  .pain-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .dm20-modules {
    grid-template-columns: repeat(2, 1fr);
  }

  .extras-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-form { padding: 2.5rem; }
}

/* ≥1024px — desktop / PC (3-4 col grid) */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }

  .concept-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .concept-list .concept-item:nth-child(5) {
    grid-column: auto;
  }

  .dm20-modules {
    grid-template-columns: repeat(3, 1fr);
  }

  .extras-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .result-banner {
    padding: 4rem 2rem;
  }
}

/* ≥1280px — wide */
@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .section { padding: 7rem 3rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .product-card:hover,
  .concept-item:hover,
  .extra-card:hover,
  .pain-item:hover,
  .dm20-modules li:hover {
    transform: none;
  }
}
