body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #111726 0%, #0f172a 100%);
  color: #fff;
  scroll-behavior: smooth;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  flex-grow: 1;
}

html {
  scroll-behavior: smooth;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.post-list-column {
  display: grid;
  grid-template-columns: 1fr; /* одна колонка */
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .post-list-column {
    grid-template-columns: 1fr;
  }
}


.post-header {
  width: auto;
  max-width: none; /* убираем фиксированную ширину */
  margin: 130px 1.5rem 1rem 1.5rem; /* сверху, справа, снизу, слева */
  padding: 0 1rem;
  box-sizing: border-box;
}

.article-hero-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100px;
  display: flex;
  justify-content: center; /* центрируем .banner-wrapper */
  align-items: center;
  overflow: hidden;
  z-index: 999;
  text-decoration: none;
  background-color: #020207; /* резервный фон */
}

.banner-wrapper {
  display: flex;
  justify-content: center;
  width: 100%; /* или max-width */
}

.banner-image {
  width: 620px; /* или нужная ширина */
  height: 100px;
  background-image: url('/images/hero-banner.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto; /* центрирует по горизонтали внутри flex-контейнера */
}

.article-hero-banner:hover {
  opacity: 1;
  cursor: pointer;
}


.container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.back-link {
  display: inline-block;
  font-weight: 600;
  color: #1e90ff;
  text-decoration: none;
  font-size: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

.post-article-wrapper {
  background: linear-gradient(145deg, #21293d, #1a2233);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  padding: 2.5rem 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.post-article-wrapper h2 {
  font-size: 1.6rem;
}

.post-article-wrapper h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 1.2; 
  border-bottom: 2px solid #1e90ff;
  padding-bottom: 0.4rem;
  font-weight: 700;
}


.post-article-wrapper a:hover {
  text-decoration: underline;
}


.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 0;
  z-index: 100;
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(to bottom, rgba(17, 24, 39, 0.2) 40%, rgba(17, 24, 39, 1) 100%),
    url('/images/hero-bg.jpg') center/cover no-repeat;
  filter: blur(2px);
  z-index: 0;
  opacity: 0.45;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
}

.hero-overlay h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.hero-overlay p {
  font-size: 1.8rem;
  font-weight: 300;
  margin: 0;
}


.section {
  max-width: 900px;
  margin: 6rem auto 4rem auto;
  padding: 0 1rem;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #1e90ff;
  padding-bottom: 0.3rem;
}

.about p,
.features ul {
  font-size: 1.1rem;
  line-height: 1.6;
}

.features ul {
  list-style: none;
  padding-left: 0;
}

.features li {
  margin-bottom: 1rem;
  font-weight: 500;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}


.post-card {
  border: 1px solid #444;
  padding: 1rem;
  border-radius: 8px;
  background: #21293d;
  transition: background 0.3s ease;
}

.post-card h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.7rem; /* или другой удобный отступ */
}

.post-card:hover {
  background: #1e90ff;
}

.post-card a.post-link {
  color: inherit;
  text-decoration: none;
  display: block; /* занимает всю карточку */
  height: 100%;
}

.post-card p {
  color: #ccc; /* светло-серый на темном фоне */
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.post {
  max-width: 720px;
  margin: 6rem auto 4rem auto;
  padding: 0 1rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.post h1 {
  font-size: 3rem;
  margin-top: 0.3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #1e90ff;
  padding-bottom: 0.3rem;
}

.site-footer {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
  color: #ccc;
}

.site-footer a {
  color: #1e90ff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .footer-link {
  color: inherit;       /* цвет наследуется от футера */
  text-decoration: none; /* убрать подчеркивание */
  cursor: pointer;      /* курсор при наведении */
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
  color: inherit;       /* не менять цвет при наведении */
  text-decoration: none; /* без подчеркивания */
}
.arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 60px;
  color: white;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-15px);
  }
}
.btn-primary {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 28px;
  background-color: #007BFF; /* синий цвет */
  color: white;
  font-weight: 600;
  font-size: 1.3rem;         /* увеличенный размер шрифта */
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3; /* темнее при наведении */
}
