/* pres-showcase.css — витринные блоки лендингов презентаций.
 *
 * Обложки-примеры (.example-card / .ex-*), бесконечная карусель
 * (.examples-marquee) и мини-слайды (.mini-slides / .ms-*), из которых
 * собираются иллюстрации внутри секций.
 *
 * Общее для /presentations и /prezentaciya-po-tekstu. Стили самой формы —
 * в pres-form.css.
 */

/* ───── Mini-slide compositions (used in designs + examples) ───── */
.mini-slides {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 4px;
}
.mini-slides .ms {
  border-radius: 4px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.mini-slides .ms.main { grid-column: 1 / -1; align-items: center; justify-content: center; text-align: center; }
.ms-h { font-size: 7px; font-weight: 700; line-height: 1.15; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms.main .ms-h { font-size: 9.5px; margin-bottom: 3px; }
.ms-bar { height: 2px; width: 32%; border-radius: 1px; margin-bottom: 4px; }
.ms.main .ms-bar { width: 42%; margin-left: auto; margin-right: auto; }
.ms-lines { display: flex; flex-direction: column; gap: 2px; }
.ms-lines span { height: 2px; border-radius: 1px; display: block; }
.ms.main .ms-lines { align-items: center; }
.ms-chart { display: flex; align-items: flex-end; gap: 2px; margin-top: auto; padding-top: 3px; }
.ms-chart span { width: 5px; border-radius: 1px 1px 0 0; display: block; }
.ms-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: auto; padding-top: 3px; }
.ms-table span { height: 3px; border-radius: 1px; display: block; }

/* ───────── Example cards: designer cover slides ───────── */
.example-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,.04), 0 20px 40px -24px rgba(15,23,42,.12);
  border: 1px solid rgba(15,23,42,.06);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  cursor: pointer;
}
.example-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 8px 20px rgba(15,23,42,.08), 0 30px 60px -20px rgba(15,23,42,.22);
}
.ex-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
.ex-cover::before,
.ex-cover::after { content: ""; position: absolute; pointer-events: none; }
.ex-topbar {
  position: absolute; left: 20px; right: 20px; top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 3;
}
.ex-dot {
  display: inline-flex; align-items: center; gap: 6px;
}
.ex-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.ex-title {
  position: relative;
  z-index: 3;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-size: 1.375rem;
  margin: 0 0 4px;
}
.ex-sub {
  position: relative;
  z-index: 3;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
  opacity: .85;
  margin: 4px 0 0;
}
.ex-accent {
  position: relative;
  z-index: 3;
  width: 42px; height: 3px; border-radius: 2px; margin: 10px 0 8px;
}
.ex-meta {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .75;
  margin-top: 12px;
}
.ex-meta > span + span::before {
  content: "•"; margin-right: 8px; opacity: .6;
}
.ex-style-label {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
}

