/* === Общие стили === */
body {
  margin: 0;
  font-family: 'Arial Rounded MT Bold', sans-serif;
  background-color: #f7e7cf;
  color: #3d2a1a;
}

/* Навигация */
nav {
  background: #fef2dc;
  padding: 16px 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
nav a {
  color: #3d2a1a;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

/* Карусель книг */
.book-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.book-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 40px 0;
  flex: 1;
}
.book-carousel::-webkit-scrollbar {
  display: none;
}
.book {
  scroll-snap-align: start;
  flex: 0 0 auto;
  text-align: center;
  width: 220px;
}
.book img {
  height: 300px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Кнопки скролла — теперь в CSS */
.book-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255,255,255,0.8);
  color: #e7662f;
  font-size: 24px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  padding: 0;
}
.book-scroll-btn.left  { left: 0; }
.book-scroll-btn.right { right: 0; }

/* «UP»-кнопка и соцсети */
.scroll-up {
  position: fixed;
  bottom: 20px; right: 20px;
}
.scroll-up a {
  display: inline-block;
  background: #3d2a1a;
  color: #fff;
  border-radius: 50%;
  width: 48px; height: 48px;
  line-height: 48px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
}

footer.social {
  padding: 20px 0;
  text-align: center;
}
footer.social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: #3d2a1a;
  border-radius: 50%;
  margin: 0 10px;
  text-decoration: none;
}
footer.social img {
  width: 24px; height: 24px;
}

/* Адаптив */
@media (max-width: 768px) {
  .book-carousel-wrapper { padding: 0 20px; }
}

/* === Стили блога с раскрытием === */
.blog-container {
  padding: 120px 20px 60px;
  max-width: 960px;
  margin: auto;
}
.blog-post {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.blog-post h2 {
  font-size: 22px;
  color: #3d2a1a;
  margin-bottom: 10px;
}
.blog-post p {
  font-size: 18px;
  line-height: 1.6;
  color: #3d2a1a;
}
.blog-post .toggle {
  margin-top: 12px;
  background: #e7662f;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
.full-content {
  display: none;
  margin-top: 20px;
}
.language-switch {
  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 1000;
  font-size: 14px;
  font-family: 'Arial Rounded MT Bold', sans-serif;
  color: #3d2a1a;
}

.language-switch a {
  color: #3d2a1a;
  text-decoration: none;
  margin: 0 6px;
  font-weight: bold;
}

.language-switch a:hover {
  text-decoration: underline;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fef2dc;
  padding: 16px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

nav.nav {
  display: flex;
  gap: 30px;
}

.language-dropdown {
  position: absolute;
  left: 20px;
  z-index: 1001;
}

.language-button {
  background: none;
  border: none;
  font-family: 'Arial Rounded MT Bold', sans-serif;
  font-size: 14px;
  color: #3d2a1a;
  cursor: pointer;
}

.language-menu {
  display: none;
  position: absolute;
  top: 28px;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1002;
  padding: 6px 0;
}

.language-menu a {
  display: block;
  padding: 6px 14px;
  color: #3d2a1a;
  text-decoration: none;
  white-space: nowrap;
}

.language-menu a:hover {
  background-color: #f0e6d6;
}

.language-dropdown.open .language-menu {
  display: block;
}

.news-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #e7662f;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.news-scroll-btn.left {
  left: -40px; /* было 0, теперь сдвинута левее */
}

.news-scroll-btn.right {
  right: -40px; /* было 0, теперь сдвинута правее */
}


