/* Базовая сетка и сброс для страницы Minecraft */
.mc-container { margin: 0 auto; }

/* Хедер-герой с видео и заголовком */
.mc-hero { position: relative; height: 100vh; min-height: 300px; overflow: hidden; }
.mc-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.mc-hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #fff; text-align: center; gap: 8px; padding: 16px; }
.mc-hero-title { font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 40px; line-height: 1.1; }
.mc-hero-sub { font-family: 'Fira Sans', sans-serif; font-size: 18px; opacity: 0.95; }

/* Секции с чередованием блоков */
.mc-section { padding: 32px 16px; }
.mc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-bottom: 24px; }
.mc-row.reverse { direction: rtl; }
.mc-row.reverse > * { direction: ltr; }
.mc-box { height: 220px; display: flex; align-items: center; justify-content: center; color: #2c3e50; font-weight: 600; background: rgba(44,62,80,0.05); }
.mc-box img { width: auto; height: 100%; object-fit: cover; border-radius: 12px;}
.mc-text h3 { margin: 0 0 8px; font-size: 22px; text-align: center; }
.mc-text p { margin: 0; line-height: 1.6; }

/* Список модов — адаптивная сетка 4/3/2 */
.mc-list { background: rgba(44,62,80,0.03); border: 1px solid rgba(44,62,80,0.12); border-radius: 12px; padding: 16px; }
.mc-mods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mc-mod-card { position: relative; border-radius: 12px; min-height: 140px; background: #222 center/cover no-repeat; overflow: hidden; border: 1px solid rgba(44,62,80,0.18); transition: box-shadow .2s ease; }
.mc-mod-card.no-change { position: relative; border-radius: 12px; min-height: 140px; background-color: #222; background-position: center; background-repeat: no-repeat; background-size: contain; overflow: hidden; border: 1px solid rgba(44,62,80,0.18); transition: box-shadow .2s ease; }
/* затемнение по умолчанию слабое, при ховере становится сильнее */
.mc-mod-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.2); opacity: .2; transition: opacity .2s ease; }
.mc-mod-card:hover::after { opacity: .85; }
.mc-mod-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.mc-mod-title { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; color: #fff; font-weight: 600; font-size: 14px; text-align: center; text-shadow: 0 2px 4px rgba(0,0,0,0.8); transition: opacity .15s ease; }
.mc-mod-card:hover .mc-mod-title { opacity: 0; }
.mc-mods-hint { margin-top: 10px; font-size: 13px; color: #666; }

/* Текстовая подсказка по центру карточки при ховере */
.mc-mod-card[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #00000075;
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  z-index: 3;
  opacity: 0;
  transition: opacity .15s ease;
}
.mc-mod-card:hover::before, .mc-mod-card:focus-within::before { opacity: 1; }

/* Карточки гайдов */
.mc-accordion { border: 1px solid rgba(44,62,80,0.2); border-radius: 12px; background: #222; overflow: hidden; }
.mc-accordion + .mc-accordion { margin-top: 12px; }
.mc-accordion summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; text-align: center; }
.mc-accordion summary::-webkit-details-marker { display: none; }
.mc-accordion[open] summary { border-bottom: 1px solid rgba(44,62,80,0.12); }
.mc-accordion .mc-accordion-content { padding: 14px 16px; }
.mc-accordion a { color: #0a66c2; text-decoration: none; }
.mc-accordion a:hover { text-decoration: underline; }

/* Контакты */
.mc-note { font-size: 18px; color: #fff; }

/* Заголовки секций */
.mc-title { margin: 0 0 16px; font-size: 28px; font-family: 'Exo 2', sans-serif; text-align: center; }

#contacts { text-align: center;}

/* Мелкая адаптивность */
@media (max-width: 900px) { .mc-row { grid-template-columns: 1fr; } .mc-hero-title { font-size: 32px; } }
@media (max-width: 1200px) { .mc-mods-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .mc-cards { grid-template-columns: 1fr; } .mc-hero { height: 40vh; } .mc-hero video { padding-top: 60px; } .mc-box img { width: 100%; } .mc-mods-grid { grid-template-columns: repeat(2, 1fr); } }