/* ── Cover 1: Red Sport ── */
.ex-sport {
  background: radial-gradient(130% 90% at 15% 20%, #ef4444 0%, #b91c1c 55%, #7f1d1d 100%);
  color: #ffffff;
}
.ex-sport::before {
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 22px, rgba(255,255,255,.06) 22px 24px);
}
.ex-sport::after {
  right: -40px; bottom: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 16px solid rgba(255,255,255,.12);
}
.ex-sport .ex-accent { background: #fbbf24; }

/* ── Cover 2: Corporate Blue ── */
.ex-corp {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #e0e7ff;
}
.ex-corp::before {
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(191,219,254,.22) 0%, rgba(191,219,254,0) 70%),
    linear-gradient(transparent 50%, rgba(255,255,255,.04) 50%),
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,.04) 50%);
  background-size: 100% 100%, 100% 16px, 16px 100%;
}
.ex-corp .ex-title { color: #ffffff; }
.ex-corp .ex-accent { background: #60a5fa; }

/* ── Cover 3: Sky Cyan ── */
.ex-sky {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0c4a6e;
}
.ex-sky::before {
  left: -30%; top: -40%;
  width: 70%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(14,165,233,.18) 0%, rgba(14,165,233,0) 65%);
}
.ex-sky::after {
  right: 12%; bottom: 18%; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 6px 16px rgba(14,165,233,.35);
}
.ex-sky .ex-title { color: #0c4a6e; }
.ex-sky .ex-sub { color: #0369a1; }
.ex-sky .ex-accent { background: #0ea5e9; }

/* ── Cover 4: Coffee Serif ── */
.ex-coffee {
  background: radial-gradient(120% 90% at 30% 20%, #92400e 0%, #451a03 100%);
  color: #fde68a;
  font-family: 'PT Serif', 'Georgia', serif;
}
.ex-coffee::before {
  right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(253,230,138,.18) 0%, rgba(253,230,138,0) 60%);
}
.ex-coffee::after {
  left: 16px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(253,230,138,.35);
  background: radial-gradient(circle at center, rgba(253,230,138,.08) 0%, transparent 60%);
}
.ex-coffee .ex-title { font-family: 'PT Serif', 'Georgia', serif; font-weight: 700; color: #fef3c7; font-style: italic; letter-spacing: 0; }
.ex-coffee .ex-sub { font-family: 'PT Serif', 'Georgia', serif; color: #fcd34d; font-style: italic; }
.ex-coffee .ex-accent { background: #fbbf24; width: 28px; }

/* ── Cover 5: Navy Education ── */
.ex-navy {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
}
.ex-navy::before {
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(59,130,246,.22) 0%, rgba(59,130,246,0) 40%),
    radial-gradient(circle at 80% 20%, rgba(168,85,247,.18) 0%, rgba(168,85,247,0) 45%);
}
.ex-navy::after {
  right: 18px; top: 50%; transform: translateY(-50%);
  width: 68px; height: 68px;
  background: conic-gradient(from 180deg, #3b82f6, #8b5cf6, #3b82f6);
  border-radius: 50%;
  filter: blur(.5px);
  opacity: .75;
}
.ex-navy .ex-title { color: #f8fafc; }
.ex-navy .ex-accent { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }

/* ── Cover 6: AI Purple Glow ── */
.ex-ai {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
  color: #ede9fe;
}
.ex-ai::before {
  right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(236,72,153,.45) 0%, rgba(236,72,153,0) 60%);
}
.ex-ai::after {
  left: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(56,189,248,.4) 0%, rgba(56,189,248,0) 60%);
}
.ex-ai .ex-title { color: #ffffff; }
.ex-ai .ex-accent { background: linear-gradient(90deg, #ec4899, #8b5cf6); }

/* ── Cover 7: Mint Eco ── */
.ex-eco {
  background: linear-gradient(165deg, #d1fae5 0%, #6ee7b7 100%);
  color: #064e3b;
}
.ex-eco::before {
  right: -30px; top: -20px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(5,150,105,.28) 0%, rgba(5,150,105,0) 65%);
  border-radius: 50%;
}
.ex-eco::after {
  left: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: #10b981; opacity: .18;
  box-shadow:
    20px -8px 0 0 rgba(16,185,129,.14),
    40px 4px 0 -6px rgba(16,185,129,.22),
    60px -10px 0 -4px rgba(16,185,129,.18);
}
.ex-eco .ex-title { color: #064e3b; }
.ex-eco .ex-sub { color: #047857; }
.ex-eco .ex-accent { background: #059669; }

/* ── Cover 8: Bold Yellow Pop ── */
.ex-pop {
  background: #fde047;
  color: #0a0a0a;
}
.ex-pop::before {
  right: -50px; top: -50px; width: 160px; height: 160px;
  border-radius: 50%;
  background: #0a0a0a;
}
.ex-pop::after {
  left: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
}
.ex-pop .ex-title { color: #0a0a0a; font-weight: 900; font-size: 1.5rem; }
.ex-pop .ex-sub { color: #1f2937; }
.ex-pop .ex-accent { background: #0a0a0a; }

/* Example carousel */
/* Marquee carousel: infinite horizontal auto-scroll */
.examples-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.examples-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: examplesScroll 60s linear infinite;
  will-change: transform;
}
.examples-marquee:hover .examples-track,
.examples-track:focus-within { animation-play-state: paused; }
.examples-track > .example-wrap { flex: 0 0 300px; }
@media (min-width: 768px) {
  .examples-track > .example-wrap { flex: 0 0 340px; }
}
@keyframes examplesScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .examples-track { animation: none; }
  .examples-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 768px) {
  .example-card { border-radius: 14px; }
  .ex-title { font-size: 1.125rem; }
  .ex-pop .ex-title { font-size: 1.25rem; }
  .ex-sub { font-size: 0.7rem; }
  .ex-topbar, .ex-meta { font-size: 9px; }
}
