body {
      font-family: Arial, sans-serif;
      background: #f5f5f5;
      margin: 0;
      padding: 0;
    }
    header {
      background: #222;
      color: #fff;
      padding: 20px;
      text-align: center;
      font-family: "Michroma", sans-serif;
    }
    header h1 {
      margin: 0;
      font-family: "Red Hat Text", sans-serif;
      font-size: 50px;
      font-family: "Michroma", sans-serif;
    }
    nav {
      text-align: center;
      padding: 10px 0;
      background: #333;
       font-family: "Michroma", sans-serif;
    }
    nav a {
      color: #fff;
      margin: 0 15px;
      text-decoration: none;
      font-weight: bold;
         font-family: "Michroma", sans-serif;
    }

    nav a:hover {
      text-decoration: underline;
    }
    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 15px;
      padding: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }
    .gallery-item {
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      transition: transform 0.2s;
      margin-left: 500px;
      width: 920px;
      height: 800px;
    }
    .gallery-item:hover {
      transform: scale(1.05);
    }
    .gallery-item img {
      width: 100%;
      display: block;
    }
    .gallery-item .caption {
      padding: 10px;
      text-align: center;
      font-size: 14px;
      color: #333;
    }
    footer {
      text-align: center;
      padding: 15px;
  
      color: #fff;
      margin-top: 100px;
    }

    .footer-links a {
      font-size: 18px;
      font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
      color: cadetblue;
      font-family: "Red Hat Text", sans-serif;
    }

    /* animation background */

  #magic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #1e1e2f, #0f0f1a);
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* pri navedenie na kartochku pojavljaetsa svet */

.gallery-item {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.08);
}

/* Золотое свечение */
.gallery-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 215, 0, 0.6),
    transparent
  );
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Включается при наведении */
.gallery-item:hover::before {
  opacity: 1;
  animation: shine 1.5s linear infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

/* pri nazhatie kartinka uvelichivaetsa */

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

p {
  font-family: "Red Hat Text", sans-serif;
}

.footer-content {
  margin-top: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* затемнение */
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  color: white;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: white;
}

/* основной контейнер */
.container {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-direction: row;
}

/* левая часть — карточки */
.cards {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

/* карточка */
.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  background: #273449;
}

/* правая колонка — категории */
.categories {
  flex: 1;
  background: #111827;
  padding: 15px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 20px;

  margin-left: 450px;
}

.category {
  padding: 110px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #1f2937;
  cursor: pointer;
  transition: 0.2s;
  flex-direction: column;

}

.category:hover {
  background: #334155;
}

/* адаптив */
@media (max-width: 900px) {
  .container {
    flex-direction: row;
  }

  .categories {
    position: relative;
    top: auto;
  }
}

h2 {
  color: #1f2937;
  justify-content: center;
  margin-left: 400px;
}

.menu {
  margin-left: 750px;
}

