/* ====================== ШРИФТЫ ====================== */
@font-face {
  font-family: 'Stratos Skyeng';
  src: url('../fonts/stratosskyengweb-regular.woff2') format('woff2'),
       url('../fonts/stratosskyengweb-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Stratos Skyeng';
  src: url('../fonts/stratosskyengweb-medium.woff2') format('woff2'),
       url('../fonts/stratosskyengweb-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Stratos Skyeng';
  src: url('../fonts/stratosskyengweb-bold.woff2') format('woff2'),
       url('../fonts/stratosskyengweb-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* ====================== ОБЩИЕ СТИЛИ ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Stratos Skyeng', system-ui, sans-serif;
  background: linear-gradient(135deg, #0a0a1f 0%, #1a0033 100%);
  color: #e0e0ff;
  line-height: 1.7;
  min-height: 100vh;
}

/* ====================== НАВИГАЦИЯ ====================== */
nav {
  background: rgba(15, 15, 45, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(100, 100, 255, 0.3);
}

nav a {
  display: inline-block;
  margin: 0 10px;
  padding: 12px 30px;
  background: linear-gradient(90deg, #4a4aff, #6e6eff);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 74, 255, 0.4);
}

nav a:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(110, 110, 255, 0.6);
  background: linear-gradient(90deg, #6e6eff, #9a9aff);
}

/* ====================== ЦЕНТРАЛЬНЫЙ БЛОК ====================== */
.center {
  max-width: 820px;
  margin: 50px auto;
  padding: 50px 40px;
  background: rgba(20, 20, 50, 0.92);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(120, 120, 255, 0.4);
  backdrop-filter: blur(8px);
}

/* ====================== ЗАГОЛОВКИ ====================== */
h1 {
  font-size: 2.9rem;
  font-weight: 700;
  color: #b0b0ff;
  text-align: center;
  margin-bottom: 35px;
  text-shadow: 0 0 25px rgba(150, 150, 255, 0.6);
}

h2 {
  font-size: 1.85rem;
  color: #a0a0ff;
  margin: 35px 0 20px;
  text-align: center;
  text-shadow: 0 0 15px rgba(150, 150, 255, 0.3);
}

/* ====================== СПИСКИ ====================== */
ul, ol {
  padding-left: 28px;
  margin: 25px 0;
}

li {
  margin: 15px 0;
  font-size: 1.12rem;
}

ol li::before {
  content: counter(my-counter) ". ";
  color: #7a7aff;
  font-weight: 700;
}

ol {
  counter-reset: my-counter;
}

/* ====================== ИЗОБРАЖЕНИЯ ====================== */
.center img {
  max-width: 100%;
  border-radius: 16px;
  margin: 25px 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  display: block;
}

/* Сетка мемов */
.memes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.memes-grid img {
  width: 100%;
  border-radius: 16px;
  transition: all 0.4s ease;
}

.memes-grid img:hover {
  transform: scale(1.07);
  box-shadow: 0 18px 40px rgba(110, 110, 255, 0.5);
}

/* ====================== АДАПТИВНОСТЬ ====================== */
@media (max-width: 768px) {
  .center {
    margin: 20px 15px;
    padding: 35px 25px;
  }
  
  h1 { font-size: 2.4rem; }
  
  nav a {
    margin: 6px 4px;
    padding: 10px 22px;
    font-size: 1rem;
  }
}

a {
  color: #8a8aff;
  text-decoration: none;
}

a:hover {
  color: #c0c0ff;
}