* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #121212;
  color: #e8e8e8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: #7fd4ff; }
a:hover { color: #b0e2ff; }

/* Шапка: картинка по центру */
.hero { text-align: center; padding-top: 2rem; }
.hero img {
  max-width: 900px; width: 100%; height: auto;
  display: inline-block; border-radius: 12px;
}

/* Меню: по центру, при прокрутке прилипает наверх */
.mainnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 18, 18, 0.96);
  border-bottom: 1px solid #2a2a2a;
}
.mainnav ul {
  list-style: none;
  display: flex; justify-content: center; gap: 2rem;
  padding: 0.8rem 0;
}
.mainnav a {
  color: #e8e8e8; text-decoration: none;
  font-weight: 500; padding: 0.3rem 0.7rem; border-radius: 6px;
}
.mainnav a:hover, .mainnav a.is-active {
  background: #2a2a2a; color: #fff;
}

/* Контент */
.content { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.content h1 { margin-bottom: 1rem; }
.content h2 { margin: 1.5rem 0 0.8rem; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { margin: 0 0 1rem 1.5rem; }
.content img { max-width: 100%; height: auto; border-radius: 8px; }

/* Три блока-карточки */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin: 2rem 0;
}
.card {
  background: #1c1c1c; border: 1px solid #2a2a2a;
  border-radius: 12px; padding: 1.2rem;
}
.card h3 { margin-bottom: 0.5rem; color: #fff; }
.card p { font-size: 0.95rem; color: #bdbdbd; }
.card a { display: inline-block; margin-top: 0.6rem; font-weight: 500; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

/* Подвал во всю ширину */
.footer {
  border-top: 1px solid #2a2a2a;
  background: #0e0e0e;
  padding: 1.5rem 1rem;
  text-align: center; color: #9a9a9a;
}
.footer a { color: #cfcfcf; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-links { margin-bottom: 0.5rem; }

/* Анимированные искры на фоне */
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.mainnav, .hero, .content, .footer, .cards-wrap {
  position: relative;
  z-index: 1;
}
.embers span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff9d3c;
  box-shadow: 0 0 8px 2px rgba(255, 120, 20, 0.7);
  opacity: 0;
  animation: rise 9s linear infinite;
}
.embers span:nth-child(1)  { left: 5%;  animation-delay: 0s;   animation-duration: 8s; }
.embers span:nth-child(2)  { left: 15%; animation-delay: 2s;   animation-duration: 10s; }
.embers span:nth-child(3)  { left: 25%; animation-delay: 4s;   animation-duration: 9s; }
.embers span:nth-child(4)  { left: 35%; animation-delay: 1s;   animation-duration: 11s; }
.embers span:nth-child(5)  { left: 45%; animation-delay: 3s;   animation-duration: 8s; }
.embers span:nth-child(6)  { left: 55%; animation-delay: 5s;   animation-duration: 12s; }
.embers span:nth-child(7)  { left: 65%; animation-delay: 2.5s; animation-duration: 10s; }
.embers span:nth-child(8)  { left: 75%; animation-delay: 4.5s; animation-duration: 9s; }
.embers span:nth-child(9)  { left: 85%; animation-delay: 0.5s; animation-duration: 11s; }
.embers span:nth-child(10) { left: 95%; animation-delay: 3.5s; animation-duration: 10s; }
.embers span:nth-child(11) { left: 10%; animation-delay: 6s;   animation-duration: 12s; width: 3px; height: 3px; }
.embers span:nth-child(12) { left: 40%; animation-delay: 7s;   animation-duration: 13s; width: 5px; height: 5px; }
.embers span:nth-child(13) { left: 60%; animation-delay: 8s;   animation-duration: 10s; width: 3px; height: 3px; }
.embers span:nth-child(14) { left: 80%; animation-delay: 5.5s; animation-duration: 12s; }
.embers span:nth-child(15) { left: 30%; animation-delay: 6.5s; animation-duration: 14s; width: 5px; height: 5px; }
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(-50vh) translateX(20px); opacity: 0.8; }
  90%  { opacity: 0; }
  100% { transform: translateY(-100vh) translateX(-15px); opacity: 0; }
}

/* Дополнительные искры (16–22) */
.embers span:nth-child(16) { left: 3%;  animation-delay: 1.5s; animation-duration: 9s;  width: 5px; height: 5px; }
.embers span:nth-child(17) { left: 22%; animation-delay: 2.8s; animation-duration: 13s; }
.embers span:nth-child(18) { left: 48%; animation-delay: 0.8s; animation-duration: 8.5s; width: 3px; height: 3px; }
.embers span:nth-child(19) { left: 68%; animation-delay: 3.2s; animation-duration: 12s; width: 5px; height: 5px; }
.embers span:nth-child(20) { left: 88%; animation-delay: 1.2s; animation-duration: 10.5s; }
.embers span:nth-child(21) { left: 50%; animation-delay: 6.2s; animation-duration: 11s; }
.embers span:nth-child(22) { left: 92%; animation-delay: 7.4s; animation-duration: 13.5s; width: 3px; height: 3px; }

/* Зарево у нижнего края */
.glow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45vh;
  background: radial-gradient(ellipse at 50% 130%,
    rgba(255, 110, 20, 0.32),
    rgba(255, 110, 20, 0.12) 45%,
    transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: glowpulse 6s ease-in-out infinite alternate;
}
@keyframes glowpulse {
  from { opacity: 0.65; }
  to   { opacity: 1; }
}

/* Полупрозрачный подвал поверх зарева */
.footer {
  background: rgba(18, 18, 18, 0.75); /* 75% непрозрачности */
  backdrop-filter: blur(6px);           /* лёгкое размытие фона (как матовое стекло) */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links a {
  color: #e8e8e8;
}
.footer-note {
  color: rgba(255, 255, 255, 0.65);
}

/* Тёплый фильтр: лёгкая янтарная плёнка поверх фона */
.warm {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 150, 50, 0.05),
    rgba(255, 90, 20, 0.09));
  pointer-events: none;
  z-index: 0;
}

/* Едва заметное мерцание пламени по всему фону */
.flicker {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 115%,
    rgba(255, 140, 40, 0.14),
    transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: flick 3.5s ease-in-out infinite;
}
@keyframes flick {
  0%   { opacity: 0.55; }
  20%  { opacity: 0.9; }
  35%  { opacity: 0.6; }
  55%  { opacity: 1; }
  70%  { opacity: 0.65; }
  85%  { opacity: 0.95; }
  100% { opacity: 0.55; }
}

/* Полупрозрачный подвал: зарево и искры просвечивают сквозь него */
.footer {
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links a { color: #e8e8e8; }
.footer-note { color: rgba(255, 255, 255, 0.65); }

/* Карточки: тёплое свечение и подъём при наведении */
.card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45),
              0 0 18px rgba(255, 120, 30, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5),
              0 0 24px rgba(255, 130, 40, 0.15);
}

/* На мобильных делаем эффекты спокойнее */
@media (max-width: 700px) {
  .embers span {
    box-shadow: 0 0 5px 1px rgba(255, 120, 20, 0.5);
  }
}

/* Меню всегда прилипает к верхнему краю при прокрутке */
.mainnav {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Меню: полупрозрачный фон + размытие, чтобы не просвечивал контент */
.mainnav {
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* для Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ссылки в меню — чтобы оставались читаемыми на тёмном фоне */
.mainnav ul {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0;
  margin: 0;
}
.mainnav li {
  list-style: none;
}
.mainnav a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.mainnav a:hover, .mainnav a.is-active {
  color: #ffaa44;
}

/* Меню: высота полосы + заметная прозрачность */
.mainnav {
  background: rgba(12, 12, 12, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
}
.mainnav ul {
  padding: 0;
  margin: 0;
}

/* Меню: ещё прозрачнее, с матовым эффектом */
.mainnav {
  background: rgba(12, 12, 12, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Меню и подвал: ещё на 50% прозрачнее */
.mainnav {
  background: rgba(12, 12, 12, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer {
  background: rgba(18, 18, 18, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Сетка гайдов */
.gtitle { text-align: center; color: #fff; margin-bottom: 6px; }
.gintro { text-align: center; color: rgba(255,255,255,0.75); max-width: 720px; margin: 0 auto 36px; }
.gsection { max-width: 1080px; margin: 0 auto 40px; padding: 0 20px; }
.gsection h2 { color: #ffaa44; font-size: 1.5em; margin: 0 0 18px; border-bottom: 1px solid rgba(255,170,68,0.25); padding-bottom: 8px; }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gcard {
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gcard:hover {
  transform: translateY(-5px);
  border-color: rgba(255,150,50,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255,120,30,0.12);
}
.gcard h3 { color: #fff; margin: 0 0 10px; font-size: 1.1em; }
.gcard p { color: rgba(255,255,255,0.7); font-size: 0.92em; flex-grow: 1; margin: 0 0 14px; }
.gcard a { color: #ffaa44; text-decoration: none; font-weight: 600; }
.gcard a:hover { color: #ffc57a; }
@media (max-width: 900px) { .ggrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ggrid { grid-template-columns: 1fr; } }

/* Витрина */
.stitle { text-align: center; color: #fff; margin-bottom: 6px; }
.sintro { text-align: center; color: rgba(255,255,255,0.75); max-width: 720px; margin: 0 auto 36px; }
.sgrid { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scard {
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.scard:hover {
  transform: translateY(-5px);
  border-color: rgba(255,150,50,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 22px rgba(255,120,30,0.14);
}
.sbill {
  width: 92px; height: 56px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3a2c14, #6b4c18);
  border: 1px solid rgba(255,190,90,0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(255,150,50,0.25) inset;
}
.sbill-value { color: #ffd58a; font-weight: 700; font-size: 1.05em; letter-spacing: 0.03em; }
.sbill-label { color: rgba(255,213,138,0.7); font-size: 0.65em; text-transform: uppercase; letter-spacing: 0.15em; }
.scard h3 { color: #fff; margin: 0 0 6px; font-size: 1.05em; }
.sprice { color: rgba(255,255,255,0.7); margin: 0 0 14px; }
.sbuy {
  margin-top: auto;
  display: inline-block;
  padding: 9px 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff9d3c, #e8701a);
  color: #1a0e02;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.sbuy:hover { filter: brightness(1.15); transform: translateY(-1px); }
.snote { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9em; margin: 30px auto 0; }
@media (max-width: 900px) { .sgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sgrid { grid-template-columns: 1fr; } }

/* Витрина — показываем иконку целиком */
.sbill-img-wrap {
  width: auto;
  height: 72px;
  display: inline-block;
  position: relative;
  margin-bottom: 14px;
}
.sbill-img {
  width: auto;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  box-shadow: 0 0 14px rgba(255,150,50,0.25) inset;
}

/* Фиксируем высоту картинки, чтобы карточки не разъезжались */
.sbill-img-wrap {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
}
.sbill-img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  box-shadow: 0 0 14px rgba(255,150,50,0.25) inset;
}

/* Видео в гайдах: по центру, адаптив 16:9 */
.gvideos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 24px auto;
  max-width: 800px;
}
.gvideo {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* соотношение 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.gvideo iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Видео: миниатюры с кнопкой Play, плеер раскрывается по клику */
.gvideos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 20px auto;
}
.gvideo {
  width: 280px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: #1c1c24;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  padding-bottom: 0;
}
.gvideo.is-active {
  width: 100%;
  max-width: 800px;
  cursor: default;
}
.gvideo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gvideo-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
}
.gvideo-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.gvideo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
