/* PETUH — визуальная система */
:root {
  --petuh-bg: #0a0b0f;
  --petuh-surface: #12141a;
  --petuh-elevated: #1a1d26;
  --petuh-border: rgba(255, 255, 255, 0.06);
  --petuh-accent: #e53935;
  --petuh-accent-dim: #b71c1c;
  --petuh-gold: #fbd506;
  --rarity-consumer: #b0c3d9;
  --rarity-industrial: #5e98d9;
  --rarity-milspec: #4b69ff;
  --rarity-restricted: #8847ff;
  --rarity-classified: #d32ce6;
  --rarity-covert: #eb4b4b;
  --rarity-knife: #e4ae39;
  --font-display: 'Exo 2', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* Фон: сетка + шум */
body.petuh-site {
  background-color: var(--petuh-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(229, 57, 53, 0.12), transparent),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: center, center, center;
}

body.petuh-site::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Нав */
.petuh-nav {
  background: rgba(10, 11, 15, 0.82);
  border-bottom: 1px solid var(--petuh-border);
  box-shadow: 0 1px 0 rgba(229, 57, 53, 0.06);
}

.petuh-nav__cta {
  background: linear-gradient(180deg, #ef5350 0%, var(--petuh-accent) 45%, var(--petuh-accent-dim) 100%);
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.08);
}

.petuh-nav__cta:hover {
  box-shadow: 0 8px 28px rgba(229, 57, 53, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Eyebrow / бейджи */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petuh-gold);
  margin-bottom: 1rem;
}

.eyebrow.justify-center {
  width: 100%;
  justify-content: center;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--petuh-accent);
  box-shadow: 0 0 12px var(--petuh-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.35);
  color: #ff8a80;
}

.badge-live__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5252;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Hero case preview */
.case-machine {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.case-machine__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(229,57,53,0.25) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.case-machine__shell {
  position: relative;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  box-shadow:
    0 32px 64px -16px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.case-machine__inner {
  background: linear-gradient(180deg, #1e2129 0%, #12141a 100%);
  border-radius: 18px;
  overflow: hidden;
}

.case-machine__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--petuh-border);
  font-size: 0.7rem;
  color: #71717a;
}

.case-machine__viewport {
  position: relative;
  height: 140px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.case-machine__reel {
  display: flex;
  gap: 10px;
  padding: 24px 16px;
  width: max-content;
  animation: reel-scroll 18s linear infinite;
}

@keyframes reel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.skin-chip {
  flex-shrink: 0;
  width: 88px;
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--petuh-border);
  border-bottom: 2px solid var(--chip-rarity, var(--rarity-milspec));
}

.skin-chip__icon {
  width: 48px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
}

.skin-chip__name {
  font-size: 0.6rem;
  font-weight: 600;
  color: #e4e4e7;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-machine__pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--petuh-accent), transparent);
  box-shadow: 0 0 16px var(--petuh-accent);
  z-index: 2;
}

.case-machine__pointer::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--petuh-accent);
}

.case-machine__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--petuh-border);
}

.case-stat {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
  font-size: 0.65rem;
}

.case-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  margin-top: 2px;
}

/* Карточки */
.surface-card {
  background: linear-gradient(165deg, rgba(26,29,38,0.95) 0%, rgba(18,20,26,0.98) 100%);
  border: 1px solid var(--petuh-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.surface-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.stat-block {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-block__value {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Шаги с линией */
.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
  }
  .steps-row::before {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229,57,53,0.4), transparent);
    z-index: 0;
  }
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 1.75rem;
}

.step-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--petuh-accent);
  margin-bottom: 1rem;
}

/* Лента выигрышей */
.wins-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--petuh-accent) transparent;
}

.wins-track::-webkit-scrollbar { height: 4px; }
.wins-track::-webkit-scrollbar-thumb { background: var(--petuh-accent); border-radius: 4px; }

.win-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  padding: 1.25rem;
}

.win-card__rarity {
  height: 3px;
  border-radius: 3px;
  margin-bottom: 1rem;
  background: var(--win-rarity, var(--rarity-classified));
  box-shadow: 0 0 12px var(--win-rarity, var(--rarity-classified));
}

.win-card__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.win-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--petuh-elevated);
  border: 1px solid var(--petuh-border);
  color: #a1a1aa;
}

.win-card__time {
  font-size: 0.65rem;
  color: #52525b;
  font-family: var(--font-mono);
}

/* FAQ */
.faq-panel {
  border-radius: 12px;
  border: 1px solid var(--petuh-border);
  background: rgba(18, 20, 26, 0.6);
  overflow: hidden;
}

.faq-panel + .faq-panel { margin-top: 0.5rem; }

.faq-panel .faq-button {
  padding: 1rem 1.25rem;
}

.faq-panel .faq-content {
  padding: 0 1.25rem 1rem;
}

/* CTA полоса */
.cta-band {
  background: linear-gradient(90deg, rgba(229,57,53,0.08) 0%, rgba(251,213,6,0.05) 50%, rgba(229,57,53,0.08) 100%);
  border-top: 1px solid rgba(229, 57, 53, 0.2);
  border-bottom: 1px solid rgba(229, 57, 53, 0.2);
}

/* Секции */
.section-head {
  max-width: 36rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Steam кнопка */
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #171a21;
  border: 1px solid #2a475e;
  color: #c7d5e0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-steam:hover {
  background: #1b2838;
  border-color: #66c0f4;
  color: #fff;
  transform: translateY(-1px);
}

.btn-steam svg { width: 20px; height: 20px; flex-shrink: 0; }

.hero-title-accent {
  background: linear-gradient(135deg, #ff6b6b 0%, var(--petuh-accent) 40%, #ffab40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Плитки безопасности */
.security-tile {
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.security-tile iconify-icon {
  display: block;
  margin: 0 auto 0.85rem;
}

/* Внутренние страницы */
body.petuh-site .page-hero {
  max-width: 48rem;
}

body.petuh-site .page-hero h1 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

body.petuh-site .content-card {
  background: linear-gradient(165deg, rgba(26,29,38,0.95) 0%, rgba(18,20,26,0.98) 100%);
  border: 1px solid var(--petuh-border);
  border-radius: 16px;
}

body.petuh-site .content-card:hover {
  border-color: rgba(229, 57, 53, 0.25);
}

body.petuh-site .tag-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(18, 20, 26, 0.8);
  border: 1px solid var(--petuh-border);
  color: #a1a1aa;
}

body.petuh-site .prose-block {
  color: #a1a1aa;
  line-height: 1.75;
}

body.petuh-site .prose-block h2,
body.petuh-site .prose-block h3 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .case-machine__reel,
  .badge-live__dot,
  .eyebrow::before {
    animation: none !important;
  }
}
