body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  font-family: 'Montserrat', sans-serif;
  color: white;
  overflow-y: none;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;    /* Firefox */
}

/* Chrome, Safari, Edge */
body::-webkit-scrollbar {
  display: none;
}
  
.scroll-container {
  height: calc(var(--vh, 1vh) * 100);
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* IE */
  scrollbar-width: none;    /* Firefox */
}
  
.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome */
}
  
  
.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, #a48fff, #ffffff);
  box-shadow: 0 0 8px rgba(164, 143, 255, 0.4);
  z-index: 1;
  border-radius: 0 4px 4px 0;
  transition: width 0.15s ease-out;
}



/* НАВБАР */
.blog-navbar {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.blog-navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.blog-logo {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(120deg, #ffffff, #a48fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav-back {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-back:hover {
  color: white;
  text-shadow: 0 0 8px #a48fff;
}


.lang-switch {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  width: 100px;
  height: 36px;
}

.lang-option {
  flex: 1;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  z-index: 2;
  line-height: 36px;
  transition: color 0.3s ease;
}

.lang-option.active {
  color: #0a0a0a;
}

.lang-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 50%;
  height: 32px;
  background: linear-gradient(135deg, #a48fff, #866fff);
  border-radius: 10px;
  z-index: 1;
  transition: left 0.3s ease;
}







.blog-hero {
  padding: 60px 5% 60px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(120deg, #ffffff, #a48fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.blog-hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  font-weight: 400;
}

.blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 0 5%;
}

.post-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 0 24px rgba(164, 143, 255, 0.15);
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.post-content {
  padding: 30px;
}

.post-content h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  color: white;
}

.post-content p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  line-height: 1.6;
}





/* FOOTER */
.footer {
  /* margin-top: 120px; */
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 5% 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  position: relative;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;/* важно: центрируем всё по вертикали */
  padding: 0 20px;
  min-height: 120px; /* немного увеличим высоту */
  position: relative;
}


.footer-left .footer-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  background: linear-gradient(120deg, #ffffff, #a48fff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  background-position: -100% center;
  animation: shineText 6s infinite ease-in-out;
}

.footer-slogan {
  margin: 10px 0 10px;
  line-height: 1; /* Жестко задаём */
  color: rgba(255, 255, 255, 0.4);
}



.footer-lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 120px;
  height: 44px; /* немного выше, чтоб встало на один уровень с текстом слева */
  box-sizing: border-box;
}


.lang-option {
  flex: 1;
  text-align: center;
  font-weight: 600;
  z-index: 2;
  line-height: 44px; /* чтобы текст был по центру */
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.lang-option.active {
  color: #0a0a0a;
}

.lang-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 50%;
  height: 40px;
  background: linear-gradient(135deg, #a48fff, #866fff);
  border-radius: 10px;
  z-index: 1;
  transition: left 0.3s ease;
  box-shadow: 0 0 10px rgba(164, 143, 255, 0.4);
}


.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}









/* СТИЛИ СТРАНИЦЫ ОТДЕЛЬНОГО ПОСТА */
.post-page {
  padding: 100px 5% 80px;
  max-width: 900px;
  margin: 30px auto;
  color: white;
  line-height: 1.7;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(164, 143, 255, 0.08), inset 0 0 0 transparent;
  backdrop-filter: blur(10px);
}

.post-header h1,
.post-header h2,
.post-header h3 {
  background: linear-gradient(120deg, #ffffff, #a48fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 50px;
  margin: 0;
}

.post-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 30px;
}

.post-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(164, 143, 255, 0.1);
  margin-bottom: 40px;
}

/* Контент */
.post-body {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.post-body h2, .post-body h3, .post-body h4 {
  font-weight: 600;
  background: linear-gradient(120deg, #ffffff, #a48fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-body h2 {
    font-size: 40px;
    margin: 30px 0px 25px 0px;
}

.post-body h3 {
  font-size: 30px;
  margin: 20px 0px 15px 0px;
}

.post-body h4 {
  font-size: 25px;
  margin: 15px 0px 0px 0px;
}

.post-body p {
  margin: 16px 0;
  text-align: justify;
}

.post-body blockquote {
  border-left: 3px solid #a48fff;
  padding-left: 16px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.post-body strong {
  color: #fff;
  font-weight: 600;
}

.post-body a {
  color: #a48fff;
  text-decoration: underline;
  transition: 0.3s ease;
}

.post-body a:hover {
  color: white;
  text-shadow: 0 0 6px #a48fff;
}

.post-body ul, .post-body ol {
  padding-left: 24px;
  margin: 16px 0;
}

.post-body li {
  margin-bottom: 8px;
}


.post-body figure.image_resized {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
}


.post-body figure img {
  width: 100%;
  height: auto;
  max-height: 520px; /* не фиксируй в 420px, если не нужно — поставь больше */
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(164, 143, 255, 0.1);
  margin-bottom: 40px;
}


.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  color: white;
}

.post-body table, .post-body th, .post-body td {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.post-body th, .post-body td {
  padding: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
}

.post-body th {
  background: rgba(255, 255, 255, 0.08);
}

.post-tags {
  margin-top: 100px;
}




@media (max-width: 768px) {

  .blog-navbar-center {
    position: unset;
    transform: unset;
  }

  .blog-hero {
    padding: 60px 5% 30px;
  }

  .blog-hero h1 {
    font-size: 2.2rem;
    margin: 0;
  }

  .blog-hero p {
    font-size: 1rem;
  }



  .post-page {
    padding: 50px 5% 80px;
  }

  .post-header h1, .post-header h2, .post-header h3 {
    font-size: 40px;
    line-height: 1.2;
  }

  .post-body h2 {
    line-height: 1.2;
  }

  .post-body h3 {
    font-size: 25px;
    line-height: 1.2;
  }
  
  .post-body h4 {
    line-height: 1.2;
  }

  .post-body blockquote {
    line-height: 1.3;
  }

  .post-body p {
    line-height: 1.4;
    letter-spacing: -0.1px;
  }


  .footer-container {
    padding: 0 10px;
  }

  .footer-left .footer-logo {
    font-size: 1.4rem;
  }


  .footer-lang-switch {
    width: 100px;
    height: 44px;
  }

  .lang-option {
    font-size: 0.75rem;
  }

  .lang-slider {
    top: 1px;
      /* width: 49%;
      height: 38px; */
  }


  .footer-slogan{
    font-size: 0.8rem;
    max-width: 200px;
  }

  .footer-bottom {
    font-size: 0.65rem;
    margin-top: 20px;
  }

}