/* Подключаем Montserrat из локальной папки */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.woff2') format('woff2'),
       url('fonts/Montserrat-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Bold.woff2') format('woff2'),
       url('fonts/Montserrat-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

img.emoji {
  width: 20px;           /* размер эмоджи */
  height: 20px;
  vertical-align: middle; /* чтобы не прыгали рядом с текстом */
}


:root {
  --bg: #0f1220;
  --card: #171a2f;
  --text: #e8ecfd;
  --muted: #9aa4c7;
  --accent: #6c8cff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', 'Noto Color Emoji', system-ui, -apple-system, "Segoe UI", Montserrat, Ubuntu, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: radial-gradient(1600px 1600px at 100% -10%, #1b2040, #0f1220 60%);
  /*background-repeat: no-repeat;*/
}

.container { max-width: 1920px; padding: 30px; margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

h1 { font-size: 22px; margin: 0; }
.muted { color: var(--muted); font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: inherit;

  /* Делаем карточку квадратной */
  /* aspect-ratio: 1 / 1; */
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(108,140,255,0.7);
  box-shadow: 0 8px 24px rgba(108,140,255,0.15);
}

.card.disabled { opacity: .55; cursor: not-allowed; }

.badge {
  opacity: 0%;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 999px;
}

.thumb {
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  margin-bottom: 12px;
  margin-left: 10%;
  margin-right: 10%;
  background: linear-gradient(135deg, rgba(108,140,255,0.25), rgba(108,140,255,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cdd6ff;
  font-weight: 700;
  letter-spacing: .5px;
  user-select: none;
  overflow: hidden;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* картинка полностью помещается внутрь квадрата */
}

.title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
}

.desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  min-height: 1em;
}


/* === Мобильная версия === */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  h1 {
    font-size: 18px;
  }

  .muted {
    font-size: 12px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .card {
    border-radius: 10px;
    padding: 10px;
  }

  .thumb {
    width: 90%;
    aspect-ratio: 1 / 1; /* квадрат */
    margin-bottom: 8px;
  }

  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .title {
    font-size: 14px;
  }

  .desc {
    font-size: 12px;
  }

  .footer {
    font-size: 11px;
  }
}

/* === Совсем маленькие экраны (телефоны в портретном режиме) === */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  h1 {
    font-size: 16px;
  }

  .title {
    font-size: 13px;
  }

  .desc {
    font-size: 11px;
  }
}


/* log sekta page */

.changelog {
  max-width: 800px;
  margin: 0 auto;
  padding: 1px;
}

.log-entry {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.log-date {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.log-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.log-details {
  font-size: 14px;
  line-height: 1.4;
}

/* история папки (кнопка)*/
.changelog-btn {
  background: #2b345a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.changelog-btn:hover {
  background: rgba(108,140,255,0.7); /* чуть светлее при наведении */
}

footer {
  position: relative;    /* нужна опора для абсолютного позиционирования картинки */
  display: flex;         /* чтобы удобно расположить текст и картинку */
  justify-content: left  ;
  align-items:center;
  padding: 10px;
}
/*логотип внизу*/
.footer-image {
  margin-top: 100px;
  height: 150px;
  width: auto;
}
.footer-image-logo {
  margin-top: 100px;
  height: 200px;   
  width: auto;
}

.footer-images-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto; /* изображения уходят вправо */
}

/* Кнопка справа */
.footer-btn-right {
  margin-top: 200px;
  margin-left: 10px;
}


/* рей)))) */
.rey-gradient {
  background:
    linear-gradient(55deg, rgba(255, 0, 89, 0.3), rgba(255, 0, 89, 0) 70.71%),
    linear-gradient(290deg, rgba(255, 0, 135, 0.3), rgba(255, 0, 135, 0) 70.71%),
    linear-gradient(163deg, rgba(202, 0, 91, 0.3), rgba(202, 0, 91, 0) 70.71%),
    linear-gradient(136deg, rgba(175, 41, 124, 0.3), rgba(175, 41, 124, 0) 70.71%),
    linear-gradient(109deg, rgba(173, 41, 175, 0.3), rgba(173, 41, 175, 0) 70.71%),
    linear-gradient(82deg, rgba(144, 0, 181, 0.3), rgba(144, 0, 181, 0) 70.71%),
    linear-gradient(217deg, rgba(106, 0, 93, 0.3), rgba(106, 0, 93, 0) 70.71%);
}
/* нефть */
.siberia-gradient {
  background: linear-gradient(
  135deg,
  rgb(36, 90, 177, 0.8),
  rgb(30, 109, 146, 0.8),
  rgb(106, 33, 175, 0.8));
}

.anekdot-gradient {
  background: linear-gradient(
  90deg,
  rgb(45, 129, 238, 0.5),
  rgba(255, 145, 250, 0.5));
}

.top_link{
  color: white;
  text-decoration: none;
}
.top_link:hover{
  color: rgb(158, 186, 247);
  text-decoration: underline;
}