/* ============================================================
   css/product.css — единый современный стиль страниц товаров
   Используется обычными страницами программ (TU, GTT, SoundLine,
   Center Concentration, Услуги). Особые презентации (UMR, GameNitro)
   дополнительно подключают presentation.css.
   ============================================================ */

.product-root { color: var(--text); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  color: rgba(234, 230, 247, 0.6);
  margin-bottom: 18px; font-size: 0.92rem;
}
.breadcrumbs a { color: rgba(234, 230, 247, 0.75); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--btn); }
.breadcrumbs .sep { opacity: 0.45; }

/* ---------- Hero товара ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px;
  border-radius: 20px;
}
.product-media-col { position: sticky; top: calc(var(--nav-height) + 24px); }
.product-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(142,83,225,0.12), rgba(0,0,0,0.2));
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px;
  display: flex; align-items: center; justify-content: center;
}
.product-media img,
.product-media svg { width: 100%; height: auto; max-width: 260px; border-radius: 14px; display: block; }

.product-info .title {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 0 0 8px;
  line-height: 1.15;
}
.product-info .lead {
  margin: 0 0 16px;
  color: rgba(234, 230, 247, 0.85);
  font-size: 1.05rem; line-height: 1.55;
}

/* Мета-пилюли */
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem; color: rgba(234, 230, 247, 0.85);
}
.meta-pill svg { width: 15px; height: 15px; opacity: 0.8; }
.meta-pill strong { color: #fff; font-weight: 700; }
.meta-pill.accent {
  background: linear-gradient(135deg, rgba(142,83,225,0.22), rgba(164,102,255,0.12));
  border-color: rgba(164, 102, 255, 0.35);
}
.meta-pill.free { color: #b9f6ca; border-color: rgba(61, 220, 132, 0.3); }

/* CTA */
.product-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.product-cta .btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.product-cta .btn svg { width: 18px; height: 18px; }
.product-cta .btn.primary {
  background: linear-gradient(90deg, var(--btn), #8e5dff);
  color: #fff; box-shadow: 0 10px 28px rgba(164, 102, 255, 0.28);
}
.product-cta .btn.primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(164, 102, 255, 0.4); }
.product-cta .btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.product-cta .btn.secondary:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.product-cta .btn.ghost {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(234,230,247,0.8);
}
.product-cta .btn.ghost:hover { color: #fff; border-color: rgba(164,102,255,0.4); }

/* RuStore кнопка */
.btn.rustore {
  background: linear-gradient(90deg, #0a84ff, #2b6fff);
  color: #fff; box-shadow: 0 10px 28px rgba(43, 111, 255, 0.3);
}
.btn.rustore:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(43, 111, 255, 0.42); }

/* ---------- Разделитель ---------- */
.product-info hr,
.soft-divider { margin: 20px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }

/* ---------- Описание ---------- */
.product-description h3 {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 1.2rem; margin: 22px 0 10px;
  display: flex; align-items: center; gap: 9px;
}
.product-description h3:first-child { margin-top: 0; }
.product-description h3::before {
  content: ''; width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--btn), var(--accent));
}
.product-description h4 {
  font-size: 1rem; margin: 18px 0 8px; color: #fff;
}
.product-description p { color: rgba(234, 230, 247, 0.85); line-height: 1.6; margin: 0 0 10px; }
.product-description a { color: var(--btn); }

/* Список особенностей с галочками */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(234, 230, 247, 0.88); line-height: 1.45;
}
.feature-list li::before {
  content: ''; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a466ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.feature-list.warn li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd166' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E");
}

/* Чейнджлог */
.changelog { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; counter-reset: ch; }
.changelog li {
  position: relative; padding: 9px 12px 9px 42px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.025);
  color: rgba(234, 230, 247, 0.82); line-height: 1.45;
}
.changelog li::before {
  counter-increment: ch; content: counter(ch);
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  background: linear-gradient(135deg, rgba(142,83,225,0.35), rgba(164,102,255,0.2));
  color: #fff;
}

/* Callout / уведомление (напр. "разработка остановлена") */
.info-callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px; margin: 18px 0 0;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.25);
}
.info-callout.stopped { background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.25); }
.info-callout svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; }
.info-callout p { margin: 0; color: rgba(234, 230, 247, 0.9); line-height: 1.5; }
.info-callout a { color: var(--btn); font-weight: 600; }

/* ---------- Таблица требований (Android) ---------- */
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 6px; }
.req-card {
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.req-card .req-label { font-size: 0.78rem; color: rgba(234, 230, 247, 0.55); text-transform: uppercase; letter-spacing: .06em; }
.req-card .req-value { font-size: 1.05rem; font-weight: 700; color: #fff; margin-top: 4px; }

/* ---------- Галерея ---------- */
.product-gallery { margin-top: 24px; }
.product-gallery > h3 {
  font-family: 'Wix Madefor Display', sans-serif; font-size: 1.3rem; margin: 0 0 6px;
  display: flex; align-items: center; gap: 10px;
}
.product-gallery > h3::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(164,102,255,0.4), transparent);
}
.product-gallery > h4 { margin: 18px 0 10px; color: rgba(234,230,247,0.8); font-weight: 600; }
.gallery-hint { font-size: 0.85rem; color: rgba(234, 230, 247, 0.5); margin: 0 0 14px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item {
  border-radius: 12px; overflow: hidden; cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0f0b12;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.5); border-color: rgba(164,102,255,0.4); }
.gallery-item img { width: 100%; height: 168px; object-fit: cover; display: block; }

/* Лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 4, 10, 0.9); backdrop-filter: blur(8px);
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.1); color: #fff;
  font-size: 22px; cursor: pointer; transition: background .2s, transform .2s;
}
.lightbox-close:hover { background: rgba(164, 102, 255, 0.4); transform: rotate(90deg); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 860px) {
  .product-hero { grid-template-columns: 1fr; gap: 20px; }
  .product-media-col { position: static; }
  .product-media { padding: 18px; }
  .product-media img, .product-media svg { max-width: 200px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .product-hero { padding: 18px; }
  .product-cta .btn { flex: 1 1 100%; justify-content: center; }
}
