/* =====================
   БАЗА
===================== */

html {
  background-color: #000;
}

body {
  margin: 0;
  min-height: 100svh;

  color: #d0d0d0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;

  background-color: #000;
  background-image:
    linear-gradient(
      rgba(0,0,0,0.65),
      rgba(0,0,0,0.85)
    ),
    url("img/IMG0000069.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* фиксированный фон — ТОЛЬКО ПК */
@media (min-width: 769px) {
  body {
    background-attachment: fixed;
  }
}

/* =====================
   ЦЕНТР ГЛАВНОЙ
===================== */

.centered-text {
  position: relative;
  z-index: 2;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 20px;
}

.centered-text h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3em;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  color: #d6d6d6;
  text-transform: uppercase;
}

.subtitle {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1em;
  color: #b0b0b0;
  margin-bottom: 40px;
  max-width: 600px;
}

/* =====================
   COPYRIGHT
===================== */

.copyright {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.15em;
  z-index: 10;
}

/* =====================
   МЕНЮ ГЛАВНОЕ
===================== */

.menu-top {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  z-index: 5;
}

.menu-top a {
  display: block;

  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85em;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  padding: 10px 28px;
  color: #d0d0d0;
  text-decoration: none;

  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);

  transition: all 0.3s ease;
}

.menu-top a:hover {
  background: rgba(20, 20, 20, 0.75);
  color: #ffffff;
}

/* =====================
   ГАЛЕРЕЯ
===================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 250px);
  gap: 20px;
  justify-content: center;
}

.thumb {
  width: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  filter: grayscale(100%);
  transition: filter 0.3s, transform 0.3s;
}

.thumb img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* =====================
   ВНУТРЕННЕЕ МЕНЮ
===================== */

.inner-menu {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 40px 0;
}

.inner-menu a {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.45);
  color: #eee;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);

  transition: background 0.3s, transform 0.3s;
}

.inner-menu a:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

.inner-menu a.active {
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}

/* =====================
   МОБИЛКА
===================== */

@media (max-width: 768px) {
  body {
    background-position: center top;
  }

  .copyright {
    position: static;
    transform: none;
    margin-top: 24px;

    font-size: 10px;
    letter-spacing: 0.08em;
    opacity: 0.5;
  }
  
  /* =====================
   ФИКСИРОВАННЫЙ ФОН — ТОЛЬКО ГАЛЕРЕЯ
===================== */

.gallery-page {
  background-attachment: fixed;
}

/* на телефонах отключаем fixed (иначе баги) */
@media (max-width: 768px) {
  .gallery-page {
    background-attachment: scroll;
  }
  
  body.gallery-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("img/IMG0000069.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}
