/* ==========================================================================
   SINGLE POST STYLES
   ========================================================================== */

.post-main {
 padding-top: 180px;
  padding-bottom: 80px;
}

/* Контейнеры */
.post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-container-narrow {
  max-width: 760px; /* Узкая колонка для чтения */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ШАПКА СТАТЬИ --- */
.post-header {
  margin-bottom: 60px;
  text-align: center;
  padding: 0 20px;
}

.post-back-link {
  display: inline-block;
  color: #666;
  text-decoration: none;
  font-family: "Polaris", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 0.3s ease;
}

.post-back-link:hover { color: #c01101; }

.post-meta {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
}

.post-tag { color: #c01101; font-weight: 700; text-transform: uppercase; }
.post-date { color: #888; }

.post-title {
  font-family: "Polaris", sans-serif;
  font-size: 36px; 
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

/* Обложка */
.post-hero-img-wrapper {
  width: 100%;
  max-width: 1200px;
  height: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.post-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- КОНТЕНТ (ТИПОГРАФИКА) --- */
.post-content {
  color: #bbb; 
  font-family: "Lato", sans-serif;
  font-size: 17px; 
  line-height: 1.8;
  font-weight: 300; 
}

.post-intro {
  font-size: 20px;
  line-height: 1.7;
  color: #eee;
  margin: 40px auto 60px;
  font-weight: 300;
  border-left: 1px solid #c01101; 
  padding-left: 25px;
}

.post-content h2 {
  font-family: "Polaris", sans-serif;
  color: #fff;
  font-size: 26px;
  margin-top: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-content h3 {
  font-family: "Polaris", sans-serif;
  color: #fff;
  font-size: 20px; 
  margin-top: 35px;
  margin-bottom: 15px;
  text-transform: uppercase;
}


.post-content p { margin-bottom: 25px; }

/* Цитата */
.post-quote {
  margin: 40px 0;
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid #c01101;
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: #ddd;
}

/* Списки */
.post-content ul {
  margin-bottom: 30px;
  padding-left: 20px;
}


.post-content li {
  margin-bottom: 10px;
  color: #aaa;
}

.post-content li strong {
  color: #fff;
  font-weight: 400;
}

/* Картинки внутри текста */
.post-figure {
  margin: 50px 0;
}

.post-figure img {
  width: 100%;
  border-radius: 8px;
}

.post-figure figcaption {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 15px;
}

/* --- ФУТЕР СТАТЬИ --- */
.post-footer {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-cta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.cta-title {
  font-family: "Polaris", sans-serif;
  font-size: 24px; /* Было 28px */
  color: #fff;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.cta-text { margin-bottom: 30px; color: #888; }

.post-navigation {
  display: flex;
  justify-content: space-between;
  font-family: "Polaris", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.post-navigation a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-navigation a:hover { color: #fff; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}
.feature-item {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
.feature-item strong { color: #fff; display: block; margin-bottom: 10px; }

.features-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px; /* Немного уже основного контента, чтобы смотрелось элегантно */
    margin: 40px auto;
}

.post-content h2 {
  font-family: "Polaris", sans-serif;
  font-size: 28px; /* Чуть меньше основного, чтобы была иерархия */
  color: #fff;
  margin-top: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.2;
}


@media screen and (max-width: 767px) {
    .features-grid.two-cols {
        grid-template-columns: 1fr; 
    }
    .features-grid {
        grid-template-columns: 1fr; 
    }
}

/* Адаптив */
@media screen and (max-width: 767px) {
  .post-title { font-size: 32px; }
  .post-hero-img-wrapper { height: 350px; }
  .post-intro { font-size: 18px; }
  .post-cta-box { padding: 30px 20px; }
}

@media screen and (max-width: 767px) {
  .post-title {
    font-size: clamp(26px, 6vw, 40px) !important; 
    line-height: 1.1 !important;
    margin-bottom: 30px !important; 
  }
  .post-content h2 {
    font-size: 18px !important;
  }
}

.centered-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 160px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    width: auto;
}

.index-blog {
  width: 95%; 
  max-width: 1200px;
  margin: 80px auto 0px auto ;
  box-sizing: border-box;
  padding-bottom: 100px;
}

.article-content a, 
.article-content a:visited, 
.article-content a:active {
   color: #ffffff !important;
    text-decoration: underline;
    /* Делаем подчеркивание чуть прозрачным, чтобы оно не спорило с текстом */
    text-decoration-color: rgba(255, 255, 255, 0.4); 
    /* Сдвигаем линию чуть ниже от букв (выглядит очень современно) */
    text-underline-offset: 4px; 
    /* Добавляем плавность для эффекта наведения */
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

/* Эффект при наведении мышки */
.article-content a:hover {
    /* Подчеркивание пропадает */
    text-decoration-color: transparent; 
    /* По желанию: можно сделать сам текст чуть-чуть тусклее при наведении */
    /* color: #cbd5e1; */ 
}