/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Reveal-анимации УДАЛЕНЫ полностью:
   никакие классы не могут скрыть блоки (шапку, товары, подвал и т.д.).
   Всё всегда видимо. Остались только безопасные hover-эффекты. */
.reveal,
.reveal.gg-pending,
.reveal.visible,
.reveal.gg-pending.visible,
.reveal.delay-1,
.reveal.delay-2,
.reveal.delay-3,
.reveal.delay-4 {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
}

/* Cards hover */
#store_items .card,
.card {
  -webkit-transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#store_items .card:hover,
.card:hover {
  -webkit-transform: translateY(-6px);
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

/* Buttons hover */
.button {
  -webkit-transition: -webkit-transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.button:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-filter: brightness(1.05);
  filter: brightness(1.05);
}
.button:active {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* Social links hover */
#social a {
  -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#social a:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  #social a,
  .card {
    -webkit-transition: none;
    transition: none;
  }
}


/* Gallery — карточки в стиле сервиса: картинка целиком, название, описание, теги */
#gallery {
  padding: 40px 0;
}
#gallery .gallery-title {
  text-align: center;
  margin: 0 0 30px;
  font-size: 26px;
  font-weight: 800;
}
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
#gallery .g-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-bottom: 4px solid #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
  -webkit-transition: -webkit-transform .2s ease, box-shadow .2s ease;
  transition: transform .2s ease, box-shadow .2s ease;
}
#gallery .g-card:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  -webkit-box-shadow: 0 14px 30px rgba(0,0,0,.12);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}
#gallery .g-photo {
  padding: 10px;
  background: #f4f5f8;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
#gallery .g-photo img {
  display: block;
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
}
#gallery .g-body {
  padding: 14px 16px 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 6px;
}
#gallery .g-name {
  font-family: "Mazzard M", Arial, sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #1b1712;
}
#gallery .g-title {
  font-family: "Mazzard M", Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1b1712;
}
#gallery .g-desc {
  font-family: "Mazzard M", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #6c7190;
}
#gallery .g-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
#gallery .g-tags span {
  font-family: "Mazzard M", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #6c7190;
  background: #f0f1f5;
  border-radius: 20px;
  padding: 4px 10px;
}
[data-theme="dark"] #gallery .g-card {
  background: #232428;
  border-color: #33353c;
  border-bottom-color: #3a3748;
}
[data-theme="dark"] #gallery .g-photo {
  background: #1d1e22;
}
[data-theme="dark"] #gallery .g-name,
[data-theme="dark"] #gallery .g-title {
  color: #e6e6ef;
}
[data-theme="dark"] #gallery .g-desc {
  color: #9a9daf;
}
[data-theme="dark"] #gallery .g-tags span {
  color: #c2c3d1;
  background: #2c2d34;
}
@media (max-width: 1100px) {
  #gallery .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  #gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  #gallery .gallery-grid { grid-template-columns: 1fr; }
}
/* Присоединение: текст слева, айпи справа */
#join_us {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  grid-template-areas: "join_us_text copy";
  gap: 0 60px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
#join_us .left { grid-area: join_us_text; padding-left: 250px; }
#join_us .copy_ip { grid-area: copy; }
#join_us .copy_ip {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  grid-template-areas: "copy" "version";
  gap: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-items: end;
  height: auto;
}
#join_us .copy_ip .right {
  -ms-grid-row: 1;
  grid-row: 1;
  grid-area: copy;
}
#join_us .copy_ip .left {
  -ms-grid-row: 2;
  grid-row: 2;
  grid-area: version;
}

/* «Наш сервер» — жаркий огненный градиент */
.s-online .server .server-name,
.s-online .server h6 {
  background: linear-gradient(90deg, #ff4b00 0%, #ff9d00 50%, #ffd000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff7a00;
  display: inline-block;
  font-weight: 900 !important;
}

/* Скриншот рейтинга в шапке-онлайна */
.head-rating-shot {
  margin-top: 14px;
}
.head-rating-shot img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  -webkit-box-shadow: 0 20px 40px rgba(0,0,0,.2);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
/* Окно с онлайн-статистикой — в правой нижней части главного окна */
#head .head_bottom {
  grid-template-columns: 1fr 564px;
  grid-template-areas: ". online";
  -ms-grid-columns: 1fr 564px;
}
#head .head_bottom .s-online-wrapp {
  grid-column: 2;
  grid-area: online;
}