* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: white;
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px; /* высота зоны градиента */
  background: linear-gradient(180deg, transparent 0%, #000b5c 100%);
  pointer-events: none; /* чтобы не мешал кликам */
  z-index: -1; /* под контентом */
}

/* ===== ОБЩИЙ КОНТЕЙНЕР ===== */
.bor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ===== ЗАГОЛОВОК САЙТА ===== */
.site-title {
  font-size: 2.5rem;
  margin: 0 0 30px 0;
}

/* ===== СЕТКА ИЗ ДВУХ КОЛОНОК ===== */
.container {
  display: grid;
  grid-template-columns: 1fr minmax(400px, 480px); /* левая тянется, правая 400-480px */
  gap: 40px;
  align-items: start; /* колонки не растягиваются друг под друга */
}

/* ===== ЛЕВАЯ КОЛОНКА ===== */
.left .subtitle {
  font-size: 1.1rem;
  color: #d0d0d0;
  margin: 0 0 30px 0;
}

.left section {
  margin-bottom: 30px;
}

.left h2 {
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  color: #c9c9ff;
}

.left p {
  line-height: 1.6;
  color: #d0d0d0;
  margin: 0 0 15px 0;
}

.left a {
  color: #8ab4ff;
  text-decoration: none;
}

.left a:hover {
  text-decoration: underline;
}

/* ===== ПРАВАЯ КОЛОНКА ===== */
.right {
  display: flex;
  flex-direction: column;
  gap: 20px; /* отступы между плеерами */
}

.player iframe {
  display: block;
  width: 100%;
}

/* ===== ФУТЕР ===== */
.footer {
  margin-top: 40px;
}

/* ===== ПК (от 769px) ===== */
@media (min-width: 769px) {
  .bor {
    padding: 40px;
  }
}

/* ===== ТЕЛЕФОН (до 768px) ===== */
@media (max-width: 768px) {
  .bor {
    padding: 20px 15px;
    font-size: 1rem;
  }
  
  .container {
    grid-template-columns: 1fr; /* колонки друг под другом */
    gap: 30px;
  }
  
  .site-title {
    font-size: 2rem;
  }
}

/* Для статейййй */
/* ===== ССЫЛКА НАЗАД ===== */
.back-link {
  display: inline-block;
  color: #8ab4ff;
  text-decoration: none;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* ===== СТАТЬЯ (ПОСТ) ===== */
.post {
  max-width: 720px; /* чтобы строка не была слишком длинной — читать легче */
  margin: 0 auto;
}

.post-header {
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.post-title {
  font-size: 2.2rem;
  margin: 0 0 10px 0;
}

.post-date {
  display: block;
  color: #9999cc;
  font-size: 0.95rem;
  font-style: italic;
}

/* ===== ТЕКСТ ПОСТА ===== */
.post-content p {
  line-height: 1.75;
  font-size: 1.05rem;
  color: #e0e0e0;
  margin: 0 0 20px 0;
}

/* ===== КАРТИНКИ В ПОСТЕ ===== */
.post-image {
  margin: 30px 0;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.post-image figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #9999cc;
  font-style: italic;
}

/* ===== ТЕЛЕФОН ===== */
@media (max-width: 768px) {
  .post-title {
    font-size: 1.7rem;
  }
  
  .post-content p {
    font-size: 1rem;
    line-height: 1.65;
  }
}
/* ===== СТРАНИЦА СО СПИСКОМ ПОСТОВ ===== */
.page-title {
  font-size: 2.2rem;
  margin: 0 0 10px 0;
}

.page-subtitle {
  color: #9999cc;
  margin: 0 0 40px 0;
  font-size: 1rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
}

.post-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-date {
  color: #9999cc;
  font-size: 0.9rem;
  font-family: monospace; /* даты в моноширинном — прикольно */
}

.post-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.post-link:hover {
  color: #8ab4ff;
  text-decoration: underline;
}

/* ===== ТЕЛЕФОН ===== */
@media (max-width: 768px) {
  .post-item {
    grid-template-columns: 1fr; /* дата над заголовком */
    gap: 6px;
  }
  
  .page-title {
    font-size: 1.7rem;
  }
}

/* ===== СОЦСЕТИ ===== */
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 25px;
  max-width: 720px;
  margin-top: 30px;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border-radius: 16px;
  text-decoration: none;
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.social:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: #8ab4ff;
}

.social img {
  width: 56px;
  height: 56px;
  display: block;
}

.social span {
  font-size: 0.9rem;
  color: #b0b0b0;
}

.social:hover span {
  color: #ffffff;
}